diff --git a/src/locales/langs/zh.json b/src/locales/langs/zh.json index 5a319c0..65729be 100644 --- a/src/locales/langs/zh.json +++ b/src/locales/langs/zh.json @@ -424,10 +424,6 @@ "enterpriseCards": "企业卡管理", "customerCommission": "客户账号佣金" }, - "deviceManagement": { - "title": "设备管理", - "devices": "设备管理" - }, "product": { "title": "商品管理", "simCard": "号卡管理", diff --git a/src/views/asset-management/device-list/index.vue b/src/views/asset-management/device-list/index.vue index a052fea..0a24635 100644 --- a/src/views/asset-management/device-list/index.vue +++ b/src/views/asset-management/device-list/index.vue @@ -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('您没有查看详情的权限') + } } // 查看设备绑定的卡片 diff --git a/src/views/device-management/devices/detail.vue b/src/views/device-management/devices/detail.vue deleted file mode 100644 index eaa0088..0000000 --- a/src/views/device-management/devices/detail.vue +++ /dev/null @@ -1,495 +0,0 @@ - - - - - diff --git a/src/views/device-management/devices/index.vue b/src/views/device-management/devices/index.vue deleted file mode 100644 index f6f69d4..0000000 --- a/src/views/device-management/devices/index.vue +++ /dev/null @@ -1,2048 +0,0 @@ - - - - -