WXL
2024-04-25 ddd540811008852a59935561a456ec3b0cb0033b
测试完成
已修改2个文件
13 ■■■■ 文件已修改
src/views/repositoryai/intention/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/verbaltrick/particulars/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/intention/index.vue
@@ -1158,6 +1158,7 @@
      this.indexform = row;
      this.dynamicTags = row.baseTagList.map(this.processElement);
      this.testuserList = row.targetoptionList;
      this.testvalue='';
      this.indexopen = true;
      this.measurement = false;
    },
src/views/repositoryai/verbaltrick/particulars/index.vue
@@ -265,14 +265,14 @@
          >
          <el-row>
            <el-col :span="24">
              <el-form-item label="问题文本" prop="questiontext">
              <el-form-item label="问题文本" prop="questionText">
                <el-input
                  type="textarea"
                  :rows="2"
                  placeholder="请输入内容"
                  id="questiontext"
                  id="questionText"
                  v-model.sync="indexform.questionText"
                  @focus="handleInput('questiontext')"
                  @focus="handleInput('questionText')"
                  maxlength="30"
                />
              </el-form-item> </el-col
@@ -919,8 +919,8 @@
      let inputValueArr = "";
      let el = document.querySelector("#" + this.currentInputId);
      //el.selectionStart; 这就是当前光标所在的位置(字符串中字符的index)
      if (this.currentInputId == "questiontext") {
        inputValueArr = this.indexform.questiontext.split("");
      if (this.currentInputId == "questionText") {
        inputValueArr = this.indexform.questionText.split("");
      } else if (this.currentInputId == "nomatchtext") {
        inputValueArr = this.indexform.nomatchtext.split("");
      } else if (this.currentInputId == "sliencetext") {
@@ -941,7 +941,7 @@
      // 把数组重新转换为字符串并赋值
      inputValueArr = inputValueArr.join("");
      console.log(inputValueArr);
      if (this.currentInputId == "questiontext") {
      if (this.currentInputId == "questionText") {
        this.indexform.questionText = inputValueArr;
      } else if (this.currentInputId == "nomatchtext") {
        this.indexform.nomatchtext = inputValueArr;