From 2c293b830d155ececb964f4de9105a0aa8031820 Mon Sep 17 00:00:00 2001
From: wr1207 <wyun001@163.com>
Date: 星期四, 27 七月 2023 14:48:33 +0800
Subject: [PATCH] 自动查询

---
 mobile/js/widget_search_view.js |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/mobile/js/widget_search_view.js b/mobile/js/widget_search_view.js
index 5836a5e..b2f1a9c 100644
--- a/mobile/js/widget_search_view.js
+++ b/mobile/js/widget_search_view.js
@@ -2,7 +2,7 @@
 
 var current_selected_monitor_type = "1001";
 var current_selected_monitor_name = "鍥芥帶鐐�";
-var current_selected_monitor_keyword;
+var current_selected_monitor_keyword="";
 var current_selected_monitor_qindex = "pm25";
 var current_selected_monitor_street = "";
 
@@ -27,7 +27,7 @@
     changeQindexSelection();
 }
 monitortype();
-
+reloadData(1);
 
 $("#querySelect").change(function(){
     //code...
@@ -36,10 +36,10 @@
     // var checkIndex=$("#select_id ").get(0).selectedIndex; //鑾峰彇Select閫夋嫨鐨勭储寮曞��
     // var maxIndex=$("#select_id option:last").attr("index"); //鑾峰彇Select鏈�澶х殑绱㈠紩鍊�
     monitortype();
+    reloadData(1);
 
 }); //涓篠elect娣诲姞浜嬩欢锛屽綋閫夋嫨鍏朵腑涓�椤规椂瑙﹀彂
  
-regionSelect
 
 $("#regionSelect").change(function(){
     //code...
@@ -128,11 +128,11 @@
         dataType: "json",
         success: function (data) {
             tableData = data.data.result;
-            if (current_selected_monitor_keyword == null) {
-                // haoutil.msg("璇疯緭鍏ュ叧閿瓧锛侊紒锛�")
-                alert('璇疯緭鍏ュ叧閿瓧锛侊紒锛�')
-                return;
-            }
+            // if (current_selected_monitor_keyword == null) {
+            //     // haoutil.msg("璇疯緭鍏ュ叧閿瓧锛侊紒锛�")
+            //     alert('璇疯緭鍏ュ叧閿瓧锛侊紒锛�')
+            //     return;
+            // }
             if (tableData == null) {
                 // haoutil.msg("璇烽�夋嫨鏌ヨ绫诲埆锛侊紒锛�")
                 alert('璇烽�夋嫨鏌ヨ绫诲埆锛侊紒锛�')

--
Gitblit v1.9.1