|
@@ -91,7 +91,10 @@ export default {
|
|
|
this.dataList.forEach(i => {
|
|
|
i.children.forEach(row => {
|
|
|
if (!row.isSatisfy) {
|
|
|
- this.$refs[`table${i.id}`].toggleRowSelection(row)
|
|
|
+ if(this.$refs[`table${i.id}`]){
|
|
|
+ this.$refs[`table${i.id}`].toggleRowSelection(row, true)
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
})
|
|
@@ -100,7 +103,10 @@ export default {
|
|
|
this.selected = []
|
|
|
this.dataList.forEach(i => {
|
|
|
i.children.forEach(row => {
|
|
|
- this.selected = this.selected.concat(this.$refs[`table${i.id}`].selection)
|
|
|
+ if(this.$refs[`table${i.id}`]){
|
|
|
+ this.selected = this.selected.concat(this.$refs[`table${i.id}`].selection)
|
|
|
+ }
|
|
|
+ //this.selected = this.selected.concat(this.$refs[`table${i.id}`].selection)
|
|
|
})
|
|
|
})
|
|
|
|