This commit is contained in:
赵正易 2024-04-23 11:06:44 +08:00
parent 8b81ec2c9e
commit 6002bcf721

View File

@ -147,9 +147,9 @@
}
},
//
handlerStart1(id) {
this.flag = 1;
//
const queryData = {
taskid: id,
flag: this.flag
@ -169,12 +169,12 @@
})
},
//
handlerStart2(id) {
this.flag = 2;
//
const queryData = {
taskid: id,
flag: 2
flag: this.flag
}
AgvApi.goTask(queryData).then(res => {
if (res.code === 200) {
@ -191,9 +191,10 @@
})
},
handlerStop() {
//
handlerStop(id) {
const queryData = {
workorder_id: this.orderInfo.id,
taskid: this.orderInfo.id,
flag: this.flag
}
AgvApi.Stoptask(queryData).then(res => {