From f5b46f80546aac860ade6e4c53821e43df833b39 Mon Sep 17 00:00:00 2001 From: tzy <hxb@hdlchina.com.cn> Date: 星期三, 09 六月 2021 11:11:28 +0800 Subject: [PATCH] Revert "Merge remote-tracking branch 'origin/wxr4' into dev-tzy" --- HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs | 23 ++++++++++++----------- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs index f2c2ae5..0ddb270 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs @@ -128,7 +128,7 @@ Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(52), Width = Application.GetRealWidth(343 - 32), - Height = Application.GetRealWidth(270), + Height = Application.GetRealHeight(270), }; diagramView.AddChidren(historyDataView); @@ -360,7 +360,7 @@ tipTextView.AddChidren(new Button() { Width = Application.GetRealWidth(43), - TextID = StringId.SlightlyCold, + TextID = StringId.ExtremelyCold, TextAlignment = TextAlignment.Center, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, @@ -475,7 +475,7 @@ tipValuesView.AddChidren(new Button() { Width = Application.GetRealWidth(151), - Text = "40%", + Text = "70", TextAlignment = TextAlignment.Center, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, @@ -483,7 +483,7 @@ tipValuesView.AddChidren(new Button() { Width = Application.GetRealWidth(151), - Text = "70%", + Text = "40", TextAlignment = TextAlignment.Center, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, @@ -491,7 +491,7 @@ tipTextView.AddChidren(new Button() { Width = Application.GetRealWidth(101), - TextID = StringId.SensorReferenceHumidityTipLevel1, + TextID = StringId.SensorReferenceTVOCTipLevel1, TextAlignment = TextAlignment.Center, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, @@ -499,7 +499,7 @@ tipTextView.AddChidren(new Button() { Width = Application.GetRealWidth(101), - TextID = StringId.SensorReferenceHumidityTipLevel2, + TextID = StringId.SensorReferenceTVOCTipLevel2, TextAlignment = TextAlignment.Center, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, @@ -507,7 +507,7 @@ tipTextView.AddChidren(new Button() { Width = Application.GetRealWidth(101), - TextID = StringId.SensorReferenceHumidityTipLevel3, + TextID = StringId.SensorReferenceTVOCTipLevel3, TextAlignment = TextAlignment.Center, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, @@ -839,7 +839,7 @@ } var sensorType = sr.spk.Split(".")[1]; - var revertObj = new HttpServerRequest().GetSensorHistory(curQueryType, sr.deviceId,"value"); + var revertObj = new HttpServerRequest().GetSensorHistory(curQueryType, sr.deviceId,sensorType); if (revertObj != null) { if (revertObj.Code == StateCode.SUCCESS) @@ -853,18 +853,19 @@ { vs.Add(data.fieldName); } - ebl.InitXdataText(vs); + ebl.InitXdata(vs); } - yDataString += ebl.InitYdataText(sr.name, revertData, tipColorStringList[i]); + yDataString += ebl.GetYdata(sr.name, revertData, tipColorStringList[i]); } } i++; } + ebl.InitYdataString(yDataString); Application.RunOnMainThread(() => { - myEchartsView.ShowWithOption(ebl.InitOption()); + myEchartsView.ShowWithOption(ebl.optionString); }); } -- Gitblit v1.8.0