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_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 [
|
// return [
|
||||||
// 'order/index' => $to_dispatch,
|
// '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_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([
|
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
|
||||||
|
|
|
||||||
|
|
@ -72,8 +72,8 @@ class Dispatch2 extends Backend
|
||||||
|
|
||||||
$list = $this->model
|
$list = $this->model
|
||||||
->with(['orderb','lastRecord'])
|
->with(['orderb','lastRecord'])
|
||||||
->auth($this->auth)
|
//->auth($this->auth)
|
||||||
// ->dispatcherauth($this->auth)
|
->dispatcherauth($this->auth)
|
||||||
->where($where)
|
->where($where)
|
||||||
->order($sort, $order)
|
->order($sort, $order)
|
||||||
->paginate($limit);
|
->paginate($limit);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user