Files
lgp-admin-plus-api/config/lgp_menu.php
LQ bcf54c2727 初始化
缺陷:主题配色需要优化整体的同风格
2026-08-14 23:21:21 +08:00

124 lines
6.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* LGP 业务菜单声明
*
* nl_menu 的行由 `lgp:menu-sync` 按 name 幂等同步,不要手写 INSERT 拼 pid。
* 注意两个取反字段(见 AdminService::menu
* keep_alive 0=开启缓存 1=关闭缓存
* affix_tab 0=固定标签 1=不固定
* 目录节点 component 固定写 BasicLayout叶子节点写去掉 views 与 .vue 的路径。
*/
return [
[
'title' => '商品中心',
'name' => 'Goods',
'path' => '/goods',
'component' => 'BasicLayout',
'icon' => 'lucide:sofa',
'sort' => 100,
'children' => [
['title' => '商品图册', 'name' => 'GoodsCatalogue', 'path' => '/goods/catalogue', 'component' => '/goods/catalogue/index', 'icon' => 'lucide:book-image', 'sort' => 0],
['title' => '商品分类', 'name' => 'GoodsCategory', 'path' => '/goods/category', 'component' => '/goods/category/index', 'icon' => 'lucide:folder-tree', 'sort' => 1],
['title' => '规格报价', 'name' => 'GoodsPriceSheet', 'path' => '/goods/price-sheet', 'component' => '/goods/price-sheet/index', 'icon' => 'lucide:ruler', 'sort' => 2],
['title' => '商品相册', 'name' => 'GoodsImage', 'path' => '/goods/image', 'component' => '/goods/image/index', 'icon' => 'lucide:images', 'sort' => 3],
['title' => '轮播图', 'name' => 'GoodsCarousel', 'path' => '/goods/carousel', 'component' => '/goods/carousel/index', 'icon' => 'lucide:gallery-horizontal', 'sort' => 4],
['title' => '报价单', 'name' => 'GoodsQuote', 'path' => '/goods/quote', 'component' => '/goods/quote/index', 'icon' => 'lucide:file-text', 'sort' => 5],
],
],
[
'title' => '工厂产品',
'name' => 'Factory',
'path' => '/factory',
'component' => 'BasicLayout',
'icon' => 'lucide:factory',
'sort' => 200,
'children' => [
['title' => '工厂管理', 'name' => 'FactoryInfo', 'path' => '/factory/info', 'component' => '/factory/info/index', 'icon' => 'lucide:building-2', 'sort' => 0],
['title' => '工厂分类', 'name' => 'FactoryClass', 'path' => '/factory/class', 'component' => '/factory/class/index', 'icon' => 'lucide:tags', 'sort' => 1],
['title' => '工厂产品图片', 'name' => 'FactoryImage', 'path' => '/factory/image', 'component' => '/factory/image/index', 'icon' => 'lucide:image-plus', 'sort' => 2],
],
],
[
'title' => '色卡管理',
'name' => 'Color',
'path' => '/color',
'component' => 'BasicLayout',
'icon' => 'lucide:palette',
'sort' => 300,
'children' => [
['title' => '公司管理', 'name' => 'ColorCompany', 'path' => '/color/company', 'component' => '/color/company/index', 'icon' => 'lucide:landmark', 'sort' => 0],
['title' => '色卡分类', 'name' => 'ColorCardClass', 'path' => '/color/card-class', 'component' => '/color/card-class/index', 'icon' => 'lucide:layers', 'sort' => 1],
['title' => '色卡列表', 'name' => 'ColorCard', 'path' => '/color/card', 'component' => '/color/card/index', 'icon' => 'lucide:swatch-book', 'sort' => 2],
],
],
[
'title' => '客户中心',
'name' => 'Customer',
'path' => '/customer',
'component' => 'BasicLayout',
'icon' => 'lucide:users',
'sort' => 400,
'children' => [
['title' => '微信用户', 'name' => 'CustomerWxUser', 'path' => '/customer/wx-user', 'component' => '/customer/wx-user/index', 'icon' => 'ic:baseline-wechat', 'sort' => 0],
['title' => '经销商管理', 'name' => 'CustomerDealer', 'path' => '/customer/dealer', 'component' => '/customer/dealer/index', 'icon' => 'lucide:handshake', 'sort' => 1],
['title' => '企业管理', 'name' => 'CustomerEnterprise', 'path' => '/customer/enterprise', 'component' => '/customer/enterprise/index', 'icon' => 'lucide:building', 'sort' => 2],
['title' => '清单管理', 'name' => 'CustomerList', 'path' => '/customer/list', 'component' => '/customer/list/index', 'icon' => 'lucide:clipboard-list', 'sort' => 3],
['title' => '订单管理', 'name' => 'CustomerOrder', 'path' => '/customer/order', 'component' => '/customer/order/index', 'icon' => 'lucide:receipt-text', 'sort' => 4],
],
],
[
'title' => '素材库',
'name' => 'Material',
'path' => '/material',
'component' => '/material/index',
'icon' => 'lucide:folder-open',
'sort' => 500,
],
[
'title' => '小程序',
'name' => 'Wx',
'path' => '/wx',
'component' => 'BasicLayout',
'icon' => 'lucide:smartphone',
'sort' => 600,
'children' => [
['title' => '装修模板', 'name' => 'WxTemplate', 'path' => '/wx/template', 'component' => '/wx/template/index', 'icon' => 'lucide:paintbrush', 'sort' => 0],
['title' => '应用配置', 'name' => 'WxApp', 'path' => '/wx/app', 'component' => '/wx/app/index', 'icon' => 'lucide:settings-2', 'sort' => 1],
],
],
[
'title' => '内容创作',
'name' => 'Media',
'path' => '/media',
'component' => 'BasicLayout',
'icon' => 'lucide:newspaper',
'sort' => 700,
'children' => [
['title' => '公众号账号', 'name' => 'MediaWechatAccount', 'path' => '/media/wechat-account', 'component' => '/media/wechat-account/index', 'icon' => 'ic:baseline-wechat', 'sort' => 0],
['title' => '图文创作', 'name' => 'MediaWechatArticle', 'path' => '/media/wechat-article', 'component' => '/media/wechat-article/index', 'icon' => 'lucide:file-pen-line', 'sort' => 1],
// 图文编辑器是 router.push 进去的详情页,不在菜单里展示,但仍要注册路由
['title' => '图文编辑器', 'name' => 'MediaWechatArticleEdit', 'path' => '/media/wechat-article/editor', 'component' => '/media/wechat-article/editor/index', 'hide_in_menu' => 1, 'sort' => 2],
],
],
[
// 开发工具:代码生成器(单页),挂在根目录下
'title' => '代码生成',
'name' => 'CodeGeneration',
'path' => '/code-generation',
'component' => '/code-generation/index',
'icon' => 'lucide:wand-sparkles',
'sort' => 800,
],
[
// 挂到脚手架自带的「基础管理」下parent 用 name 引用,避免依赖自增 id
'title' => '部门管理',
'name' => 'SystemDepartment',
'path' => '/system/department',
'component' => '/system/department/index',
'icon' => 'lucide:network',
'parent' => 'System',
'sort' => 4,
],
];