|
|
@@ -952,19 +952,19 @@ export default {
|
|
|
this.$set(dataRow, 'list', finalList);
|
|
|
this.$set(dataRow, 'radioBun', radioBun);
|
|
|
this.$set(dataRow, 'selection', []);
|
|
|
- let tab = `tableRef${[dataRow.index]}`;
|
|
|
- this.$refs[tab][0].setSelectedRowKeys([]);
|
|
|
- // this.$nextTick(() => {
|
|
|
- // const tab = `tableRef${dataRow.index}`;
|
|
|
- // const tableRefs = this.$refs[tab];
|
|
|
+ // let tab = `tableRef${[dataRow.index]}`;
|
|
|
+ // this.$refs[tab][0].setSelectedRowKeys([]);
|
|
|
+ this.$nextTick(() => {
|
|
|
+ const tab = `tableRef${dataRow.index}`;
|
|
|
+ const tableRefs = this.$refs[tab];
|
|
|
|
|
|
- // if (!tableRefs || !tableRefs[0]) {
|
|
|
- // console.warn(`table ref ${tab} not ready`);
|
|
|
- // return;
|
|
|
- // }
|
|
|
+ if (!tableRefs || !tableRefs[0]) {
|
|
|
+ console.warn(`table ref ${tab} not ready`);
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
- // tableRefs[0].setSelectedRowKeys([]);
|
|
|
- // });
|
|
|
+ tableRefs[0].setSelectedRowKeys([]);
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
mergeNewRows(oldList, newList) {
|