| | |
| | | + "&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 = "正在处理,请稍等!"; // 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('请选择查询类别!!!') |
| | |
| | | '</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"); |
| | | } |
| | | }); |
| | | } |