1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

人员进出记录、大门管理 待添加

This commit is contained in:
程序员小墨 2023-04-14 01:01:46 +08:00
parent fb10c7e666
commit 84920d28d1
6 changed files with 99 additions and 14 deletions

View File

@ -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',
},
],
},

View File

@ -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',

View File

@ -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",

View File

@ -0,0 +1,11 @@
<template>
<div class="container">
<manageList :list-func="shopGoodApi.getGoodList" :add-func="shopGoodApi.editGood" :edit-func="shopGoodApi.editGood"
:delete-func="shopGoodApi.deleteGood" :export-func="shopGoodApi.exportGoodList" edit-permiss="shop-good-setting" />
</div>
</template>
<script setup lang="ts">
import manageList from '../components/manage-list.vue';
import * as shopGoodApi from '../api/shop-good';
</script>

View File

@ -0,0 +1,11 @@
<template>
<div class="container">
<manageList :list-func="reportApi.getReportList" :export-func="reportApi.exportReportList"
edit-permiss="privilege-user-setting" />
</div>
</template>
<script setup lang="ts">
import manageList from '../components/manage-list.vue';
import * as reportApi from '../api/report';
</script>