|
|
@@ -171,7 +171,7 @@
|
|
|
console.log(this.selectionList);
|
|
|
let ids = this.selectionList.map((item) => item.id);
|
|
|
|
|
|
- let selectIds = [...new Set()];
|
|
|
+ // let selectIds = [...new Set()];
|
|
|
|
|
|
let data = JSON.parse(JSON.stringify(this.selectionList));
|
|
|
this.$emit('success', { data });
|
|
|
@@ -192,25 +192,38 @@
|
|
|
this.$refs.table.reload({ pageNum: 1, where: where });
|
|
|
},
|
|
|
doneHandler() {
|
|
|
+ console.log(this.initIds);
|
|
|
+
|
|
|
// console.log('doneHandler');
|
|
|
// console.log(this.selectIds);
|
|
|
|
|
|
if (this.initIds.length) {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.table.setSelectedRowKeys(this.initIds);
|
|
|
- this.selectIds = this.selectionList.map((item) => item.id);
|
|
|
- // console.log(this.initIds);
|
|
|
- // this.initIds=[]
|
|
|
+ // if()
|
|
|
|
|
|
- // this.initIds = this.initIds.filter(
|
|
|
- // (item) => !this.selectIds.includes(item)
|
|
|
- // );
|
|
|
- // console.log(this.initIds);
|
|
|
+ this.$refs.table.setSelectedRowKeys(this.initIds);
|
|
|
+ this.selectIds = this.selectionList.map((item) => item.id);
|
|
|
+ console.log(this.selectIds);
|
|
|
|
|
|
- // console.log(this.selectIds);
|
|
|
+ let arr = this.initIds.filter(
|
|
|
+ (item) => !this.selectIds.includes(item)
|
|
|
+ );
|
|
|
|
|
|
- // this.selectIds = [];
|
|
|
- });
|
|
|
+ this.initIds = arr;
|
|
|
+ console.log(arr);
|
|
|
+ console.log(this.initIds);
|
|
|
+
|
|
|
+ // log
|
|
|
+ // console.log(this.initIds);
|
|
|
+ // this.initIds=[]
|
|
|
+
|
|
|
+ // this.initIds = this.initIds.filter(
|
|
|
+ // (item) => !this.selectIds.includes(item)
|
|
|
+ // );
|
|
|
+ // console.log(this.initIds);
|
|
|
+
|
|
|
+ // console.log(this.selectIds);
|
|
|
+
|
|
|
+ // this.selectIds = [];
|
|
|
}
|
|
|
},
|
|
|
cancel() {
|