commit
This commit is contained in:
@@ -17,16 +17,6 @@
|
||||
placeholder="请输入姓名"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item class="form-item-disabled" style="margin: 10px;">
|
||||
<el-autocomplete
|
||||
class="inline-input"
|
||||
v-model="state2"
|
||||
:fetch-suggestions="querySearch"
|
||||
placeholder="请输入内容"
|
||||
:trigger-on-focus="false"
|
||||
@select="handleSelect"
|
||||
></el-autocomplete>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-tree
|
||||
v-if="open1 && isVisible2"
|
||||
@@ -104,7 +94,6 @@
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
state2: '',
|
||||
roleList: [],
|
||||
isVisible2: false,
|
||||
filterText: '',
|
||||
@@ -125,23 +114,6 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
querySearchAsync(queryString, cb) {
|
||||
var restaurants = this.restaurants;
|
||||
var results = queryString ? restaurants.filter(this.createStateFilter(queryString)) : restaurants;
|
||||
|
||||
clearTimeout(this.timeout);
|
||||
this.timeout = setTimeout(() => {
|
||||
cb(results);
|
||||
}, 3000 * Math.random());
|
||||
},
|
||||
createStateFilter(queryString) {
|
||||
return (state) => {
|
||||
return (state.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
|
||||
};
|
||||
},
|
||||
handleSelect (item) {
|
||||
console.log(item);
|
||||
},
|
||||
treeClass () {
|
||||
|
||||
},
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user