From a84aa78163506d4ed27b2ffa15a93bca6ed31d5d Mon Sep 17 00:00:00 2001
From: wr1207 <wyun001@163.com>
Date: 星期二, 17 十月 2023 11:44:27 +0800
Subject: [PATCH] 移动增加查询等待的提示
---
mobile/js/widget_search_view.js | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/mobile/js/widget_search_view.js b/mobile/js/widget_search_view.js
index 13a994d..57dd46a 100644
--- a/mobile/js/widget_search_view.js
+++ b/mobile/js/widget_search_view.js
@@ -129,17 +129,22 @@
+ "&pageno="+page+"&pagesize="+avgnam
+ "&userid="+localStorage.getItem('user_id_')
+ "®ion="+current_selected_monitor_street;
+ var loadingdiv = document.getElementById("warning");
$.ajax({
type: "GET",
url: backend_url,
dataType: "json",
+ async: true,
+ beforeSend: function(){
+ loadingdiv.innerhtml = "姝e湪澶勭悊锛岃绋嶇瓑锛�"; // insert tip information
+ $("#btn").attr({disabled:"disabled"});
+ $("#regionSelect").attr({disabled:"disabled"});
+ $("#querySelect").attr({disabled:"disabled"});
+ $("#qindex_selection").attr({disabled:"disabled"});
+ loadingdiv.style.display = "block"; // display the div
+ },
success: function (data) {
tableData = data.data.result;
- // if (current_selected_monitor_keyword == null) {
- // // haoutil.msg("璇疯緭鍏ュ叧閿瓧锛侊紒锛�")
- // alert('璇疯緭鍏ュ叧閿瓧锛侊紒锛�')
- // return;
- // }
if (tableData == null) {
// haoutil.msg("璇烽�夋嫨鏌ヨ绫诲埆锛侊紒锛�")
alert('璇烽�夋嫨鏌ヨ绫诲埆锛侊紒锛�')
@@ -182,6 +187,13 @@
'</div>';
$("#pageID").append(content1);
$("#page").append(content2);
+ },complete: function() {
+ loadingdiv.innerhtml = "";
+ loadingdiv.style.display = "none";
+ $("#btn").removeAttr("disabled");
+ $("#regionSelect").removeAttr("disabled");
+ $("#querySelect").removeAttr("disabled");
+ $("#qindex_selection").removeAttr("disabled");
}
});
}
--
Gitblit v1.9.1