房间详情
This commit is contained in:
parent
3ac1a965ff
commit
a6799f09f8
|
@ -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',
|
path: '/system/device/sn',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
@ -245,7 +259,8 @@ export const dynamicRoutes = [
|
||||||
meta: { title: '用户详情', activeMenu: '/user/user' }
|
meta: { title: '用户详情', activeMenu: '/user/user' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
// 防止连续点击多次路由报错
|
// 防止连续点击多次路由报错
|
||||||
|
|
|
@ -109,6 +109,9 @@
|
||||||
<template v-if="column.key === 'roomId'">
|
<template v-if="column.key === 'roomId'">
|
||||||
{{d.row[column.key]}}
|
{{d.row[column.key]}}
|
||||||
</template>
|
</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'">
|
<template v-else-if="column.key === 'type'">
|
||||||
<dict-tag :options="dict.type.ss_room_type" :value="d.row[column.key]"/>
|
<dict-tag :options="dict.type.ss_room_type" :value="d.row[column.key]"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user