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