From 01b516a3c3304c966d413b768d2e3078bf83b61c Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期三, 22 六月 2022 13:38:20 +0800 Subject: [PATCH] 联动场景传参 --- src/views/equipmentManagement/equipmentDetail/components/UnbindBox.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/equipmentManagement/equipmentDetail/components/UnbindBox.vue b/src/views/equipmentManagement/equipmentDetail/components/UnbindBox.vue index ea90873..79ed391 100644 --- a/src/views/equipmentManagement/equipmentDetail/components/UnbindBox.vue +++ b/src/views/equipmentManagement/equipmentDetail/components/UnbindBox.vue @@ -33,9 +33,10 @@ let res = {}; try { res = await unbind({ - ids: [this.id], + id: this.id, password: this.password, username: JSON.parse(sessionStorage.getItem("userInfo")).username, + userId: JSON.parse(sessionStorage.getItem("userInfo")).id, }); } catch (err) { this.$notify({ @@ -52,7 +53,7 @@ duration: 2500, offset: 57, }); - this.$emit("close"); + this.$emit("reflash"); } else { this.$notify({ type: "error", -- Gitblit v1.8.0