@using VberAdmin.Web.Models.Input @using VberAdmin.Web.Models.Modals @using VberAdmin.Web.Models.Search @using VberAdmin.Web.Models.Table @using VberZero @using VberZero.Tools.StringModel @{ string activeMenu = PermissionNames.VberSystemMgHelpMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; string helpType = ViewBag.HelpType, menus = ViewBag.FunctionMenu; } @{ /**/ ViewBag.Title = "系统帮助管理"; var table = new VmTable(VzConsts.ApiAppUrl + "Help/GetAll", activeMenu, new VmSearch(new List() { new VmSearchItem("helpType", "帮助类别").WithExpType(EType.Equal).WithSelect(helpType) })).AddItems(new List() { new VmTableItem("title", "标题"), new VmTableItem("keyWords", "关键字信息"), new VmTableItem("helpType", "帮助类别", "HelpTypeFormatter"), new VmTableItem("functionDisplayName", "功能菜单"), new VmTableItem("sequence", "排序"), }); var modalBody = new VmModalBody() .AddInputs(new List { new VmInputHidden("id"), }) .AddGroup(new List { new VmInput("title", "标题").WithRequired(), new VmInput("keyWords", "关键字").WithRequired(), new VmInputNumber("sequence", "序列").WithRequired(), }) .AddGroup(new List { new VmInput("helpType", "帮助类别").WithSelect(helpType).WithRequired(), new VmInput("functionNo", "功能菜单").WithSelect(menus,isTree:true).WithRequired(), }) .AddInput(new VmInputWangEditor("content", "帮助内容")); /*.AddGroup(new VmInputGroup().WithAverage(2).AddInputs(new List { }));*/ var modal = new VmModal().WithHeaderAndFooter("帮助", "").WithBody(modalBody); } @await Html.PartialAsync("_Table", table) @await Html.PartialAsync("_Modal", modal) @section scripts { }