| | |
| | | currentNearPoint:null, |
| | | evaluateLayerIndex:"", |
| | | //收起框打开状态 |
| | | isOpen: true, |
| | | popupLayer: null, |
| | | //api接口 |
| | | url: { |
| | | riverwaySelectName: "http://localhost:82/blade-ycreal/riverway/selectName", |
| | |
| | | if (self.evaluateLayerIndex){ |
| | | layer.close(self.evaluateLayerIndex) |
| | | self.evaluateLayerIndex = "" |
| | | $('#restore-icon').css('display','none') |
| | | } |
| | | setTimeout(function(){//有bug 需要延迟执行隐藏 |
| | | $("#hd-select").hide() |
| | |
| | | self.loadPagination(filterArray, "history-pagination") |
| | | }) |
| | | |
| | | $('#save-button').click(function () { |
| | | self.confirmPopup() |
| | | // self.floodAnalysisPopup() |
| | | $('#restore-icon').click(function () { |
| | | if (self.popupLayer){ |
| | | self.popupLayer.css('display',"") |
| | | } |
| | | }) |
| | | }, |
| | | |
| | |
| | | $('#search-name').val("") |
| | | $('#glzd').val("") |
| | | $('#qdj').val('') |
| | | $('.restore-icon').css('display','none') |
| | | this.isOpen = true |
| | | |
| | | this.analysisBtn.addClass('choose-button') |
| | |
| | | let isAnalysis = flag == 'analysis'?true:false |
| | | |
| | | let parentData = {} |
| | | |
| | | let btnGroup = [] |
| | | if (isAnalysis){ |
| | | parentData.data = this.evaluateData |
| | | parentData.hd = this.currentHd |
| | |
| | | closeBtn: 0, |
| | | shade: 0, |
| | | move:false, |
| | | maxmin: true, |
| | | maxmin: false, |
| | | //设置默认不在左下角 |
| | | minStack:false, |
| | | min: function(layero,index){ |
| | | setTimeout(function(){ |
| | | layero.css({ |
| | | 'width':'50px', |
| | | 'top': '83px', |
| | | 'left':'inherit', |
| | | 'right':'0px', |
| | | }) |
| | | // layero.css({ |
| | | // 'width':'50px', |
| | | // 'top': '83px', |
| | | // 'left':'inherit', |
| | | // 'right':'0px', |
| | | // }) |
| | | self.popupLayer = $('.layui-layer') |
| | | layero.css('display','none') |
| | | $('#restore-icon').css('display','') |
| | | }) |
| | | //显示最大化icon |
| | | $('.layui-layer-max').css("display","") |
| | |
| | | $('.layui-layer-title').css({ |
| | | 'background-color':'rgb(255,255,255)' |
| | | }) |
| | | return false |
| | | }, |
| | | restore: function(layero,index) { |
| | | //隐藏最大化icon |
| | |
| | | }) |
| | | }, |
| | | success:function (layero,index) { |
| | | |
| | | $('.layui-layer-setwin .layui-layer-min cite').css("background-color",'white') |
| | | |
| | | //绑定父子之间的关系,用于数据传递,缺少则无法传递 |
| | | var body = layer.getChildFrame("body", index); |
| | | //得到iframe页的窗口对象 |
| | |
| | | }else { |
| | | iframeWin.$('#save-btn').hide() |
| | | } |
| | | iframeWin.$('#close-btn').click(function () { |
| | | self.popupLayer = $('.layui-layer') |
| | | self.popupLayer.css('display','none') |
| | | $('#restore-icon').css('display','') |
| | | }) |
| | | |
| | | if ($('.layui-layer-max').hasClass('layui-layer-maxmin')){ |
| | | $('.layui-layer-max').css("display","") |
| | |
| | | //关闭分析窗口 |
| | | if (this.evaluateLayerIndex){ |
| | | layer.close(this.evaluateLayerIndex) |
| | | $('#restore-icon').css('display','none') |
| | | this.evaluateLayerIndex = "" |
| | | } |
| | | |