|
|
@ -97,7 +97,7 @@ import {getData, generalInterfaceList, getSimulateData} from '@/api/board/getDat
|
|
|
|
import {mixData} from '@/api/board/mixData'
|
|
|
|
import {mixData} from '@/api/board/mixData'
|
|
|
|
|
|
|
|
|
|
|
|
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
|
|
|
|
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
|
|
|
|
|
|
|
|
let intervalFun = null
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
vueSeamlessScroll,
|
|
|
|
vueSeamlessScroll,
|
|
|
@ -521,7 +521,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
xAxis: {
|
|
|
|
xAxis: {
|
|
|
|
type: "category",
|
|
|
|
type: "category",
|
|
|
|
data: e.map(val=>val.X_VALUE),
|
|
|
|
data: e.map(val => val.X_VALUE),
|
|
|
|
axisLine: {
|
|
|
|
axisLine: {
|
|
|
|
lineStyle: {
|
|
|
|
lineStyle: {
|
|
|
|
color: "white",
|
|
|
|
color: "white",
|
|
|
@ -551,7 +551,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
series: [
|
|
|
|
series: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name:'运行中夹具数量',
|
|
|
|
name: '运行中夹具数量',
|
|
|
|
type: "bar",
|
|
|
|
type: "bar",
|
|
|
|
barWidth: '30%',
|
|
|
|
barWidth: '30%',
|
|
|
|
barMaxWidth: 50,
|
|
|
|
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 => {
|
|
|
|
this.RequestDataSet.forEach(val => {
|
|
|
|
mixData(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>
|
|
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|