WXL
2024-08-03 d96a7562b2515584fac4dcb57fdbdcadc8f36fef
src/views/repositoryai/verbaltrick/particulars/index.vue
@@ -537,14 +537,16 @@
              <el-col :span="12">
                <el-form-item label="测试输入" prop="targetvalue">
                  <el-input
                    v-model="testvalue"
                    v-model="indexform.content"
                    placeholder="请输入测试内容"
                    maxlength="40"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="4">
                <el-button type="success">开始测试</el-button>
                <el-button type="success" @click="testtagerlist"
                  >开始测试</el-button
                >
              </el-col>
            </el-row>
            <div style="margin-bottom: 20px">
@@ -750,7 +752,6 @@
    getverbaltrick() {
      let id = this.$route.query.id;
      if (id) {
        getverbaltrick({ id: id }).then((res) => {
          this.indexform = res.data;
@@ -820,33 +821,21 @@
      }
    },
    // targetchange(res) {
    //   console.log(res);
    //   gettargetInfo({ id: res }).then((res) => {
    //     console.log(res.rows[0]);
    //     this.$modal
    //       .confirm('是否添加"' + res.rows[0].targetname + '"指标的选项?')
    //       .then(() => {
    //         this.indexform.valueType = res.rows[0].valueType;
    //         this.indexform.scriptType = res.rows[0].scriptType;
    //         this.indexform.scriptTopic = res.rows[0].targetname;
    //         this.indexform.targetname = res.rows[0].targetname;
    //         this.indexform.targetid = res.rows[0].id;
    //         this.indexform.targetdesc = res.rows[0].targetdesc;
    //         this.indexform.isAvailable = "0";
    //         this.indexform.language = "普通话";
    //         this.indexform.isenable = res.rows[0].isenable;
    //         this.$forceUpdate();
    //         res.rows[0].targetoptionList.forEach((item) => {
    //           item.isoperation = 1;
    //           this.indexform.ivrLibaScriptTargetoptionList.push(item);
    //         });
    //       })
    //       .catch(() => {
    //         this.$modal.msgSuccess("已取消");
    //       });
    //   });
    // },
    testtagerlist() {
      if (this.indexform.content) {
        let data = this.indexform;
        data.targetoptionList =
          this.indexform.ivrLibaScriptTargetoptionList.concat(this.dellist);
        testtagerlist(data).then((res) => {
          this.$modal.msgSuccess("测试成功");
          this.testgovalue = res.msg;
          this.getList();
        });
      } else {
        this.$modal.msgError("请填写测试内容");
        return;
      }
    },
    // 选择指标
    selectlabel(row) {
      this.$modal