diff --git a/frontend/src/components/sidebar.vue b/frontend/src/components/sidebar.vue index 06e0151..c26198b 100644 --- a/frontend/src/components/sidebar.vue +++ b/frontend/src/components/sidebar.vue @@ -44,6 +44,24 @@ const items = [ title: '系统首页', // 站点基础信息 permiss: 'dashboard', }, + { + icon: 'OfficeBuilding', + index: '/access', + title: '人员进出', + permiss: 'access', + subs: [ + { + index: '/access-log', + title: '人员进出记录', + permiss: 'access-log', + }, + { + index: '/access-gate-setting', + title: '大门管理', + permiss: 'access-gate-setting', + }, + ], + }, { icon: 'OfficeBuilding', index: '/report', @@ -51,9 +69,9 @@ const items = [ permiss: 'report', subs: [ { - index: '/report-setting', - title: '体温管理', - permiss: 'report-setting', + index: '/report-log', + title: '体温上报记录', + permiss: 'report-log', }, ], }, diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 65379b8..0e9da96 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -22,24 +22,50 @@ const routes: RouteRecordRaw[] = [ }, component: () => import('../views/dashboard.vue'), }, + + { - path: '/shop-good-setting', - name: 'shop-good-setting', + path: '/access-log', + name: 'access-log', meta: { - title: '商品管理', - permiss: 'shop-good-setting', + title: '人员进出记录', + permiss: 'access-log', }, - component: () => import('../views/shop-good-setting.vue'), + component: () => import('../views/access-log.vue'), }, + { + path: '/access-gate-setting', + name: 'access-gate-setting', + meta: { + title: '大门管理', + permiss: 'access-gate-setting', + }, + component: () => import('../views/access-gate-setting.vue'), + }, + + + { + path: '/report-log', + name: 'report-log', + meta: { + title: '体温上报记录', + permiss: 'report-log', + }, + component: () => import('../views/report-log.vue'), + }, + + { path: '/report-setting', name: 'report-setting', meta: { - title: '体温管理', + title: '体温上报记录', permiss: 'report-setting', }, - component: () => import('../views/report-setting.vue'), + component: () => import('../views/report-log.vue'), }, + + { path: '/shop-cate-setting', name: 'shop-cate-setting', @@ -49,6 +75,17 @@ const routes: RouteRecordRaw[] = [ }, component: () => import('../views/shop-cate-setting.vue'), }, + { + path: '/shop-good-setting', + name: 'shop-good-setting', + meta: { + title: '商品管理', + permiss: 'shop-good-setting', + }, + component: () => import('../views/shop-good-setting.vue'), + }, + + { path: '/privilege-user-setting', name: 'privilege-user-setting', diff --git a/frontend/src/store/permiss.ts b/frontend/src/store/permiss.ts index 003f494..ce10229 100644 --- a/frontend/src/store/permiss.ts +++ b/frontend/src/store/permiss.ts @@ -15,12 +15,16 @@ export const usePermissStore = defineStore('permiss', { "dashboard", + "access", + "access-log", + "access-gate-setting", + "report", - "report-setting", + "report-log", "shop", - "shop-good-setting", "shop-cate-setting", + "shop-good-setting", "privilege", "privilege-user-setting", @@ -32,12 +36,16 @@ export const usePermissStore = defineStore('permiss', { "dashboard", + "access", + "access-log", + "access-gate-setting", + "report", - "report-setting", + "report-log", "shop", - "shop-good-setting", "shop-cate-setting", + "shop-good-setting", "privilege", "privilege-user-setting", diff --git a/frontend/src/views/access-gate-setting.vue b/frontend/src/views/access-gate-setting.vue new file mode 100644 index 0000000..f34c242 --- /dev/null +++ b/frontend/src/views/access-gate-setting.vue @@ -0,0 +1,11 @@ + + + diff --git a/frontend/src/views/report-setting.vue b/frontend/src/views/access-log.vue similarity index 100% rename from frontend/src/views/report-setting.vue rename to frontend/src/views/access-log.vue diff --git a/frontend/src/views/report-log.vue b/frontend/src/views/report-log.vue new file mode 100644 index 0000000..2cf81f8 --- /dev/null +++ b/frontend/src/views/report-log.vue @@ -0,0 +1,11 @@ + + +