WXL
2024-08-02 1811ac2572dc2e7116f8ba4ea537abf7d57dd61e
测试完成
已修改1个文件
26 ■■■■■ 文件已修改
src/views/repositoryai/intention/index.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/intention/index.vue
@@ -484,7 +484,10 @@
            <el-row v-if="!measurement">
              <el-col :span="24">
                <el-form-item label="题目类型">
                  <el-radio-group v-model="indexform.scriptType">
                  <el-radio-group
                    @input="Changtype"
                    v-model="indexform.scriptType"
                  >
                    <el-radio :label="1">单选</el-radio>
                    <el-radio :label="2">多选</el-radio>
                    <el-radio :label="3">填空</el-radio>
@@ -534,6 +537,7 @@
              <el-form-item label="收集信息">
                <el-card class="box-card">
                  <div v-for="item in indexform.targetoptionList">
                    <span>{{ "(" + item.orderno + ")" }}</span>
                    <el-input
                      type="text"
                      placeholder="填入收集信息"
@@ -718,6 +722,7 @@
      radio: "主分类",
      testvalue: "",
      testgovalue: "",
      creatype:'',//指标临时类型
      hasValue: true,
      classifyform: {
        categoryname: "",
@@ -846,7 +851,7 @@
    // 便捷标签
    tsgnameto(row) {
      let inputValueArr = "";
      let value = 1;
      let value = indexform.targetoptionList.length + 1;
      let el = document.querySelector("#" + this.currentInputId);
      //el.selectionStart; 这就是当前光标所在的位置(字符串中字符的index)
@@ -865,6 +870,10 @@
        selectLength,
        "__" + value + "__"
      );
      this.indexform.targetoptionList.push({
        orderno: value,
        optiondesc: "",
      });
      // 把数组重新转换为字符串并赋值
      inputValueArr = inputValueArr.join("");
      console.log(inputValueArr);
@@ -874,6 +883,19 @@
        return;
      }
    },
    Changtype(item) {
      console.log(item, "选项变更的处理");
      if (item==3) {
        this.$modal
          .confirm('更改类型为填空后选项将清空是否继续?')
          .then(() => {
          })
          .catch(() => {
          });
      }
    },
    // 疾病-----------------------
    illnessUpdate(row) {
      this.illnessVisible = true;