|
@@ -177,7 +177,19 @@ JS
|
|
|
$filter->expand();
|
|
|
$filter->like('model')->width(2);
|
|
|
$filter->equal('folder_id',admin_trans_label('folder'))->select($selectOptions)->width(3);
|
|
|
+ $filter->where('status', function ($query) {
|
|
|
+ $status = $this->input;
|
|
|
+ // 自定义查询逻辑
|
|
|
+ if ($status == 1) {
|
|
|
+ // 三个月内的
|
|
|
+ $query->where('updated_at', '>=', date('Y-m-d H:i:s', strtotime('-3 month')));
|
|
|
+ } else {
|
|
|
+ // 三个月前的
|
|
|
+ $query->where('updated_at', '<', date('Y-m-d H:i:s', strtotime('-3 month')));
|
|
|
+ }
|
|
|
+ })->select(admin_trans_array(config('dictionary.album_status')))->width(3);
|
|
|
});
|
|
|
+
|
|
|
$grid->disableViewButton();
|
|
|
$grid->disablePerPages();
|
|
|
$grid->disableRefreshButton();
|