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);