update Table
update Table
This commit is contained in:
parent
7f34c51030
commit
3d9e4f2065
2 changed files with 33 additions and 12 deletions
|
@ -48,16 +48,17 @@
|
|||
},
|
||||
selectAll () {
|
||||
const status = !this.isSelectAll;
|
||||
this.$parent.selectAll(status);
|
||||
|
||||
let tmpData = deepCopy(this.cloneData);
|
||||
tmpData.forEach((data) => {
|
||||
data._isChecked = status;
|
||||
});
|
||||
this.cloneData = tmpData;
|
||||
|
||||
if (status) {
|
||||
this.$parent.selectAll();
|
||||
}
|
||||
// let tmpData = deepCopy(this.cloneData);
|
||||
// tmpData.forEach((data) => {
|
||||
// data._isChecked = status;
|
||||
// });
|
||||
// this.cloneData = tmpData;
|
||||
//
|
||||
// if (status) {
|
||||
// this.$parent.selectAll();
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue