WXL
2024-04-24 f3bf99618bc379a9fa91cefefc813f770dcddc53
测试完成
已修改18个文件
606 ■■■■■ 文件已修改
src/api/AiCentre/Followup.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/AiCentre/Qtemplate.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/AiCentre/indicator.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/AiCentre/publicity.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/AiCentre/questionnaire.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/SFtable/index.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/getters.js 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/knowledge/education/index.vue 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/knowledge/questionbank/index.vue 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/knowledge/questionbank/particulars/index.vue 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/knowledge/questionnaire/compilequer/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/knowledge/questionnaire/index.vue 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/particty.vue 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/intention/index.vue 61 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/templateku/configurat/index.vue 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/templateku/index.vue 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/verbaltrick/index.vue 43 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/verbaltrick/particulars/index.vue 139 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/AiCentre/Followup.js
@@ -47,6 +47,14 @@
      data: data,
    });
  }
  // 新增随访模版分类树
  export function editFollowupclassify(data) {
    return request({
      url: "/smartor/templateassort/edit",
      method: "post",
      data: data,
    });
  }
  // 删除随访模版分类
export function delFollowupclassify(Id) {
  return request({
src/api/AiCentre/Qtemplate.js
@@ -40,6 +40,14 @@
      data: data,
    });
  }
    // 新增问卷模版分类
    export function editQtemplateclassify(data) {
      return request({
        url: "/smartor/svyLibTitleCategory/edit",
        method: "post",
        data: data,
      });
    }
  // 删除问卷模版分类
export function delQtemplateclassify(Id) {
  return request({
src/api/AiCentre/indicator.js
@@ -117,6 +117,14 @@
  });
}
// 新增指标分类树
export function edittreeselectIvrLibaTargetAssort(data) {
  return request({
    url: "/smartor/assort/edit",
    method: "post",
    data:data,
  });
}
// 新增指标分类树
export function gettagerlist(data) {
  return request({
    url: "/smartor/target/list",
src/api/AiCentre/publicity.js
@@ -40,6 +40,14 @@
      data: data,
    });
  }
   // 新增宣教模版分类树
   export function editheLibraryAssort(data) {
    return request({
      url: "/smartor/heLibraryAssort/edit",
      method: "post",
      data: data,
    });
  }
  // 删除宣教模版分类
export function delheLibraryAssort(Id) {
  return request({
src/api/AiCentre/questionnaire.js
@@ -40,6 +40,14 @@
      data: data,
    });
  }
  // 新增问卷问题分类
  export function editissueclassify(data) {
    return request({
      url: "/smartor/svyLibTopicCategory/edit",
      method: "post",
      data: data,
    });
  }
  // 删除问卷问题分类
