From 93bcde625013139211a0a0aa1ae6f806354b9a55 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期三, 03 十一月 2021 22:44:40 +0800
Subject: [PATCH] 修改 top N

---
 js/changable_params.js             |    2 +-
 widgetsTS/widget_summary/view.html |    2 +-
 widgetsTS/widget_summary/view.js   |    5 +++++
 widgetsTS/widget_summary/widget.js |    8 +++++---
 4 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/js/changable_params.js b/js/changable_params.js
index 10a7bf9..3f6ecfa 100644
--- a/js/changable_params.js
+++ b/js/changable_params.js
@@ -40,7 +40,7 @@
   , 100611: ['#00EE00', '#FF9F7F', '#FFD700', '#ff6600', '#ff0066', '#ff6666']
 }
 
-var default_system_params = { geoserver_url_predix: 'http://58.246.27.194:7011/', nodejs_url_predix: 'http://58.246.27.194:7012/', userid: 2, queryDataType: 'hour', weathercitycode: '101020100', wind360: 0, windSpeed: 10, is_single_taxi_replaying: false,summary_topN_count :30};
+var default_system_params = { geoserver_url_predix: 'http://58.246.27.194:7011/', nodejs_url_predix: 'http://58.246.27.194:7012/', userid: 2, queryDataType: 'hour', weathercitycode: '101020100', wind360: 0, windSpeed: 10, is_single_taxi_replaying: false,summary_topN_count :50};
 
 function bindPopupFunction(event) {
 
diff --git a/widgetsTS/widget_summary/view.html b/widgetsTS/widget_summary/view.html
index 82bbf30..34d2457 100644
--- a/widgetsTS/widget_summary/view.html
+++ b/widgetsTS/widget_summary/view.html
@@ -82,7 +82,7 @@
     <div class="layui-row">
         <span class="layui-breadcrumb" lay-separator="|">
             <a href="#"></a>
-            <a href="#" style="color: white!important;">鐩戞祴Top30</a>
+            <a href="#" style="color: white!important;"><span id="topN_name">鐩戞祴Top50</span></a>
             <a href="#"></a>
         </span>
     </div>
diff --git a/widgetsTS/widget_summary/view.js b/widgetsTS/widget_summary/view.js
index 691c33a..534196e 100644
--- a/widgetsTS/widget_summary/view.js
+++ b/widgetsTS/widget_summary/view.js
@@ -138,4 +138,9 @@
     if (current_selected_monitor_type !=100500){
         thisWidget.showDetailedWindow({ "nodejs_url_predix": thisWidget.nodejs_url_predix, "datatype": thisWidget.datatype,"selected_qindex": current_selected_monitor_qindex,"datatime": thisWidget.datatime, "layerid": current_selected_monitor_type, "siteid": siteId });
     }
+}
+
+function setTopNname(count){
+    $("#topN_name").html("Top"+count);
+
 }
\ No newline at end of file
diff --git a/widgetsTS/widget_summary/widget.js b/widgetsTS/widget_summary/widget.js
index 73d9576..e469e18 100644
--- a/widgetsTS/widget_summary/widget.js
+++ b/widgetsTS/widget_summary/widget.js
@@ -8,11 +8,11 @@
                 type: 'window',
                 url: 'view.html',
                 windowOptions: {
-                    width: 380,
+                    width: 434,
                     position: {
-                        top: 180,
+                        top: 170,
                         left: 5,
-                        bottom: 110
+                        bottom: 100
                     },
                 },
             }
@@ -51,6 +51,8 @@
         //姣忎釜绐楀彛鍒涘缓瀹屾垚鍚庤皟鐢�
         winCreateOK(opt, result) {
             this.winPage = result;
+
+            this.winPage.setTopNname(mars3d.global_variables.summary_topN_count);
         }
 
         //鎵撳紑婵�娲�

--
Gitblit v1.9.1