mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	实现公用的统计指标
This commit is contained in:
		@@ -70,6 +70,7 @@ func (this *CreatePopupAction) RunGet(params struct {
 | 
			
		||||
			"value":          item.Value,
 | 
			
		||||
			"valueName":      serverconfigs.FindMetricValueName(item.Category, item.Value),
 | 
			
		||||
			"category":       item.Category,
 | 
			
		||||
			"isPublic":       item.IsPublic,
 | 
			
		||||
			"isChecked":      exists,
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -49,6 +49,7 @@ func (this *IndexAction) RunGet(params struct {
 | 
			
		||||
			"value":          item.Value,
 | 
			
		||||
			"valueName":      serverconfigs.FindMetricValueName(item.Category, item.Value),
 | 
			
		||||
			"category":       item.Category,
 | 
			
		||||
			"isPublic":       item.IsPublic,
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
	this.Data["items"] = itemMaps
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user