- <el-table-column
- prop="Flag"
- show-overflow-tooltip
- width="100"
- align="center"
- type="selection"
- :reserve-selection="true"
- :selectable="checkSelectable"
- >
- </el-table-column>
设置 :reserve-selection="true"
:selectable="checkSelectable"
-
-
- ref="multipleTable"
- :data="tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
- tooltip-effect="dark"
- style="width: 100%"
- @selection-change="handleSelection"
- :row-key="rowKey"
- :header-cell-class-name="cellclass"
- >
el-table中设置 :row-key="rowKey"
- rowKey(row) {
- return row.id;
- },
-
- checkSelectable(row) {
- if (row.Flag == false) {
-
- return false;
- } else {
- return true;
- }
- },