zhaoxing
2022-11-03 aa31fa7fc45f56f30b65ca968ab33e343779331a
车辆用由get_1004_single_path改为get_1004_real,去掉tsp前的空数据
5个文件已修改
13 ■■■■ 已修改文件
js/changable_params.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/function_1001.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/function_1004.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/taxiRouteReplay/view.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/taxiRouteReplay2/view.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/changable_params.js
@@ -13,13 +13,14 @@
// var qindex_range_list_1001 = { 'pm25': [35, 75, 115, 150, 250], 'pm10': [50, 150, 250, 350, 420], 'no2': [100, 200, 700, 1200, 2340], 'co': [5, 10, 35, 60, 90] };
var qindex_range_list_1001 = { 'pm25': [10, 20, 50, 80, 100], 'pm10': [20, 50, 80, 150, 200], 'no2': [25, 50, 100, 150, 300], 'co': [0.5, 0.6, 0.8, 1, 1.5], 'so2': [5, 8, 10, 12, 15], 'no2': [10, 35, 65, 100, 200] };
var qindex_range_list_1002 = { 'pm25': [10, 20, 50, 80, 100], 'pm10': [20, 50, 80, 150, 200], 'no2': [25, 50, 100, 150, 300], 'co': [0.5, 0.6, 0.8, 1, 1.5], 'so2': [5, 8, 10, 12, 15], 'no2': [10, 35, 65, 100, 200] };
var qindex_range_list_1003 = {  ' ': [1, 2], 'tsp': [0.2, 0.5] };
var qindex_range_list_1003 = { 'tsp': [0.2, 0.5] };
//var qindex_range_list_1003 = {  ' ': [1, 2], 'tsp': [0.2, 0.5] };
var qindex_range_list_1004_and_other = { 'pm25': [15, 35, 50, 75, 150, 250, 350, 500, 700], 'pm10': [20, 50, 100, 150, 200, 300, 500, 800, 1000], 'no': [10, 30, 60, 100, 200, 500, 1000, 2000, 3500], 'no2': [20, 80, 110, 150, 200, 250, 300, 400, 500], 'nox': [80, 110, 130, 150, 200, 500, 1000, 2000, 5000], 'co': [0.2, 0.4, 0.6, 0.8, 1, 1.5, 2.5, 4, 6] };
var all_layer_legends = {
  1001: ['pm25', 'pm10', 'no2', 'co', 'so2',"o31"]
  , 1002: ['pm25', 'pm10', 'no2', 'co', 'so2',"o3"]
  , 1003: ['','tsp']
  , 1003: ['tsp']
  , 1004: ['pm25', 'pm10', 'no2', 'co', 'no', 'nox']
  , 1005: ['pm25', 'pm10', 'no2', 'co', 'no', 'nox']
  , 1006: ['pm25', 'pm10', 'no2', 'co', 'no', 'nox']
js/function_1001.js
@@ -115,7 +115,7 @@
function getGuokongPointFromServer(tmplayer) {
  $.getJSON(mars3d.global_variables.nodejs_url_predix + "dataapi/Bdata?bid=get_1001_list&datatype=" + mars3d.global_variables.queryDataType + "&datatime=" + mars3d.global_variables.queryDataTStart + "&regionCode="+mars3d.global_variables.regionCode+"&qindex=pm25&pageno=1&pagesize=1000", (result) => {
  $.getJSON(mars3d.global_variables.nodejs_url_predix + "dataapi/Bdata?bid=get_1001_list&datatype=" + mars3d.global_variables.queryDataType + "&datatime=" + mars3d.global_variables.queryDataTStart + "&userid=" + mars3d.global_variables.userid + "&regionCode="+mars3d.global_variables.regionCode+"&qindex=pm25&pageno=1&pagesize=1000", (result) => {
    data_list_1001 = result.data.result;
    addGuokongPointResutToLayer(tmplayer, result.data.result);
  });
js/function_1004.js
@@ -217,7 +217,7 @@
}
function getTaxiPathFromServerbySN(taxi_mn, target_layer) {
  $.getJSON(mars3d.global_variables.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_single_path&siteid=" + taxi_mn["code"], {
  $.getJSON(mars3d.global_variables.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_real&siteid=" + taxi_mn["code"], {
    datatime1: mars3d.global_variables.queryDataTStartTaxi,
    datatime2: mars3d.global_variables.queryDataTEnd
  }, (result) => {
widgetsTS/taxiRouteReplay/view.js
@@ -59,7 +59,7 @@
    let str = $("#taxisn").val()
    let time_1 = thisWidget.appDateHourStart
    let time_2 = thisWidget.appDateHourEnd
    $.getJSON(thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_single_path&siteid=" + $("#taxisn").val(), {
    $.getJSON(thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_real&siteid=" + $("#taxisn").val(), {
    // $.getJSON(thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_single_path&siteid=" + thisWidget.taxi_sn, {
      datatime1: thisWidget.appDateHourStart,
      datatime2: thisWidget.appDateHourEnd
widgetsTS/taxiRouteReplay2/view.js
@@ -61,7 +61,7 @@
    let time_1 = thisWidget.appDateHourStart
    let time_2 = thisWidget.appDateHourEnd
    console.log(str,time_1,time_2,"参数")
    $.getJSON(thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_single_path&siteid=" + $("#taxisn").val(), {
    $.getJSON(thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_real&siteid=" + $("#taxisn").val(), {
    // $.getJSON(thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_single_path&siteid=" + thisWidget.taxi_sn, {
      datatime1: thisWidget.appDateHourStart,
      datatime2: thisWidget.appDateHourEnd