From a1baf566b166c09cbacb73603090de7b832e0169 Mon Sep 17 00:00:00 2001 From: tx <2622874537@qq.com> Date: Wed, 8 Jan 2025 15:38:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E9=97=B4=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 4 +- src/views/system/device/index.vue | 9 +- src/views/system/equipment/index.vue | 222 ++++------ src/views/system/order/index.vue | 3 +- src/views/system/room/index.vue | 204 +++------ src/views/system/room/room_detail.vue | 578 +++++++++++++++++++++++++- src/views/system/rule/index.vue | 15 +- 7 files changed, 725 insertions(+), 310 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 3d541e1..0fd3640 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -169,7 +169,7 @@ export const dynamicRoutes = [ permissions: ['system:room:list'], children: [ { - path: 'detail/:roomId(\\d+)', + path: 'index/:roomId(\\d+)', component: () => import('@/views/system/room/room_detail'), name: 'RoomDetail', meta: { title: '房间详情', activeMenu: '/system/room' } @@ -239,7 +239,7 @@ export const dynamicRoutes = [ permissions: ['system:equipment:query'], children: [ { - path: 'detail/:equipmentId(\\d+)', + path: 'index/:equipmentId(\\d+)', component: () => import('@/views/system/equipment/equipment_detail'), name: 'EquipmentDetail', meta: { title: '设施详情', activeMenu: '/system/equipment' } diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue index 31cf880..271c24e 100644 --- a/src/views/system/device/index.vue +++ b/src/views/system/device/index.vue @@ -349,7 +349,7 @@ export default { mixins: [$showColumns], dicts: ['as_online_status', 'as_device_status', 'et_device_lock_status'], components: { QrCode }, - + props: { initLng: { type: Number, @@ -363,6 +363,10 @@ export default { type: Number, default: 0 }, + roomId: { + type: Number, + default: 0 + }, }, data() { return { @@ -624,6 +628,9 @@ export default { if(this.storeId && this.storeId != 0){ this.queryParams.storeId = this.storeId; } + if(this.roomId && this.roomId != 0){ + this.queryParams.roomId = this.roomId; + } listDevice(this.queryParams).then(response => { this.deviceList = response.rows; this.total = response.total; diff --git a/src/views/system/equipment/index.vue b/src/views/system/equipment/index.vue index e4bcdff..e48c3ed 100644 --- a/src/views/system/equipment/index.vue +++ b/src/views/system/equipment/index.vue @@ -2,43 +2,29 @@
- + - + - + - - - - - - - - - - + + + + + + + + + + 搜索 重置 @@ -47,82 +33,54 @@ - 新增 + 新增 - 修改 + 修改 - 删除 + 删除 - 导出 + 导出 - +