This commit is contained in:
zhutianqi
2021-09-18 10:08:01 +08:00
parent bb61dc4bae
commit 5bbcd9a340
2 changed files with 15 additions and 68 deletions
@@ -389,47 +389,22 @@ export default {
if (this.data.length < 1) {
this.$message.warning("请输入征求意见搞");
} else {
var a = 0;
var b = 0;
// var c = 0
for (let s1 = 0; s1 < this.data.length; s1++) {
if (!this.data[s1].chapterNumber) {
a++;
this.isSubmit = true;
var json = this.json;
json.oldinfo = this.oldData;
json.commentText = this.commentText;
json.introduce = true;
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.success) {
this.$message.success("提交成功");
this.$router.push("/processCenter");
}
if (!this.data[s1].chapterName) {
b++;
}
// if (!this.data[s1].commentText) {
// c++
// }
}
if (a > 0) {
this.$message.warning("请输入章节编号");
} else if (b > 0) {
this.$message.warning("请输入章节名称");
}
// else if (c > 0) {
// this.$message.warning('请输入意见内容')
// }
else {
this.isSubmit = true;
var json = this.json;
json.oldinfo = this.oldData;
json.commentText = this.commentText;
json.introduce = true;
console.log(json);
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.success) {
this.$message.success("提交成功");
this.$router.push("/processCenter");
}
this.isSubmit = false;
});
}
this.isSubmit = false;
});
}
},
getData() {