赣州市洪水风险预警系统三维版本
guoshilong
2023-02-17 fb25aba37a8c3cf5f63f83dd4de6cbf568bd5fa5
洪水淹没-样式调整
2 files modified
37 ■■■■■ changed files
widgets/FloodAnalysis/Widget.html 2 ●●● patch | view | raw | blame | history
widgets/FloodAnalysis/Widget.js 35 ●●●●● patch | view | raw | blame | history
widgets/FloodAnalysis/Widget.html
@@ -52,7 +52,7 @@
                               maxlength="256" placeholder="请输入筛选名称"/>
                        <input id="search-button" class="search-button" type="button" value="查  询"/>
                    </div>
                    <div style="height: 100%" class="history-box-list" id="history-tab2-grid" data-dojo-attach-point="history-tab2-grid">
                    <div style="height: 85%" class="history-box-list" id="history-tab2-grid" data-dojo-attach-point="history-tab2-grid">
                    </div>
                    <div class="flood-analysis-pagination" id="history-pagination"></div>
                </div>
widgets/FloodAnalysis/Widget.js
@@ -38,6 +38,7 @@
        hdDataList: [],
        //洪水分析表格数据
        analysisTableList: [],
        dgridSelectEvent:null,
        //历史风险图表格数据
        historyTableList: [
            {name: "5年洪水淹没图"},
@@ -88,20 +89,6 @@
        startup: function startup() {
            var self = this
            this.bindHtmlElement()
            //收起展开按钮点击事件
            $(".fold-btn").click(function () {
                if (self.isOpen) {
                    $(this).addClass('close')
                    $(this).removeClass('open')
                    $('.content').hide()
                    self.isOpen = false
                } else {
                    $(this).addClass('open')
                    $(this).removeClass('close')
                    $('.content').show()
                    self.isOpen = true
                }
            })
            //实时、预测改变事件
            $('input[type=radio][name=middleRadio]').change(function () {
@@ -148,6 +135,7 @@
                $('#analysis-pagination').hide()
                $('#history-pagination').show()
                //获取历史数据
                self.getHistoryList()
            })
@@ -254,6 +242,8 @@
            $('#hd-input').val("")
            //清空表格数据
            $('.location-box-list').empty();
            $('.history-box-list').empty();
            $('#analysis-pagination').hide()
            this.analysisTableList = []
@@ -310,8 +300,7 @@
            this.currentSmxcode = ""
            //获取河段数据
            this.getHdData()
            //获取历史数据
            this.getHistoryList()
        },
        //获取河段下拉数据
@@ -726,12 +715,16 @@
            grid.startup();
            //change事件
            grid.on("dgrid-datachange", function(evt){
                //获取行数据
                let data = evt.cell.row.data
            });
            // grid.on("dgrid-datachange", function(evt){
            //     //获取行数据
            //     let data = evt.cell.row.data
            // });
            grid.on("dgrid-select", function(evt){
            if (this.dgridSelectEvent){
                this.dgridSelectEvent.remove()
            }
            this.dgridSelectEvent = grid.on("dgrid-select", function(evt){
                //获取行数据
                let data = evt.rows[0].data
                console.log(data)