WXL
2024-08-05 ad0ecacbc73d16c9b95b79ac3c82868cbff33e44
src/views/knowledge/questionbank/particulars/index.vue
@@ -132,6 +132,7 @@
                ><el-form-item label="题目类型">
                  <el-select
                    v-model="topicobj.scriptType"
                    @change="changefn"
                    size="medium"
                    filterable
                    placeholder="请选择分类"
@@ -375,7 +376,7 @@
                </el-col>
              </el-row>
              <el-row :gutter="10">
                <el-form-item label="预警值">
                <el-form-item label="预警提醒">
                  <el-radio-group v-model="item.isabnormal">
                    <el-radio :label="1">是</el-radio>
                    <el-radio :label="0">否</el-radio>
@@ -452,14 +453,16 @@
              @keyup.enter.native="gettargetInfo"
            />
          </el-form-item>
          <el-form-item label="指标标签" prop="userName">
            <el-input
              v-model="queryParams.tagName"
              placeholder="请输入"
              clearable
              style="width: 200px"
              @keyup.enter.native="gettargetInfo"
            />
          <el-form-item label="指标类型" prop="scriptType">
            <el-select v-model="queryParams.scriptType" placeholder="请选择">
              <el-option
                v-for="(item, index) in qyoptions"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item>
@@ -591,6 +594,7 @@
      inputVisible: false,
      inputValue: "",
      currentInputId: "",
      scriptTypels: "",
      total: 0,
      drawer: false,
      loading: false,
@@ -614,6 +618,7 @@
        pageNum: 1,
        pageSize: 10,
        isavailable: "",
        scriptType: "",
      },
      optionlist: [
        { value: "scriptTopic", table: "scriptTopic" },
@@ -630,6 +635,7 @@
      inputVisibleillness: false,
      illnessVisible: false, //指标疾病弹框
      deptOptions: [],
      qyoptions: [],
      optionsillness: [],
      illnesslistapi: [],
      illnesslist: [],
@@ -656,6 +662,7 @@
    this.usable = store.getters.usable;
    this.valuetype = store.getters.askvaluetype;
    this.required = store.getters.required;
    this.qyoptions = store.getters.askvaluetype;
  },
  methods: {
@@ -720,7 +727,10 @@
        });
        return;
      }
      this.queryParams.scriptType = this.topicobj.scriptType;
      if (this.topicobj.scriptType) {
        this.queryParams.scriptType = this.topicobj.scriptType;
      }
      this.queryParams.suitWay = 1;
      gettargetInfo(this.queryParams).then((res) => {
        this.targetList = res.rows;
        this.total = res.total;
@@ -825,6 +835,19 @@
        this.compileissue();
      }
    },
    // 判断指标
    changefn(item) {
      if (this.topicobj.targetname) {
        this.$modal
          .confirm("更改类型后选项将清空是否继续?")
          .then(() => {
            this.scriptTypels = this.topicobj.scriptType;
          })
          .catch(() => {
            this.topicobj.scriptType = this.scriptTypels;
          });
      }
    },
    // 删除选项
    deletexuanx(row) {