From 10af0bd53b064cb0dfaf9510ca8e293689da2eb8 Mon Sep 17 00:00:00 2001
From: qinbo <qinbo@shsening.com>
Date: 星期二, 11 一月 2022 19:50:35 +0800
Subject: [PATCH] 总览、查询、详情下标修改
---
widgetsTS/widget_search/view.js | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/widgetsTS/widget_search/view.js b/widgetsTS/widget_search/view.js
index 5f72328..f43661b 100644
--- a/widgetsTS/widget_search/view.js
+++ b/widgetsTS/widget_search/view.js
@@ -63,6 +63,8 @@
//鍔犺浇count
function loadCountByUserid() {
var backend_url = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_all_count_by_id&userid=" + thisWidget.userid;
+ var backend_url_taxi = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_count_all&datatime=" + thisWidget.datatime + "&datatype=" + thisWidget.datatype;
+ console.log(backend_url_taxi)
$.ajax({
type: 'get',
dataType: 'json',
@@ -81,6 +83,26 @@
$("#href" + j).attr("_code", cntObj.code);
$("#href" + j).attr("_name", cntObj.name);
}
+ }
+ },
+ error: function (request, textStatus) {
+ }
+ });
+ $.ajax({
+ type: 'get',
+ dataType: 'json',
+ data: {},
+ async: true,//鍚屾
+ url: backend_url_taxi,
+ success: function (data) {
+ var cntGroup = data.data.result;
+ console.log(cntGroup)
+ if (cntGroup != null) {
+ $("#count4").html("");
+ $("#count4").append(cntGroup.count_all);
+ // $("#countName4").text(cntGroup.name);
+ // $("#href4").attr("_code", cntGroup.code);
+ // $("#href4").attr("_name", cntGroup.name);
}
},
error: function (request, textStatus) {
@@ -110,6 +132,18 @@
options = Object.keys(qindex_range_list_1004_and_other);
}
options.forEach(element => $("#qindex_selection").append("<option value='" + element + "'>" + element + "</option>"));
+ $("#qindex_selection").find("option[value=pm25]").text("PM鈧�.鈧�");
+ $("#qindex_selection").find("option[value=pm10]").text("PM鈧佲個");
+ $("#qindex_selection").find("option[value=no]").text("NO");
+ $("#qindex_selection").find("option[value=nox]").text("NO鈧�");
+ $("#qindex_selection").find("option[value=no2]").text("NO鈧�");
+ $("#qindex_selection").find("option[value=co]").text("CO");
+ $("#qindex_selection").find("option[value=so2]").text("SO鈧�");
+ $("#qindex_selection").find("option[value=o3]").text("O鈧�");
+ $("#qindex_selection").find("option[value=o31]").text("O鈧冣倎");
+ $("#qindex_selection").find("option[value=o38]").text("O鈧冣倛");
+ $("#qindex_selection").find("option[value=aqi]").text("AQI");
+ $("#qindex_selection").find("option[value=tsp]").text("TSP");
}
--
Gitblit v1.9.1