|
@@ -27,6 +27,7 @@ class IndexController extends Controller
|
|
*/
|
|
*/
|
|
public function index(Content $content)
|
|
public function index(Content $content)
|
|
{
|
|
{
|
|
|
|
+ Permission::check('presentation');
|
|
return $content
|
|
return $content
|
|
->header('宣讲会管理')
|
|
->header('宣讲会管理')
|
|
->description('')
|
|
->description('')
|
|
@@ -154,7 +155,7 @@ class IndexController extends Controller
|
|
|
|
|
|
public function appointList(Content $content, Request $request)
|
|
public function appointList(Content $content, Request $request)
|
|
{
|
|
{
|
|
- Permission::check('presentation_appoint_list');
|
|
|
|
|
|
+ Permission::check('health_appoint_list');
|
|
$id = $request->id;
|
|
$id = $request->id;
|
|
$presentation = Presentation::find($id);
|
|
$presentation = Presentation::find($id);
|
|
if (empty($presentation)) {
|
|
if (empty($presentation)) {
|
|
@@ -211,7 +212,7 @@ class IndexController extends Controller
|
|
}
|
|
}
|
|
|
|
|
|
public function qjwjInfoList(Content $content, Request $request){
|
|
public function qjwjInfoList(Content $content, Request $request){
|
|
- Permission::check('presentation_appoint_list');
|
|
|
|
|
|
+ Permission::check('qjwjInfoList');
|
|
|
|
|
|
$search_data = $request->all();
|
|
$search_data = $request->all();
|
|
|
|
|
|
@@ -233,6 +234,9 @@ class IndexController extends Controller
|
|
->paginate($perpage);
|
|
->paginate($perpage);
|
|
|
|
|
|
foreach ($list as $k => $v){
|
|
foreach ($list as $k => $v){
|
|
|
|
+ $v->native_place_cn = get_district_cn($v->native_place);
|
|
|
|
+ $v->education = get_category($v->education);
|
|
|
|
+ $v->pro_type = get_category_major($v->pro_type);
|
|
if($v->sex == 0){
|
|
if($v->sex == 0){
|
|
$list[$k]['sex'] = '女';
|
|
$list[$k]['sex'] = '女';
|
|
}else{
|
|
}else{
|
|
@@ -254,8 +258,21 @@ class IndexController extends Controller
|
|
]));
|
|
]));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function qjwjStatus(Request $request){
|
|
|
|
+
|
|
|
|
+ $info = QjwjAppoint::where(['id' => $request->id])->first();
|
|
|
|
+ if($info){
|
|
|
|
+ $info->status = 1;
|
|
|
|
+ $info->save();
|
|
|
|
+ return response()->json(['status' => 1, 'msg' => '跳转下载中!', 'data' => 'ok', 'url' => $info->attachment]);
|
|
|
|
+ }else{
|
|
|
|
+ return response()->json(['status' => 0, 'msg' => '找不到记录!', 'data' => 'fail']);
|
|
|
|
+ }
|
|
|
|
+ //return "/storage/recruit/word/" . $recruit->name_en . '/' .$appoint->audit .$word_url;
|
|
|
|
+ }
|
|
|
|
+
|
|
public function jyyxInfoList(Content $content, Request $request){
|
|
public function jyyxInfoList(Content $content, Request $request){
|
|
- Permission::check('presentation_appoint_list');
|
|
|
|
|
|
+ Permission::check('jyyxInfoList');
|
|
|
|
|
|
$search_data = $request->all();
|
|
$search_data = $request->all();
|
|
|
|
|
|
@@ -277,11 +294,7 @@ class IndexController extends Controller
|
|
->paginate($perpage);
|
|
->paginate($perpage);
|
|
|
|
|
|
foreach ($list as $k => $v){
|
|
foreach ($list as $k => $v){
|
|
- if($v->sex == 0){
|
|
|
|
- $list[$k]['sex'] = '女';
|
|
|
|
- }else{
|
|
|
|
- $list[$k]['sex'] = '男';
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
if($v->status == 0){
|
|
if($v->status == 0){
|
|
$list[$k]['status'] = '未下载';
|
|
$list[$k]['status'] = '未下载';
|
|
}else{
|
|
}else{
|
|
@@ -291,15 +304,28 @@ class IndexController extends Controller
|
|
|
|
|
|
return $content
|
|
return $content
|
|
->header('信息管理')
|
|
->header('信息管理')
|
|
- ->description('就业单身人员信息列表')
|
|
|
|
|
|
+ ->description('就业意向人员信息列表')
|
|
->body(view('admin.health.jyyx_appoint_list')->with([
|
|
->body(view('admin.health.jyyx_appoint_list')->with([
|
|
'list' => $list,
|
|
'list' => $list,
|
|
'search_data' => $search_data
|
|
'search_data' => $search_data
|
|
]));
|
|
]));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function jyyxStatus(Request $request){
|
|
|
|
+
|
|
|
|
+ $info = JyyxAppoint::where(['id' => $request->id])->first();
|
|
|
|
+ if($info){
|
|
|
|
+ $info->status = 1;
|
|
|
|
+ $info->save();
|
|
|
|
+ return response()->json(['status' => 1, 'msg' => '跳转下载中!', 'data' => 'ok', 'url' => $info->attachment]);
|
|
|
|
+ }else{
|
|
|
|
+ return response()->json(['status' => 0, 'msg' => '找不到记录!', 'data' => 'fail']);
|
|
|
|
+ }
|
|
|
|
+ //return "/storage/recruit/word/" . $recruit->name_en . '/' .$appoint->audit .$word_url;
|
|
|
|
+ }
|
|
|
|
+
|
|
public function postInfoList(Content $content, Request $request){
|
|
public function postInfoList(Content $content, Request $request){
|
|
- Permission::check('presentation_appoint_list');
|
|
|
|
|
|
+ Permission::check('postInfoList');
|
|
|
|
|
|
$search_data = $request->all();
|
|
$search_data = $request->all();
|
|
|
|
|
|
@@ -316,11 +342,14 @@ class IndexController extends Controller
|
|
}
|
|
}
|
|
$perpage = 20;
|
|
$perpage = 20;
|
|
$list = PostAppoint::where($where)
|
|
$list = PostAppoint::where($where)
|
|
- ->select('*')
|
|
|
|
|
|
+ ->leftJoin("jobs","jobs.id",'=','post_appoint.job_id')
|
|
|
|
+ ->select('post_appoint.*','jobs.jobs_name','jobs.company_name')
|
|
->orderBy('updated_at','desc')
|
|
->orderBy('updated_at','desc')
|
|
->paginate($perpage);
|
|
->paginate($perpage);
|
|
|
|
|
|
foreach ($list as $k => $v){
|
|
foreach ($list as $k => $v){
|
|
|
|
+ $v->native_place_cn = get_district_cn($v->native_place);
|
|
|
|
+ $v->education = get_category($v->education);
|
|
if($v->sex == 0){
|
|
if($v->sex == 0){
|
|
$list[$k]['sex'] = '女';
|
|
$list[$k]['sex'] = '女';
|
|
}else{
|
|
}else{
|
|
@@ -341,4 +370,17 @@ class IndexController extends Controller
|
|
'search_data' => $search_data
|
|
'search_data' => $search_data
|
|
]));
|
|
]));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public function postStatus(Request $request){
|
|
|
|
+
|
|
|
|
+ $info = PostAppoint::where(['id' => $request->id])->first();
|
|
|
|
+ if($info){
|
|
|
|
+ $info->status = 1;
|
|
|
|
+ $info->save();
|
|
|
|
+ return response()->json(['status' => 1, 'msg' => '跳转下载中!', 'data' => 'ok', 'url' => $info->attachment]);
|
|
|
|
+ }else{
|
|
|
|
+ return response()->json(['status' => 0, 'msg' => '找不到记录!', 'data' => 'fail']);
|
|
|
|
+ }
|
|
|
|
+ //return "/storage/recruit/word/" . $recruit->name_en . '/' .$appoint->audit .$word_url;
|
|
|
|
+ }
|
|
}
|
|
}
|