提交日志总量获取,由于目前接口不可用,所以后台直接造的数据。超时直接显示超时
This commit is contained in:
@@ -619,31 +619,34 @@ var viewAreaInfo=function(path,areaEffectiveIds,compileId){
|
||||
}
|
||||
|
||||
var GetLogTotal=function(path,data){
|
||||
console.log(data);
|
||||
var timeStamp=0;
|
||||
if(data.date){
|
||||
timeStamp=data.date.valueOf();
|
||||
}else{
|
||||
timeStamp=(new Date()).valueOf();
|
||||
}
|
||||
$.ajax({
|
||||
var totalTr=$(data.obj);
|
||||
var timeout=$.validator.messages.timeout;
|
||||
var request=$.ajax({
|
||||
type:'post',
|
||||
timeout:10000,//超时时间设置,查询接口时间过长超时
|
||||
timeout:1000,//超时时间设置,查询接口时间过长超时
|
||||
url:path+'/logs/ajaxGetLogTotal',
|
||||
data:{"endTime":timeStamp,"action":data.action,"functionId":data.functionId,"compileId":data.compileId},
|
||||
dataType:'json',
|
||||
async:true,
|
||||
success:function(data,textStatus){//处理返回结果
|
||||
if(textStatus=="success"){
|
||||
totalTr.html(data.sum);
|
||||
}
|
||||
},
|
||||
complete:function(XMLHttpRequest,status){//超时设置
|
||||
if(status=="timeout"){
|
||||
GetLogTotal.about();
|
||||
totalTr.html(timeout);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//删除区域IP
|
||||
function delAreaIp(obj){
|
||||
var thisObj=$(obj);
|
||||
|
||||
Reference in New Issue
Block a user