sth
This commit is contained in:
parent
a64640247b
commit
871a8c396c
|
|
@ -358,7 +358,7 @@ class Ajax extends Backend
|
|||
$to_dispatch = $order->where('status',\app\admin\model\Order::STATUS_DISPATCHING)->count();
|
||||
}
|
||||
//待跟进
|
||||
$to_follow = OrderDispatch::where('follow',0)->auth($this->auth)->count();
|
||||
$to_follow = OrderDispatch::where('follow',0)->dispatcherauth($this->auth)->count();
|
||||
|
||||
// return [
|
||||
// 'order/index' => $to_dispatch,
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class Index extends Backend
|
|||
$to_dispatch = $order->where('status',\app\admin\model\Order::STATUS_DISPATCHING)->count();
|
||||
}
|
||||
//待跟进
|
||||
$to_follow = OrderDispatch::where('follow',0)->auth($this->auth)->count();
|
||||
$to_follow = OrderDispatch::where('follow',0)->dispatcherauth($this->auth)->count();
|
||||
|
||||
//左侧菜单
|
||||
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ class Dispatch2 extends Backend
|
|||
|
||||
$list = $this->model
|
||||
->with(['orderb','lastRecord'])
|
||||
->auth($this->auth)
|
||||
// ->dispatcherauth($this->auth)
|
||||
//->auth($this->auth)
|
||||
->dispatcherauth($this->auth)
|
||||
->where($where)
|
||||
->order($sort, $order)
|
||||
->paginate($limit);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user