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

interface

@@ -45,7 +45,7 @@ class AdminStatisticsController extends AdminBaseController{ @@ -45,7 +45,7 @@ class AdminStatisticsController extends AdminBaseController{
45 $num[$k]=$v['num']; 45 $num[$k]=$v['num'];
46 } 46 }
47 47
48 - $this->assign('hospital',json_encode($hospital)); 48 + $this->assign('hospitalJson',json_encode($hospital));
49 $this->assign('num',json_encode($num)); 49 $this->assign('num',json_encode($num));
50 50
51 //周统计 51 //周统计
@@ -98,7 +98,7 @@ class AdminStatisticsController extends AdminBaseController{ @@ -98,7 +98,7 @@ class AdminStatisticsController extends AdminBaseController{
98 } 98 }
99 $this->assign('interval',json_encode($interval)); 99 $this->assign('interval',json_encode($interval));
100 100
101 -// $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : ''); 101 + $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : '');
102 return $this->fetch(); 102 return $this->fetch();
103 } 103 }
104 104
@@ -95,7 +95,7 @@ @@ -95,7 +95,7 @@
95 }); 95 });
96 96
97 //医院总体时长横坐标数据 97 //医院总体时长横坐标数据
98 - var totalDateX = JSON.parse('{$hospital}'); 98 + var totalDateX = JSON.parse('{$hospitalJson}');
99 var hospital=''; 99 var hospital='';
100 $.each(totalDateX,function (i, v) { 100 $.each(totalDateX,function (i, v) {
101 hospital+="<option value='"+v+"'>"+v+"</option>"; 101 hospital+="<option value='"+v+"'>"+v+"</option>";