Commit a11d4b4a authored by 张伯涛's avatar 张伯涛

首页定时任务等第一个定时响应玩再调用第二个定时

parent d065bbd4
......@@ -714,7 +714,9 @@ export default {
}
},
created() {
this.intercal = setInterval(_ => {
this.getStaTable()
}, 2000)
},
mounted() {
},
......@@ -853,8 +855,8 @@ export default {
},
// 获取表数据
getStaTable() {
clearInterval(this.intercal)
const params = {}
this.intercal = setInterval(_ => {
getTableData(params).then(res => {
this.monitoringData = res.data
for (let i = 0, l = this.monitoringData.length; i < l; i++) {
......@@ -883,10 +885,15 @@ export default {
// this.monitoringData[i].tableData.push(row)
}
this.intercal = setInterval(_ => {
this.getStaTable()
}, 2000)
console.log('this.monitoringData', this.monitoringData)
}).catch(_ => {
})
this.intercal = setInterval(_ => {
this.getStaTable()
}, 2000)
})
},
openModel(row, item, data) {
if (item.label === 'Scan0') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment