补充菜单icon

main
liutk 2024-04-15 11:12:16 +08:00
parent 826cbb379c
commit c9a7c25efc
1 changed files with 56 additions and 31 deletions

View File

@ -27,7 +27,9 @@ class AdminPermissionSeeder extends Seeder
'name' => '主页', 'name' => '主页',
'icon' => 'line-md:home-twotone-alt', 'icon' => 'line-md:home-twotone-alt',
'uri' => '/dashboard', 'uri' => '/dashboard',
'is_home' => 1,
'children' => [], 'children' => [],
'order' => 1,
], ],
/* /*
@ -37,50 +39,59 @@ class AdminPermissionSeeder extends Seeder
*/ */
'store' => [ 'store' => [
'name' => '门店管理', 'name' => '门店管理',
'icon' => 'material-symbols:store-rounded', 'icon' => 'material-symbols:store-outline',
'uri' => '/store', 'uri' => '/store',
'order' =>2,
'children' => [ 'children' => [
'stores' => [ 'stores' => [
'name' => '门店管理', 'name' => '门店列表',
'icon' => '', 'icon' => 'ic:outline-storefront',
'uri' => '/store/stores', 'uri' => '/store/stores',
'resource' => true, 'resource' => true,
'order' => 1,
], ],
'employees' => [ 'employees' => [
'name' => '店员管理', 'name' => '店员管理',
'icon' => '', 'icon' => 'ic:baseline-people-outline',
'uri' => '/store/employees', 'uri' => '/store/employees',
'resource' => ['list', 'create', 'delete'], 'resource' => ['list', 'create', 'delete'],
'order' => 2,
], ],
'categories' => [ 'categories' => [
'name' => '门店分类', 'name' => '门店分类',
'icon' => '', 'icon' => 'tabler:category',
'uri' => '/store/categories?parent_key=store_category', 'uri' => '/store/categories?parent_key=store_category',
'resource' => true, 'resource' => true,
'order' => 3,
], ],
'levels' => [ 'levels' => [
'name' => '门店等级', 'name' => '门店等级',
'icon' => '', 'icon' => 'carbon:skill-level',
'uri' => '/store/levels?parent_key=store_levels', 'uri' => '/store/levels?parent_key=store_levels',
'resource' => true, 'resource' => true,
'order' => 4,
], ],
'business' => [ 'business' => [
'name' => '经营类别', 'name' => '经营类别',
'icon' => '', 'icon' => 'mingcute:certificate-line',
'uri' => '/store/business?parent_key=store_business', 'uri' => '/store/business?parent_key=store_business',
'resource' => true, 'resource' => true,
'order' => 5,
], ],
'devices' => [ 'devices' => [
'name' => '彩票机管理', 'name' => '彩票机管理',
'icon' => '', 'icon' => 'streamline:money-cashier-shop-shopping-pay-payment-cashier-store-cash-register-machine',
'uri' => '/store/devices', 'uri' => '/store/devices',
'resource' => true, 'resource' => true,
'order' => 6,
], ],
'lottery-types' => [ 'lottery-types' => [
'name' => '彩种类型', 'name' => '彩种类型',
'icon' => '', 'icon' => 'mingcute:sunflower-line',
'uri' => '/store/lottery-types?parent_key=lottery_type', 'uri' => '/store/lottery-types?parent_key=lottery_type',
'resource' => true, 'resource' => true,
'order' => 7,
], ],
], ],
], ],
@ -92,65 +103,75 @@ class AdminPermissionSeeder extends Seeder
*/ */
'hr' => [ 'hr' => [
'name' => '人事管理', 'name' => '人事管理',
'icon' => 'flowbite:user-settings-solid', 'icon' => 'material-symbols:deployed-code-account-outline',
'uri' => '/hr', 'uri' => '/hr',
'order' => 3,
'children' => [ 'children' => [
'employees' => [ 'employees' => [
'name' => '员工管理', 'name' => '员工管理',
'icon' => '', 'icon' => 'material-symbols:user-attributes-outline',
'uri' => '/hr/employees', 'uri' => '/hr/employees',
'resource' => true, 'resource' => true,
'children' => [ 'children' => [
'leave' => '离职', 'leave' => '离职',
], ],
'order' => 1,
], ],
'jobs' => [ 'jobs' => [
'name' => '职位管理', 'name' => '职位管理',
'icon' => '', 'icon' => 'material-symbols:frame-person-outline-sharp',
'uri' => '/hr/jobs?parent_key=job', 'uri' => '/hr/jobs?parent_key=job',
'resource' => true, 'resource' => true,
'order' => 2,
], ],
'rests' => [ 'rests' => [
'name' => '休息管理', 'name' => '休息管理',
'icon' => '', 'icon' => 'material-symbols-light:timelapse-outline-rounded',
'uri' => '/hr/rests', 'uri' => '/hr/rests',
'resource' => ['list', 'create', 'delete'], 'resource' => ['list', 'create', 'delete'],
'order' => 3,
], ],
'signs' => [ 'signs' => [
'name' => '考勤打卡', 'name' => '考勤打卡',
'icon' => '', 'icon' => 'material-symbols:calendar-clock-outline',
'uri' => '/hr/signs', 'uri' => '/hr/signs',
'resource' => ['list', 'view'], 'resource' => ['list', 'view'],
'order' => 4,
], ],
'repairs' => [ 'repairs' => [
'name' => '补卡申请', 'name' => '补卡申请',
'icon' => '', 'icon' => 'mdi:table-clock',
'uri' => '/hr/repairs', 'uri' => '/hr/repairs',
'resource' => true, 'resource' => true,
'order' => 5,
], ],
'holiday' => [ 'holiday' => [
'name' => '请假申请', 'name' => '请假申请',
'icon' => '', 'icon' => 'ic:outline-more-time',
'uri' => '/hr/holiday', 'uri' => '/hr/holiday',
'resource' => true, 'resource' => true,
'order' => 6,
], ],
'overtime' => [ 'overtime' => [
'name' => '加班申请', 'name' => '加班申请',
'icon' => '', 'icon' => 'ic:round-add-alarm',
'uri' => '/hr/overtime', 'uri' => '/hr/overtime',
'resource' => true, 'resource' => true,
'order' => 7,
], ],
'business' => [ 'business' => [
'name' => '出差报备', 'name' => '出差报备',
'icon' => '', 'icon' => 'material-symbols:car-tag-outline',
'uri' => '/hr/business', 'uri' => '/hr/business',
'resource' => true, 'resource' => true,
'order' => 8,
], ],
'promotion' => [ 'promotion' => [
'name' => '升职申请', 'name' => '升职申请',
'icon' => '', 'icon' => 'fluent:people-star-32-regular',
'uri' => '/hr/promotion', 'uri' => '/hr/promotion',
'resource' => true, 'resource' => true,
'order' => 9,
], ],
], ],
], ],
@ -161,13 +182,14 @@ class AdminPermissionSeeder extends Seeder
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
*/ */
'plan' => [ 'plan' => [
'name' => '任务计划', 'name' => '任务管理',
'icon' => 'flowbite:user-settings-solid', 'icon' => 'mingcute:send-plane-line',
'uri' => '/hr', 'uri' => '/plan',
'order' => 4,
'children' => [ 'children' => [
'plans' => [ 'plans' => [
'name' => '任务计划', 'name' => '任务列表',
'icon' => '', 'icon' => 'tdesign:task',
'uri' => '/plan/plans', 'uri' => '/plan/plans',
'resource' => true, 'resource' => true,
'children' => [], 'children' => [],
@ -184,6 +206,7 @@ class AdminPermissionSeeder extends Seeder
'name' => '投诉意见', 'name' => '投诉意见',
'icon' => 'mdi:star-four-points-box-outline', 'icon' => 'mdi:star-four-points-box-outline',
'uri' => '/complaint', 'uri' => '/complaint',
'order' => 5,
'children' => [ 'children' => [
'complaints' => [ 'complaints' => [
'name' => '举报投诉', 'name' => '举报投诉',
@ -214,6 +237,7 @@ class AdminPermissionSeeder extends Seeder
'name' => '财务报表', 'name' => '财务报表',
'icon' => 'material-symbols:finance-mode', 'icon' => 'material-symbols:finance-mode',
'uri' => '/finance', 'uri' => '/finance',
'order' => 6,
'children' => [ 'children' => [
'ledgers' => [ 'ledgers' => [
'name' => '上报数据', 'name' => '上报数据',
@ -270,24 +294,25 @@ class AdminPermissionSeeder extends Seeder
'train' => [ 'train' => [
'name' => '培训管理', 'name' => '培训管理',
'icon' => '', 'icon' => 'solar:people-nearby-broken',
'uri' => '/train', 'uri' => '/train',
'order' => 7,
'children' => [ 'children' => [
'books' => [ 'books' => [
'name' => '课件管理', 'name' => '课件管理',
'icon' => '', 'icon' => 'material-symbols:library-books-outline-rounded',
'uri' => '/train/books', 'uri' => '/train/books',
'resource' => true, 'resource' => true,
], ],
'questions' => [ 'questions' => [
'name' => '题库管理', 'name' => '题库管理',
'icon' => '', 'icon' => 'ph:books-duotone',
'uri' => '/train/questions', 'uri' => '/train/questions',
'resource' => true, 'resource' => true,
], ],
'examinations' => [ 'examinations' => [
'name' => '考试管理', 'name' => '考试管理',
'icon' => '', 'icon' => 'material-symbols:checkbook-outline',
'uri' => '/train/examinations', 'uri' => '/train/examinations',
'resource' => true, 'resource' => true,
], ],
@ -295,7 +320,7 @@ class AdminPermissionSeeder extends Seeder
], ],
'agreement' => [ 'agreement' => [
'name' => '合同管理', 'name' => '合同管理',
'icon' => '', 'icon' => 'flowbite:inbox-full-outline',
'uri' => '/agreement', 'uri' => '/agreement',
'resource' => true, 'resource' => true,
'children' => [ 'children' => [
@ -360,7 +385,7 @@ class AdminPermissionSeeder extends Seeder
], ],
'workflows' => [ 'workflows' => [
'name' => '审核流程', 'name' => '审核流程',
'icon' => '', 'icon' => 'carbon:flow-data',
'uri' => '/system/workflows', 'uri' => '/system/workflows',
'resource' => true, 'resource' => true,
], ],