Commit 8762fff3 authored by liuna's avatar liuna

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

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