作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

order

@@ -59,7 +59,7 @@ class AdminStatisticsController extends AdminBaseController{ @@ -59,7 +59,7 @@ class AdminStatisticsController extends AdminBaseController{
59 $this->assign('monthData',json_encode($Month_statistics)); 59 $this->assign('monthData',json_encode($Month_statistics));
60 60
61 61
62 - dump($Month); 62 + dump($Month_statistics);
63 63
64 echo strtotime('2018-11-15 10:15:30'); 64 echo strtotime('2018-11-15 10:15:30');
65 65
@@ -116,9 +116,10 @@ @@ -116,9 +116,10 @@
116 "第八周","第九周","第十周","第十一周","第十二周","第十三周","第十四周","第十五周"]; 116 "第八周","第九周","第十周","第十一周","第十二周","第十三周","第十四周","第十五周"];
117 var weekDataY = {$weekData}; 117 var weekDataY = {$weekData};
118 118
119 - var axisData = ["第一周","第二周","第三周","第四周","第五周","第六周", "第七周",  
120 - "第八周","第九周","第十周","第十一周","第十二周","第十三周","第十四周","第十五周"];  
121 - var myData = {$weekData}; 119 + var monthDataX = ["第一月","第二月","第三月","第四月","第五月","第六月", "第七月",
  120 + "第八月","第九月","第十月","第十一月","第十二月","第十三月","第十四月","第十五月",
  121 + "第十六月","第十七月","第十八月","第十九月","第二十月","第二十一月","第二十二月","第二十三月","第二十四月"];
  122 + var monthDataY = {$monthData};
122 123
123 124
124 function GetData(){ 125 function GetData(){
@@ -255,6 +256,7 @@ @@ -255,6 +256,7 @@
255 256
256 ] 257 ]
257 }; 258 };
  259 + //医院总时长
258 var option2 = { 260 var option2 = {
259 title:{ 261 title:{
260 text : '医院总体使用时长', 262 text : '医院总体使用时长',
@@ -326,6 +328,7 @@ @@ -326,6 +328,7 @@
326 328
327 ] 329 ]
328 }; 330 };
  331 +
329 var option4 = { 332 var option4 = {
330 title:{ 333 title:{
331 text : '昨日订单来源分析', 334 text : '昨日订单来源分析',
@@ -398,6 +401,7 @@ @@ -398,6 +401,7 @@
398 } 401 }
399 ] 402 ]
400 }; 403 };
  404 + //月统计
401 var option10 = { 405 var option10 = {
402 backgroundColor : "white", 406 backgroundColor : "white",
403 color : ["#c05050","#59678c"], 407 color : ["#c05050","#59678c"],
@@ -421,7 +425,7 @@ @@ -421,7 +425,7 @@
421 realtime: true, 425 realtime: true,
422 y : 220, 426 y : 220,
423 height: 20, 427 height: 20,
424 - start : 0, 428 + start : 50,
425 end : 100 429 end : 100
426 }, 430 },
427 calculable : true, 431 calculable : true,
@@ -434,7 +438,7 @@ @@ -434,7 +438,7 @@
434 { 438 {
435 type : 'category', 439 type : 'category',
436 boundaryGap : true, 440 boundaryGap : true,
437 - data : axisData 441 + data : monthDataX
438 } 442 }
439 ], 443 ],
440 yAxis : [ 444 yAxis : [
@@ -450,10 +454,11 @@ @@ -450,10 +454,11 @@
450 type:'line', 454 type:'line',
451 //stack: '人数', 455 //stack: '人数',
452 barWidth : 10, 456 barWidth : 10,
453 - data:myData 457 + data:monthDataY
454 } 458 }
455 ] 459 ]
456 }; 460 };
  461 + //周统计
457 var option11 = { 462 var option11 = {
458 backgroundColor : "white", 463 backgroundColor : "white",
459 color : ["#59678c"], 464 color : ["#59678c"],