From 98461686c04011b39bad794120dfafd8beac7e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Wed, 22 Mar 2023 14:28:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/invRelBusType.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/system/dept/invRelBusType.vue b/src/views/system/dept/invRelBusType.vue index 9ecf1bb..75d2eb2 100644 --- a/src/views/system/dept/invRelBusType.vue +++ b/src/views/system/dept/invRelBusType.vue @@ -110,10 +110,7 @@ export default { invCode: this.inputQuery.code, selectActions: [], }; - var a=JSON.parse(sessionStorage.getItem('direction')) - if(a!="left"){ - postRequesty.selectActions =JSON.parse(sessionStorage.getItem('userObj')); - } + postRequesty.selectActions =JSON.parse(sessionStorage.getItem('value')); updateInvRelBusType(postRequesty).then((res) => { if (res.code == 20000) { this.closeDialog(); @@ -129,8 +126,10 @@ export default { transferChange(value, direction, keyArr) { + sessionStorage.setItem('userObj', JSON.stringify(keyArr)) sessionStorage.setItem('direction', JSON.stringify(direction)) + sessionStorage.setItem('value', JSON.stringify(value)) console.log(value); console.log(direction); console.log(keyArr);