From a03f58bbc9c7398c857db331e78efb4d7436a81f Mon Sep 17 00:00:00 2001 From: xman <1946321327@qq.com> Date: Sun, 1 Jun 2025 22:57:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=AE=A2=E5=8D=95=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Index.php | 4 ++++ 1 file changed, 4 insertions(+) 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()) {