dyjh 6 years ago
parent
commit
4a0739cb7f

+ 4 - 0
app/Http/Controllers/Admin/Album/AgentController.php

xqd
@@ -60,6 +60,10 @@ class AgentController extends Controller
         return view('admin.album.agent.index',compact('list'));
     }
 
+    public function batch()
+    {
+        
+    }
 
     function check(Request $request) {
         $request = $request->all();

+ 14 - 14
resources/views/admin/album/agent/index.blade.php

xqd
@@ -26,28 +26,28 @@
 				        </div>
 				        </form>
 						<div class="col-sm-4 pull-left">
-							<a href="{{ U('Album/Agent/index', ['status' => -1])}}" class="btn btn-sm btn-primary pull-left">全部</a>
-							<a href="{{ U('Album/Agent/index', ['status' => 1])}}" class="btn btn-sm btn-primary pull-left">未审核</a>
-							<a href="{{ U('Album/Agent/index', ['status' => 2])}}" class="btn btn-sm btn-primary pull-left">已审核</a>
-							<a href="{{ U('Album/Agent/index', ['status' => 3])}}" class="btn btn-sm btn-primary pull-left">BOSS</a>
+							<a href="{{ U('Album/Agent/index', ['status' => -1])}}" class="btn btn-sm btn-primary pull-left" style="margin-left: 1px;">全部</a>
+							<a href="{{ U('Album/Agent/index', ['status' => 1])}}" class="btn btn-sm btn-primary pull-left" style="margin-left: 1px;">未审核</a>
+							<a href="{{ U('Album/Agent/index', ['status' => 2])}}" class="btn btn-sm btn-primary pull-left" style="margin-left: 1px;">已审核</a>
+							<a href="{{ U('Album/Agent/index', ['status' => 3])}}" class="btn btn-sm btn-primary pull-left" style="margin-left: 1px;">BOSS</a>
 						</div>
-						{{--@if(role('Album/Agent/create'))
+						@if(role('Album/Agent/batch'))
     					<div class="col-sm-3 pull-right">
-    					   <a href="{{ U('Album/Agent/create')}}" class="btn btn-sm btn-primary pull-right">添加</a>
+    					   <a href="{{ U('Album/Agent/batch')}}" class="btn btn-sm btn-primary pull-right" onclick="return confirm('你确定批量通过审核?');">批量审核</a>
     					</div>
-						@endif--}}
+						@endif
 					</div>
 					
 					<table class="table table-striped table-bordered table-hover dataTables-example dataTable">
 						<thead>
     						<tr>
-								
-            <th class="sorting" data-sort="id"> ID </th>
-            <th> 微信昵称 </th>
-			<th class="sorting" data-sort="name"> 名称 </th>
-            <th class="sorting" data-sort="user_id"> 电话 </th>
-            <th class="sorting" data-sort="address"> 地址 </th>
-            <th class="sorting" data-sort="status"> 审核状态 </th>
+								<th><input type="checkbox"></th>
+								<th class="sorting" data-sort="id"> ID </th>
+								<th> 微信昵称 </th>
+								<th class="sorting" data-sort="name"> 名称 </th>
+								<th class="sorting" data-sort="user_id"> 电话 </th>
+								<th class="sorting" data-sort="address"> 地址 </th>
+								<th class="sorting" data-sort="status"> 审核状态 </th>
 								<th>是否为boss</th>
         						<th width="22%">相关操作</th>
         					</tr>