WXL
3 天以前 fe70ca5799b3b36a6d567464b545782728b2afed
src/views/knowledge/questionnaire/compilequer/index.vue
@@ -247,7 +247,7 @@
            </el-select>
          </el-form-item>
          <el-row>
          <!-- <el-row>
            <el-col :span="20"
              ><el-form-item label="适用科室" prop="region">
                <el-select
@@ -292,7 +292,7 @@
                  </el-option>
                </el-select> </el-form-item
            ></el-col>
          </el-row>
          </el-row> -->
          <el-form-item label="结束语" prop="conclusion">
            <el-input
              style="width: 55vw; line-height: 80px"
@@ -604,7 +604,7 @@
                    class="topicxq"
                    v-for="item in topicobj.svyLibTemplateTargetoptions"
                  >
                    <el-row :gutter="5">
                    <el-row :gutter="10">
                      <el-col :span="12"
                        ><el-form-item label="选项名称">
                          <el-input
@@ -659,6 +659,16 @@
                        </el-radio-group>
                      </el-form-item>
                    </el-row>
                    <el-row :gutter="10" v-if="topicobj.reservation == 2">
                      <el-form-item label="可预约数">
                        <el-input
                          type="number"
                          placeholder="请输入数字"
                          v-model="item.person"
                        >
                        </el-input>
                      </el-form-item>
                    </el-row>
                    <el-row :gutter="10" v-if="topicobj.branchFlag == 1">
                      <el-col :span="20"
                        ><el-form-item label="下题跳转(序号)">
@@ -691,7 +701,9 @@
                            <el-image
                              style="width: 100px; height: 100px"
                              :src="item.picturePath"
                              :preview-src-list="[...item.picturePath]"
                              :preview-src-list="
                                item.picturePath ? [item.picturePath] : []
                              "
                            >
                            </el-image>
                          </div>
@@ -1396,7 +1408,6 @@
      valuetype: [],
      qremark: [],
      hosplist: [],
      deptlist: [],
      usable: [
        { value: "0", label: "可用" },
        { value: "1", label: "停用" },
@@ -1539,22 +1550,22 @@
      });
      this.tempDetpRelevanceslist = [];
      this.tempbelongWards = [];
      if (this.queryParamsdept.tempid) {
        depthospgetsonlist(this.queryParamsdept).then((res) => {
          if (res.code == 200) {
            let arr = res.rows;
            arr.forEach((item) => {
              if (item.deptType == 1) {
                this.deptlist.push(item);
                this.tempDetpRelevanceslist.push(item.deptCode);
              } else if (item.deptType == 2) {
                this.hosplist.push(item);
                this.tempbelongWards.push(item.deptCode);
              }
            });
          }
        });
      }
      // if (this.queryParamsdept.tempid) {
      //   depthospgetsonlist(this.queryParamsdept).then((res) => {
      //     if (res.code == 200) {
      //       let arr = res.rows;
      //       arr.forEach((item) => {
      //         if (item.deptType == 1) {
      //           this.deptlist.push(item);
      //           this.tempDetpRelevanceslist.push(item.deptCode);
      //         } else if (item.deptType == 2) {
      //           this.hosplist.push(item);
      //           this.tempbelongWards.push(item.deptCode);
      //         }
      //       });
      //     }
      //   });
      // }
    },
    // 获取科室树
    getDeptTree() {
@@ -1676,22 +1687,23 @@
      let result = this.deptlist
        .filter((item) => item.deptCode == row)
        .map((item) => item.id);
      console.log(result.length);
      if (result.length) {
        depthospgetsondel(result).then((res) => {
          if (res.code) {
          if (res.code == 200) {
            this.$modal.msgSuccess("删除科室成功");
          }
        });
      }
    },
    // 删除删除触发
    // 删除病区触发
    removehpsp(row) {
      let result = this.hosplist
        .filter((item) => item.deptCode == row)
        .map((item) => item.id);
      if (result.length) {
        depthospgetsondel(result).then((res) => {
          if (res.code) {
          if (res.code == 200) {
            this.$modal.msgSuccess("删除病区成功");
          }
        });
      }