| | |
| | | $('#flood-tbody').html("") |
| | | $('#analysis-pagination').hide() |
| | | } |
| | | |
| | | data.forEach(e => { |
| | | |
| | | self.smxSelect.append("<option value=" + e.smxcode + ">" + e.waterline + "</option>"); |
| | |
| | | parentData.point = this.currentSelectHistoryData.smxVal.point |
| | | } |
| | | |
| | | |
| | | var url = './corelib/common/popup/evaluateAnalysis.html' |
| | | var top = ($(window).height() - 764) / 2; |
| | | var left = ($(window).width() -465); |
| | |
| | | //显示最大化icon |
| | | $('.layui-layer-max').css("display","") |
| | | }, |
| | | restore: function() { |
| | | restore: function(layero,index) { |
| | | //隐藏最大化icon |
| | | $('.layui-layer-max').css("display","none") |
| | | //还原时窗口长宽会减小,原因未知。因此还原时再设置一次长宽 |
| | | layero.css({ |
| | | 'width':'465px', |
| | | 'height':'818px' |
| | | }) |
| | | }, |
| | | success:function (layero,index) { |
| | | //绑定父子之间的关系,用于数据传递,缺少则无法传递 |
| | |
| | | // let data = evt.cell.row.data |
| | | // }); |
| | | |
| | | //防止绑定多次点击事件 |
| | | if (this.dgridSelectEvent){ |
| | | this.dgridSelectEvent.remove() |
| | | } |
| | |
| | | this.dgridSelectEvent = grid.on("dgrid-select", function(evt){ |
| | | //获取行数据 |
| | | let data = evt.rows[0].data |
| | | self.currentSelectHistoryData = data |
| | | if (data.smxVal.point.length>0){ |
| | | |
| | | self.deleteEntities(self.pointEntities) |
| | | if (self.drawingPolyline) |
| | | self.map.entities.remove(self.drawingPolyline); |
| | | |
| | | if (self.waterEntity) |
| | | self.map.entities.remove(self.waterEntity) |
| | | |
| | | $('#sw-input').val("") |
| | | $('#hd-input').val("") |
| | | $('#smx-select option').remove() |
| | | //清空表格数据 |
| | | $('.analysis-box-list').empty(); |
| | | $('#analysis-pagination').hide() |
| | | |
| | | self.analysisTableList = [] |
| | | |
| | | self.createPointAndLine(data.smxVal.point,self.pointEntities) |
| | | |
| | | //历史风险、洪水分析,表格不同的点击事件 |
| | | if (data.smxVal){ |
| | | self.currentSelectHistoryData = data |
| | | if (data.smxVal.point.length>0){ |
| | | self.deleteEntities(self.pointEntities) |
| | | if (self.drawingPolyline) |
| | | self.map.entities.remove(self.drawingPolyline); |
| | | if (self.waterEntity) |
| | | self.map.entities.remove(self.waterEntity) |
| | | $('#sw-input').val("") |
| | | $('#hd-input').val("") |
| | | $('#smx-select option').remove() |
| | | //清空表格数据 |
| | | $('.analysis-box-list').empty(); |
| | | $('#analysis-pagination').hide() |
| | | self.analysisTableList = [] |
| | | self.createPointAndLine(data.smxVal.point,self.pointEntities) |
| | | self.map.camera.flyTo({ |
| | | destination: Cesium.Cartesian3.fromDegrees(data.lon, data.lat, 50000), |
| | | }); |
| | | self.drawWater('history') |
| | | } |
| | | }else { |
| | | self.map.camera.flyTo({ |
| | | destination: Cesium.Cartesian3.fromDegrees(data.lon, data.lat, 50000), |
| | | destination: Cesium.Cartesian3.fromDegrees(data.lng, data.lat, 3000), |
| | | }); |
| | | |
| | | self.drawWater('history') |
| | | } |
| | | |
| | | }); |
| | | grid.renderArray(dataList); |
| | | }, |