|
@@ -63,7 +63,7 @@
|
|
|
:data="tableList"
|
|
|
ref="multipleSelection"
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
+ @select-all="handleSelectionChange"
|
|
|
@select="onTableSelect"
|
|
|
>
|
|
|
<el-table-column type="selection" width="55" />
|
|
@@ -166,7 +166,7 @@ export default {
|
|
|
this.$refs.searchForm.resetFields();
|
|
|
this.search();
|
|
|
},
|
|
|
- onTableSelect(arr) {
|
|
|
+ onFormatSelectData(arr) {
|
|
|
try {
|
|
|
let currentPageList = [];
|
|
|
const otherPageList = [];
|
|
@@ -198,8 +198,13 @@ export default {
|
|
|
].sort((a, b) => a.id - b.id);
|
|
|
} catch (e) {}
|
|
|
},
|
|
|
+ onTableSelect(arr) {
|
|
|
+ // console.log(arr, "onTableSelect");
|
|
|
+ this.onFormatSelectData(arr);
|
|
|
+ },
|
|
|
handleSelectionChange(arr) {
|
|
|
- // console.log(val, 'val')
|
|
|
+ // console.log(arr, "val");
|
|
|
+ this.onFormatSelectData(arr);
|
|
|
},
|
|
|
async getList() {
|
|
|
//
|