From 5bbcd9a34016cfcc420f2593866acecd9c7c91f8 Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Sat, 18 Sep 2021 10:08:01 +0800 Subject: [PATCH] commit --- src/components/roleTree/index.vue | 28 ---------- .../pages/creatProcess/bzzqyj/step5.vue | 55 +++++-------------- 2 files changed, 15 insertions(+), 68 deletions(-) diff --git a/src/components/roleTree/index.vue b/src/components/roleTree/index.vue index c29ae036a..acfe40b4e 100644 --- a/src/components/roleTree/index.vue +++ b/src/components/roleTree/index.vue @@ -17,16 +17,6 @@ placeholder="请输入姓名" > - - - { - cb(results); - }, 3000 * Math.random()); - }, - createStateFilter(queryString) { - return (state) => { - return (state.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0); - }; - }, - handleSelect (item) { - console.log(item); - }, treeClass () { }, diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue index cd1fe0fc7..6776e5aeb 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue @@ -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() {