增加企业产品分类

This commit is contained in:
2026-03-21 14:12:21 +08:00
parent 9281c1dc35
commit 2a6b14f698
13 changed files with 1139 additions and 277 deletions
+5 -1
View File
@@ -107,7 +107,7 @@ class MenuController extends BaseController
$menus = SystemMenu::where('delete_time', null)
->where('status', 1)
->whereIn('id', $allMenuIds)
->field('id,pid,title,path,component_path,icon,sort')
->field('id,pid,title,path,component_path,icon,sort,is_visible')
->order('sort', 'asc')
->select();
@@ -261,6 +261,7 @@ class MenuController extends BaseController
'title|菜单名称' => 'require|max:50',
'type|菜单类型' => 'require|in:1,2,3',
'status|菜单状态' => 'require|in:0,1',
'is_visible|是否显示' => 'require|in:0,1',
'sort|排序号' => 'integer',
'path|路由路径' => 'max:200',
'icon|菜单图标' => 'max:100',
@@ -274,6 +275,7 @@ class MenuController extends BaseController
'title' => $data['title'],
'type' => $data['type'],
'status' => $data['status'] ?? 1,
'is_visible' => $data['is_visible'] ?? 1,
'sort' => $data['sort'] ?? 0,
'path' => $data['path'] ?? '',
'component_path' => $data['component_path'] ?? '',
@@ -329,6 +331,7 @@ class MenuController extends BaseController
'pid|上级菜单ID' => 'integer',
'type|菜单类型' => 'require|in:1,2,3',
'status|菜单状态' => 'require|in:0,1',
'is_visible|是否显示' => 'require|in:0,1',
'sort|排序号' => 'integer',
'path|路由路径' => 'max:200',
'icon|菜单图标' => 'max:100',
@@ -346,6 +349,7 @@ class MenuController extends BaseController
'icon' => $data['icon'] ?? null,
'sort' => $data['sort'] ?? 0,
'status' => $data['status'],
'is_visible' => $data['is_visible'],
'permission' => $data['permission'] ?? null,
'remark' => $data['remark'] ?? null,
'update_time' => date('Y-m-d H:i:s')