页面JS调用,待接口可用之后调整返回数据
This commit is contained in:
@@ -618,18 +618,24 @@ var viewAreaInfo=function(path,areaEffectiveIds,compileId){
|
||||
});
|
||||
}
|
||||
|
||||
var GetLogTotal=function(){
|
||||
var GetLogTotal=function(path,data){
|
||||
console.log(data);
|
||||
var timeStamp=0;
|
||||
if(data.date){
|
||||
timeStamp=data.date.valueOf();
|
||||
}else{
|
||||
timeStamp=(new Date()).valueOf();
|
||||
}
|
||||
$.ajax({
|
||||
type:'post',
|
||||
timeout:1000,//超时时间设置,查询接口时间过长超时
|
||||
timeout:10000,//超时时间设置,查询接口时间过长超时
|
||||
url:path+'/logs/ajaxGetLogTotal',
|
||||
data:function(){//处理数据
|
||||
return {"functionId":functionId,"compileIds":compileIds};
|
||||
},
|
||||
data:{"endTime":timeStamp,"action":data.action,"functionId":data.functionId,"compileId":data.compileId},
|
||||
dataType:'json',
|
||||
async:false,
|
||||
async:true,
|
||||
success:function(data,textStatus){//处理返回结果
|
||||
|
||||
if(textStatus=="success"){
|
||||
}
|
||||
},
|
||||
complete:function(XMLHttpRequest,status){//超时设置
|
||||
if(status=="timeout"){
|
||||
|
||||
Reference in New Issue
Block a user