...
|
...
|
@@ -36,11 +36,14 @@ class Dashboard extends Backend |
|
|
//报修总量
|
|
|
$BaoxiuArr = Db::name('baoxiudan')->select();
|
|
|
$BaoxiuWancheng = Db::name('baoxiudan')->where('type', 2)->select();
|
|
|
$BaoxiuWeiWancheng = Db::name('baoxiudan')->where('type', 1)->select();
|
|
|
$Round = round(count($BaoxiuWancheng) / count($BaoxiuArr) * 100, 2);
|
|
|
$WRound = round(count($BaoxiuWeiWancheng) / count($BaoxiuArr) * 100, 2);
|
|
|
|
|
|
$this->view->assign([
|
|
|
'baoxiunum' => count($BaoxiuArr),
|
|
|
'baoxiu' => $Round . '%',
|
|
|
'wbaoxiu' => $WRound . '%',
|
|
|
'totaluser' => 35200,
|
|
|
'totalviews' => 219390,
|
|
|
'totalorder' => 32143,
|
...
|
...
|
|