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 @@ - 新增 + 新增 - 修改 + 修改 - 删除 + 删除 - 导出 + 导出 - +