From 34d6a676eab5c526db9f0ffb997bd453cb543ecc Mon Sep 17 00:00:00 2001 From: kerwincui <164770707@qq.com> Date: Sun, 22 May 2022 01:33:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=AE=9A=E4=BD=8D=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/iot/device/device-edit.vue | 31 ++++++++----------- vue/src/views/iot/device/device-statistic.vue | 15 ++++++--- vue/src/views/iot/device/index.vue | 7 +++-- 3 files changed, 27 insertions(+), 26 deletions(-) diff --git a/vue/src/views/iot/device/device-edit.vue b/vue/src/views/iot/device/device-edit.vue index 5e89845f..4bad2421 100644 --- a/vue/src/views/iot/device/device-edit.vue +++ b/vue/src/views/iot/device/device-edit.vue @@ -43,27 +43,23 @@ - - - - + + + + - + 坐标拾取 - + 坐标拾取 - + @@ -108,12 +104,10 @@ - - + 设备用户 - 设备日志 @@ -164,7 +158,7 @@ import { export default { name: "DeviceEdit", - dicts: ['iot_device_status'], + dicts: ['iot_device_status','iot_location_way'], components: { deviceLog, deviceUser, @@ -199,6 +193,7 @@ export default { form: { productId: 0, status: 1, + isCustomLocation: 1, }, // 图片地址 imageUrl: require('@/assets/images/product.jpg'), @@ -239,11 +234,11 @@ export default { }, methods: { /** 数据同步*/ - dataSynchronization(){ + dataSynchronization() { getDevice(this.form.deviceId).then(response => { this.form = response.data; // 选项卡切换 - this.activeName='runningStatus'; + this.activeName = 'runningStatus'; // 禁用状态 if (this.form.status == 2) { this.deviceStatus = 1; @@ -315,7 +310,7 @@ export default { updateBy: null, updateTime: null, remark: null, - isCustomLocation: 0, + isCustomLocation: 1, }; this.deviceStatus = 0; this.resetForm("form"); diff --git a/vue/src/views/iot/device/device-statistic.vue b/vue/src/views/iot/device/device-statistic.vue index 0473911d..46891543 100644 --- a/vue/src/views/iot/device/device-statistic.vue +++ b/vue/src/views/iot/device/device-statistic.vue @@ -1,6 +1,6 @@