Commit 8762fff3 authored by liuna's avatar liuna

2018年2月2日 --智能分析平台

--实体厅流量监测:营业厅业务量、用户趋势图时间调整
parent 7e9e8288
This diff is collapsed.
......@@ -1109,12 +1109,18 @@
var hallList = [];
var time=[];
var dataList=[];
data.forEach(function(t,i){
if(i===0){
t.forEach(function(t1){
time.push(df.format(new Date(t1[2])))
})
var longList = [];
for(var a=0;a<data.length;a++){
if(longList.length<data[a].length){
longList=data[a];
}
}
longList.forEach(function (d) {
time.push(df.format(new Date(d[2])))
})
data.forEach(function(t,i){
dataList.push([]);
t.forEach(function(t1,j){
if(j===0){
......@@ -1225,12 +1231,17 @@
var hallList = [];
var time=[];
var dataList=[];
data.forEach(function(t,i){
if(i===0){
t.forEach(function(t1){
time.push(df.format(new Date(t1[2])))
})
var longList = [];
for(var a=0;a<data.length;a++){
if(longList.length<data[a].length){
longList=data[a];
}
}
longList.forEach(function (d) {
time.push(df.format(new Date(d[2])))
})
data.forEach(function(t,i){
dataList.push([])
t.forEach(function(t1,j){
if(j===0){
......@@ -1491,7 +1502,9 @@
},
grid:{
x:100,
x2:20
y:90,
x2:20,
y2:20,
},
legend: {
data:['宽带开户', '资料变更','产品变更','套餐变更','综合账单查询','充值缴费','资金变化查询','详单查询','积分查询','其他']
......@@ -1634,8 +1647,6 @@
async: false,
success: function(data){
console.log("用户IP业务实时",data);
var cnt1 = new Array();
var cnt2 = new Array();
......@@ -1818,9 +1829,9 @@
trigger: 'axis'
},
grid:{
x:50,
y:40,
x2:10,
x:100,
y:80,
x2:20,
y2:30,
},
legend: {
......@@ -1927,13 +1938,18 @@
var dataList=[];
var time=[];
var ipList=[];
var longList = [];
for(var a=0;a<data.length;a++){
if(longList.length<data[a].length){
longList=data[a];
}
}
longList.forEach(function (d) {
time.push(df.format(new Date(d[2])))
})
data.forEach(function(t,i){
t.sort(function(t1,t2){return t1[2]-t2[2]});
if(i===0){
t.forEach(function(t1){
time.push(df.format(new Date(t1[2])))
})
}
dataList.push([])
t.forEach(function(t1,j){
if(j===0){
......@@ -1983,9 +1999,9 @@
trigger: 'axis'
},
grid:{
x:50,
y:40,
x2:10,
x:100,
y:80,
x2:20,
y2:30,
},
legend: {
......@@ -2091,13 +2107,19 @@
var dataList=[];
var time=[];
var ipList=[];
var longList = [];
for(var a=0;a<data.length;a++){
if(longList.length<data[a].length){
longList=data[a];
}
}
longList.forEach(function (d) {
time.push(df.format(new Date(d[2])))
})
data.forEach(function(t,i){
t.sort(function(t1,t2){return t1[2]-t2[2]});
if(i===0){
t.forEach(function(t1){
time.push(df.format(new Date(t1[2])))
})
}
dataList.push([])
t.forEach(function(t1,j){
if(j===0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment