Browse Source

待处理

lizhen_gitee 11 months ago
parent
commit
30d3806407
2 changed files with 21 additions and 2 deletions
  1. 2 2
      application/admin/controller/Dashboard.php
  2. 19 0
      application/admin/controller/Index.php

+ 2 - 2
application/admin/controller/Dashboard.php

@@ -72,7 +72,7 @@ class Dashboard extends Backend
         $this->assignconfig('userdata', array_values($userlist));
 
         //各项为审核的,待处理的数量
-        $this->view->assign([
+        /*$this->view->assign([
            'wait_report'         => Db::name('report')->where('status',0)->count(),
            'wait_dt_report'      => Db::name('topic_dongtai_report')->where('status',0)->count(),
            'wait_user_audit'     => Db::name('user_audit')->where('status',0)->count(),
@@ -83,7 +83,7 @@ class Dashboard extends Backend
 
            'wait_introapply'     => Db::name('user_intro_apply')->where('status',0)->count(),
            'wait_withdraw'       => Db::name('withdraw')->where('status',0)->count(),
-        ]);
+        ]);*/
 
         return $this->view->fetch();
     }

+ 19 - 0
application/admin/controller/Index.php

@@ -31,12 +31,31 @@ class Index extends Backend
      */
     public function index()
     {
+        //各项为审核的,待处理的数量
+
+        /*$wait = [
+            'wait_report'         => Db::name('report')->where('status',0)->count(),
+            'wait_dt_report'      => Db::name('topic_dongtai_report')->where('status',0)->count(),
+            'wait_user_audit'     => Db::name('user_audit')->where('status',0)->count(),
+            'wait_user_idconfirm' => Db::name('user_idconfirm')->where('status',0)->count(),
+            'wait_take_cash'      => Db::name('take_cash')->where('status',0)->count(),
+            'wait_dongtai'        => Db::name('topic_dongtai')->where('auditstatus',0)->count(),
+            'wait_greet'          => Db::name('user_greet')->where('status',0)->count(),
+
+            'wait_introapply'     => Db::name('user_intro_apply')->where('status',0)->count(),
+            'wait_withdraw'       => Db::name('withdraw')->where('status',0)->count(),
+        ];*/
+
+
         //左侧菜单
         list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
 //            'dashboard' => 'hot',
 //            'addon'     => ['new', 'red', 'badge'],
 //            'auth/rule' => __('Menu'),
 //            'general'   => ['new', 'purple'],
+//            'anquanxuncha' => 3,
+//            'report' => $wait['wait_report'],
+//            'topicdongtaireport' => $wait['wait_dt_report'],
         ], $this->view->site['fixedpage']);
         $action = $this->request->request('action');
         if ($this->request->isPost()) {