详情添加权限
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 3m35s

This commit is contained in:
sexygoat
2026-03-07 11:59:16 +08:00
parent e73992d253
commit bd45f7a224
4 changed files with 10 additions and 2553 deletions

View File

@@ -803,12 +803,16 @@
// 跳转到设备详情页面
const goToDeviceSearchDetail = (deviceNo: string) => {
router.push({
path: '/asset-management/device-detail',
query: {
device_no: deviceNo
}
})
if (hasAuth('device:view_detail')) {
router.push({
path: '/asset-management/device-detail',
query: {
device_no: deviceNo
}
})
} else {
ElMessage.warning('您没有查看详情的权限')
}
}
// 查看设备绑定的卡片