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

update:修改提示判断

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