riku
2024-04-26 5efebb555efd984f3dd35de83e465cd53aaf8175
history.mode.js
@@ -327,14 +327,18 @@
    this.refreshLineChartData();
  },
  // 单选一个监测因子展示折线图
  choseOneFactorLineChart(index) {
  choseOneFactorLineChart(factorType) {
    let index = parseInt(factorType) - 1
    for (let i = 0; i < this.historyDatas.datas.length; i++) {
      this.historyDatas.datas[i].show = false;
      this.historyDatas.physicalQuantity[i].show = false;
      // if (this.historyDatas.datas[i].name == Util.factorName[factorName]) {
      //   index = i
      // }
    }
    this.historyDatas.datas[index].show = true;
    this.historyDatas.physicalQuantity[index].show = true;
    this.lineChartFactorType = [index];
    this.lineChartFactorType = [factorType];
    CheckBox.refreshCheckBox(
      'history_chart_factorbox',
      this.lineChartFactorType