|
@@ -2171,6 +2171,8 @@ func (this *EdbInfoController) EdbInfoList() {
|
|
|
button.AddButton = false
|
|
|
edbInfoItem.Button = button
|
|
|
edbInfoItem.DataList = make([]*data_manage.EdbData, 0)
|
|
|
+ edbInfoItem.EndValue = utils.FormatFloatPoint(edbInfoItem.EndValue, 4)
|
|
|
+ edbInfoItem.LatestValue = utils.FormatFloatPoint(edbInfoItem.LatestValue, 4)
|
|
|
|
|
|
// 如果有数据权限,那么就去获取指标数据
|
|
|
if edbInfoItem.HaveOperaAuth {
|
|
@@ -2180,6 +2182,9 @@ func (this *EdbInfoController) EdbInfoList() {
|
|
|
br.ErrMsg = "获取指标数据总数失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ for _, v := range dataList {
|
|
|
+ v.Value = utils.FormatFloatPoint(v.Value, 4)
|
|
|
+ }
|
|
|
page = paging.GetPaging(currentIndex, pageSize, dataCount)
|
|
|
edbInfoItem.DataList = dataList
|
|
|
}
|
|
@@ -3750,6 +3755,10 @@ func (this *ChartInfoController) EdbInfoData() {
|
|
|
}
|
|
|
fullEdb.HaveOperaAuth = haveOperaAuth
|
|
|
}
|
|
|
+ fullEdb.MinValue = utils.FormatFloatPoint(fullEdb.MinValue, 4)
|
|
|
+ fullEdb.MaxValue = utils.FormatFloatPoint(fullEdb.MaxValue, 4)
|
|
|
+ fullEdb.EndValue = utils.FormatFloatPoint(fullEdb.EndValue, 4)
|
|
|
+ fullEdb.LatestValue = utils.FormatFloatPoint(fullEdb.LatestValue, 4)
|
|
|
resp.EdbInfo = fullEdb
|
|
|
|
|
|
resp.DataList = make([]*data_manage.EdbDataList, 0)
|
|
@@ -3767,7 +3776,9 @@ func (this *ChartInfoController) EdbInfoData() {
|
|
|
br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ for _, v := range dataList {
|
|
|
+ v.Value = utils.FormatFloatPoint(v.Value, 4)
|
|
|
+ }
|
|
|
resp.DataList = dataList
|
|
|
}
|
|
|
br.Ret = 200
|