diff --git a/internal/web/actions/default/servers/iplists/index.go b/internal/web/actions/default/servers/iplists/index.go index 7c4cef56..81e2ecf0 100644 --- a/internal/web/actions/default/servers/iplists/index.go +++ b/internal/web/actions/default/servers/iplists/index.go @@ -24,18 +24,21 @@ func (this *IndexAction) RunGet(params struct { GlobalOnly bool Unread bool EventLevel string + ListType string }) { this.Data["type"] = "" this.Data["ip"] = params.Ip this.Data["globalOnly"] = params.GlobalOnly this.Data["unread"] = params.Unread this.Data["eventLevel"] = params.EventLevel + this.Data["listType"] = params.ListType countUnreadResp, err := this.RPC().IPItemRPC().CountAllEnabledIPItems(this.AdminContext(), &pb.CountAllEnabledIPItemsRequest{ Ip: params.Ip, GlobalOnly: params.GlobalOnly, Unread: true, EventLevel: params.EventLevel, + ListType: params.ListType, }) if err != nil { this.ErrorPage(err) @@ -48,6 +51,7 @@ func (this *IndexAction) RunGet(params struct { GlobalOnly: params.GlobalOnly, Unread: params.Unread, EventLevel: params.EventLevel, + ListType: params.ListType, }) if err != nil { this.ErrorPage(err) @@ -62,6 +66,7 @@ func (this *IndexAction) RunGet(params struct { GlobalOnly: params.GlobalOnly, Unread: params.Unread, EventLevel: params.EventLevel, + ListType: params.ListType, Offset: page.Offset, Size: page.Size, }) diff --git a/web/public/js/components/iplist/ip-list-table.js b/web/public/js/components/iplist/ip-list-table.js index df268be3..20a0f458 100644 --- a/web/public/js/components/iplist/ip-list-table.js +++ b/web/public/js/components/iplist/ip-list-table.js @@ -98,9 +98,9 @@ Vue.component("ip-list-table", { IP - 类型 - 级别 - 过期时间 + 类型 + 级别 + 过期时间 备注 操作 @@ -114,7 +114,7 @@ Vue.component("ip-list-table", { - + {{item.ipFrom}}  New   - {{item.ipTo}} * diff --git a/web/views/@default/servers/iplists/index.html b/web/views/@default/servers/iplists/index.html index 399dd486..9800eacd 100644 --- a/web/views/@default/servers/iplists/index.html +++ b/web/views/@default/servers/iplists/index.html @@ -7,6 +7,13 @@
+
+ +
- +
@@ -28,7 +35,7 @@
|