From 84920d28d1048a692dbb8bd558393309431ea80b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?=
<2291200076@qq.com>
Date: Fri, 14 Apr 2023 01:01:46 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E8=BF=9B=E5=87=BA=E8=AE=B0?=
=?UTF-8?q?=E5=BD=95=E3=80=81=E5=A4=A7=E9=97=A8=E7=AE=A1=E7=90=86=20?=
=?UTF-8?q?=E5=BE=85=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/components/sidebar.vue | 24 +++++++--
frontend/src/router/index.ts | 51 ++++++++++++++++---
frontend/src/store/permiss.ts | 16 ++++--
frontend/src/views/access-gate-setting.vue | 11 ++++
.../{report-setting.vue => access-log.vue} | 0
frontend/src/views/report-log.vue | 11 ++++
6 files changed, 99 insertions(+), 14 deletions(-)
create mode 100644 frontend/src/views/access-gate-setting.vue
rename frontend/src/views/{report-setting.vue => access-log.vue} (100%)
create mode 100644 frontend/src/views/report-log.vue
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 @@
+
+
+
+
+
+
+