| | |
| | | divFloodHistory: null, |
| | | hdSelect: null, |
| | | smxSelect: null, |
| | | divSwInput: null, |
| | | spanTip: null, |
| | | //河段下拉列表 |
| | | hdDataList: [], |
| | | //洪水分析表格数据 |
| | |
| | | //实时、预测改变事件 |
| | | $('input[type=radio][name=middleRadio]').change(function () { |
| | | if (this.value == "realtime") { |
| | | self.divSwInput.css('visibility', 'hidden') |
| | | self.spanTip.css('visibility', 'hidden') |
| | | $("#sw-input").prop('disabled', true); |
| | | } else { |
| | | self.divSwInput.css('visibility', 'visible') |
| | | self.spanTip.css('visibility', 'visible') |
| | | $("#sw-input").prop('disabled', false); |
| | | } |
| | | }) |
| | | |
| | |
| | | this.divFloodHistory = $('.flood-history') |
| | | this.hdSelect = $('#hd-select') |
| | | this.smxSelect = $('#smx-select') |
| | | this.divSwInput = $('.sw') |
| | | this.spanTip = $('.tip') |
| | | }, |
| | | |
| | | //初始化 |
| | | init() { |
| | | //重置html元素状态 |
| | | this.divSwInput.css('visibility', 'hidden') |
| | | this.spanTip.css('visibility', 'hidden') |
| | | this.divFloodHistory.hide() |
| | | this.divFloodAnalysis.show() |
| | | $("input[type=radio][name=middleRadio][value='realtime']").prop('checked', 'checked') |
| | |
| | | success: function (res) { |
| | | if (res.code == 200) { |
| | | let data = res.data.records |
| | | |
| | | |
| | | if (self.popupIndex != "") { |
| | | layer.close(self.popupIndex) |
| | | self.popupIndex = "" |
| | | } |
| | | |
| | | } |
| | | } |
| | | }); |
| | |
| | | success: function (res) { |
| | | if (res.code == 200) { |
| | | let sub = res.data |
| | | $('#sw-input').val(sub) |
| | | self.analysisTableList.forEach(e => { |
| | | e.lng = Number(e.lng).toFixed(4) |
| | | e.lat = Number(e.lat).toFixed(4) |