修改接口

master
夜笙歌 11 months ago
parent 6e630be2f7
commit 56e4c71c44

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 60 KiB

@ -1,9 +1,9 @@
<template>
<section class="app-main">
<transition name="fade-transform" mode="out-in">
<keep-alive :include="cachedViews">
<!-- <keep-alive :include="cachedViews">-->
<router-view v-if="!$route.meta.link" :key="key" />
</keep-alive>
<!-- </keep-alive>-->
</transition>
<iframe-toggle />
<div class="time" id="time">{{ time }}</div>

File diff suppressed because it is too large Load Diff

@ -97,7 +97,7 @@ import {getData, generalInterfaceList, getSimulateData} from '@/api/board/getDat
import {mixData} from '@/api/board/mixData'
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
let intervalFun = null
export default {
components: {
vueSeamlessScroll,
@ -521,7 +521,7 @@ export default {
},
xAxis: {
type: "category",
data: e.map(val=>val.X_VALUE),
data: e.map(val => val.X_VALUE),
axisLine: {
lineStyle: {
color: "white",
@ -551,7 +551,7 @@ export default {
},
series: [
{
name:'运行中夹具数量',
name: '运行中夹具数量',
type: "bar",
barWidth: '30%',
barMaxWidth: 50,
@ -581,7 +581,7 @@ export default {
]),
},
},
data:e.map(val=>val.Y_VALUE),
data: e.map(val => val.Y_VALUE),
}
]
})
@ -595,8 +595,20 @@ export default {
this.RequestDataSet.forEach(val => {
mixData(val)
})
intervalFun = setInterval(() => {
this.RequestDataSet.forEach(val => {
mixData(val)
})
}, 1000 * 10)
},
methods: {}
methods: {},
beforeDestroy() {
console.log(1)
if(intervalFun){
clearInterval(intervalFun)
intervalFun = null
}
}
};
</script>
<style scoped>

Loading…
Cancel
Save