|
|
@@ -14,9 +14,9 @@ class Income extends Backend
|
|
|
parent::_initialize();
|
|
|
$this->model = new \app\common\model\Income;
|
|
|
// 获取短剧和平台数据(用于下拉框)
|
|
|
-// $videolist = Videolist::column('id,name');
|
|
|
+ $videolist = Videolist::column('id,name');
|
|
|
// $platforms = Platform::column('id,name');
|
|
|
-// $this->assign('videolist', $videolist);
|
|
|
+ $this->assign('videolist', $videolist);
|
|
|
// $this->assign('platforms', $platforms);
|
|
|
}
|
|
|
|
|
|
@@ -34,12 +34,12 @@ class Income extends Backend
|
|
|
// }
|
|
|
|
|
|
$total = $this->model
|
|
|
- ->with(['videolist'])
|
|
|
+ ->with('videolist')
|
|
|
->where($where)
|
|
|
->order($sort, $order)
|
|
|
->count();
|
|
|
$list = $this->model
|
|
|
- ->with(['videolist'])
|
|
|
+ ->with('videolist')
|
|
|
->where($where)
|
|
|
->order($sort, $order)
|
|
|
->limit($offset, $limit)
|