From 18e1ebbf52aff6284869c634d14f77ed250272d1 Mon Sep 17 00:00:00 2001
From: qinbo <qinbo@shsening.com>
Date: 星期日, 26 九月 2021 09:32:15 +0800
Subject: [PATCH]  change  layer add time

---
 widgetsTS/dataTime/widget.js |   42 ++++++++++++++++++++++++++++--------------
 1 files changed, 28 insertions(+), 14 deletions(-)

diff --git a/widgetsTS/dataTime/widget.js b/widgetsTS/dataTime/widget.js
index 2974be9..8589b3a 100644
--- a/widgetsTS/dataTime/widget.js
+++ b/widgetsTS/dataTime/widget.js
@@ -68,12 +68,26 @@
       if (window.top) {
         request = $.extend(request, haoutil.system.getRequest(window.top));
       }
-      console.log( mars3d.globel_variables);
-      mars3d.globel_variables = { geoserver_url_predix:'http://58.246.27.194:7011/',userid: request.userid || 2, queryDataType: 'hour' };
-      mars3d.globel_variables.queryDataTStart = this.defaultDateTime;
-      mars3d.globel_variables.queryDataTEnd = this.defaultDateTime;
-      mars3d.globel_variables.layer100600_conifg={name:'琛楅亾',styleoptions:['pm25','pm10'],selectedstyle:'pm25'};
-      console.log( mars3d.globel_variables);
+      console.log( mars3d.global_variables);
+      mars3d.global_variables = { geoserver_url_predix:'http://58.246.27.194:7011/',userid: request.userid || 2, queryDataType: 'hour' };
+      mars3d.global_variables.queryDataTStart = this.defaultDateTime;
+      mars3d.global_variables.queryDataTEnd = this.defaultDateTime;
+      mars3d.global_variables.layer1001_conifg={name:'鍥芥帶鐐�',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer1002_conifg={name:'寰珯',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer1003_conifg={name:'鐩戞祴鐐�',styleoptions:['p_01'],selectedstyle:'p_01',show:false};
+    聽聽mars3d.global_variables.layer1005_conifg={name:'涓婃捣甯傞亾璺�',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer100600_conifg={name:'鏈哄満',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer100601_conifg={name:'鐮佸ご',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer100602_conifg={name:'鐜嚎',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer100603_conifg={name:'宸ヤ笟鍥尯',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer100604_conifg={name:'杩涘崥浼�',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer100605_conifg={name:'杈圭晫',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer100607_conifg={name:'瀹濆北鍦�',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer100610_conifg={name:'琛屾斂鍖�',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer100611_conifg={name:'琛楅亾',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer1000_conifg={name:'缃戞牸鍥惧眰1000',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+    聽聽mars3d.global_variables.layer5000_conifg={name:'缃戞牸鍥惧眰5000',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
+      console.log( mars3d.global_variables);
 
     }
 
@@ -94,7 +108,7 @@
           $('#appDate').show()
           $('#appDateHour').hide()
         }
-        mars3d.globel_variables.queryDataType = value;
+        mars3d.global_variables.queryDataType = value;
       });
 
       $("#appDate").datetimepicker({
@@ -111,8 +125,8 @@
         todayHighlight: 1  //濡傛灉涓簍rue, 楂樹寒褰撳墠鏃ユ湡
       }).on("changeDate", function () {
 
-        mars3d.globel_variables.queryDataTStart = $('#appDate').val() + " 00:00:00";
-        console.log(mars3d.globel_variables.queryDataTStart);
+        mars3d.global_variables.queryDataTStart = $('#appDate').val() + " 00:00:00";
+        console.log(mars3d.global_variables.queryDataTStart);
 
         // 鍦� function.js 涓畾涔夌殑 function
         addguokongLayers();
@@ -136,7 +150,7 @@
         reloadTop10();
 
         reLoadLayers();
-        refreshWidgets();
+        // refreshWidgets();
 
       });
       $("#appDate").datetimepicker("setDate", new Date(this.defaultDate));
@@ -156,8 +170,8 @@
         todayHighlight: 1  //濡傛灉涓簍rue, 楂樹寒褰撳墠鏃ユ湡
       }).on("changeDate", function () {
 
-        mars3d.globel_variables.queryDataTStart = $('#appDateHour').val();
-        console.log(mars3d.globel_variables.queryDataTStart);
+        mars3d.global_variables.queryDataTStart = $('#appDateHour').val();
+        console.log(mars3d.global_variables.queryDataTStart);
         // 鍦� function.js 涓畾涔夌殑 function
         addguokongLayers();
         addWeizhanLayer();
@@ -179,8 +193,8 @@
         
         reloadTop10();
 
-        reLoadLayers();
-        refreshWidgets();
+        // reLoadLayers();
+        // refreshWidgets();
       });
       $("#appDateHour").datetimepicker("setDate", new Date(this.defaultDateTime));
       $('#appDateHour').datetimepicker('setEndDate', new Date(this.defaultDateTime));

--
Gitblit v1.9.1