WXL
2024-01-16 ad70f145e8bea957b41043b4a1e37ce37cc5ed1e
src/views/repositoryai/intention/index.vue
@@ -172,12 +172,14 @@
              <el-table-column type="selection" width="50" align="center" />
              <el-table-column
                label="序号"
                fixed
                align="center"
                key="targetid"
                prop="targetid"
                key="id"
                prop="id"
              />
              <el-table-column
                label="值类型"
                fixed
                align="center"
                key="isenable"
                prop="isenable"
@@ -266,6 +268,7 @@
              <el-table-column
                label="操作"
                fixed="right"
                align="center"
                width="200"
                class-name="small-padding fixed-width"
@@ -345,8 +348,33 @@
                </el-form-item>
              </el-col>
            </el-row>
            <!-- deptOptions -->
            <el-row v-if="!measurement">
              <el-col :span="12">
              <el-col :span="8">
                <el-form-item label="指标分类">
                  <el-select
                    v-model="indexform.assortid"
                    size="medium"
                    filterable
                    placeholder="请选择分类"
                  >
                    <el-option-group
                      v-for="group in deptOptions"
                      :key="group.id"
                      :label="group.indexAssortName"
                    >
                      <el-option
                        v-for="item in group.ivrLibaTargetAssortList"
                        :key="item.id"
                        :label="item.indexAssortName"
                        :value="item.id"
                      >
                      </el-option>
                    </el-option-group>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="语言" prop="deptId">
                  <el-select
                    v-model="indexform.language"
@@ -361,7 +389,7 @@
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="12">
              <el-col :span="8">
                <el-form-item label="是否可用" prop="isAvailable">
                  <el-select
                    v-model="indexform.isAvailable"
@@ -541,6 +569,9 @@
                </el-table-column>
              </el-table>
            </el-card>
            <el-card class="box-card" style="margin-bottom: 20px">
              <Regular :TargetoptionList="testuserList" />
            </el-card>
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="测试输入" prop="nickName">
@@ -682,6 +713,7 @@
} from "@/api/AiCentre/index";
import { getToken } from "@/utils/auth";
import Treeselect from "@riophae/vue-treeselect";
import Regular from "@/components/Regular"; //正则组件
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { listtag } from "@/api/system/label";
import store from "@/store";
@@ -689,7 +721,7 @@
export default {
  name: "questionnaire",
  dicts: ["sys_normal_disable", "sys_user_sex"],
  components: { Treeselect },
  components: { Treeselect, Regular },
  data() {
    return {
      topactiveName: "Local", //顶部选择
@@ -827,7 +859,7 @@
    // 疾病-----------------------
    illnessUpdate(row) {
      this.illnessVisible = true;
      this.indexid = row.targetid;
      this.indexid = row.id;
      this.illnesslistapi = [];
      const illnessqueryParams = {
        pageNum: 1,
@@ -837,7 +869,7 @@
        console.log(response);
        this.optionsillness = response.rows;
      });
      getillness({ outid: row.targetid, type: 1 }).then((res) => {
      getillness({ outid: row.id, type: 1 }).then((res) => {
        this.illnesslist = res.rows;
        console.log(res);
      });
@@ -949,7 +981,7 @@
    addoption() {
      const objvakue = {
        guid: 1,
        targetid: this.indexform.targetid,
        id: this.indexform.id,
        targettype: this.indexform.targettype,
        targetvalue: "贫血",
        targetregex: "(?!不.*|没.*|未.*)^.*([贫平凭血]|贫血|评学|评学),10",
@@ -989,7 +1021,7 @@
          targetvalue: item.targetvalue,
          targetregex: item.targetregex,
          targetoptionid: item.targetoptionid,
          targetid: this.indexform.targetid,
          id: this.indexform.id,
          targettype: this.indexform.targettype,
          isoperation: item.targetoptionid ? 2 : 1,
          categoryName: item.categoryName,
@@ -1004,7 +1036,6 @@
    getDeptTree() {
      selectIvrLibaTargetAssortList({}).then((res) => {
        this.deptOptions = res.rows;
        console.log(res);
      });
    },
    // 筛选节点
@@ -1036,6 +1067,8 @@
      addtreeselectIvrLibaTargetAssort(this.classifyform).then((res) => {
        this.getDeptTree();
        this.$modal.msgSuccess("新增成功");
        this.classifyform = {};
        this.dialogFormVisible = false;
      });
    },
    remove(a, b) {
@@ -1082,7 +1115,7 @@
    reset() {
      this.indexform = {
        suitWay: undefined,
        targetid: undefined,
        id: undefined,
        targetdesc: undefined,
        baseTagList: [],
        targetoptionList: [],
@@ -1104,7 +1137,7 @@
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.targetid);
      this.ids = selection.map((item) => item.id);
      this.single = selection.length != 1;
      this.multiple = !selection.length;
    },
@@ -1161,7 +1194,7 @@
          this.targetoptionList
        );
        if (valid) {
          if (this.indexform.targetid != undefined) {
          if (this.indexform.id != undefined) {
            this.indexform.isoperation = 2;
            gettargetInfoedit(this.indexform).then((response) => {
              this.$modal.msgSuccess("修改成功");
@@ -1182,7 +1215,7 @@
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const userIds = row.targetid || this.ids;
      const userIds = row.id || this.ids;
      this.$modal
        .confirm('是否确认删除指标名称为"' + row.targetname + '"的数据项?')
        .then(function () {