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

interface

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