From cf9259c2ebee0e82c32864a1ee91d96c403b9099 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期日, 04 二月 2024 13:42:04 +0800 Subject: [PATCH] 指标完成 --- src/views/repositoryai/templateku/configurat/index.vue | 32 ++++++++++++++++++++++---------- 1 files changed, 22 insertions(+), 10 deletions(-) diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue index 5c24a30..a9d910a 100644 --- a/src/views/repositoryai/templateku/configurat/index.vue +++ b/src/views/repositoryai/templateku/configurat/index.vue @@ -511,7 +511,7 @@ > </div> </div> - <div + <!-- <div class="topicxq" v-for="item in topicobj.ivrLibaScriptTargetoptionList" > @@ -570,7 +570,6 @@ > </el-input> </el-form-item> - <el-row :gutter="10"> <el-col :span="16"> <el-form-item label="璇煶鏂囦欢"> @@ -595,7 +594,12 @@ </div> </el-col> </el-row> - </div> + </div> --> + <Regular + :TargetoptionList="topicobj.ivrLibaScriptTargetoptionList" + @deloption="deloption" + :controlsc="false" + /> <!-- 鏃犲尮閰嶇被鍨� --> <div class="topicxq"> <el-row :gutter="10"> @@ -884,6 +888,7 @@ import { listtag } from "@/api/system/label"; import store from "@/store"; import { listDept } from "@/api/system/dept"; +import Regular from "@/components/Regular"; //姝e垯缁勪欢 import { getFollowupclassify, delFollowupclassify, @@ -903,6 +908,8 @@ } from "@/api/AiCentre/index"; export default { + name: "SpeechTemplates", + components: { Regular }, data() { return { Editprogress: 1, //缂栬緫杩涘害 @@ -960,6 +967,7 @@ }, tempDetpRelevanceslist: [], delScriptVOList: [], + optionIndex:'', variablelist: [ { variatename: "濮撳悕", variate: "${name}", default: 1 }, { variatename: "鐢佃瘽", variate: "${phone}", default: 1 }, @@ -1104,8 +1112,6 @@ // 绉戝澶勭悊 Departmenttreatment() { this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); - console.log(this.tempDetpRelevanceslist); - console.log(this.delScriptVOList, "this.delScriptVOList"); this.ruleForm.ivrLibaTemplateScriptVOList = this.ruleForm.ivrLibaTemplateScriptVOList.concat(this.delScriptVOList); const result = this.tempDetpRelevanceslist.map( @@ -1165,9 +1171,6 @@ }); }); }, - - // 淇敼棰樼洰淇℃伅 - Submittopicobj() {}, // 鎺у埗鏂囦欢 handleChange(file, fileList) { @@ -1264,8 +1267,8 @@ res.data.isoperation = 1; res.data.id = null; res.data.ivrLibaScriptTargetoptionList.forEach((item) => { - item.isoperation = 1; - }); + item.isoperation = 1; + }); this.ruleForm.ivrLibaTemplateScriptVOList.push(res.data); }); }, @@ -1280,6 +1283,7 @@ }, handleUpdate(row) { console.log(row); + this.optionIndex = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row); if (row.ivrLibaScriptTargetoptionList.length) { this.topicobj = row; } else { @@ -1320,6 +1324,14 @@ }); console.log(this.ruleForm.ivrLibaTemplateScriptVOList); }, + // -----------------------璇濇湳閫夐」 + deloption() {}, + // 淇敼棰樼洰淇℃伅 + Submittopicobj() { + this.ruleForm.ivrLibaTemplateScriptVOList[this.optionIndex]=this.topicobj; + this.$modal.msgSuccess("鏆傚瓨閫夐」鎴愬姛"); + }, + // --------------------- resetForm(formName) { this.$refs[formName].resetFields(); -- Gitblit v1.9.3