修改this实例问题
This commit is contained in:
@@ -579,7 +579,8 @@ export default {
|
||||
|
||||
startProcess() {
|
||||
let params = {
|
||||
state: 1
|
||||
state: 1,
|
||||
batchId: this.processBatchId
|
||||
}
|
||||
materialStart(params).then(res => {
|
||||
if (res.data === 1) {
|
||||
@@ -729,20 +730,16 @@ export default {
|
||||
|
||||
// TODO
|
||||
clearInterval(this.intervalTime)
|
||||
this.getDataList() // 接口方法
|
||||
|
||||
this.intervalTime = setInterval(() => {
|
||||
this.getFault()
|
||||
this.getPLCData()
|
||||
this.getDataList() // 接口方法
|
||||
}, 2000)
|
||||
},
|
||||
computed: {},
|
||||
created() {
|
||||
this.getPLCData()
|
||||
this.getDataList() // 接口方法
|
||||
newIP()
|
||||
this.getFault()
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user