修改接口

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> <template>
<section class="app-main"> <section class="app-main">
<transition name="fade-transform" mode="out-in"> <transition name="fade-transform" mode="out-in">
<keep-alive :include="cachedViews"> <!-- <keep-alive :include="cachedViews">-->
<router-view v-if="!$route.meta.link" :key="key" /> <router-view v-if="!$route.meta.link" :key="key" />
</keep-alive> <!-- </keep-alive>-->
</transition> </transition>
<iframe-toggle /> <iframe-toggle />
<div class="time" id="time">{{ time }}</div> <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' 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>

Loading…
Cancel
Save