From 6c2d51a68d4dc59415d92fb8f60a16726d62951f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 18 八月 2023 21:59:21 +0800
Subject: [PATCH] 修复bug
---
web_standard/src/components/ext/OperaWOutboundExtWindow.vue | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/web_standard/src/components/ext/OperaWOutboundExtWindow.vue b/web_standard/src/components/ext/OperaWOutboundExtWindow.vue
index 226e9a0..6fcd9d4 100644
--- a/web_standard/src/components/ext/OperaWOutboundExtWindow.vue
+++ b/web_standard/src/components/ext/OperaWOutboundExtWindow.vue
@@ -460,12 +460,26 @@
},
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)
})
@@ -475,8 +489,9 @@
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)
--
Gitblit v1.9.3