From c849afb43b1bf6649f3174be557b85d2d4155f47 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Wed, 11 Sep 2024 09:22:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 8196 -> 8196 bytes policeManagement/components.d.ts | 2 + .../src/components/iconfont/IconFont.vue | 6 +-- .../src/components/layout/MenuItem.vue | 46 ++++++++++++++++++ .../src/components/layout/SystemMenus.vue | 25 ++++++++++ policeManagement/src/config/index.ts | 31 ++++++++++++ .../src/types/components/iconfont/IconFont.ts | 2 +- policeSecurityServer/.DS_Store | Bin 6148 -> 6148 bytes 8 files changed, 108 insertions(+), 4 deletions(-) create mode 100644 policeManagement/src/components/layout/MenuItem.vue create mode 100644 policeManagement/src/components/layout/SystemMenus.vue diff --git a/.DS_Store b/.DS_Store index 43e446128ab8b5e84c5acdef7a90ef1197c06346..9f68f99cf98332be0912b88bbc5db46e58fca3e5 100644 GIT binary patch delta 564 zcmZp1XmOa}&nUYwU^hRb>|`DR$vF9^YzzzxEDU-K=?s|+CAs-7E=f80NkB1@#M_- dJ~>b%dt*{G(`I&wZ!Cf($brtohp8}v2>`2LmOKCe delta 296 zcmZp1XmOa}&nUSuU^hRbn*y{CDuJ*FSwaBC2Hph>lXXNiz{Wp1@E^!FVU2SVdgMNNp@{b6 w2_igjo+T4dDW9kkP$?f%y%&(FH@Qeu3#0}}TW#LM - + - + + + diff --git a/policeManagement/src/components/layout/SystemMenus.vue b/policeManagement/src/components/layout/SystemMenus.vue new file mode 100644 index 0000000..2d41687 --- /dev/null +++ b/policeManagement/src/components/layout/SystemMenus.vue @@ -0,0 +1,25 @@ + + + diff --git a/policeManagement/src/config/index.ts b/policeManagement/src/config/index.ts index c4cfbcb..5df59a0 100644 --- a/policeManagement/src/config/index.ts +++ b/policeManagement/src/config/index.ts @@ -1,2 +1,33 @@ export const CLIENT_TYPE = "MANAGEMENT_POLICE"; //登录平台类型 export const ROUTER_WHITE_LIST: string[] = ['/login', '/test', '/register-index']; +export const SYSTEM_MENUS: SystemMenu[] = [ + { + title: '首页', + name: 'index', + path: '/index', + type: "menu", + component: () => import('@/views/index.vue') + }, { + title: '单位管理', + name: 'unitManage', + path: '/unitManage', + type: 'dir', + children: [ + { + title: '公安单位', + name: 'policeUnit', + path: '/policeUnit', + type: 'menu', + // icon: 'icon-policeman-full', + // size: '16', + component: () => import('@/views/unitManage/policeUnit/index.vue') + }, { + title: '保安单位', + name: 'securityUnit', + path: '/securityUnit', + type: 'menu', + component: () => import('@/views/unitManage/securityUnit/index.vue') + } + ] + } +] diff --git a/policeManagement/src/types/components/iconfont/IconFont.ts b/policeManagement/src/types/components/iconfont/IconFont.ts index 9b3dd6e..501afa8 100644 --- a/policeManagement/src/types/components/iconfont/IconFont.ts +++ b/policeManagement/src/types/components/iconfont/IconFont.ts @@ -1,5 +1,5 @@ export interface IconFontProps { fontClass?: string, - size?: number, + size?: number | string, type?: 'class' | 'svg' } \ No newline at end of file diff --git a/policeSecurityServer/.DS_Store b/policeSecurityServer/.DS_Store index 206f835701949028ea8f424ef73d8cc023a92311..03dd5c3aa2ba99d7392e3c7cd63f8b40dc301d67 100644 GIT binary patch delta 22 dcmZoMXffEJ!o>8ZXR;boFcYuC=4z%+Q2