✨代码生成新增导入
This commit is contained in:
1
ZR.Service/GlobalUsing.cs
Normal file
1
ZR.Service/GlobalUsing.cs
Normal file
@@ -0,0 +1 @@
|
||||
global using System.Collections.Generic;
|
||||
@@ -39,7 +39,7 @@ namespace ZR.Service.System.IService
|
||||
|
||||
List<TreeSelectVo> BuildMenuTreeSelect(List<SysMenu> menus);
|
||||
|
||||
void AddSysMenu(GenTable genTableInfo, string permPrefix, bool showEdit, bool showExport);
|
||||
void AddSysMenu(GenTable genTableInfo, string permPrefix, bool showEdit, bool showExport, bool showImport);
|
||||
List<SysMenu> SelectTreeMenuListByRoles(MenuQueryDto menu, List<long> roles);
|
||||
List<RoleMenuExportDto> SelectRoleMenuListByRole(MenuQueryDto menu, int roleId);
|
||||
}
|
||||
|
||||
@@ -588,7 +588,7 @@ namespace ZR.Service
|
||||
#endregion
|
||||
|
||||
|
||||
public void AddSysMenu(GenTable genTableInfo, string permPrefix, bool showEdit, bool showExport)
|
||||
public void AddSysMenu(GenTable genTableInfo, string permPrefix, bool showEdit, bool showExport, bool showImport)
|
||||
{
|
||||
var menu = GetFirst(f => f.MenuName == genTableInfo.FunctionName);
|
||||
if (menu is null)
|
||||
@@ -671,6 +671,18 @@ namespace ZR.Service
|
||||
Icon = "",
|
||||
};
|
||||
|
||||
SysMenu menuImport = new()
|
||||
{
|
||||
MenuName = "导入",
|
||||
ParentId = menu.MenuId,
|
||||
OrderNum = 5,
|
||||
Perms = $"{permPrefix}:import",
|
||||
MenuType = "F",
|
||||
Visible = "0",
|
||||
Status = "0",
|
||||
Icon = "",
|
||||
};
|
||||
|
||||
menuList.Add(menuQuery);
|
||||
menuList.Add(menuAdd);
|
||||
menuList.Add(menuDel);
|
||||
@@ -682,6 +694,10 @@ namespace ZR.Service
|
||||
{
|
||||
menuList.Add(menuExport);
|
||||
}
|
||||
if (showImport)
|
||||
{
|
||||
menuList.Add(menuImport);
|
||||
}
|
||||
//Insert(menuList);
|
||||
|
||||
var x = Storageable(menuList)
|
||||
|
||||
Reference in New Issue
Block a user