From 2889e27a027f72c13ec7e88f70715f73af9a6cd5 Mon Sep 17 00:00:00 2001 From: home <2468489804@qq.com> Date: Sat, 20 Aug 2022 23:23:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E8=8A=82=E7=82=B9=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E6=9B=B4=E6=96=B0=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E3=80=81=E5=88=A0=E9=99=A4=E3=80=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=90=8E=E9=9C=80=E8=A6=81=E7=82=B9=E5=87=BB=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=86=8D=E6=9B=B4=E6=96=B0=E8=87=B3HslServer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edgeServer/edgeServerConfigure/device.vue | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/views/edgeServer/edgeServerConfigure/device.vue b/src/views/edgeServer/edgeServerConfigure/device.vue index e178c8f..24d2479 100644 --- a/src/views/edgeServer/edgeServerConfigure/device.vue +++ b/src/views/edgeServer/edgeServerConfigure/device.vue @@ -120,11 +120,6 @@ export default { value: 'float', label: 'float (浮点数)' }, - { - value: 'short', - label: 'short' - }, - { value: 'bool', label: 'bool (逻辑值)' @@ -316,7 +311,6 @@ export default { }, handleCellDataChange ({ rowIndex, row }) { this.devicePointData[rowIndex] = row - this.setDeviceConfigure() }, bandingNodeTemplate ({ index }) { this.$refs.d2Crud.showDialog({ @@ -480,20 +474,18 @@ export default { message: '数据类型为string,长度不能为空', type: 'error' }) + this.formOptions.saveLoading = false return false } + assign(row, {id:this.devicePointData.length + 1, showBindButton:true, showCopyButton:true, showRemoveButton:true, showSendButton:true, }) this.devicePointData.push(row) - await this.setDeviceConfigure() - await this.getDevice() done() } this.formOptions.saveLoading = false }, async delDevicePoint ({ index, row }, done) { - this.devicePointData.splice(index, 1) - this.$refs.deviceConfigure.deviceConfigureModelValue.RequestNode = this.devicePointData - await this.setDeviceConfigure() + this.$delete(this.devicePointData, index) done() }, async getDevicePoint () { @@ -505,8 +497,7 @@ export default { } }, async devicePointBandingNode ({ index, row }, done) { - this.devicePointData[index]['@Binding'] = row.nodeCode - this.setDeviceConfigure() + this.$set(this.devicePointData[index], '@Binding', row.nodeCode) done() }, async setDeviceConfigure () {