| | |
| | | this.resize(); |
| | | setTimeout(lang.hitch(this, this.resize), 100); |
| | | //根据部件名称启动部件 |
| | | topic.subscribe('runWidgetByName', lang.hitch(this, this._runWidgetByName)); |
| | | var reg = new RegExp("(^|&)"+ 'path' +"=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 |
| | | var r = window.location.search.substr(1).match(reg); //匹配目标参数 |
| | | if (r!=null) //如果有参数跳转洪水淹没分析部件 |
| | | topic.subscribe('runWidgetByName', lang.hitch(this, this._runWidgetByName(unescape(r[2])))); |
| | | else |
| | | topic.subscribe('runWidgetByName', lang.hitch(this, this._runWidgetByName('FloodAnalysis'))); |
| | | }, |
| | | _runWidgetByName: function (name) { |
| | | for (i = 0; i < this.appConfig.widgetPool.widgets.length; i++) { |
| | |
| | | 'position': "absolute", |
| | | 'top': "45px", |
| | | 'left': "0px", |
| | | 'height': '135px', |
| | | 'height': '90px', |
| | | 'width': '126px', |
| | | 'background': 'rgb(0,23,54)', |
| | | 'z-index': '50' |
| | |
| | | var firstNode = null; |
| | | var middleNode = null; |
| | | var lastNode = null; |
| | | var finalNode = null; |
| | | |
| | | for (var i = 0; i < iconNode.length; i++) { |
| | | if (iconNode[i].name == 'AnalysisOfBarrierLake') { |
| | | firstNode = html.create('li', { |
| | |
| | | if (!that.flags) { |
| | | $(event.target).parent().parent().siblings().toggleClass('click-icon-node'); |
| | | } |
| | | console.log(self.openedId,"8888") |
| | | if (self.openedId && self.openedId === firstNode.config.id) { |
| | | self._switchNodeToClose(self.openedId); |
| | | return; |
| | |
| | | this._createDropTriangle(firstNode); |
| | | } |
| | | } |
| | | |
| | | |
| | | if (iconNode[i].name == 'ThematicDynamicRiver') { |
| | | middleNode = html.create('li', { |
| | | 'class': 'icon-node jimu-float-trailing openli', |
| | |
| | | this._createDropTriangle(lastNode); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | $(node).mouseover(function () { |
| | | $(dropDownDisplay).stop().show(); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // node = html.create('div', { |
| | |
| | | }, |
| | | |
| | | _onIconClick: function (node) { |
| | | |
| | | if (node.innerHTML == '风险预警') { |
| | | window.open('http://192.168.0.207:8080/hsyj/index.html', '_self') |
| | | return |
| | | } |
| | | if (!node.config.widgets || node.config.widgets.length === 1 || |
| | | node.config.openType === 'openAll') { |
| | | //widget or group with 'openAll' open type |
| | |
| | | this.flag = false; |
| | | this.flags = false; |
| | | this.megflag = false; |
| | | this.floodAnalysisFlag = false; |
| | | if (this.openedId && this.openedId === node.config.id) { |
| | | this._switchNodeToClose(this.openedId); |
| | | return; |
| | |
| | | for (i = this.headerIconCount; i < allIconConfigs.length; i++) { |
| | | // 做修改得地方 |
| | | iconConfig = allIconConfigs[i]; |
| | | if (iconConfig.name == "AnalysisOfBarrierLake" || iconConfig.name == "ThematicDynamicRiver" || iconConfig.name == "MapSection") { |
| | | if (iconConfig.name == "AnalysisOfBarrierLake" || iconConfig.name == "ThematicDynamicRiver" || iconConfig.name == "MapSection" || iconConfig.name == "FloodAnalysis") { |
| | | continue; |
| | | } else { |
| | | moreItems.push(iconConfig); |
| | |
| | | } |
| | | }); |
| | | return clazz; |
| | | }); |
| | | }); |