From 43bb1026f5e6b04e790662361711c40f3499c2a9 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 10 七月 2024 16:02:35 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/templateku/configurat/index.vue | 98 ++++++++++++++++++++++++++++--------------------- 1 files changed, 56 insertions(+), 42 deletions(-) diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue index 85636ae..5cbae2f 100644 --- a/src/views/repositoryai/templateku/configurat/index.vue +++ b/src/views/repositoryai/templateku/configurat/index.vue @@ -388,15 +388,15 @@ <el-table-column label="鏍囬" align="center" - key="questiontitle" - prop="questiontitle" + key="scriptTopic" + prop="scriptTopic" :show-overflow-tooltip="true" /> <el-table-column label="闂璇濇湳" align="center" - key="questionText" - prop="questionText" + key="scriptContent" + prop="scriptContent" :show-overflow-tooltip="true" /> @@ -453,7 +453,7 @@ </div> <el-form-item label="棰樼洰鏍囬"> <el-input - v-model="topicobj.questiontitle" + v-model="topicobj.scriptTopic" placeholder="璇蜂粠宸︿晶鍒楄〃閫夋嫨" ></el-input> </el-form-item> @@ -539,7 +539,7 @@ ><el-form-item label="鏃犲尮閰嶈瘽鏈�"> <el-input type="textarea" - style="width: 400px;" + style="width: 400px" placeholder="璇疯緭鍏�" v-model="topicobj.noMatchText" show-word-limit @@ -586,7 +586,7 @@ <el-col :span="20" ><el-form-item label="鍚笉娓呰瘽鏈�"> <el-input - style="width: 400px;" + style="width: 400px" type="textarea" placeholder="璇疯緭鍏�" v-model="topicobj.noClearlyText" @@ -635,7 +635,7 @@ ><el-form-item label="闈欓粯璇濇湳"> <el-input type="textarea" - style="width: 400px;" + style="width: 400px" placeholder="璇疯緭鍏�" v-model="topicobj.slienceText" show-word-limit @@ -704,7 +704,7 @@ :key="item.aaa" > <div class="dev-text"> - {{ index + 1 }}銆乕鍗曢�塢<span>{{ item.questionText }}</span> + {{ index + 1 }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> </div> <div class="dev-xx"> <el-radio-group v-model="radio"> @@ -724,7 +724,7 @@ :key="item.aaa" > <div class="dev-text"> - {{ index + 1 }}銆乕澶氶�塢<span>{{ item.questionText }}</span> + {{ index + 1 }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span> </div> <div class="dev-xx"> <el-checkbox-group v-model="radios"> @@ -771,7 +771,7 @@ > <el-form-item label="鏍囬" prop="userName"> <el-input - v-model="queryParams.questiontitle" + v-model="queryParams.scriptTopic" placeholder="璇疯緭鍏�" clearable style="width: 200px" @@ -796,15 +796,15 @@ <el-table-column label="鏍囬" align="center" - key="questiontitle" - prop="questiontitle" + key="scriptTopic" + prop="scriptTopic" width="100" /> <el-table-column label="闂璇濇湳" align="center" - key="questionText" - prop="questionText" + key="scriptContent" + prop="scriptContent" width="200" :show-overflow-tooltip="true" /> @@ -999,26 +999,31 @@ }, // 鑾峰彇琛ㄥ崟鏁版嵁 getvFollowup() { - getvFollowup({ id: this.id }).then((res) => { - if (res.code == 200 && this.id) { - console.log(2211); - this.ruleForm = res.data; - this.tempDetpRelevanceslist = JSON.parse(this.ruleForm.deptNames); - this.ruleForm.suitway = this.ruleForm.suitway.split(","); - this.ruleForm.campus = this.ruleForm.campus.split(","); - this.ruleForm.submoduleID = this.ruleForm.submoduleID.split(","); - this.ruleForm.submoduleID = this.ruleForm.submoduleID.map((res) => { - return Number(res); - }); - console.log(this.ruleForm.submoduleID, "this.ruleForm.submoduleID鍙�"); - this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList; + if (this.id) { + getvFollowup({ id: this.id }).then((res) => { + if (res.code == 200) { + console.log(2211); + this.ruleForm = res.data; + this.tempDetpRelevanceslist = JSON.parse(this.ruleForm.deptNames); + this.ruleForm.suitway = this.ruleForm.suitway.split(","); + this.ruleForm.campus = this.ruleForm.campus.split(","); + this.ruleForm.submoduleID = this.ruleForm.submoduleID.split(","); + this.ruleForm.submoduleID = this.ruleForm.submoduleID.map((res) => { + return Number(res); + }); + console.log( + this.ruleForm.submoduleID, + "this.ruleForm.submoduleID鍙�" + ); + this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList; - this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList.map( - this.processElement - ); - console.log(this.ruleForm.suitway); - } - }); + this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList.map( + this.processElement + ); + console.log(this.ruleForm.suitway); + } + }); + } getillnesslist({ pageNum: 1, pageSize: 100, @@ -1039,7 +1044,9 @@ // 鍒嗙被 getFollowupclassify({}).then((res) => { this.indexAssortlist = res.rows; - this.ruleForm.assortid = Number(this.$route.query.assortid); + if (this.$route.query.assortid) { + this.ruleForm.assortid = Number(this.$route.query.assortid); + } }); // 绉戝 listDept(this.queryParams).then((response) => { @@ -1086,8 +1093,17 @@ return item; }); }); - + compileFollowup(this.ruleForm).then((res) => { + this.$modal.msgSuccess("缂栬緫鎴愬姛"); + this.confirmillness(res.data); + this.$router.go(-1); + }); + }, + confirmillness(guid) { this.illnesslist.forEach((item, index) => { + if (guid) { + item.outid = guid; + } if (!item.id) { addtargetillness(item).then((res) => {}); } @@ -1095,10 +1111,8 @@ if (this.illnesslistapi.length) { deltargetillness(this.illnesslistapi.join(",")).then((res) => {}); } - compileFollowup(this.ruleForm).then((res) => { - this.$modal.msgSuccess("缂栬緫鎴愬姛"); - this.$router.go(-1); - }); + this.illnessVisible = false; + this.$modal.msgSuccess("缂栬緫鎴愬姛"); }, // 绉戝澶勭悊 Departmenttreatment() { @@ -1255,7 +1269,7 @@ console.log(row); if ( this.ruleForm.ivrLibaTemplateScriptVOList.some( - (obj) => obj.questiontitle == row.questiontitle + (obj) => obj.scriptTopic == row.scriptTopic ) ) { this.$modal.msgError("璇ラ鐩凡瀛樺湪"); @@ -1275,7 +1289,7 @@ }, handleDelete(row) { this.$modal - .confirm('鏄惁纭鍒犻櫎闂锛�"' + row.questiontitle + '"锛�') + .confirm('鏄惁纭鍒犻櫎闂锛�"' + row.scriptTopic + '"锛�') .then(() => { this.ruleForm.ivrLibaTemplateScriptVOList.splice( this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row), -- Gitblit v1.9.3