From 9f8ee351edcec6db63b0f3e60e6525dbdd7bb94f Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Tue, 28 Nov 2023 10:32:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9B=BE=E7=89=87=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/air_monitor/index.vue | 2 +- admin/src/views/land/index.vue | 2 +- admin/src/views/land_plant/index.vue | 2 +- admin/src/views/land_plant_action/index.vue | 2 +- admin/src/views/monitor_alarm/index.vue | 2 +- admin/src/views/product/index.vue | 2 +- admin/src/views/soil_monitor/index.vue | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/admin/src/views/air_monitor/index.vue b/admin/src/views/air_monitor/index.vue index 9fb138b1..08e4a497 100644 --- a/admin/src/views/air_monitor/index.vue +++ b/admin/src/views/air_monitor/index.vue @@ -84,7 +84,7 @@ const editRef = shallowRef>() const showEdit = ref(false) var device_id = query.device_id -if (typeof(device_id) == 'undefined') { +if (typeof device_id == 'undefined') { device_id = '' } // 查询条件 diff --git a/admin/src/views/land/index.vue b/admin/src/views/land/index.vue index 90b71364..b1743d98 100644 --- a/admin/src/views/land/index.vue +++ b/admin/src/views/land/index.vue @@ -131,7 +131,7 @@ const editRef = shallowRef>() const showEdit = ref(false) let user_id = query.user_id -if (typeof(user_id) == 'undefined') { +if (typeof user_id == 'undefined') { user_id = '' } diff --git a/admin/src/views/land_plant/index.vue b/admin/src/views/land_plant/index.vue index a1ffedb7..9eb893f0 100644 --- a/admin/src/views/land_plant/index.vue +++ b/admin/src/views/land_plant/index.vue @@ -158,7 +158,7 @@ const editRef = shallowRef>() const showEdit = ref(false) let land_id = query.land_id -if (typeof(land_id) == 'undefined') { +if (typeof land_id == 'undefined') { land_id = '' } diff --git a/admin/src/views/land_plant_action/index.vue b/admin/src/views/land_plant_action/index.vue index 7596a3d5..c22586ee 100644 --- a/admin/src/views/land_plant_action/index.vue +++ b/admin/src/views/land_plant_action/index.vue @@ -108,7 +108,7 @@ const editRef = shallowRef>() const showEdit = ref(false) let plant_id = query.plant_id -if (typeof(plant_id) == 'undefined') { +if (typeof plant_id == 'undefined') { plant_id = '' } diff --git a/admin/src/views/monitor_alarm/index.vue b/admin/src/views/monitor_alarm/index.vue index 197053e8..64e4ac61 100644 --- a/admin/src/views/monitor_alarm/index.vue +++ b/admin/src/views/monitor_alarm/index.vue @@ -103,7 +103,7 @@ if (typeof device_id == 'undefined') { } // 查询条件 -const queryParams = reactive({ +const queryParams = reactive({ device_id: device_id, type: '', start_time: '', diff --git a/admin/src/views/product/index.vue b/admin/src/views/product/index.vue index e2d27dee..f0e97261 100644 --- a/admin/src/views/product/index.vue +++ b/admin/src/views/product/index.vue @@ -128,7 +128,7 @@ const editRef = shallowRef>() const showEdit = ref(false) let land_id = query.land_id -if (typeof(land_id) == 'undefined') { +if (typeof land_id == 'undefined') { land_id = '' } // 查询条件 diff --git a/admin/src/views/soil_monitor/index.vue b/admin/src/views/soil_monitor/index.vue index aa1e6ec9..fbc5224f 100644 --- a/admin/src/views/soil_monitor/index.vue +++ b/admin/src/views/soil_monitor/index.vue @@ -88,8 +88,8 @@ const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) -var device_id = query.device_id -if (typeof(device_id) == 'undefined') { +let device_id = query.device_id +if (typeof device_id == 'undefined') { device_id = '' }