| | |
| | | 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 |