WXL
2024-02-04 cf9259c2ebee0e82c32864a1ee91d96c403b9099
指标完成
已修改10个文件
已重命名1个文件
414 ■■■■ 文件已修改
src/api/AiCentre/SingleTask.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/AiCentre/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Regular/index.vue 151 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/knowledge/questionbank/particulars/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/knowledge/questionnaire/compilequer/index.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/index.vue 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/particty.vue 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/general/particulars/index.vue 61 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/intention/index.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/templateku/configurat/index.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/verbaltrick/particulars/index.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/AiCentre/SingleTask.js
ÎļþÃû´Ó src/api/AiCentre/Hetask.js ÐÞ¸Ä
@@ -47,3 +47,11 @@
      data: data,
    });
  }
  // æ–°å¢žæˆ–查询单一任务
  export function Editsingletask(data) {
    return request({
      url: "/smartor/taskcall/insertOrUpdateTask",
      method: "post",
      data: data,
    });
  }
src/api/AiCentre/index.js
@@ -5,6 +5,6 @@
export * from './publicity'
export * from './Qtemplate'
export * from './questionnaire'
export * from './Hetask'
export * from './SingleTask'
src/components/Regular/index.vue
@@ -51,18 +51,18 @@
          <el-tag
            :key="crux"
            type="success"
            v-for="crux in dynamiccruxs"
            v-for="crux in item.dynamiccruxs"
            closable
            effect="dark"
            :disable-transitions="false"
            @close="handleClosecrux(crux)"
            @close="handleClosecrux(crux, item)"
          >
            {{ crux }}
          </el-tag>
          <el-select
            v-model="inputValue"
            v-if="inputVisible"
            @change="handleInputConfirm"
            v-if="item.inputVisible"
            @change="handleInputConfirm(item)"
            filterable
            remote
            allow-create
@@ -72,10 +72,10 @@
            placeholder="请选择"
          >
            <el-option
              v-for="item in regular"
              :key="item.label"
              :label="item.label"
              :value="item.label"
              v-for="items in regular"
              :key="items.label"
              :label="items.label"
              :value="items.label"
            >
            </el-option>
          </el-select>
@@ -83,7 +83,7 @@
            v-else
            class="button-new-tag"
            size="small"
            @click="showInput"
            @click="showInput(item)"
            >+ æ–°å¢ž</el-button
          >
        </div>
@@ -93,18 +93,18 @@
          <el-tag
            :key="crux"
            type="warning"
            v-for="crux in nodynamiccruxs"
            v-for="crux in item.nodynamiccruxs"
            closable
            effect="dark"
            :disable-transitions="false"
            @close="handleClosecrux(crux)"
            @close="handleClosecrux(crux, item)"
          >
            {{ crux }}
          </el-tag>
          <el-select
            v-model="inputValue"
            v-if="noinputVisible"
            @change="handleInputConfirm"
            v-if="item.noinputVisible"
            @change="handleInputConfirm(item)"
            filterable
            remote
            allow-create
@@ -114,10 +114,10 @@
            placeholder="请选择"
          >
            <el-option
              v-for="item in noregular"
              :key="item.value"
              :label="item.label"
              :value="item.label"
              v-for="items in noregular"
              :key="items.value"
              :label="items.label"
              :value="items.label"
            >
            </el-option>
          </el-select>
@@ -125,7 +125,7 @@
            v-else
            class="button-new-tag"
            size="small"
            @click="showInputno"
            @click="showInputno(item)"
            >+ æ–°å¢ž</el-button
          >
        </div>
@@ -149,9 +149,33 @@
        >
        <el-col :span="8">
          <div style="text-align: right; padding-right: 10px">
            <el-button type="danger" @click="deloption(item)" round
              >删除</el-button
            >
            <el-button
              v-if="controlsc"
              @click="$emit('addoption', item)"
              type="success"
              icon="el-icon-circle-plus-outline"
              circle
            ></el-button>
            <el-button
              type="danger"
              icon="el-icon-delete"
              circle
              @click="$emit('deloption', item)"
            ></el-button>
            <el-button
              v-if="controlsc"
              @click="$emit('syioption', item)"
              type="primary"
              icon="el-icon-top"
              circle
            ></el-button>
            <el-button
              v-if="controlsc"
              @click="$emit('xiayioption', item)"
              type="primary"
              icon="el-icon-bottom"
              circle
            ></el-button>
          </div>
        </el-col>
      </el-row>
