| | |
| | | if (!this.mapMaker.runStatus()) { |
| | | this.drawMesh(false, this, this.factorDatas); |
| | | } |
| | | // 折线图选中对应因子 |
| | | this.choseOneFactorLineChart(factorType); |
| | | // 表格选中对应因子 |
| | | }, |
| | | setFactorMode: function (factorMode) { |
| | | if (this.factorMode != factorMode) { |
| | |
| | | |
| | | this.refreshLineChartData(); |
| | | }, |
| | | // 单选一个监测因子展示折线图 |
| | | 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 = [factorType]; |
| | | CheckBox.refreshCheckBox( |
| | | 'history_chart_factorbox', |
| | | this.lineChartFactorType |
| | | ); |
| | | this.refreshLineChartData(); |
| | | }, |
| | | // 创建初始折线图 |
| | | drawLineChart: function () { |
| | | this.lineChartOption = FChart.genLineChart( |
| | |
| | | }, |
| | | 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, |
| | |
| | | MapUtil.drawSector3(result[0], windDir, windSpeed); |
| | | |
| | | // 2. 绘制对话框 |
| | | const window = DialogUtil.createInfoWindow2(factor, () => { |
| | | DialogUtil.openNewWindow2(factor, MapUtil._map, result[0], () => { |
| | | // 移除扇形区域 |
| | | MapUtil.clearSector3(); |
| | | // MapUtil.clearSector3(); |
| | | }); |
| | | window.open(MapUtil._map, result[0]); |
| | | // 3. 趋势图跳转定位 |
| | | var f = this.factorDatas.factor[this.factorType + 1 + '']; |
| | | const progress = FChart.locate( |
| | |
| | | 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) |
| | | ); |