|
@@ -14,6 +14,7 @@ use Encore\Admin\Layout\Content;
|
|
|
use Encore\Admin\Facades\Admin;
|
|
|
use Illuminate\Http\Request;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
+use App\Models\QjwjAppoint;
|
|
|
|
|
|
class IndexController extends Controller
|
|
|
{
|
|
@@ -49,7 +50,7 @@ class IndexController extends Controller
|
|
|
});
|
|
|
$grid->created_at('创建时间');
|
|
|
$grid->actions(function ($actions) {
|
|
|
- $actions->append('<a href="/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/presentation/appoint_list?id=' . $actions->row['id'] . '" class="btn btn-primary btn-xs" >报名管理</a>');
|
|
|
+ $actions->append('<a href="/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/health/presentation_appoint_list?id=' . $actions->row['id'] . '" class="btn btn-primary btn-xs" >报名管理</a>');
|
|
|
$actions->disableEdit(false);
|
|
|
$actions->disableDelete(false);
|
|
|
$actions->disableView();
|
|
@@ -206,4 +207,48 @@ class IndexController extends Controller
|
|
|
]));
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ public function qjwjInfoList(Content $content, Request $request){
|
|
|
+ Permission::check('presentation_appoint_list');
|
|
|
+
|
|
|
+ $search_data = $request->all();
|
|
|
+
|
|
|
+ $where = [];
|
|
|
+ if (isset($search_data['id'])) {
|
|
|
+
|
|
|
+ foreach ($search_data as $k => $v) {
|
|
|
+ if ($k == 'realname') {
|
|
|
+ $where[] = [$k, 'like', "%$v%"];
|
|
|
+ } elseif ($k != '_pjax' and $k != 'page' && $k != 'perpage') {
|
|
|
+ $where[] = [$k, '=', $v];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $perpage = 20;
|
|
|
+ $list = QjwjAppoint::where($where)
|
|
|
+ ->select('*')
|
|
|
+ ->orderBy('updated_at','desc')
|
|
|
+ ->paginate($perpage);
|
|
|
+
|
|
|
+ foreach ($list as $k => $v){
|
|
|
+ if($v->sex == 0){
|
|
|
+ $list[$k]['sex'] = '女';
|
|
|
+ }else{
|
|
|
+ $list[$k]['sex'] = '男';
|
|
|
+ }
|
|
|
+ if($v->status == 0){
|
|
|
+ $list[$k]['status'] = '未下载';
|
|
|
+ }else{
|
|
|
+ $list[$k]['status'] = '已下载';
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return $content
|
|
|
+ ->header('信息管理')
|
|
|
+ ->description('泉籍卫技人员信息列表')
|
|
|
+ ->body(view('admin.health.qjwj_appoint_list')->with([
|
|
|
+ 'list' => $list,
|
|
|
+ 'search_data' => $search_data
|
|
|
+ ]));
|
|
|
+ }
|
|
|
}
|