@@ -180,7 +204,7 @@
      loading: false,
      regular: [],
      noregular: [],
      nodynamiccruxs: ["别"],
      nodynamiccruxs: ["别", "不"],
      dynamiccruxs: ["好"],
    };
  },
@@ -190,34 +214,53 @@
      required: true,
      default: () => [],
    },
    controlsc: {
      type: Boolean,
      default: true,
    },
  },
  created() {
    this.regular = store.getters.regular;
    this.noregular = store.getters.noregular;
  },
  methods: {
    // ç”Ÿæˆæ­£åˆ™
    generateRegex() {
    generateRegex(row) {
      let index = this.TargetoptionList.indexOf(row);
      console.log(index);
      let regex = "";
      let regexno = "";
      let hostregex = "";
      let hostregexno = "";
      for (let i = 0; i < this.dynamiccruxs.length; i++) {
        regex += `${this.dynamiccruxs[i]}|`;
      for (
        let i = 0;
        i < this.TargetoptionList[index].dynamiccruxs.length;
        i++
      ) {
        regex += `${this.TargetoptionList[index].dynamiccruxs[i]}|`;
      }
      for (let i = 0; i < this.nodynamiccruxs.length; i++) {
        regexno += `${this.nodynamiccruxs[i]}|`;
      for (
        let i = 0;
        i < this.TargetoptionList[index].nodynamiccruxs.length;
        i++
      ) {
        regexno += `${this.TargetoptionList[index].nodynamiccruxs[i]}|`;
      }
      regex = regex.slice(0, -1);
      regexno = regexno.slice(0, -1);
      hostregex = "(?=.*(?:" + `${regex}` + ")).*$";
      hostregexno = "(?=.*(?:" + `${regexno}` + ")).*$";
      hostregexno = "^(?!.(?:" + `${regexno}` + ")).*$";
      this.TargetoptionList[index].hostregex = hostregex;
      this.TargetoptionList[index].hostregex2 = hostregexno;
      console.log(hostregex, "确定字匹配");
      console.log(hostregexno, "否定字匹配");
      this.handleSelectionChange();
    },
    // æŽ§åˆ¶æ–‡ä»¶
    handleChange(file, fileList) {
@@ -232,47 +275,63 @@
      );
    },
    handleClosecrux(crux) {
    handleClosecrux(crux, item) {
      if (this.whether == 1) {
        this.dynamiccruxs.splice(this.dynamiccruxs.indexOf(crux), 1);
      } else {
        this.nodynamiccruxs.splice(this.nodynamiccruxs.indexOf(crux), 1);
      }
      this.generateRegex();
      this.generateRegex(item);
    },
    handleInputConfirm() {
    handleInputConfirm(row) {
      let index = this.TargetoptionList.indexOf(row);
      if (this.whether == 1 && this.inputValue) {
        if (this.dynamiccruxs.indexOf(this.inputValue) == -1) {
          this.dynamiccruxs.push(this.inputValue);
        if (
          this.TargetoptionList[index].dynamiccruxs.indexOf(this.inputValue) ==
          -1
        ) {
          this.TargetoptionList[index].dynamiccruxs.push(this.inputValue);
        } else {
          this.$message.error("关键字已存在");
        }
        this.inputVisible = false;
        // this.inputVisible = false;
        this.TargetoptionList[index].inputVisible = false;
      } else if (this.whether == 2 && this.inputValue) {
        console.log(this.inputValue);
        console.log(this.nodynamiccruxs.indexOf(this.inputValue));
        if (this.nodynamiccruxs.indexOf(this.inputValue) == -1) {
          this.nodynamiccruxs.push(this.inputValue);
        console.log(
          this.TargetoptionList[index].nodynamiccruxs.indexOf(this.inputValue)
        );
        if (
          this.TargetoptionList[index].nodynamiccruxs.indexOf(
            this.inputValue
          ) == -1
        ) {
          this.TargetoptionList[index].nodynamiccruxs.push(this.inputValue);
        } else {
          this.$message.error("关键字已存在");
        }
        this.noinputVisible = false;
        // this.noinputVisible = false;
        this.TargetoptionList[index].noinputVisible = false;
      }
      this.generateRegex();
      this.generateRegex(row);
      this.inputValue = "";
    },
    showInput() {
      this.inputVisible = true;
    showInput(row) {
      let index = this.TargetoptionList.indexOf(row);
      // this.TargetoptionList[index].inputVisible = true;
      this.$set(this.TargetoptionList[index], "inputVisible", true);
      this.whether = 1;
    },
    showInputno() {
      this.noinputVisible = true;
    showInputno(row) {
      let index = this.TargetoptionList.indexOf(row);
      // this.TargetoptionList[index].noinputVisible = true;
      this.$set(this.TargetoptionList[index], "noinputVisible", true);
      this.whether = 2;
      console.log(2);
    },
    handleSelectionChange(selection) {
      $emit("handleSelectionChange", selection);
      console.log(this.TargetoptionList);
      this.$emit("handleSelectionChange", selection);
    },
  },
};
src/views/knowledge/questionbank/particulars/index.vue
@@ -231,7 +231,7 @@
                </div>
              </el-form-item>
            </el-row>
            <el-form-item label="通知变量" prop="name">
            <!-- <el-form-item label="通知变量" prop="name">
              <div style="margin-bottom: 5px" v-for="item in variablelist">
                <el-row>
                  <el-col :span="5">
@@ -278,7 +278,7 @@
                  </div>
                </div>
              </el-col></el-row
            >
            > -->
          </div>
          <div class="headline">
src/views/knowledge/questionnaire/compilequer/index.vue
@@ -470,7 +470,7 @@
        >
        <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">
@@ -689,6 +689,7 @@
      illnessVisible: false, //指标疾病弹框
      deptOptions: [],
      optionsillness: [],
      delScriptVOList: [],
      illnesslistapi: [],
      illnesslist: [],
      tempDetpRelevanceslist: [],
@@ -786,6 +787,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 +822,6 @@
      setTimeout(() => {
        this.submitForm();
      }, 1000);
      // this.submitForm();
    },
    // ä¸‹ä¸€æ­¥
    nextstep() {
@@ -859,17 +863,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);
src/views/patient/propaganda/index.vue
@@ -194,52 +194,48 @@
          </template>
        </el-table-column>
        <el-table-column
          label="操作人员(默认登陆人可选)"
          label="操作人员"
          align="center"
          key="topicnumberaa"
          prop="topicnumberaa"
          key="operatePerson"
          prop="operatePerson"
          width="120"
        />
        <el-table-column
          label="就诊时间(缺)"
          label="就诊时间"
          sortable
          align="center"
          prop="createTime"
          key="visitTime"
          prop="visitTime"
          width="160"
        >
        </el-table-column>
        <el-table-column
          label="宣教时间"
          sortable
          align="center"
          prop="sendTime"
          width="160"
        >
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.createTime) }}</span>
            <span>{{ scope.row.heTask.sendTime }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="宣教时间(缺)"
          label="接收时间"
          sortable
          align="center"
          prop="createTime"
          key="receiveTime"
          prop="receiveTime"
          width="160"
        >
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.createTime) }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="接收时间(缺)"
          sortable
          align="center"
          prop="createTime"
          width="160"
        >
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.createTime) }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="通知状态(缺)"
          label="通知状态"
          fixed="right"
          align="center"
          key="topicnumber"
          prop="topicnumber"
          key="sendStatus"
          prop="sendStatus"
          width="120"
          :show-overflow-tooltip="true"
        >
