From e7e2d52dff811dae59fcc90b72ecc2c70b37191c Mon Sep 17 00:00:00 2001 From: lushihan <2813036942@qq.com> Date: Thu, 6 Jun 2024 14:37:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=85=A7=E6=98=8E=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/router/equipmentControl.ts | 29 +++++++++++++++++++ .../src/router/organizationManage.ts | 20 +------------ .../lightingManage/index.vue | 0 3 files changed, 30 insertions(+), 19 deletions(-) create mode 100644 hx-ai-intelligent/src/router/equipmentControl.ts rename hx-ai-intelligent/src/view/{organizationManage => equipmentControl}/lightingManage/index.vue (100%) diff --git a/hx-ai-intelligent/src/router/equipmentControl.ts b/hx-ai-intelligent/src/router/equipmentControl.ts new file mode 100644 index 0000000..5aaa6b6 --- /dev/null +++ b/hx-ai-intelligent/src/router/equipmentControl.ts @@ -0,0 +1,29 @@ +const Base = () => import('/nerv-lib/saas/view/system/layout/content.vue'); +const equipmentControl = { + path: '/equipmentControl', + name: 'EquipmentControl', + meta: { title: '设备群控', icon: 'dicizhishou', index: 4 }, + redirect: { name: 'homeIndex' }, + children: [ + { + path: 'lightManage', + name: 'LightManage', + meta: { title: '智能照明', hideChildren: true, icon: 'dicizhishou' }, + component: Base, + redirect: { name: 'lightManageIndex' }, + children: [ + { + path: 'index', + name: 'lightManageIndex', + component: () => import('/@/view/equipmentControl/lightingManage/index.vue'), + meta: { + title: '部门/权限', + keepAlive: true, + // backApi: [], + }, + }, + ], + }, + ], +}; +export default equipmentControl; diff --git a/hx-ai-intelligent/src/router/organizationManage.ts b/hx-ai-intelligent/src/router/organizationManage.ts index 5a911c5..3d118dd 100644 --- a/hx-ai-intelligent/src/router/organizationManage.ts +++ b/hx-ai-intelligent/src/router/organizationManage.ts @@ -62,25 +62,7 @@ const organizationManage = { }, ], }, - { - path: 'lightManage', - name: 'LightManage', - meta: { title: '智能照明', hideChildren: true, icon: 'dicizhishou' }, - component: Base, - redirect: { name: 'lightManageIndex' }, - children: [ - { - path: 'index', - name: 'lightManageIndex', - component: () => import('/@/view/organizationManage/lightingManage/index.vue'), - meta: { - title: '部门/权限', - keepAlive: true, - // backApi: [], - }, - }, - ], - }, + ], }; export default organizationManage; diff --git a/hx-ai-intelligent/src/view/organizationManage/lightingManage/index.vue b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/index.vue similarity index 100% rename from hx-ai-intelligent/src/view/organizationManage/lightingManage/index.vue rename to hx-ai-intelligent/src/view/equipmentControl/lightingManage/index.vue