|
@@ -34,6 +34,8 @@ public class DeviceTrendPanel : MonoBehaviour
|
|
|
public string _sid;
|
|
|
public string _gid;
|
|
|
|
|
|
+ public string dataName;
|
|
|
+
|
|
|
private void Awake()
|
|
|
{
|
|
|
rect = this.GetComponent<RectTransform>();
|
|
@@ -113,11 +115,12 @@ public class DeviceTrendPanel : MonoBehaviour
|
|
|
|
|
|
private GongChengType currentGongChengType;
|
|
|
|
|
|
- public async Task Show(string name, GongChengType type, string gid, string sid)
|
|
|
+ public async Task Show(string _name, GongChengType type, string gid, string sid)
|
|
|
{
|
|
|
+ dataName = _name;
|
|
|
_gid = gid;
|
|
|
_sid = sid;
|
|
|
- name = name.Replace(" ", "");
|
|
|
+ _name = _name.Replace(" ", "");
|
|
|
string typeText = "";
|
|
|
currentGongChengType = type;
|
|
|
switch (currentGongChengType)
|
|
@@ -136,7 +139,7 @@ public class DeviceTrendPanel : MonoBehaviour
|
|
|
var tempSeries = _LineChart.series;
|
|
|
tempSeries[0].serieName = typeText;
|
|
|
tempXaxis.axisName.name = typeText+" "+DateTime.Now.ToString("yyyy");
|
|
|
- nameText.text = $"{name} {typeText}趋势";
|
|
|
+ nameText.text = $"{_name} {typeText}趋势";
|
|
|
string endTime = DateTime.Now.ToString("yyyy-MM-dd");
|
|
|
string startTime = DateTime.Now.AddMonths(-3).ToString("yyyy-MM-dd");
|
|
|
|