export function delissueclassify(Id) {
  return request({
src/components/SFtable/index.vue
@@ -43,7 +43,6 @@
    >
      <template slot-scope="scope">
        <dict-tag :options="qyoptions" :value="scope.row.usestate" />
      </template>
    </el-table-column>
    <el-table-column
@@ -144,8 +143,14 @@
        }
        return "手动";
      }
      if (column.property === "createTime") {
        return dayjs(cellValue).format("YYYY.MM.DD HH:mm:ss");
      if (
        column.property === "createTime" ||
        column.property === "inhosptime"
      ) {
        if (cellValue === null) {
          return "";
        }
        return dayjs(cellValue).format("YYYY-MM-DD ");
      }
      return cellValue;
    },
src/store/getters.js
@@ -107,13 +107,12 @@
        listClass: "",
      },
    },
  ],
  // 值类型
  valuetype: (state) => [
    {
      value: "1",
      value: 1,
      label: "选项",
      raw: {
        cssClass: "",
@@ -121,7 +120,7 @@
      },
    },
    {
      value: "2",
      value: 2,
      label: "文本",
      raw: {
        cssClass: "",
@@ -129,7 +128,34 @@
      },
    },
    {
      value: "3",
      value: 3,
      label: "数值",
      raw: {
        cssClass: "",
        listClass: "",
      },
    },
  ],
    // 值类型(列表展示)
    valuetypelb: (state) => [
      {
        value: '1',
        label: "选项",
        raw: {
          cssClass: "",
          listClass: "",
        },
      },
      {
        value: '2',
        label: "文本",
        raw: {
          cssClass: "",
          listClass: "",
        },
      },
      {
        value: '3',
      label: "数值",
      raw: {
        cssClass: "",
src/views/knowledge/education/index.vue
@@ -39,6 +39,17 @@
              >
              </el-button>
            </span>
            <span v-if="data.id > 0">
              <el-button
                type="text"
                circle
                size="mini"
                @click="() => altertag(node, data)"
                ><span class="button-textxg"
                  ><i class="el-icon-edit-outline"></i
                ></span>
              </el-button>
            </span>
          </span>
        </el-tree>
      </div>
@@ -390,7 +401,7 @@
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button @click="getDeptTree()">取 消</el-button>
        <el-button type="primary" @click="submitsidecolumn">确 定</el-button>
      </div>
    </el-dialog>
@@ -459,6 +470,7 @@
  getheLibraryAssort,
  delheLibraryAssort,
  addheLibraryAssort,
  editheLibraryAssort,
  addtargetillness,
  getlibrarylist,
  dellibraryinfo,
@@ -672,12 +684,21 @@
    getDeptTree() {
      getheLibraryAssort({}).then((res) => {
        this.deptOptions = res.rows;
        console.log(res);
        this.dialogFormVisible = false;
      });
    },
    // 添加类别树
    submitsidecolumn() {
      if (this.classifyform.id) {
        editheLibraryAssort(this.classifyform).then((res) => {
          this.getDeptTree();
          this.$modal.msgSuccess("修改成功");
          this.classifyform = {};
          this.dialogFormVisible = false;
        });
        return;
      }
      let calssvalue = {};
      if (
        this.classifyform.pid &&
@@ -731,6 +752,16 @@
          .catch(() => {});
      }
    },
    altertag(a, b) {
      this.dialogFormVisible = true;
      if (!b.pid) {
        this.radio = "主分类";
      } else {
        this.radio = "子分类";
      }
      this.classifyform = b;
      this.dialogFormVisible = true;
    },
    // 筛选节点
    filterNode(value, data) {
src/views/knowledge/questionbank/index.vue
@@ -29,7 +29,7 @@
        >
          <span class="custom-tree-node" slot-scope="{ node, data }">
            <span>{{ node.label }}</span>
            <span>
            <span v-if="data.id > 0">
              <el-button
                type="text"
                icon="el-icon-delete"
@@ -37,6 +37,17 @@
                size="mini"
                @click="() => remove(node, data)"
              >
              </el-button>
            </span>
            <span v-if="data.id > 0">
              <el-button
                type="text"
                circle
                size="mini"
                @click="() => altertag(node, data)"
                ><span class="button-textxg"
                  ><i class="el-icon-edit-outline"></i
                ></span>
              </el-button>
            </span>
          </span>
@@ -326,7 +337,7 @@
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button @click="getDeptTree()">取 消</el-button>
        <el-button type="primary" @click="submitsidecolumn">确 定</el-button>
      </div>
    </el-dialog>
@@ -387,6 +398,7 @@
  getissueclassify,
  delissueclassify,
  addissueclassify,
  editissueclassify,
  getissuelist,
  issueinfo,
  compileissue,
@@ -588,12 +600,21 @@
    getDeptTree() {
      getissueclassify({}).then((res) => {
        this.deptOptions = res.rows;
        console.log(res);
        this.dialogFormVisible = false;
      });
    },
    // 添加类别树
    submitsidecolumn() {
      if (this.classifyform.id) {
        editissueclassify(this.classifyform).then((res) => {
          this.getDeptTree();
          this.$modal.msgSuccess("修改成功");
          this.classifyform = {};
          this.dialogFormVisible = false;
        });
        return;
      }
      let calssvalue = {};
      if (
        this.classifyform.pid &&
@@ -645,6 +666,16 @@
          .catch(() => {});
      }
    },
    altertag(a, b) {
      this.dialogFormVisible = true;
      if (!b.pid) {
        this.radio = "主分类";
      } else {
        this.radio = "子分类";
      }
      this.classifyform = b;
      this.dialogFormVisible = true;
    },
    // 筛选节点
    filterNode(value, data) {
src/views/knowledge/questionbank/particulars/index.vue
@@ -9,6 +9,10 @@
              ><el-button type="primary" @click="compileissue"
                >保存</el-button
              ></span
            ><span style="margin-left: 30px"
              ><el-button type="success" round @click="drawer = true"
                >+选择指标</el-button
              ></span
            >
          </div>
          <div style="margin-left: 8%">
@@ -101,14 +105,14 @@
              <el-col :span="6"
                ><el-form-item label="题目类型">
                  <el-select
                    v-model="topicobj.topictype"
                    v-model="topicobj.valueType"
                    size="medium"
                    filterable
                    placeholder="请选择分类"
                  >
                    <el-option
                      class="topicobjaa"
                      v-for="item in xjxsoptions"
                      v-for="item in valuetype"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
@@ -280,15 +284,11 @@
              </el-col></el-row
            > -->
          </div>
          <div v-if="topicobj.valueType == 1">
          <div class="headline">
            选项设置<span style="margin-left: 30px"
              ><el-button type="primary" round @click="addoption"
                >+新增</el-button
              ></span
            ><span style="margin-left: 30px"
              ><el-button type="success" round @click="drawer = true"
                >+选择指标</el-button
              ></span
            >
          </div>
@@ -340,6 +340,7 @@
                </el-input
              ></el-form-item>
            </el-row>
            </div>
          </div>
        </el-form>
      </el-card>
@@ -409,7 +410,7 @@
                type="text"
                @click="selectlabel(scope.row)"
                ><span class="button-textxg"
                  ><i class="el-icon-circle-plus-outline"></i>添加</span
                  ><i class="el-icon-circle-plus-outline"></i>选择</span
                ></el-button
              >
            </template>
@@ -492,7 +493,7 @@
      illnesslist: [],
      classifylist: [],
      optionstag: [],
      xjxsoptions: [],
      valuetype: [],
      usable: [],
      mode: [], //方式
    };
@@ -505,7 +506,7 @@
    this.mode = store.getters.mode;
    this.languagelist = store.getters.languagelist;
    this.usable = store.getters.usable;
    this.xjxsoptions = store.getters.xjxsoptions;
    this.valuetype = store.getters.valuetype;
    this.required = store.getters.required;
  },
@@ -533,6 +534,10 @@
    // 获取数据
    getissueinfo() {
      this.id = this.$route.query.id;
      // 分类
      getissueclassify({}).then((res) => {
        this.classifylist = res.rows;
      });
      if (!this.id) {
        return;
      }
@@ -552,10 +557,7 @@
      getillness({ outid: this.id, type: 4 }).then((res) => {
        this.illnesslist = res.rows;
      });
      // 分类
      getissueclassify({}).then((res) => {
        this.classifylist = res.rows;
      });
    },
    gettargetInfo() {
      gettargetInfo(this.queryParams).then((res) => {
@@ -635,6 +637,19 @@
    },
    // 选择指标
    selectlabel(row) {
      this.$modal
        .confirm(
          '是否选择标题为"' + row.targetname + '"的指标并替换填充问题信息?'
        )
        .then(() => {
          console.log(row);
          console.log(this.topicobj);
          this.topicobj.topic = row.targetname;
          this.topicobj.valueType = row.valueType;
          this.topicobj.topicContent = row.targetdesc;
          this.topicobj.isavailable = "0";
          this.topicobj.language = "普通话";
          this.topicobj.svyLibTopicoptions = [];
      const labellist = row.targetoptionList;
      labellist.forEach((item) => {
        this.topicobj.svyLibTopicoptions.push({
@@ -642,6 +657,9 @@
          isoperation: 1,
        });
      });
          this.drawer = false;
        })
        .catch(() => {});
    },
    // 标签-----------------
src/views/knowledge/questionnaire/compilequer/index.vue
@@ -694,7 +694,7 @@
      illnesslist: [],
      tempDetpRelevanceslist: [],
      optionstag: [],
      xjxsoptions: [],
      valuetype: [],
      usable: [],
      required: [],
      mode: [], //方式
@@ -713,7 +713,7 @@
    this.languagelist = store.getters.languagelist;
    this.usable = store.getters.usable;
    this.required = store.getters.required;
    this.xjxsoptions = store.getters.xjxsoptions;
    this.valuetype = store.getters.valuetype;
    this.courtyardlist = store.getters.courtyardlist;
  },
src/views/knowledge/questionnaire/index.vue
@@ -29,7 +29,7 @@
        >
          <span class="custom-tree-node" slot-scope="{ node, data }">
            <span>{{ node.label }}</span>
            <span v-if="node.id > 0">
            <span v-if="data.id > 0">
              <el-button
                type="text"
                icon="el-icon-delete"
@@ -37,6 +37,17 @@
                size="mini"
                @click="() => remove(node, data)"
              >
              </el-button>
            </span>
            <span v-if="data.id > 0">
              <el-button
                type="text"
                circle
                size="mini"
                @click="() => altertag(node, data)"
                ><span class="button-textxg"
                  ><i class="el-icon-edit-outline"></i
                ></span>
              </el-button>
            </span>
          </span>
@@ -347,7 +358,7 @@
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button @click="getDeptTree()">取 消</el-button>
        <el-button type="primary" @click="submitsidecolumn">确 定</el-button>
      </div>
    </el-dialog>
@@ -418,6 +429,7 @@
  getQtemplateclassify,
  delQtemplateclassify,
  addQtemplateclassify,
  editQtemplateclassify,
  getQtemplatelist,
  issueinfo,
  compileissue,
@@ -670,12 +682,21 @@
    getDeptTree() {
      getQtemplateclassify({}).then((res) => {
        this.deptOptions = res.rows;
        console.log(res);
        this.dialogFormVisible = false;
      });
    },
    // 添加类别树
    submitsidecolumn() {
      if (this.classifyform.id) {
        editQtemplateclassify(this.classifyform).then((res) => {
          this.getDeptTree();
          this.$modal.msgSuccess("修改成功");
          this.classifyform = {};
          this.dialogFormVisible = false;
        });
        return;
      }
      let calssvalue = {};
      if (
        this.classifyform.pid &&
@@ -727,6 +748,16 @@
          .catch(() => {});
      }
    },
    altertag(a, b) {
      this.dialogFormVisible = true;
      if (!b.pid) {
        this.radio = "主分类";
      } else {
        this.radio = "子分类";
      }
      this.classifyform = b;
      this.dialogFormVisible = true;
    },
    // 筛选节点
    filterNode(value, data) {
src/views/patient/propaganda/particty.vue
@@ -574,7 +574,7 @@
              <el-form-item label="患者名称:">
                <el-input v-model="patientqueryParams.name"></el-input>
              </el-form-item>
              <el-form-item label="患者来源" prop="status">
              <!-- <el-form-item label="患者来源" prop="status">
                <el-select
                  v-model="patientqueryParams.topic"
                  placeholder="请选择"
@@ -587,36 +587,28 @@
                  >
                  </el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="出院科室" prop="status">
              </el-form-item> -->
              <el-form-item label="就诊科室" prop="status">
                <el-select
                  v-model="patientqueryParams.topic"
                  placeholder="请选择"
                >
                  <el-option-group
                    v-for="group in topicoptions[0].children"
                    :key="group.deptName"
                    :label="group.deptName"
                  >
                  <el-option
                    v-for="item in topicoptions"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                      v-for="item in group.children"
                      :key="item.deptId"
                      :label="item.deptName"
                      :value="item.deptId"
                  >
                  </el-option>
                  </el-option-group>
                </el-select>
              </el-form-item>
              <el-form-item label="出院病区" prop="status">
                <el-select
                  v-model="patientqueryParams.topic"
                  placeholder="请选择"
                >
                  <el-option
                    v-for="item in topicoptions"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </el-select>
              </el-form-item>
              <el-form-item>
                <el-button
                  type="primary"
@@ -701,8 +693,8 @@
        { label: "患者名称", width: "", prop: "name" },
        { label: "性别", width: "", prop: "sex" },
        { label: "年龄", width: "", prop: "age" },
        { label: "就诊科室", width: "", prop: "impTemplate" },
        { label: "入院日期", width: "", prop: "uploadTime" },
        { label: "就诊科室", width: "", prop: "deptName" },
        { label: "入院日期", width: "", prop: "inhosptime" },
        { label: "创建人(缺)", width: "", prop: "update_by" },
      ],
      tableLabelxj: [
@@ -768,7 +760,7 @@
        pageNum: 1, //
        pageSize: 10,
      },
      topicoptions: [],
      topicoptions: [{ children: [{ children: [] }] }],
      showSearch: true, //
      total: 0, //
      sontotal: 0, //
@@ -854,9 +846,9 @@
  created() {
    this.id = this.$route.query.id;
    this.form.type = this.$route.query.type;
    this.Getdetails();
    this.form.hospType = this.$route.query.type;
    this.listDept();
    this.Getdetails();
    this.Acquisitiontype();
  },
@@ -953,7 +945,7 @@
    // 保存
    submitForm(formName) {
      this.form.serviceform = this.checkList.join(",");
      this.form.type = this.currenttype;
      this.form.hospType = this.currenttype;
      const filteredArray = this.variableList.filter(
        (item) =>
          item.name !== "姓名" && item.name !== "电话" && item.name !== "地址"
@@ -1058,7 +1050,9 @@
      console.log(this.ids);
    },
    getList() {},
    handleQuery() {},
    handleQuery() {
      this.handleAddpatient();
    },
    resetQuery() {},
    handleClosehz() {
      this.dialogVisiblepatient = false;
@@ -1096,7 +1090,7 @@
    // 获取科室列表
    listDept() {
      listDept().then((res) => {
        this.topicoptions = res.data;
        this.topicoptions = this.handleTree(res.data, "deptId");
        console.log(this.topicoptions, "topicoptions");
      });
    },
src/views/repositoryai/intention/index.vue
@@ -30,7 +30,7 @@
        >
          <span class="custom-tree-node" slot-scope="{ node, data }">
            <span>{{ node.label }}</span>
            <span>
            <span v-if="data.id > 0">
              <el-button
                type="text"
                icon="el-icon-delete"
@@ -38,6 +38,17 @@
                size="mini"
                @click="() => remove(node, data)"
              >
              </el-button>
            </span>
            <span v-if="data.id > 0">
              <el-button
                type="text"
                circle
                size="mini"
                @click="() => altertag(node, data)"
                ><span class="button-textxg"
                  ><i class="el-icon-edit-outline"></i
                ></span>
              </el-button>
            </span>
          </span>
@@ -181,12 +192,12 @@
                label="值类型"
                fixed
                align="center"
                key="isenable"
                prop="isenable"
                key="valueType"
                prop="valueType"
                :show-overflow-tooltip="true"
              >
                <template slot-scope="scope">
                  <dict-tag :options="valuetype" :value="scope.row.isenable" />
                  <dict-tag :options="valuetypelb" :value="scope.row.valueType" />
                </template>
              </el-table-column>
              <el-table-column
@@ -342,7 +353,7 @@
                <el-form-item label="版本号" prop="deptId">
                  <el-input
                    v-model="indexform.version"
                    placeholder="请输入指标种类"
                    placeholder="默认1.0"
                    maxlength="40"
                  />
                </el-form-item>
@@ -456,7 +467,7 @@
            <el-row v-if="!measurement">
              <el-col :span="24">
                <el-form-item label="值类型">
                  <el-radio-group v-model="indexform.isenable">
                  <el-radio-group v-model="indexform.valueType">
                    <el-radio :label="1">选项</el-radio>
                    <el-radio :label="2">文本</el-radio>
                    <el-radio :label="3">数值</el-radio>
@@ -483,7 +494,7 @@
            <el-card
              class="box-card"
              style="margin-bottom: 20px"
              v-if="indexform.isenable == 1"
              v-if="indexform.valueType == 1"
            >
              <Regular
                :TargetoptionList="testuserList"
@@ -493,27 +504,26 @@
                @syioption="syioption"
                @xiayioption="xiayioption"
              />
            </el-card>
            <div v-if="indexform.isenable == 2">
            <div v-if="indexform.valueType == 2">
              <el-form-item label="收集信息">
                <el-input
                  type="textarea"
                  :rows="2"
                  placeholder="填入收集信息"
                  v-model="indexform.textarea"
                  v-model="indexform.reply"
                  maxlength="50"
                  show-word-limit
                >
                </el-input
              ></el-form-item>
            </div>
            <div v-if="indexform.isenable == 3">
            <div v-if="indexform.valueType == 3">
              <el-form-item label="收集信息">
                <el-input
                  type="text"
                  placeholder="填入收集信息"
                  v-model="indexform.textarea"
                  v-model="indexform.reply"
                >
                </el-input
              ></el-form-item>
@@ -627,7 +637,7 @@
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button @click="getDeptTree()">取 消</el-button>
        <el-button type="primary" @click="submitsidecolumn">确 定</el-button>
      </div>
    </el-dialog>
@@ -648,6 +658,7 @@
  addtargetillness,
  selectIvrLibaTargetAssortList,
  addtreeselectIvrLibaTargetAssort,
  edittreeselectIvrLibaTargetAssort,
  delselectIvrLibaTargetAssort,
} from "@/api/AiCentre/index";
import { getToken } from "@/utils/auth";
@@ -734,6 +745,7 @@
        pageNum: 1,
        pageSize: 10,
      },
      valuetypelb:[],
      // 表单校验
      rules: {},
@@ -752,7 +764,7 @@
    this.gettabList();
    this.getDeptTree();
    this.mode = store.getters.mode;
    this.valuetype = store.getters.valuetype;
    this.valuetypelb = store.getters.valuetypelb;
    this.languagelist = store.getters.languagelist;
    this.qyoptions = store.getters.usable;
  },
@@ -982,6 +994,7 @@
    getDeptTree() {
      selectIvrLibaTargetAssortList({}).then((res) => {
        this.deptOptions = res.rows;
        this.dialogFormVisible = false;
      });
    },
    // 筛选节点
@@ -991,6 +1004,15 @@
    },
    // 添加类别树
    submitsidecolumn() {
      if (this.classifyform.id) {
        edittreeselectIvrLibaTargetAssort(this.classifyform).then((res) => {
          this.getDeptTree();
          this.$modal.msgSuccess("修改成功");
          this.classifyform = {};
          this.dialogFormVisible = false;
        });
        return;
      }
      let calssvalue = {};
      if (
        this.classifyform.pid &&
@@ -1045,6 +1067,16 @@
          })
          .catch(() => {});
      }
    },
    altertag(a, b) {
      this.dialogFormVisible = true;
      if (!b.pid) {
        this.radio = "主分类";
      } else {
        this.radio = "子分类";
      }
      this.classifyform = b;
      this.dialogFormVisible = true;
    },
    handleNodeClick(data) {
      this.queryParams.assortid = data.id;
@@ -1152,6 +1184,7 @@
          this.targetoptionList
        );
        if (valid) {
          if (!this.indexform.version) this.indexform.version = "1.0";
          if (this.indexform.id != undefined) {
            this.indexform.isoperation = 2;
            gettargetInfoedit(this.indexform).then((response) => {
src/views/repositoryai/templateku/configurat/index.vue
@@ -476,13 +476,14 @@
                      </el-select> </el-form-item
                  ></el-col>
                  <el-col :span="12"
                    ><el-form-item label="是否可用">
                    ><el-form-item label="取值类型">
                      <el-select
                        v-model="topicobj.isavailable"
                        v-model="topicobj.isEnable"
                        placeholder="请选择"
                        :disabled="true"
                      >
                        <el-option
                          v-for="item in usable"
                          v-for="item in valuetype"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
@@ -491,16 +492,31 @@
                      </el-select> </el-form-item
                  ></el-col>
                </el-row>
                <div class="topicxq" v-if="topicobj.isEnable == 2 || topicobj.isEnable == 3">
                  <el-row>
                    <el-col :span="20">
                      <el-form-item label="收集内容">
                        <el-input
                        style="width: 400px;"
                          type="textarea"
                          v-model="topicobj.value"
                          placeholder="问题收集内容"
                        ></el-input>
                      </el-form-item>
                    </el-col>
                  </el-row>
                </div>
                <div v-else>
                <div class="headline">
                  <div class="basics">选项设置</div>
                  <div class="headbottom">
                    <!-- <div class="headbottom">
                    <el-button
                      type="primary"
                      icon="el-icon-circle-plus-outline"
                      @click="addzbiao"
                      >添加指标</el-button
                    >
                  </div>
                    </div> -->
                </div>
                <Regular
@@ -649,6 +665,7 @@
                      </el-form-item></el-col
                    >
                  </el-row>
                  </div>
                </div>
              </el-form>
            </el-card>
@@ -870,6 +887,7 @@
      precedencetype: [],
      usable: [],
      required: [],
      valuetype: [],
      mode: [],
      inputVisible: false,
      inputVisibleillness: false,
@@ -952,6 +970,7 @@
    this.mode = store.getters.mode;
    this.usable = store.getters.usable;
    this.required = store.getters.required;
    this.valuetype = store.getters.valuetype;
    this.languagelist = store.getters.languagelist;
    this.courtyardlist = store.getters.courtyardlist;
    this.precedencetype = store.getters.precedencetype;
@@ -1234,6 +1253,7 @@
      if (row.ivrLibaScriptTargetoptionList.length) {
        console.log(11);
        this.topicobj = row;
        this.topicobj.isEnable = row.valueType;
      } else {
        getverbaltrick({ id: row.id }).then((res) => {
          if (res.data) {
src/views/repositoryai/templateku/index.vue
@@ -29,7 +29,7 @@
        >
          <span class="custom-tree-node" slot-scope="{ node, data }">
            <span>{{ node.label }}</span>
            <span>
            <span v-if="data.id > 0">
              <el-button
                type="text"
                icon="el-icon-delete"
@@ -37,6 +37,17 @@
                size="mini"
                @click="() => remove(node, data)"
              >
              </el-button>
            </span>
            <span v-if="data.id > 0">
              <el-button
                type="text"
                circle
                size="mini"
                @click="() => altertag(node, data)"
                ><span class="button-textxg"
                  ><i class="el-icon-edit-outline"></i
                ></span>
              </el-button>
            </span>
          </span>
@@ -365,7 +376,7 @@
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button @click="getDeptTree()">取 消</el-button>
        <el-button type="primary" @click="submitsidecolumn">确 定</el-button>
      </div>
    </el-dialog>
@@ -427,6 +438,7 @@
  getFollowupclassify,
  delFollowupclassify,
  addFollowupclassify,
  editFollowupclassify,
  addtargetillness,
  getvFollowup,
  compileFollowup,
@@ -641,12 +653,21 @@
    getDeptTree() {
      getFollowupclassify({}).then((res) => {
        this.deptOptions = res.rows;
        console.log(res);
        this.dialogFormVisible = false;
      });
    },
    // 添加类别树
    submitsidecolumn() {
      if (this.classifyform.id) {
        editFollowupclassify(this.classifyform).then((res) => {
          this.getDeptTree();
          this.$modal.msgSuccess("修改成功");
          this.classifyform = {};
          this.dialogFormVisible = false;
        });
        return;
      }
      let calssvalue = {};
      if (
        this.classifyform.pid &&
@@ -700,6 +721,16 @@
          .catch(() => {});
      }
    },
    altertag(a, b) {
      this.dialogFormVisible = true;
      if (!b.pid) {
        this.radio = "主分类";
      } else {
        this.radio = "子分类";
      }
      this.classifyform = b;
      this.dialogFormVisible = true;
    },
    // 筛选节点
    filterNode(value, data) {
src/views/repositoryai/verbaltrick/index.vue
@@ -29,7 +29,7 @@
        >
          <span class="custom-tree-node" slot-scope="{ node, data }">
            <span>{{ node.label }}</span>
            <span>
            <span v-if="data.id > 0">
              <el-button
                type="text"
                icon="el-icon-delete"
@@ -37,6 +37,17 @@
                size="mini"
                @click="() => remove(node, data)"
              >
              </el-button>
            </span>
            <span v-if="data.id > 0">
              <el-button
                type="text"
                circle
                size="mini"
                @click="() => altertag(node, data)"
                ><span class="button-textxg"
                  ><i class="el-icon-edit-outline"></i
                ></span>
              </el-button>
            </span>
          </span>
@@ -188,8 +199,8 @@
              <el-table-column
                label="问题文本"
                align="center"
                key="questiontext"
                prop="questiontext"
                key="questionText"
                prop="questionText"
                width="200"
                :show-overflow-tooltip="true"
              />
@@ -351,7 +362,7 @@
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button @click="getDeptTree()">取 消</el-button>
        <el-button type="primary" @click="submitsidecolumn">确 定</el-button>
      </div>
    </el-dialog>
@@ -411,7 +422,7 @@
  getverbaltricklist,
  verbaltrickinfo,
  delverbaltrickinfo,
  getverbaltrick,
  compileverbaltrickclassify,
  getillnesslist,
  illnesslistget,
  getillness,
@@ -597,12 +608,22 @@
    getDeptTree() {
      getbaltrickclassify({}).then((res) => {
        this.deptOptions = res.rows;
        console.log(res);
        this.dialogFormVisible = false;
      });
    },
    // 添加类别树
    submitsidecolumn() {
      if (this.classifyform.id) {
        compileverbaltrickclassify(this.classifyform).then((res) => {
          this.getDeptTree();
          this.$modal.msgSuccess("修改成功");
          this.classifyform = {};
          this.dialogFormVisible = false;
        });
        return;
      }
      let calssvalue = {};
      if (
        this.classifyform.pid &&
@@ -656,6 +677,16 @@
          .catch(() => {});
      }
    },
    altertag(a, b) {
      this.dialogFormVisible = true;
      if (!b.pid) {
        this.radio = "主分类";
      } else {
        this.radio = "子分类";
      }
      this.classifyform = b;
      this.dialogFormVisible = true;
    },
    // 筛选节点
    filterNode(value, data) {
src/views/repositoryai/verbaltrick/particulars/index.vue
@@ -271,7 +271,7 @@
                  :rows="2"
                  placeholder="请输入内容"
                  id="questiontext"
                  v-model.sync="indexform.questiontext"
                  v-model.sync="indexform.questionText"
                  @focus="handleInput('questiontext')"
                  maxlength="30"
                />
@@ -446,7 +446,7 @@
          <el-row>
            <el-col :span="24">
              <el-form-item label="值类型">
                <el-radio-group v-model="indexform.isenable">
                <el-radio-group v-model="indexform.valueType">
                  <el-radio :label="1">选项</el-radio>
                  <el-radio :label="2">文本</el-radio>
                  <el-radio :label="3">数值</el-radio>
@@ -454,84 +454,7 @@
              </el-form-item>
            </el-col></el-row
          >
          <!-- <el-card class="box-card" style="margin-bottom: 20px">
            <el-table
              v-loading="loading"
              :data="indexform.ivrLibaScriptTargetoptionList"
            >
              <el-table-column
                label="序号"
                align="center"
                key="guid"
                prop="guid"
                width="50"
              />
              <el-table-column
                label="指标选项"
                align="center"
                key="targetvalue"
                prop="targetvalue"
                :show-overflow-tooltip="true"
              >
                <template slot-scope="scope">
                  <el-input
                    v-model="scope.row.targetvalue"
                    placeholder="请输入内容"
                  ></el-input>
                </template>
              </el-table-column>
              <el-table-column
                label="解析规则"
                align="center"
                key="targetregex"
                prop="targetregex"
                width="460"
                :show-overflow-tooltip="true"
              >
                <template slot-scope="scope">
                  <el-input
                    v-model="scope.row.targetregex"
                    placeholder="请输入内容"
                  ></el-input>
                </template>
              </el-table-column>
              <el-table-column
                label="操作"
                align="center"
                width="200"
                class-name="small-padding fixed-width"
              >
                <template slot-scope="scope">
                  <el-button
                    @click="addoption(scope.row)"
                    type="success"
                    icon="el-icon-circle-plus-outline"
                    circle
                  ></el-button>
                  <el-button
                    type="danger"
                    icon="el-icon-delete"
                    circle
                    @click="deloption(scope.row)"
                  ></el-button>
                  <el-button
                    @click="syioption(scope.row)"
                    type="primary"
                    icon="el-icon-top"
                    circle
                  ></el-button>
                  <el-button
                    @click="xiayioption(scope.row)"
                    type="primary"
                    icon="el-icon-bottom"
                    circle
                  ></el-button>
                </template>
              </el-table-column>
            </el-table>
          </el-card> -->
          <div v-if="indexform.valueType == 1">
          <el-card class="box-card" style="margin-bottom: 20px">
            <Regular
              :TargetoptionList="indexform.ivrLibaScriptTargetoptionList"
@@ -555,8 +478,7 @@
              <el-button type="success">开始测试</el-button>
            </el-col>
          </el-row>
        </el-form>
        <div style="margin-bottom: 10px">
            <div style="margin-bottom: 20px">
          <el-input
            type="textarea"
            :rows="4"
@@ -565,6 +487,18 @@
          >
          </el-input>
        </div>
          </div>
          <div style="margin-bottom: 20px" v-else>
            <el-input
              type="textarea"
              :rows="4"
              placeholder="此处展示收集信息"
              v-model="testgovalue"
            >
            </el-input>
          </div>
        </el-form>
        <el-button type="primary" @click="laststep()">上一步</el-button>
        <el-button type="info" @click="closeFm()">关闭</el-button>
        <el-button @click="Saveproblem()">保存数据</el-button>
@@ -681,14 +615,18 @@
          this.dynamicTags = this.indexform.ivrLibaScriptTagList.map(
            this.processElement
          );
          this.targetlist = [
            {
              id: this.indexform.targetid,
              targetname: this.indexform.targetname,
            },
          ];
          // this.targetlist = [
          //   {
          //     id: this.indexform.targetid,
          //     targetname: this.indexform.targetname,
          //   },
          // ];
        });
      }
      gettargetInfolist({ pageSize: 100, pageNum: 1 }).then((res) => {
        this.targetlist = res.rows;
      });
      // 树
      getbaltrickclassify({}).then((res) => {
        this.questionclass = res.rows;
@@ -714,7 +652,8 @@
        this.indexform.isoperation = 2;
        console.log(this.dellist);
        this.indexform.ivrLibaScriptTargetoptionList=this.indexform.ivrLibaScriptTargetoptionList.concat(this.dellist);
        this.indexform.ivrLibaScriptTargetoptionList =
          this.indexform.ivrLibaScriptTargetoptionList.concat(this.dellist);
        compileverbaltrick(this.indexform).then((res) => {
          if (res.code == 200) {
            this.$modal.msgSuccess("修改成功");
@@ -758,12 +697,18 @@
    targetchange(res) {
      console.log(res);
      gettargetInfo({ id: res }).then((res) => {
        this.indexform.targetname = res.rows[0].targetname;
        console.log(res.rows[0]);
        this.$modal
          .confirm('是否添加"' + this.indexform.targetname + '"指标的选项?')
          .confirm('是否添加"' + res.rows[0].targetname + '"指标的选项?')
          .then(() => {
            this.indexform.valueType = res.rows[0].valueType;
            this.indexform.questiontitle = res.rows[0].targetname;
            this.indexform.targetname = res.rows[0].targetname;
            this.indexform.questionText = res.rows[0].targetdesc;
            this.indexform.isAvailable = "0";
            this.indexform.language = "普通话";
            this.indexform.isenable = res.rows[0].isenable;
            console.log(res.rows[0].targetoptionList);
            this.$forceUpdate()
            res.rows[0].targetoptionList.forEach((item) => {
              item.isoperation = 1;
              this.indexform.ivrLibaScriptTargetoptionList.push(item);
@@ -778,11 +723,11 @@
    // 下一步
    nextstep() {
      if (this.Editprogress <= 1) {
        if (this.indexform.targetid) {
        // if (this.indexform.targetid) {
          return this.Editprogress++;
        } else {
          this.$message.warning("请先选择关联指标");
        }
        // } else {
        //   this.$message.warning("请先选择关联指标");
        // }
      } else {
      }
    },
@@ -997,7 +942,7 @@
      inputValueArr = inputValueArr.join("");
      console.log(inputValueArr);
      if (this.currentInputId == "questiontext") {
        this.indexform.questiontext = inputValueArr;
        this.indexform.questionText = inputValueArr;
      } else if (this.currentInputId == "nomatchtext") {
        this.indexform.nomatchtext = inputValueArr;
      } else if (this.currentInputId == "sliencetext") {