diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index c6adf66..ea65065 100755 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -3,6 +3,7 @@ namespace app\admin\controller; use app\admin\model\AdminLog; +use app\admin\model\OrderDispatch; use app\common\controller\Backend; use think\Config; use think\Hook; @@ -42,10 +43,13 @@ class Index extends Backend $order = new \app\admin\model\Order(); $to_dispatch = $order->where('status',\app\admin\model\Order::STATUS_DISPATCHING)->count(); + //待跟进 + $to_follow = OrderDispatch::where('follow',0)->auth($this->auth)->count(); //左侧菜单 list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([ 'order/index' => [$to_dispatch, 'red', 'badge'], //待派单 + 'orders/dispatch2' => [$to_follow, 'yellow', 'badge'], //待跟进 ], $this->view->site['fixedpage']); $action = $this->request->request('action'); if ($this->request->isPost()) {