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