Commit 2d0cb090 authored by 张海景's avatar 张海景

update:修改提示判断

parent 7ceb7855
......@@ -1149,7 +1149,7 @@ export default {
this.$u.toast(res.msg)
}
})
this.changeStatus(item.taskId, item.taskWorkunitId,'BEGINNING',item.workunitId);
this.changeStatus(item.taskId, item.taskWorkunitId,'BEGINNING',item.workunitId, false);
}
});
if (status) {
......@@ -1522,7 +1522,7 @@ export default {
}
});
},
changeStatus(taskId, taskWorkunitId, status,workunitId ) {
changeStatus(taskId, taskWorkunitId, status,workunitId,showToast ) {
// this.form.status = status;
this.$u.api
.changeStatus({
......@@ -1533,8 +1533,11 @@ export default {
attr1: this.stopReason
})
.then((res) => {
if (res.code === 200) {
// this.$u.toast('变更成功');
if (res.code === 200) {showToast || true
const showToast = showToast === false? false: true
if(showToast) {
this.$u.toast('变更成功');
}
uni.$emit('taskStatusChanged'); //任务状态变更
this.getTaskList();
}
......
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