From 11cc09a93cee7ce8d5b456b28f9ef26e7b955cc3 Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Thu, 1 Sep 2022 10:45:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=91=84=E5=83=8F=E5=A4=B4=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/storeManage/deviceManage/device.js | 10 +++++++++- src/views/storeManage/warehouse3DConfig/index.vue | 11 ++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/api/storeManage/deviceManage/device.js b/src/api/storeManage/deviceManage/device.js index c2d241b..41eb87b 100644 --- a/src/api/storeManage/deviceManage/device.js +++ b/src/api/storeManage/deviceManage/device.js @@ -100,4 +100,12 @@ export function FetchInBorrowByQuCol(params) { }) } -export default { add, edit, del, getSupplier, getDeviceType, getDeviceById, getDesecabinetById, getRotarycabinetById, getDeviceList, FetchInBorrowByQuCol } +export function unbind(data) { + return request({ + url: 'api/displayconfig/unbind', + method: 'post', + data + }) +} + +export default { add, edit, del, getSupplier, getDeviceType, getDeviceById, getDesecabinetById, getRotarycabinetById, getDeviceList, FetchInBorrowByQuCol, unbind } diff --git a/src/views/storeManage/warehouse3DConfig/index.vue b/src/views/storeManage/warehouse3DConfig/index.vue index c4a5c3c..b8d7022 100644 --- a/src/views/storeManage/warehouse3DConfig/index.vue +++ b/src/views/storeManage/warehouse3DConfig/index.vue @@ -7,7 +7,8 @@
- 绑定参数 + 绑定参数 + 解除绑定
@@ -223,6 +224,11 @@ export default { }) } }, + handleUnbind() { + crudDevice.unbind({ id: this.selections[0].id }).then((data) => { + this.getDisplayConfigList() + }) + }, clickRowHandler(row) { this.$refs.table.clearSelection() this.$refs.table.toggleRowSelection(row) // 单选选中 @@ -240,6 +246,9 @@ export default { this.form.deviceSpecParams = [] this.form.deviceSpecParams.push(paramValue.self) } + if (this.form.deviceSpecParams === '') { + this.form.deviceSpecParams = [] + } } displayConfigApi.bind(this.form).then(() => { this.$message.success('绑定成功 ')