前端页面
This commit is contained in:
@@ -25,8 +25,16 @@ func (this *IndexAction) RunGet(params struct {
|
||||
}) {
|
||||
httpdnsutils.AddLeftMenu(this.Parent())
|
||||
|
||||
this.Data["clusterId"] = params.ClusterId
|
||||
this.Data["nodeId"] = params.NodeId
|
||||
if params.ClusterId > 0 {
|
||||
this.Data["clusterId"] = params.ClusterId
|
||||
} else {
|
||||
this.Data["clusterId"] = ""
|
||||
}
|
||||
if params.NodeId > 0 {
|
||||
this.Data["nodeId"] = params.NodeId
|
||||
} else {
|
||||
this.Data["nodeId"] = ""
|
||||
}
|
||||
this.Data["dayFrom"] = params.DayFrom
|
||||
this.Data["dayTo"] = params.DayTo
|
||||
this.Data["level"] = params.Level
|
||||
@@ -123,7 +131,6 @@ func (this *IndexAction) RunGet(params struct {
|
||||
}
|
||||
if len(keyword) > 0 {
|
||||
if !strings.Contains(strings.ToLower(log["tag"].(string)), keyword) &&
|
||||
!strings.Contains(strings.ToLower(log["module"].(string)), keyword) &&
|
||||
!strings.Contains(strings.ToLower(log["description"].(string)), keyword) &&
|
||||
!strings.Contains(strings.ToLower(log["nodeName"].(string)), keyword) {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user