WXL
2024-07-29 dad71d3ff3fa37090c78f3d83d09db0fa54601ca
src/views/knowledge/questionbank/index.vue
@@ -68,28 +68,17 @@
              v-show="showSearch"
              label-width="98px"
            >
              <el-form-item label="可用院区" prop="status">
                <el-select v-model="queryParams.courtyard" placeholder="请选择">
                  <el-option
                    v-for="item in languagelist"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="问题主题" prop="userName">
              <el-form-item label="问题标题" prop="userName">
                <el-input
                  v-model="queryParams.userName"
                  v-model="queryParams.scriptTopic"
                  placeholder="请输入"
                  clearable
                  style="width: 200px"
                  @keyup.enter.native="handleQuery"
                />
              </el-form-item>
              <el-form-item label="文字" prop="status">
                <el-select v-model="queryParams.status" placeholder="请选择">
              <el-form-item label="语言" prop="status">
                <el-select v-model="queryParams.language" placeholder="请选择">
                  <el-option
                    v-for="item in languagelist"
                    :key="item.value"
@@ -98,6 +87,15 @@
                  >
                  </el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="关联指标" prop="targetname">
                <el-input
                  v-model="queryParams.targetname"
                  placeholder="请输入"
                  clearable
                  style="width: 200px"
                  @keyup.enter.native="handleQuery"
                />
              </el-form-item>
              <el-form-item label="是否可用" prop="isavailable">
                <el-select
@@ -180,8 +178,8 @@
                label="题目标题"
                fixed
                align="center"
                key="script"
                prop="script"
                key="scriptTopic"
                prop="scriptTopic"
                width="200"
                :show-overflow-tooltip="true"
              />
@@ -233,8 +231,8 @@
                :show-overflow-tooltip="true"
              >
                <template slot-scope="scope">
                  <span v-for="item in scope.row.tag.split(',')"
                    >{{ item }}、
                  <span v-for="item in scope.row.svyLibScriptTagList"
                    >{{ item.tagname }}、
                  </span>
                </template>
              </el-table-column>
@@ -395,7 +393,10 @@
          <span>{{ topicform.scriptContent }}</span>
        </div>
        <div class="dev-xx" v-if="topicform.valueType == 1">
        <div
          class="dev-xx"
          v-if="topicform.scriptType != 3 && topicform.scriptType != 4"
        >
          <el-radio-group v-model="topicform.asrtext">
            <el-radio
              v-for="(topicforms, index) in topicform.svyLibScriptOptions"
@@ -461,7 +462,7 @@
      haoquestionnaire: "",
      idds: "",
      topicform: {
        questionText: "",
        scriptContent: "",
      },
      amendtag: false, //是否修改类别
      dialogFormVisible: false, //修改添加类别弹框
@@ -469,7 +470,7 @@
      topicVisible: false, //预览弹框
      deletefenl: "高血压", //删除项
      classifyform: {
        categoryname: "",
        name: "",
      }, //类别表单
      // 表格数据
      userList: [],
@@ -503,7 +504,7 @@
      illnesslistapi: [],
      illnesslist: [],
      defaultProps: {
        children: "svyLibTopicCategoryList",
        children: "svyLibScriptCategoryList",
        label: "name",
      },
      mode: [],
@@ -549,7 +550,7 @@
    // 疾病-----------------------
    illnessUpdate(row) {
      this.illnessVisible = true;
      this.indexid = row.topicid;
      this.indexid = row.id;
      this.illnesslistapi = [];
      const illnessqueryParams = {
        pageNum: 1,
@@ -559,7 +560,7 @@
        console.log(response);
        this.optionsillness = response.rows;
      });
      getillness({ outid: row.topicid, type: 4 }).then((res) => {
      getillness({ outid: row.id, type: 4 }).then((res) => {
        this.illnesslist = res.rows;
        console.log(res);
      });
@@ -655,10 +656,11 @@
          (obj) => obj.id == this.classifyform.pid
        );
        calssvalue = this.deptOptions[index];
        calssvalue.svyLibTopicCategoryList.push(this.classifyform);
        console.log(calssvalue, "calssvalue");
        calssvalue.svyLibScriptCategoryList.push(this.classifyform);
      } else if (this.radio == "主分类" && this.classifyform.name) {
        this.classifyform.pid = null;
        this.classifyform.svyLibTopicCategoryList = [];
        this.classifyform.svyLibScriptCategoryList = [];
      } else {
        return this.$modal.msgError("请填写完整信息");
      }
@@ -720,7 +722,7 @@
    // 表单重置
    reset() {
      this.form = {
        topicid: undefined,
        id: undefined,
        deptId: undefined,
        userName: undefined,
        nickName: undefined,
@@ -750,7 +752,7 @@
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.topicid);
      this.ids = selection.map((item) => item.id);
      this.single = selection.length != 1;
      this.multiple = !selection.length;
    },
@@ -770,7 +772,8 @@
    /** 删除按钮操作 */
    handleDelete(row) {
      const topicids = row.topicid || this.ids;
      console.log(this.ids);
      const topicids = row.id || this.ids;
      this.$modal
        .confirm('是否确认删除用户编号为"' + topicids + '"的数据项?')
        .then(function () {