ajax函数加入遮罩层
This commit is contained in:
@@ -33,9 +33,9 @@
|
||||
$("a[data-toggle='tab']").on("click",function(){
|
||||
$("#reportBusinessType").val($(this).data("bussiness"));
|
||||
if(!$(this).parent("li").hasClass("active")){
|
||||
var action=$('select[name="action"]').val();
|
||||
var reportBusinessType=$("#reportBusinessType").val();
|
||||
var reportType=$('input[name="reportType"]:checked').val();
|
||||
//var action=$('select[name="action"]').val();
|
||||
//var reportBusinessType=$("#reportBusinessType").val();
|
||||
//var reportType=$('input[name="reportType"]:checked').val();
|
||||
if($(this).data("bussiness")=="label_report"){
|
||||
ajaxGetLabelReport();
|
||||
}else if($(this).data("bussiness")=="lwhh_report"){
|
||||
@@ -45,6 +45,7 @@
|
||||
});
|
||||
});
|
||||
var ajaxGetLabelReport=function(){
|
||||
loading('<spring:message code="onloading"/>');
|
||||
$.ajax({
|
||||
type:'post',
|
||||
async:false,
|
||||
@@ -56,10 +57,12 @@ var ajaxGetLabelReport=function(){
|
||||
dataType:"html",
|
||||
success:function(data){
|
||||
$("#label").html(data);
|
||||
closeTip();
|
||||
}
|
||||
});
|
||||
}
|
||||
var ajaxGetLwhhReport=function(){
|
||||
loading('<spring:message code="onloading"/>');
|
||||
$.ajax({
|
||||
type:'post',
|
||||
async:false,
|
||||
@@ -71,6 +74,7 @@ var ajaxGetLwhhReport=function(){
|
||||
dataType:"html",
|
||||
success:function(data){
|
||||
$("#lwhh").html(data);
|
||||
closeTip();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user