WXL
2024-04-08 412ecc2c412a03c909c0dc2ef41f08d02eb7d913
测试完成
已修改2个文件
25 ■■■■■ 文件已修改
src/views/repositoryai/intention/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/verbaltrick/particulars/index.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/intention/index.vue
@@ -1189,6 +1189,12 @@
    /** 更新/修改提交按钮 */
    submitForm: function () {
      // this.indexform.targetoptionList=[]
      this.indexform.targetoptionList = this.indexform.targetoptionList.map(
        (res) => {
          res.isoperation = 2;
          return res;
        }
      );
      this.$refs["indexform"].validate((valid) => {
        this.indexform.targetoptionList = this.testuserList.concat(
          this.targetoptionList
src/views/repositoryai/verbaltrick/particulars/index.vue
@@ -589,7 +589,7 @@
import store from "@/store";
export default {
  name:'Verbalproblem',
  name: "Verbalproblem",
  components: {  Regular },
  data() {
    return {
@@ -604,7 +604,10 @@
      testvalue: "",
      testgovalue: "",
      topicobj: {},
      indexform: {},
      indexform: {
        ivrLibaScriptTargetoptionList:[],
        ivrLibaScriptTagList:[]
      },
      mode: [],
      questionclass: [],
      currentInputId: "",
@@ -665,6 +668,7 @@
    // 获取详情数据
    getverbaltrick() {
      let id = this.$route.query.id;
      if (id) {
      getverbaltrick({ id: id }).then((res) => {
        this.indexform = res.data;
        this.indexform.suitway = this.indexform.suitway.split(",");
@@ -682,6 +686,7 @@
          },
        ];
      });
      }
      // 树
      getbaltrickclassify({}).then((res) => {
        this.questionclass = res.rows;
@@ -694,7 +699,15 @@
      console.log(this.variablelist);
      this.indexform.otherdata = JSON.stringify(this.variablelist);
      this.indexform.suitway = this.indexform.suitway.join(",");
      if (this.indexform.id) {
        this.indexform.ivrLibaScriptTargetoptionList =
        this.indexform.ivrLibaScriptTargetoptionList.map((res) => {
          if (res.isoperation!=1) {
            res.isoperation = 2;
          }
          return res;
        });
        this.indexform.isoperation = 2;
        compileverbaltrick(this.indexform).then((res) => {
          if (res.code == 200) {
@@ -709,6 +722,7 @@
        });
      } else {
        this.indexform.isoperation = 1;
        compileverbaltrick(this.indexform).then((res) => {
          if (res.code == 200) {
            this.$modal.msgSuccess("新增成功");
@@ -743,6 +757,7 @@
          .confirm('是否添加"' + this.indexform.targetname + '"指标的选项?')
          .then(() => {
            this.indexform.isenable = res.rows[0].isenable;
            console.log(res.rows[0].targetoptionList);
            res.rows[0].targetoptionList.forEach((item) => {
              item.isoperation = 1;
              this.indexform.ivrLibaScriptTargetoptionList.push(item);