소스 검색

增加导出的状态控制

zmw 1 일 전
부모
커밋
c24f04f27f

+ 2 - 1
app/Admin/Controllers/Recruit/RecruitController.php

@@ -2802,6 +2802,7 @@ class RecruitController extends Controller
      */
     public function seat_sticker(Content $content, Request $request){
         $recruit_id = $request->id;
+
         $list = RecruitAppointInfo::where(['recruit_appoint_info.recruit_id' => $recruit_id,'recruit_appoint_info.audit' => 3, 'recruit_ticket.ex_type' => 1])
             ->join('recruit_ticket', 'recruit_ticket.appoint_id', '=', 'recruit_appoint_info.id','left')
             ->select('recruit_appoint_info.*','recruit_ticket.*')
@@ -2815,7 +2816,7 @@ class RecruitController extends Controller
                 $data[$place] = [];
             }
 
-            $room = $v->ex_room == null ? 'empty' : $v->ex_room;
+            $room = $v->ex_room == null ? '' : $v->ex_room;
             if(!array_key_exists($room,$data[$place])){
                 $data[$place][$room] = [];
             }

+ 3 - 0
resources/views/admin/recruit/seat_sticker.blade.php

@@ -42,6 +42,9 @@
             考场名称:{{ $k }}
         </h1>
         @foreach($v as $kk => $vv)
+        <h2>
+            {{ $kk }} 座位贴
+        </h2>
         <div class="room clearfix">
             <div class="print">
                 <div class="list" style="padding-top:30px">

+ 1 - 1
resources/views/admin/recruit/sign_table.blade.php

@@ -38,7 +38,7 @@
     @foreach($v as $kk => $vv)
     <div class="room clearfix">
         <h2>
-            {{ $k }} 考生进出考场签到表
+            {{ $kk }} 考生进出考场签到表
         </h2>
         <div class="list">
             @foreach($vv as $key => $val)