From 9130536f57daccec183fa203fe2d666667fd42e1 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 13 三月 2024 17:32:32 +0800
Subject: [PATCH] 2024.3.13

---
 history.mode.js |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/history.mode.js b/history.mode.js
index 28ce372..0d2ead3 100644
--- a/history.mode.js
+++ b/history.mode.js
@@ -195,6 +195,9 @@
     if (!this.mapMaker.runStatus()) {
       this.drawMesh(false, this, this.factorDatas);
     }
+    // 鎶樼嚎鍥鹃�変腑瀵瑰簲鍥犲瓙
+    this.choseOneFactorLineChart(factorType);
+    // 琛ㄦ牸閫変腑瀵瑰簲鍥犲瓙
   },
   setFactorMode: function (factorMode) {
     if (this.factorMode != factorMode) {
@@ -323,6 +326,21 @@
 
     this.refreshLineChartData();
   },
+  // 鍗曢�変竴涓洃娴嬪洜瀛愬睍绀烘姌绾垮浘
+  choseOneFactorLineChart(index) {
+    for (let i = 0; i < this.historyDatas.datas.length; i++) {
+      this.historyDatas.datas[i].show = false;
+      this.historyDatas.physicalQuantity[i].show = false;
+    }
+    this.historyDatas.datas[index].show = true;
+    this.historyDatas.physicalQuantity[index].show = true;
+    this.lineChartFactorType = [index];
+    CheckBox.refreshCheckBox(
+      'history_chart_factorbox',
+      this.lineChartFactorType
+    );
+    this.refreshLineChartData();
+  },
   // 鍒涘缓鍒濆鎶樼嚎鍥�
   drawLineChart: function () {
     this.lineChartOption = FChart.genLineChart(
@@ -435,8 +453,10 @@
   },
   onCheckTable: function (obj) {
     Table.onChangeTh(obj.value, obj.checked);
+    DataSummary.onChangeFactor('history_table_summary', obj.value, obj.checked);
   },
   refreshTable: function () {
+    DataSummary.summary('history_table_summary', this.factorDatas);
     Table.table(
       'history_table',
       this.originData,
@@ -509,13 +529,7 @@
     this.mapMaker.setOnStopCallback(
       function () {
         var f = this.factorDatas.factor[this.factorType + 1 + ''];
-        MapUtil.drawMesh2(
-          this.factorDatas.lnglats_GD,
-          this.factorDatas.coors_GD,
-          f.heights,
-          f.colors,
-          f.bottomColor
-        );
+        MapUtil.drawMesh2(this.factorDatas, f);
         callback();
       }.bind(this)
     );

--
Gitblit v1.9.3