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