|
@@ -97,7 +97,13 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleSelectionChange(val) {
|
|
|
- this.selected = this.selected.concat(val)
|
|
|
+ this.selected = []
|
|
|
+ this.dataList.forEach(i => {
|
|
|
+ i.children.forEach(row => {
|
|
|
+ this.selected = this.selected.concat(this.$refs[`table${i.id}`].selection)
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
let obj = {}
|
|
|
let peon = this.selected.reduce((cur, next) => {
|
|
|
obj[next.id] ? '' : (obj[next.id] = true && cur.push(next))
|