修复前台传入后台的compileId没有日志结果返回的时候,界面上loading没有正确消失变为0的bug
This commit is contained in:
@@ -1310,6 +1310,7 @@ var GetLogTotal=function(_data){
|
||||
success:function(data,textStatus){//处理返回结果
|
||||
if(textStatus=="success"){
|
||||
totalTrs.each(function(){
|
||||
var hasLog=false;
|
||||
for(var i=0;i<data.length;i++){
|
||||
if($(this).attr("compileId")==data[i].compileId){
|
||||
$(this).attr("id",i+"logTotal");
|
||||
@@ -1318,8 +1319,12 @@ var GetLogTotal=function(_data){
|
||||
}else{
|
||||
$(this).html(data[i].sum);
|
||||
}
|
||||
hasLog=true;
|
||||
}
|
||||
}
|
||||
if(!hasLog){
|
||||
$(this).html("0");
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user