From 43988e7dae93378116a8c5f1fc76f5568d8fd4b2 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 17 六月 2024 10:32:07 +0800 Subject: [PATCH] 测试完成 --- src/views/knowledge/questionnaire/compilequer/index.vue | 36 ++++++++++++++++++++++++------------ 1 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue index 56940e3..1ba545b 100644 --- a/src/views/knowledge/questionnaire/compilequer/index.vue +++ b/src/views/knowledge/questionnaire/compilequer/index.vue @@ -470,7 +470,9 @@ > <el-button type="primary" @click="laststep()">涓婁竴姝�</el-button> <el-button type="info" @click="closeFm('ruleForm')">鍏抽棴</el-button> - <el-button @click="submitForm('ruleForm')">淇濆瓨棰樼洰鏁版嵁</el-button> + <el-button @click="Departmenttreatment('ruleForm')" + >淇濆瓨棰樼洰鏁版嵁</el-button + > </div> <!-- 闂嵎棰勮 --> <div v-if="Editprogress == 3"> @@ -541,9 +543,9 @@ :inline="true" label-width="98px" > - <el-form-item label="鏍囬" prop="userName"> + <el-form-item label="闂鏍囬" prop="topic"> <el-input - v-model="queryParams.userName" + v-model="queryParams.topic" placeholder="璇疯緭鍏�" clearable style="width: 200px" @@ -605,7 +607,7 @@ import { listDept } from "@/api/system/dept"; import store from "@/store"; import { - getQtemplateclassify, + getQtemplateclassify, delQtemplateclassify, addQtemplateclassify, getQtemplatelist, @@ -689,11 +691,12 @@ illnessVisible: false, //鎸囨爣鐤剧梾寮规 deptOptions: [], optionsillness: [], + delScriptVOList: [], illnesslistapi: [], illnesslist: [], tempDetpRelevanceslist: [], optionstag: [], - xjxsoptions: [], + valuetype: [], usable: [], required: [], mode: [], //鏂瑰紡 @@ -708,11 +711,11 @@ created() { this.gettabList(); this.getissueinfo(); - this.mode = store.getters.mode; + this.mode = store.getters.Askmode; this.languagelist = store.getters.languagelist; this.usable = store.getters.usable; this.required = store.getters.required; - this.xjxsoptions = store.getters.xjxsoptions; + this.valuetype = store.getters.valuetype; this.courtyardlist = store.getters.courtyardlist; }, @@ -786,6 +789,10 @@ Departmenttreatment() { this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); console.log(this.tempDetpRelevanceslist); + this.ruleForm.svyLibTopics = this.ruleForm.svyLibTopics.concat( + this.delScriptVOList + ); + console.log(this.ruleForm.svyLibTopics, "this.ruleForm.svyLibTopics"); const result = this.tempDetpRelevanceslist.map( (subArr) => subArr[subArr.length - 1] ); @@ -817,7 +824,6 @@ setTimeout(() => { this.submitForm(); }, 1000); - // this.submitForm(); }, // 涓嬩竴姝� nextstep() { @@ -859,17 +865,23 @@ // 鏂板棰樼洰 addtopic(row) { row.isoperation = 1; + row.svyLibTopicoptions.forEach((item) => { + item.isoperation = 1; + }); this.ruleForm.svyLibTopics.push(row); }, handleDelete(row) { let index = this.ruleForm.svyLibTopics.indexOf(row); - this.ruleForm.svyLibTopics[index].isoperation = 3; + this.ruleForm.svyLibTopics.splice(index, 1); + row.isoperation = 3; + this.delScriptVOList.push(row); this.sortFn(); }, handleUpdate(row) { - getissuelist({ svyid: row.svyid }).then((res) => { - this.topicobj = res.rows[0]; - }); + console.log(row); + this.topicobj = row; + // getissuelist({ svyid: row.svyid }).then((res) => { + // }); }, syioption(row) { const index = this.getIndexInArray(this.ruleForm.svyLibTopics, row); -- Gitblit v1.9.3