lkk
2024-12-05 ea640ebc01dba1455d7e2dbece470c3b83a5be38
src/views/sampling/sampling/index.vue
@@ -189,11 +189,6 @@
        </el-table>
      </div>
      <div style="width: 50%">
        <!-- :default-sort="{ prop: 'specimenType', order: 'ascending' }"  :default-sort="{ prop: 'specimenType', order: 'ascending' }"
          @sort-change="handleSortChange"
          :span-method="objectSpanMethod"
          @selection-change="handleChange" ref="tab1"
          :row-class-name="tableRowClassName"-->
        <el-table
          v-loading="loading"
          :data="tableList"
@@ -471,6 +466,7 @@
    this.$nextTick(() => {
      this.$refs.inputName.focus();
    });
    this.selectAllRows();
  },
  computed: {
    disabled() {
@@ -967,6 +963,13 @@
      this.ids = selection.map((item) => item.id);
    },
    selectAllRows() {
      this.$nextTick(() => {
        if (this.$refs.tab1) {
          this.$refs.tab1.toggleAllSelection();
        }
      });
    },
    // 禁选
    // selectEnable(row, rowIndex) {