|
|
|
@ -294,7 +294,6 @@ export default {
|
|
|
|
productLineList: [],
|
|
|
|
productLineList: [],
|
|
|
|
updateTime: '',
|
|
|
|
updateTime: '',
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
refreshTimer: null,
|
|
|
|
|
|
|
|
// 设备状态
|
|
|
|
// 设备状态
|
|
|
|
deviceStatus: {
|
|
|
|
deviceStatus: {
|
|
|
|
totalDevices: 0,
|
|
|
|
totalDevices: 0,
|
|
|
|
@ -353,15 +352,8 @@ export default {
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.loadProductLines();
|
|
|
|
this.loadProductLines();
|
|
|
|
this.loadData();
|
|
|
|
this.loadData();
|
|
|
|
// 每60秒自动刷新
|
|
|
|
|
|
|
|
this.refreshTimer = setInterval(() => {
|
|
|
|
|
|
|
|
this.loadData();
|
|
|
|
|
|
|
|
}, 60000);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeDestroy() {
|
|
|
|
beforeDestroy() {
|
|
|
|
if (this.refreshTimer) {
|
|
|
|
|
|
|
|
clearInterval(this.refreshTimer);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
loadProductLines() {
|
|
|
|
loadProductLines() {
|
|
|
|
|