WXL
2024-10-12 cdba63e2223fa4b145644879906259b783b174ab
测试完成
已修改2个文件
43 ■■■■ 文件已修改
src/views/patient/propaganda/QuestionnaireTask.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/templateku/configurat/index.vue 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -1423,9 +1423,9 @@
        if (res.code == 200) {
          this.objyl = res.data;
          if (this.objyl.taskid == data.taskId) {
          this.objyl.isoperation = 1;
          }else{
          this.objyl.isoperation = 2;
          }else{
          this.objyl.isoperation = 1;
          }
          this.objyl.taskid = data.taskId;
          TaskQuestioncomit(this.objyl).then((response) => {
src/views/repositoryai/templateku/configurat/index.vue
@@ -269,7 +269,7 @@
                    class="ruleFormaa"
                    v-for="item in flatArray"
                    :key="item.deptCode"
                    :label="item.deptName"
                    :label="item.label"
                    :value="item.deptCode"
                  >
                  </el-option>
@@ -291,9 +291,9 @@
                  <el-option
                    class="ruleFormaa"
                    v-for="item in flatArray"
                    :key="item.districtCode"
                    :label="item.districtName"
                    :value="item.districtCode"
                    :key="item.deptCode"
                    :label="item.label"
                    :value="item.deptCode"
                  >
                  </el-option>
                </el-select> </el-form-item
@@ -869,6 +869,8 @@
    <!-- 添加题目弹窗 -->
    <el-drawer
      title="添加题目"
      @close="$forceUpdate()"
      @closed="$forceUpdate()"
      :visible.sync="drawer"
      custom-class="demo-drawer"
      size="50%"
@@ -1464,7 +1466,8 @@
        { variatename: "电话", variate: "${phone}", default: 1 },
        { variatename: "病情", variate: "${illness}", default: 1 },
      ],
      deptList: [],
      deptlist: [],
      hosplist: [],
      flatArray:[],
      props: { multiple: true, value: "deptId", label: "deptName" },
@@ -1481,6 +1484,7 @@
      // 题目表格数据
      userList: [],
      belongWards: [],
      belongDepts: [],
      belongDepts: [],
      // 查询参数
      queryParams: {
@@ -1563,7 +1567,6 @@
      deptTreeSelect().then((response) => {
        this.deptOptions = response.data;
        this.flatArray = this.flattenArray(response.data);
        console.log(this.flatArray,'扩展数据');
      });
    },
    flattenArray(multiArray) {
@@ -1629,9 +1632,7 @@
        this.tempDetpRelevanceslist = [];
      }
      listDept(this.queryParams).then((response) => {
        this.deptList = this.handleTree(response.data, "deptId");
      });
    },
    // 附属数据表
    auxiliary() {
@@ -1641,24 +1642,28 @@
      });
      this.tempDetpRelevanceslist = [];
      this.tempbelongWards = [];
      depthospgetsonlist(this.queryParamsdept).then((res) => {
        if (res.code == 200) {
          let arr = res.rows;
          console.log(arr,'arr');
          arr.forEach((item) => {
            if (item.deptType == 1) {
              console.log(this.deptlist,'11');
              this.deptlist.push(item);
              console.log('22');
              this.tempDetpRelevanceslist.push(item.deptCode);
            } else if (item.deptType == 2) {
              this.hosplist.push(item);
              this.tempbelongWards.push(item.deptCode);
              console.log('33');
            }
          });
        }
      });
      // 科室
      listDept(this.queryParams).then((response) => {
        this.deptList = this.handleTree(response.data, "deptId");
      });
      // 疾病
      getillnesslist({
        pageNum: 1,
@@ -1750,9 +1755,7 @@
    Departmenttreatment() {
      this.$modal.loading("正在修正保存数据,请稍候...");
      this.tempDetpRelevanceslist.forEach((item) => {
        console.log(item);
        let result = this.deptlist.some((obj) => obj.deptCode == item);
        console.log(this.result, "result");
        if (!result) {
          this.tempDetpRelevanceslistform.push({
@@ -1872,13 +1875,10 @@
        tagcategoryid: "0",
      };
      listtag(tagqueryParams).then((response) => {
        console.log(response);
        this.optionstag = response.rows;
      });
    },
    handleClosetag(tag) {
      console.log(tag);
      console.log(this.dynamicTags.indexOf(tag));
      const lindex = this.dynamicTags.indexOf(tag);
      this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
      this.ruleForm.ivrLibaTemplateTagList[lindex].isoperation = 3;
@@ -1965,7 +1965,6 @@
        });
        this.ruleForm.ivrLibaTemplateScriptVOList.push(res.data);
        this.sortFn();
        this.$forceUpdate();
        this.$modal.msgSuccess("添加成功");
      });
    },
@@ -2045,6 +2044,8 @@
          });
        }
      });
      this.$forceUpdate();
      console.log(this.ruleForm.ivrLibaTemplateScriptVOList);
    },
    // -----------------------话术选项