禅道bug

This commit is contained in:
宋伟佳
2022-03-22 15:37:44 +08:00
parent 75cddc2fc6
commit f85051ef32
3 changed files with 53 additions and 27 deletions
@@ -638,25 +638,36 @@ export default {
} else if(this.dataList.length > 5) {
this.$message.warning('您最多只能选择五条数据')
}else{
this.listForm.dataList = this.dataList;
this.listForm.breakdownList = this.breakdownList
this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm);
this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds,
userId: this.userId,
json: json
}, {
_this: this
}, res => {
if (res.success) {
this.$message.success(res.message);
this.$router.push("/processCenter");
let subFlag = true
this.dataList.forEach(item => {
if(!item.unameId){
subFlag = false
return
}
this.isSubmit = false;
}, e => {
});
})
if(subFlag){
this.listForm.dataList = this.dataList;
this.listForm.breakdownList = this.breakdownList
this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm);
this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds,
userId: this.userId,
json: json
}, {
_this: this
}, res => {
if (res.success) {
this.$message.success(res.message);
this.$router.push("/processCenter");
}
this.isSubmit = false;
}, e => {
});
}else{
this.$message.warning('请选择项目经理')
}
}
},