代码生成新增导入

This commit is contained in:
不做码农
2023-07-28 17:37:36 +08:00
parent 84ae9b0a92
commit 2ad3ea1fd8
12 changed files with 160 additions and 26 deletions

View File

@@ -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)