From 7b3ded1d2b98d920eb19394e17d4bb06c4e808c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Tue, 12 Oct 2021 22:44:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=95=86=E5=93=81=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=9A=84=E6=97=B6=E5=80=99=E4=BB=93=E5=BA=93=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecgbiz/modal/JSelectMaterialModal.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue b/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue index 0c1e53c7..959c89a3 100644 --- a/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue +++ b/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue @@ -178,11 +178,6 @@ } }, async loadData(arg) { - if(this.rows) { - if(JSON.parse(this.rows).depotId){ - this.queryParam.depotId = JSON.parse(this.rows).depotId-0 - } - } if (arg === 1) { this.ipagination.current = 1; } @@ -285,9 +280,17 @@ getAction('/depot/findDepotByCurrentUser').then((res) => { if(res.code === 200){ that.depotList = res.data + this.initDepotSelect() } }) }, + initDepotSelect() { + if(this.rows) { + if(JSON.parse(this.rows).depotId){ + this.queryParam.depotId = JSON.parse(this.rows).depotId-0 + } + } + }, onSelectChange(selectedRowKeys, selectionRows) { this.selectedRowKeys = selectedRowKeys; this.selectionRows = selectionRows;