From 32b653727f3a3567b766e19316ae134e2372aacd Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Mon, 5 Sep 2022 08:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A7=A3=E9=99=A4=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E5=AF=B9=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../storeManage/warehouse3DConfig/index.vue | 33 ++++++++++++++----- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/src/views/storeManage/warehouse3DConfig/index.vue b/src/views/storeManage/warehouse3DConfig/index.vue index 9caa35b..9ef032a 100644 --- a/src/views/storeManage/warehouse3DConfig/index.vue +++ b/src/views/storeManage/warehouse3DConfig/index.vue @@ -8,7 +8,7 @@
绑定参数 - 解除绑定 + 解除绑定
@@ -79,6 +79,18 @@
+ + + +
+
+

确定解除当前显示位置绑定设备吗?

+
+ +
+
@@ -119,7 +131,8 @@ export default { { required: true, validator: checkDeviceInfo, trigger: 'change' } ] }, - isMultiple: false + isMultiple: false, + unbindVisible: false } }, watch: { @@ -224,8 +237,17 @@ export default { }) } }, + unbind() { + this.unbindVisible = true + }, handleUnbind() { crudDevice.unbind({ id: this.selections[0].id }).then((data) => { + this.unbindVisible = false + this.$message({ + message: '解除绑定成功', + type: 'success', + duration: 2500 + }) this.getDisplayConfigList() }) }, @@ -304,13 +326,6 @@ export default { this.$set(this.form.deviceInfo, 'id', '') } } - // beforeClose(done) { - // this.$set(this.form, 'deviceSpecParams', '') - // this.$set(this.form, 'divPosition', '') - // this.$set(this.form, 'isDisplay', false) - // this.$set(this.form.deviceInfo, 'id', '') - // done() - // } } }