From 72015de0173769ebb16e9adfe798d3713d755e55 Mon Sep 17 00:00:00 2001
From: qinbo <qinbo@shsening.com>
Date: 星期四, 13 一月 2022 17:51:51 +0800
Subject: [PATCH] 添加移动车辆天时数量

---
 widgetsTS/widget_summary/view.js |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/widgetsTS/widget_summary/view.js b/widgetsTS/widget_summary/view.js
index b51d7b4..234fda4 100644
--- a/widgetsTS/widget_summary/view.js
+++ b/widgetsTS/widget_summary/view.js
@@ -12,6 +12,7 @@
     thisWidget = _thisWidget
 
     loadCountByUserid();
+    // loadCountByUserid_taxi();
 
     $(".cnt_div a").on("click", function () {
         $(".cnt_div a").removeClass("select_btn");
@@ -68,6 +69,31 @@
                     $("#href" + j).attr("_name", cntObj.name);
                 }
             }
+        },   
+        error: function (request, textStatus) {
+            haoutil.msg("绯荤粺鍚庡彴閿欒锛岃鑱旂郴绠$悊鍛樺鐞嗭紒");
+        }
+    });
+    var backend_url_taxi = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_count_all&datatype=" + thisWidget.datatype + "&datatime="+ thisWidget.datatime;
+    $.ajax({
+        type: 'get',
+        dataType: 'json',
+        data: {},
+        async: true,//鍚屾
+        url : backend_url_taxi,
+        success: function (data) {
+            var cntGroup = data.data.result;
+            if (cntGroup != null) {
+                for(var i=0;i < cntGroup.length;i++){
+                    var cntobj = cntGroup[i]
+                    $("#count_all").text(cntobj.count_all);
+                    $("#count_bus").text(cntobj.count_bus);
+                    $("#count_taxi").text(cntobj.count_taxi);
+                    $("#countName").text(cntobj.name);
+                    $("#href4").attr("_code", cntobj.code);
+                    $("#href4").attr("_name", cntobj.name);
+                }
+            }
         },
         error: function (request, textStatus) {
             haoutil.msg("绯荤粺鍚庡彴閿欒锛岃鑱旂郴绠$悊鍛樺鐞嗭紒");

--
Gitblit v1.9.1