src/views/patient/propaganda/particty.vue
@@ -14,10 +14,7 @@
            title="宣教对象"
            description="在本部选择宣教病人"
          ></el-step>
          <el-step
            icon="el-icon-user"
            title="模版确认"
          ></el-step>
          <el-step icon="el-icon-user" title="模版确认"></el-step>
        </el-steps>
      </div>
    </div>
@@ -284,7 +281,7 @@
            </div>
          </div>
        </div>
        <el-button type="success" @click="submitForm('ruleForm')">{{
        <el-button type="success" @click="nextstep('ruleForm')">{{
          quote ? "立即创建" : "任务详情设置"
        }}</el-button>
        <el-button @click="resetForm('ruleForm')">重置</el-button>
@@ -624,6 +621,7 @@
  addhetask,
  gethetaskinfo,
  delhetaskinfo,
  Editsingletask,
} from "@/api/AiCentre/index";
import SFtable from "@/components/SFtable"; //表格组件
@@ -772,12 +770,41 @@
  created() {
    this.id = this.$route.query.id;
    this.form.type = this.$route.query.type;
    this.Addsubtask();
    this.Getsubtask();
    this.Acquisitiontype();
  },
  methods: {
    // {
    //   å§“名: { "${name}": "龙傲天" },
    //   åœ°å€: { "${dzz}": "龙宫" },
    //   ç”µè¯: { "${dhh}": "八个八" },
    // }
    // å¯¹è±¡è½¬æ•°ç»„
    convertFormat1ToFormat2(data) {
      let result = [];
      for (let key in data) {
        let innerKey = Object.keys(data[key])[0];
        result.push({
          name: key,
          value: innerKey,
          fill: data[key][innerKey],
        });
      }
      return result;
    },
    // æ•°ç»„转对象
    convertFormat2ToFormat1(data) {
      let result = {};
      data.forEach((item) => {
        let innerObj = {};
        innerObj[item.value] = item.fill;
        result[item.name] = innerObj;
      });
      return result;
    },
    // èŽ·å–å½“å‰ç±»åž‹
    Acquisitiontype() {
      let queryParams = {
@@ -857,11 +884,18 @@
        });
      }
    },
    // ä¸‹ä¸€æ­¥
    submitForm(formName) {
    nextstep() {
      if (this.Editprogress <= 3) {
        return this.Editprogress++;
      }
    },
    // ä¸‹ä¸€æ­¥
    submitForm(formName) {
      Editsingletask(this.form).then((response) => {
        if (res.code == 200) {
          this.$router.go(-1);
        }
      });
      // æäº¤
      // this.$refs[formName].validate((valid, object) => {
      //   if (valid) {
src/views/repositoryai/general/particulars/index.vue
@@ -6,12 +6,7 @@
        <el-divider></el-divider>
        <el-table :data="targetList" :row-class-name="tableRowClassName">
          <el-table-column
            label="序号"
            align="center"
            key="id"
            prop="id"
          />
          <el-table-column label="序号" align="center" key="id" prop="id" />
          <el-table-column
            label="问题主题(缺)"
            align="center"
@@ -105,9 +100,6 @@
            </template>
          </el-table-column>
        </el-table>
        <div style="margin: 15px; margin-top: 50px">
          <div class="leftvlue-jbxx">话术编辑</div>
          <el-divider></el-divider>
          <el-form
            :model="ruleForm"
            :rules="rules"
@@ -115,10 +107,40 @@
            label-width="100px"
            class="demo-ruleForm"
          >
          <div style="margin: 15px; margin-top: 50px">
            <div class="leftvlue-jbxx">话术编辑</div>
            <el-divider></el-divider>
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="模版名称" prop="name">
                  <el-input
                    v-model="ruleForm.name"
                    placeholder="请输入"
                  ></el-input> </el-form-item
              ></el-col>
              <el-col :span="12">
                <el-form-item label="模版分类" prop="resource">
                  <el-select
                    v-model="ruleForm.groupID"
                    placeholder="请选择分类"
                  >
                    <el-option
                      v-for="item in deptOptions"
                      :key="item.intertcatid"
                      :label="item.categoryname"
                      :value="item.intertcatid"
                    >
                    </el-option>
                  </el-select> </el-form-item
              ></el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="问题主题" prop="name">
                  <el-input v-model="ruleForm.name" placeholder="请输入"></el-input> </el-form-item
                  <el-input
                    v-model="ruleForm.name"
                    placeholder="请输入"
                  ></el-input> </el-form-item
              ></el-col>
              <el-col :span="12">
                <el-form-item label="是否可用" prop="resource">
@@ -182,7 +204,11 @@
            </el-form-item>
            <el-form-item label="匹配文本" prop="desc">
              <el-input type="textarea" placeholder="请输入匹配正则" v-model="ruleForm.desc"></el-input>
              <el-input
                type="textarea"
                placeholder="请输入匹配正则"
                v-model="ruleForm.desc"
              ></el-input>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" @click="submitForm('ruleForm')"
@@ -190,8 +216,8 @@
              >
              <el-button @click="resetForm('ruleForm')">重置</el-button>
            </el-form-item>
          </el-form>
        </div>
        </el-form>
      </div>
    </el-card>
  </div>
@@ -203,6 +229,8 @@
  editgeneravaluel,
  addgeneravaluel,
  getgeneravaluelinfo,
  getgeneralinfo,
  getgeneralclassify,
  delgeneravaluelinfo,
  getgeneravaluellist,
} from "@/api/AiCentre/index";
@@ -213,6 +241,7 @@
      id: null,
      usable: [],
      languagelist: [],
      deptOptions:[],
      mode: [],
      pitchon: "还好吗",
      targetList: [{ switchText: "还好吗" }, { switchText: "还不错" }],
@@ -237,7 +266,7 @@
  },
  created() {
    // this.getList();
    this.getList();
    this.usable = store.getters.usable;
    this.languagelist = store.getters.languagelist;
    this.mode = store.getters.mode;
@@ -247,11 +276,15 @@
    getList() {
      this.loading = true;
      this.id = this.$route.query.id;
      getgeneravaluelinfo({ pid: this.id }).then((res) => {
      getgeneralinfo({ pid: this.id }).then((res) => {
        this.targetList = res.rows;
        console.log(this.targetList);
        this.loading = false;
      });
      getgeneralclassify({}).then((res) => {
        this.deptOptions = res.rows;
        console.log(res);
      });
    },
    /** æ–°å¢žæŒ‰é’®æ“ä½œ */
    handleAdd() {},
src/views/repositoryai/intention/index.vue
@@ -495,7 +495,7 @@
                </el-form-item>
              </el-col>
            </el-row>
            <el-card class="box-card" style="margin-bottom: 20px">
            <!-- <el-card class="box-card" style="margin-bottom: 20px">
              <el-table v-loading="loading" :data="testuserList">
                <el-table-column
                  label="序号"
@@ -568,9 +568,15 @@
                  </template>
                </el-table-column>
              </el-table>
            </el-card>
            </el-card> -->
            <el-card class="box-card" style="margin-bottom: 20px">
              <Regular :TargetoptionList="testuserList" />
              <Regular
                :TargetoptionList="testuserList"
                @addoption="addoption"
                @deloption="deloption"
                @syioption="syioption"
                @xiayioption="xiayioption"
              />
            </el-card>
            <el-row :gutter="20">
              <el-col :span="12">
@@ -973,8 +979,9 @@
        guid: 1,
        id: this.indexform.id,
        targettype: this.indexform.targettype,
        targetvalue: "贫血",
        targetregex: "(?!不.*|没.*|未.*)^.*([贫平凭血]|贫血|评学|评学),10",
        targetvalue: "",
        targetregex: "",
        targetregex2: "",
      };
      this.testuserList.push(objvakue);
      // this.indexform.targetoptionList.push(objvakue);
@@ -1379,15 +1386,18 @@
  position: relative;
    cursor: default;
    border-radius: 5px;
    background: #EFF8FE;
  background: #eff8fe;
    color: #606266;
  border: 1px solid #bbe1fa;
      // border: 1px solid #dcdfe6;
    -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
    0 0 6px 0 rgba(0, 0, 0, 0.04);
}
::v-deep .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
    background-color: #7799FB ;
::v-deep
  .el-tree--highlight-current
  .el-tree-node.is-current
  > .el-tree-node__content {
  background-color: #7799fb;
    color: #fff;
}
::v-deep .el-button--mini.is-circle {
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"; //正则组件
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) {
@@ -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();
src/views/repositoryai/verbaltrick/particulars/index.vue
@@ -455,7 +455,7 @@
            </el-col></el-row
          >
          <el-card class="box-card" style="margin-bottom: 20px">
          <!-- <el-card class="box-card" style="margin-bottom: 20px">
            <el-table
              v-loading="loading"
              :data="indexform.ivrLibaScriptTargetoptionList"
@@ -531,6 +531,15 @@
                </template>
              </el-table-column>
            </el-table>
          </el-card> -->
          <el-card class="box-card" style="margin-bottom: 20px">
              <Regular
                :TargetoptionList="indexform.ivrLibaScriptTargetoptionList"
                @addoption="addoption"
                @deloption="deloption"
                @syioption="syioption"
                @xiayioption="xiayioption"
              />
          </el-card>
          <el-row :gutter="20">
            <el-col :span="12">
@@ -576,9 +585,12 @@
  gettargetInfolist,
  gettargetInfo,
} from "@/api/AiCentre/index";
import Regular from "@/components/Regular"; //正则组件
import store from "@/store";
export default {
  name:'Verbalproblem',
  components: {  Regular },
  data() {
    return {
      Editprogress: 1, //编辑进度