WXL
2025-03-03 ee1d4af7e569a723afc88ab8ac1939cb2667b072
src/components/OptionalForm/index.vue
@@ -68,7 +68,8 @@
              style="width: 100%"
              @selection-change="handleSelectionChange"
            >
              <el-table-column type="selection" width="55"> </el-table-column>
              <el-table-column class="checkall" type="selection" width="55">
              </el-table-column>
              <el-table-column
                prop="icdid"
                label="疾病编号"
@@ -135,7 +136,7 @@
      required: true,
      default: () => [],
    },
    // 5问卷模版、3随访模版、6宣教
    // 5问卷模板、3随访模板、6宣教
    type: {
      type: Number,
      default: () => {
@@ -198,7 +199,6 @@
      getillnesslist(this.patientqueryParams).then((res) => {
        this.donorchargeList = res.rows;
        this.patienttotal = res.total;
        console.log(this.$refs.multipleTable, "22");
        this.Restorecheck();
      });
    },
@@ -209,8 +209,6 @@
      if (this.multipleSelection.length <= selection.length) {
        this.multipleSelection = selection;
      } else {
        console.log(selection, "selection");
        console.log(this.multipleSelection, "this.multipleSelection");
        this.multipleSelection.forEach((item) => {
          if (selection.includes(item)) {
          } else {
@@ -231,11 +229,7 @@
        });
      }
      // 赋值给整体选中数组
      console.log(this.overallCase);
      this.multipleSelection.forEach((item) => {
        console.log(
          this.overallCase.every((obj) => obj.icdname != item.icdname)
        );
        if (this.overallCase.every((obj) => obj.icdname != item.icdname)) {
          this.overallCase.push(item);
@@ -321,6 +315,9 @@
    }
  }
}
::v-deep.el-table .el-table__header th:first-child .el-checkbox {
  display: none;
}
.el-tag + .el-tag {
  margin-left: 10px;
  margin-bottom: 10px;