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 = '' }