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
-28
View File
@@ -17,16 +17,6 @@
placeholder="请输入姓名" placeholder="请输入姓名"
></el-input> ></el-input>
</el-form-item> </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-form>
<el-tree <el-tree
v-if="open1 && isVisible2" v-if="open1 && isVisible2"
@@ -104,7 +94,6 @@
}, },
data () { data () {
return { return {
state2: '',
roleList: [], roleList: [],
isVisible2: false, isVisible2: false,
filterText: '', filterText: '',
@@ -125,23 +114,6 @@
} }
}, },
methods: { 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 () { treeClass () {
}, },
@@ -389,47 +389,22 @@ export default {
if (this.data.length < 1) { if (this.data.length < 1) {
this.$message.warning("请输入征求意见搞"); this.$message.warning("请输入征求意见搞");
} else { } else {
var a = 0; this.isSubmit = true;
var b = 0; var json = this.json;
// var c = 0 json.oldinfo = this.oldData;
for (let s1 = 0; s1 < this.data.length; s1++) { json.commentText = this.commentText;
if (!this.data[s1].chapterNumber) { json.introduce = true;
a++; 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) { this.isSubmit = false;
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;
});
}
} }
}, },
getData() { getData() {