update Table

update Table
This commit is contained in:
梁灏 2016-11-26 10:50:24 +08:00
parent 7f34c51030
commit 3d9e4f2065
2 changed files with 33 additions and 12 deletions

View file

@ -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();
// }
}
}
}