| | |
| | | $("#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=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");
|
| | |
| | | querytype_ = 'hour';
|
| | | }
|
| | | var avgnam = 50; //每页显示个数
|
| | | let queryRegion = current_selected_monitor_street =='上海市'? '' : current_selected_monitor_street;
|
| | | var backend_url = default_system_params.nodejs_url_predix + "dataapi/Bdata?bid=mobile_get_" + current_selected_monitor_type + "_list_keyword&datatype=" + querytype_
|
| | | + "&datatime=" + datatime_
|
| | | + "&qindex=" + current_selected_monitor_qindex
|
| | | + "&keyword=" + current_selected_monitor_keyword
|
| | | + "&pageno="+page+"&pagesize="+avgnam
|
| | | + "&userid="+localStorage.getItem('user_id_')
|
| | | + "®ion="+current_selected_monitor_street;
|
| | | + "®ion="+queryRegion ;
|
| | | var loadingdiv = document.getElementById("warning");
|
| | | $.ajax({
|
| | | type: "GET",
|
| | |
| | | + "&datatime=" + datatime_
|
| | | + "&userid="+localStorage.getItem('user_id_')
|
| | | + "&pageno=1&pagesize=50";
|
| | | console.log(`current selected:${current_selected_monitor_street}`);
|
| | | $.ajax({
|
| | | type: 'get',
|
| | | dataType: 'json',
|
| | |
| | | if(obj.region == select_strict) {
|
| | | $("#regionSelect").prepend(`<option value='${obj.region !='' ? obj.region : ''}' selected>${obj.region}(${obj.region !='上海市' ? obj.num : ''})</option>`); //为Select插入一个Option(第一个位置)
|
| | | } else {
|
| | | $("#regionSelect").append(`<option value='${obj.region !='上海市' ? obj.region : ''}'>${obj.region}(${obj.region !='上海市' ? obj.num : ''})</option>`); //为Select追加一个Option(下拉项)
|
| | | $("#regionSelect").append(`<option value='${obj.region}'>${obj.region}(${obj.region !='上海市' ? obj.num : ''})</option>`); //为Select追加一个Option(下拉项)
|
| | | }
|
| | | } else {
|
| | | if(obj.num > 0 && obj.region !='上海市') {
|