|
@@ -178,7 +178,12 @@ class RecruitController extends Controller
|
|
|
$grid->column('status','状态')->display(function ($status) {
|
|
|
return $status ? '显示' : '隐藏';
|
|
|
});
|
|
|
-
|
|
|
+ $grid->filter(function ($filter) {
|
|
|
+ $filter->disableIdFilter();
|
|
|
+ $filter->where(function ($query) {
|
|
|
+ $query->where('simple', '=', "{$this->input}");
|
|
|
+ }, '类型', 'simple')->radio([0 => '招考',1 => '招聘']);
|
|
|
+ });
|
|
|
$grid->created_at('创建时间');
|
|
|
$grid->actions(function ($actions) {
|
|
|
$actions->append('<a href="/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/appoint_list?id=' . $actions->row['id'] . '" class="btn btn-primary btn-xs" >报名管理</a>');
|
|
@@ -211,6 +216,7 @@ class RecruitController extends Controller
|
|
|
])->setWidth(5)->setMustMark();
|
|
|
$form->text('name_en', '英文标识')->setWidth(5)->help('同一个招聘单位,发布的招聘场次若不在同一天,允许一样,若为空则自动生成');
|
|
|
$form->image('small_img', '缩略图')->uniqueName()->setWidth(3);
|
|
|
+ $form->radio('simple', '类型')->options([0 => '招聘', 1 => '招考'])->default(0)->setMustMark();
|
|
|
$form->switch('status', '状态')->default(1)->setMustMark();
|
|
|
$form->switch('show_report', '显示报名人数')->default(0)->setMustMark();
|
|
|
$form->radio('current', '当前进展')->options([1 => '报名', 2 => '审核', 3 => '笔试', 4 => '上机测试', 5 => '面试', 6 => '复试', 7 => '体检', 8 => '政审', 9 => '公示',0 => '已结束'])->default(1)->setMustMark();
|