赣州市洪水风险预警系统三维版本
guoshilong
2023-02-20 d1ed00750827aaa86e9e90bf8bbf8486bd547377
themes/FoldableTheme/widgets/HeaderController/Widget.js
@@ -97,7 +97,12 @@
            this.resize();
            setTimeout(lang.hitch(this, this.resize), 100);
            //根据部件名称启动部件
            topic.subscribe('runWidgetByName', lang.hitch(this, this._runWidgetByName('ComprehensiveSupervise')));
            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('FloodAnalysis')));
            else
               topic.subscribe('runWidgetByName', lang.hitch(this, this._runWidgetByName('ComprehensiveSupervise')));
         },
         _runWidgetByName: function (name) {
            for (i = 0; i < this.appConfig.widgetPool.widgets.length; i++) {