| | |
| | | <!-- 表格组件封装 --> |
| | | <template> |
| | | <el-table |
| | | ref="multipleTableson" |
| | | :data="currentList" |
| | | @selection-change="handleSelectionChange" |
| | | :header-cell-style="{ |
| | |
| | | :formatter="formatData" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | label="是否可用" |
| | | align="center" |
| | | key="isavailable" |
| | |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="qyoptions" :value="scope.row.usestate" /> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | v-if="center" |
| | | label="操作" |
| | |
| | | handleSelectionChange(selection) { |
| | | this.$emit("handleSelectionChange", selection); |
| | | }, |
| | | toggleRowSelection(row, selected) { |
| | | this.$refs.multipleTableson.toggleRowSelection(row, selected); |
| | | }, |
| | | clearSelection() { |
| | | // 在这里编写清除选择的逻辑 |
| | | this.$refs.multipleTableson.clearSelection(); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |