|  |  | 
 |  |  |         }, | 
 |  |  |         sorts: null | 
 |  |  |       }).then(res => { | 
 |  |  |         // console.log('res', res) | 
 |  |  |         this.pagination.total = res.total | 
 |  |  |         this.pagination.pageSize = res.capacity | 
 |  |  |         this.pagination.pageIndex = res.page | 
 |  |  |         this.tempMaterials = res.records | 
 |  |  |         this.isSelectMaterial = true | 
 |  |  |         // console.log('getTempMaterails', this.selectedAllMaterails) | 
 |  |  |         if (this.selectedAllMaterails[this.pagination.pageIndex]) { | 
 |  |  |           // debugger | 
 |  |  |           for (const item of this.selectedAllMaterails[this.pagination.pageIndex]) { | 
 |  |  |              | 
 |  |  |             this.$nextTick(() => { | 
 |  |  |               this.tempMaterials.forEach(tempItem => { | 
 |  |  |                 if (tempItem.id === item.id) { | 
 |  |  |                   console.log(tempItem.mmodelUnionName); | 
 |  |  |                   this.$refs.materials.toggleRowSelection(tempItem, true) | 
 |  |  |                 } | 
 |  |  |               }) | 
 |  |  |             }) | 
 |  |  |           } | 
 |  |  |         } | 
 |  |  |       }).catch(err => { | 
 |  |  |         this.$tip.error(err) | 
 |  |  |       }) | 
 |  |  | 
 |  |  |       this.getTempMaterails() | 
 |  |  |     }, | 
 |  |  |     handleSelectionChange (selectedRows) { | 
 |  |  |       // console.log(selectedRows) | 
 |  |  |       console.log(selectedRows) | 
 |  |  |       this.selectedAllMaterails[this.pagination.pageIndex] = selectedRows | 
 |  |  |       console.log(this.selectedAllMaterails); | 
 |  |  |     }, | 
 |  |  |     selectData () { | 
 |  |  |       // console.log(this.selectedAllMaterails) |