@using Microsoft.AspNetCore.Mvc.Rendering @using VberAdmin.Web.Models.Search @using VberAdmin.Web.Models.Table @using VberZero @using VberZero.Authorization @using VberZero.Tools.StringModel @{ string activeMenu = PermissionNames.VberSystemMgLogMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; string serviceNames = ViewBag.ServiceNames; string loginResult = $"" + $"" + //$"" + $"" + $"" + $""; } @{ /**/ ViewBag.Title = "系统日志管理"; var table1 = new VmTable(VzConsts.ApiAppUrl + "AuditLog/GetAllLogin", activeMenu, new VmSearch(new List() { new VmSearchItem("userName", L("realName")), new VmSearchItem("result",L("loginResult")).WithSelect(loginResult), new VmSearchItem("creationTime",L("loginTime")).WithDateRange(), new VmSearchItem("clientIpAddress", (L("clientIpAddress"))), new VmSearchItem("clientName", L("clientName")), })).AddItems(new List() { new VmTableItem("userName", L("realName")), new VmTableItem("userNameOrEmailOrPhone", L("userNameOrEmailOrPhone")), new VmTableItem("loginResult", (L("loginResult"))).WithFormatter("LoginResultFormatter"), new VmTableItem("creationTime", (L("loginTime"))).WithFormatter("DateTimeFormatter"), new VmTableItem("clientIpAddress", (L("clientIpAddress"))), new VmTableItem("clientName", (L("clientName"))), new VmTableItem("browserInfo", (L("browserInfo"))).WithTip(40), }).WithPage(15, 30, 50); var table2 = new VmTable(VzConsts.ApiAppUrl + "AuditLog/GetAll",null, new VmSearch(new List() { new VmSearchItem("userName", L("realName")), new VmSearchItem("executionTime",L("executionTime")).WithDateRange(), new VmSearchItem("serviceName",L("serviceName")).WithSelect(serviceNames,other:"onchange=\"QueryMethodName(this)\""), new VmSearchItem("methodName",L("methodName")).WithSelect(""), new VmSearchItem("clientIpAddress", (L("clientIpAddress"))), new VmSearchItem("clientName", L("clientName")), },"vber_search2"),"table2").AddItems(new List() { new VmTableItem("userName", (L("realName"))), new VmTableItem("serviceName", (L("serviceName"))), new VmTableItem("methodName", (L("methodName"))), new VmTableItem("executionTime", (L("executionTime"))).WithFormatter("DateTimeFormatter"), new VmTableItem("clientIpAddress", (L("clientIpAddress"))), new VmTableItem("clientName", (L("clientName"))), new VmTableItem("browserInfo", (L("browserInfo"))).WithTip(40), }).WithPage(15, 30, 50); }
@await Html.PartialAsync("_Table", table1)
@await Html.PartialAsync("_Table", table2)
@section scripts { }