111
This commit is contained in:
parent
6cfb560d38
commit
d4f7854aa6
22
web/src/x.min.js
vendored
22
web/src/x.min.js
vendored
@ -3114,7 +3114,6 @@ var X = window.X || {
|
|||||||
elem: ".tab-tit-box .tab-shiqvshezhi"
|
elem: ".tab-tit-box .tab-shiqvshezhi"
|
||||||
,data: X.DATA.timezone
|
,data: X.DATA.timezone
|
||||||
,click: function(obj){
|
,click: function(obj){
|
||||||
console.log(obj)
|
|
||||||
$(".tab-tit-box .tab-shiqvshezhi").html(obj.title);
|
$(".tab-tit-box .tab-shiqvshezhi").html(obj.title);
|
||||||
|
|
||||||
//数据更新
|
//数据更新
|
||||||
@ -3264,12 +3263,13 @@ var X = window.X || {
|
|||||||
X.api('dashboard/','post',{id:X.DATA['dashboard_id']},function(d){
|
X.api('dashboard/','post',{id:X.DATA['dashboard_id']},function(d){
|
||||||
var eventdata=[];
|
var eventdata=[];
|
||||||
var index = d.length;
|
var index = d.length;
|
||||||
for(let i in d){
|
for(let z in d){
|
||||||
|
|
||||||
setTimeout(
|
(function (i, model) { // 注意这里是形参
|
||||||
X.api("ck/"+d[i]['model']+"_model","post",{report_id:d[i]['report_id']},function(val){
|
setTimeout(function () {
|
||||||
// console.log(val);
|
|
||||||
if(d[i]['model'] == "event"){
|
X.api("ck/"+model+"_model","post",{report_id:d[i]['report_id']},function(val){
|
||||||
|
if(model == "event"){
|
||||||
// 事件分析
|
// 事件分析
|
||||||
if(d[i]['graph_size'] == 'small'){
|
if(d[i]['graph_size'] == 'small'){
|
||||||
X.eventsmall(val,function(data){//表格数据处理
|
X.eventsmall(val,function(data){//表格数据处理
|
||||||
@ -3303,7 +3303,6 @@ var X = window.X || {
|
|||||||
|
|
||||||
}
|
}
|
||||||
index --;
|
index --;
|
||||||
console.log(eventdata);
|
|
||||||
if(index <= 0){
|
if(index <= 0){
|
||||||
X.template("modeltable","chart-box",eventdata,function(){
|
X.template("modeltable","chart-box",eventdata,function(){
|
||||||
for(let i in eventdata){
|
for(let i in eventdata){
|
||||||
@ -3353,7 +3352,14 @@ var X = window.X || {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}),"200");//延时0.2秒调用
|
})
|
||||||
|
|
||||||
|
}, 500 * i); // 还是每秒执行一次,不是累加的
|
||||||
|
})(z, d[z]['model']) // 注意这里是实参,这里把要用的参数传进去
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -93,7 +93,6 @@
|
|||||||
elem: ".tab-tit-box .tab-shiqvshezhi"
|
elem: ".tab-tit-box .tab-shiqvshezhi"
|
||||||
,data: X.DATA.timezone
|
,data: X.DATA.timezone
|
||||||
,click: function(obj){
|
,click: function(obj){
|
||||||
console.log(obj)
|
|
||||||
$(".tab-tit-box .tab-shiqvshezhi").html(obj.title);
|
$(".tab-tit-box .tab-shiqvshezhi").html(obj.title);
|
||||||
|
|
||||||
//数据更新
|
//数据更新
|
||||||
@ -243,12 +242,13 @@
|
|||||||
X.api('dashboard/','post',{id:X.DATA['dashboard_id']},function(d){
|
X.api('dashboard/','post',{id:X.DATA['dashboard_id']},function(d){
|
||||||
var eventdata=[];
|
var eventdata=[];
|
||||||
var index = d.length;
|
var index = d.length;
|
||||||
for(let i in d){
|
for(let z in d){
|
||||||
|
|
||||||
setTimeout(
|
(function (i, model) { // 注意这里是形参
|
||||||
X.api("ck/"+d[i]['model']+"_model","post",{report_id:d[i]['report_id']},function(val){
|
setTimeout(function () {
|
||||||
// console.log(val);
|
|
||||||
if(d[i]['model'] == "event"){
|
X.api("ck/"+model+"_model","post",{report_id:d[i]['report_id']},function(val){
|
||||||
|
if(model == "event"){
|
||||||
// 事件分析
|
// 事件分析
|
||||||
if(d[i]['graph_size'] == 'small'){
|
if(d[i]['graph_size'] == 'small'){
|
||||||
X.eventsmall(val,function(data){//表格数据处理
|
X.eventsmall(val,function(data){//表格数据处理
|
||||||
@ -282,7 +282,6 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
index --;
|
index --;
|
||||||
console.log(eventdata);
|
|
||||||
if(index <= 0){
|
if(index <= 0){
|
||||||
X.template("modeltable","chart-box",eventdata,function(){
|
X.template("modeltable","chart-box",eventdata,function(){
|
||||||
for(let i in eventdata){
|
for(let i in eventdata){
|
||||||
@ -332,7 +331,14 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}),"200");//延时0.2秒调用
|
})
|
||||||
|
|
||||||
|
}, 500 * i); // 还是每秒执行一次,不是累加的
|
||||||
|
})(z, d[z]['model']) // 注意这里是实参,这里把要用的参数传进去
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user