| | |
| | | > |
| | | </div> |
| | | </div> |
| | | <div |
| | | <!-- <div |
| | | class="topicxq" |
| | | v-for="item in topicobj.ivrLibaScriptTargetoptionList" |
| | | > |
| | |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="16"> |
| | | <el-form-item label="语音文件"> |
| | |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> --> |
| | | <Regular |
| | | :TargetoptionList="topicobj.ivrLibaScriptTargetoptionList" |
| | | @deloption="deloption" |
| | | :controlsc="false" |
| | | /> |
| | | <!-- 无匹配类型 --> |
| | | <div class="topicxq"> |
| | | <el-row :gutter="10"> |
| | |
| | | import { listtag } from "@/api/system/label"; |
| | | import store from "@/store"; |
| | | import { listDept } from "@/api/system/dept"; |
| | | import Regular from "@/components/Regular"; //正则组件 |
| | | import { |
| | | getFollowupclassify, |
| | | delFollowupclassify, |
| | |
| | | } from "@/api/AiCentre/index"; |
| | | |
| | | export default { |
| | | name: "SpeechTemplates", |
| | | components: { Regular }, |
| | | data() { |
| | | return { |
| | | Editprogress: 1, //编辑进度 |
| | |
| | | }, |
| | | tempDetpRelevanceslist: [], |
| | | delScriptVOList: [], |
| | | optionIndex:'', |
| | | variablelist: [ |
| | | { variatename: "姓名", variate: "${name}", default: 1 }, |
| | | { variatename: "电话", variate: "${phone}", default: 1 }, |
| | |
| | | // 科室处理 |
| | | 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( |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | // 修改题目信息 |
| | | Submittopicobj() {}, |
| | | |
| | | // 控制文件 |
| | | handleChange(file, fileList) { |
| | |
| | | }, |
| | | handleUpdate(row) { |
| | | console.log(row); |
| | | this.optionIndex = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row); |
| | | if (row.ivrLibaScriptTargetoptionList.length) { |
| | | this.topicobj = row; |
| | | } else { |
| | |
| | | }); |
| | | console.log(this.ruleForm.ivrLibaTemplateScriptVOList); |
| | | }, |
| | | // -----------------------话术选项 |
| | | deloption() {}, |
| | | // 修改题目信息 |
| | | Submittopicobj() { |
| | | this.ruleForm.ivrLibaTemplateScriptVOList[this.optionIndex]=this.topicobj; |
| | | this.$modal.msgSuccess("暂存选项成功"); |
| | | }, |
| | | |
| | | // --------------------- |
| | | resetForm(formName) { |
| | | this.$refs[formName].resetFields(); |