房间详情

This commit is contained in:
tx 2025-01-07 18:00:36 +08:00
parent 3ac1a965ff
commit a6799f09f8
2 changed files with 19 additions and 1 deletions

View File

@ -162,6 +162,20 @@ export const dynamicRoutes = [
}
]
},
{
path: '/system/roomDetail',
component: Layout,
hidden: true,
permissions: ['system:room:list'],
children: [
{
path: 'detail/:roomId(\\d+)',
component: () => import('@/views/system/room/room_detail'),
name: 'RoomDetail',
meta: { title: '房间详情', activeMenu: '/system/room' }
}
]
},
{
path: '/system/device/sn',
component: Layout,
@ -245,7 +259,8 @@ export const dynamicRoutes = [
meta: { title: '用户详情', activeMenu: '/user/user' }
}
]
}
},
]
// 防止连续点击多次路由报错

View File

@ -109,6 +109,9 @@
<template v-if="column.key === 'roomId'">
{{d.row[column.key]}}
</template>
<template v-else-if="column.key === 'roomName'">
<router-link :to="`/system/room/detail/${d.row[column.key]}`">{{d.row[column.key]}}</router-link>
</template>
<template v-else-if="column.key === 'type'">
<dict-tag :options="dict.type.ss_room_type" :value="d.row[column.key]"/>
</template>