qx
qx
9 天以前 91ec24b5e11ee9294f4061853b93b97508804023
src/views/sampling/sampling/index.vue
@@ -82,7 +82,7 @@
    <div style="width: 100%; margin-left: 10px; display: flex">
      <div style="width: 40%; margin-right: 20px">
        <el-table id="ta" v-loading="loading1" ref="tb" :data="samplingList" @selection-change="handleSelectionChange"
          border height="520px" :row-class-name="tableRowClassName">
          @current-change="handleCurrentChangess" border height="520px" :row-class-name="tableRowClassName">
          <el-table-column type="selection" width="40" align="center" :selectable="selectable" />
          <el-table-column label="体检号" align="center" prop="tjNumber" width="160px" />
          <el-table-column label="姓名" align="center" prop="cusName" width="80px" />
@@ -630,6 +630,12 @@
      }
      this.handleQuery(); // 重新查询
    },
    handleCurrentChangess(val) {
      if (val != null) {
          this.$refs.tb.toggleRowSelection(val, true);
        this.handleSelectionChange(val);
      }
    },
    handleSelectionChange(selection) {
      this.piliangList = selection;