@using Abp.Notifications @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.VberSystemMgNotificationMg; ViewBag.ActiveMenu = activeMenu; ViewBag.Title = L("NotificationTitle"); string states = $""; var table = new VmTable(VzConsts.ApiAppUrl + "Notification/GetAll", ViewBag.ActiveMenu, new VmSearch(new List() { new VmSearchItem("state", L("notificationState"), FType.I).WithRadio(L("NoRead"),UserNotificationState.Unread.ToStr(),L("HasRead"),UserNotificationState.Read.ToStr()), new VmSearchItem("date", L("notificationDate"), FType.Dn).WithDateRange() })).WithItems(new List() { new VmTableItem("name", L("notificationName")).WithSort(), new VmTableItem("text", L("notificationText")), new VmTableItem("time", L("notificationDate")).WithSort(), new VmTableItem("notificationState", L("notificationState"), "StateFormatter").WithSort(), new VmTableItem("", L("Actions"), "ActionFormatter").WithClassName("text-end"), }); var modal = new VmModal().WithHeaderAndFooter("发送通知", "").WithBody( new VmModalBody(new List() { new VmInput("severity","通知类型").WithRadio("一般通知", NotificationSeverity.Success.ToStr(),"紧急通知",NotificationSeverity.Warn.ToStr()), new VmInputTextarea("message","通知内容") })); } @await Html.PartialAsync("_Table", table) @await Html.PartialAsync("_Modal", modal) @section scripts{ }