Commit 440bc69d by 汪伟伟

1

parent 38902576
......@@ -16,6 +16,7 @@ use Dcat\Admin\Show;
use Dcat\Admin\Http\Controllers\AdminController;
use Dcat\Admin\Widgets\Card;
use Dcat\Admin\Widgets\Table;
use Illuminate\Http\Request;
class TasksApproveController extends AdminController
{
......@@ -23,8 +24,11 @@ class TasksApproveController extends AdminController
protected $title = '未审核';
public function checkData($page =1,$pageSize= 10)
public function checkData(Request $request)
{
$page = $request->input('page',1);
$pageSize = $request->input('per_page',115);
// var_dump($request->input());
$data = Task::query()
->whereHas('receives',function ($query){
$query->where('status', 1)->orderBy('created_at', 'desc');
......
......@@ -98,7 +98,13 @@
<td>{{$item['name']}}</td>
<td>{{\App\Admin\Services\CityAreaService::getAreaName($item['city_id'])}}</td>
<td>{{$item['year']}}</td>
<td>{{$item['refer']}}</td>
<td>
@if(filter_var($item['refer'], FILTER_VALIDATE_URL) !== false)
<a target="_blank" href={{$item['refer']}}>点击查看</a>
@else
{{$item['refer']}}
@endif
</td>
<td>{{$item['price']}}</td>
{{-- <td>11</td>--}}
......@@ -106,8 +112,10 @@
{{-- <td>3</td>--}}
<td class="grid__actions__">
{{-- <a style="cursor: pointer;" class="act-YwdhdqPcBxTZwKy2" href="http://127.0.0.1:83/approves/17"><i class=""></i> <span class="text-success">查看</span></a>--}}
<a style="cursor: pointer;" class="act-8r3v0iFpeBCgEsaB" href="javascript:void(0)">全部通过&nbsp;&nbsp;&nbsp;</a>
<span style="cursor: pointer" data-toggle="modal" data-target="#modal-14NXsK3Ogh"><a
<a style="cursor: pointer;" class="act-8r3v0iFpeBCgEsaB"
href="javascript:void(0)">全部通过&nbsp;&nbsp;&nbsp;</a>
<span style="cursor: pointer" data-toggle="modal"
data-target="#modal-14NXsK3Ogh"><a
href="javascript:void(0)">全部不通过</a></span>
</td>
</tr>
......@@ -129,7 +137,7 @@
<tr>
<td>{{$k==0?'A':'B'}}</td>
<td>{{$rec['user']['name']}}</td>
<td>{{$rec['collects']['value']}}</td>
<td style="color: {{$rec['is_bs'] == 1 ? 'red': ''}}">{{$rec['collects']['value']}}</td>
<td>
@if(filter_var($rec['collects']['reality_refer'], FILTER_VALIDATE_URL) !== false)
<a target="_blank" href={{$rec['collects']['reality_refer']}}>点击查看</a>
......@@ -138,10 +146,20 @@
@endif
</td>
<td>{{$rec['collects']['refer_level']}}</td>
<td>{{$rec['collects']['net_img']}}</td>
<td>
@foreach(explode(',',$rec['collects']['net_img']) as $url)
@if(filter_var($url, FILTER_VALIDATE_URL) !== false)
<a href={{$url}}>点击查看</a><br>
@endif
@endforeach
</td>
<td class="grid__actions__">
<a style="cursor: pointer;" class="act-8r3v0iFpeBCgEsaB" href="javascript:void(0)">通过&nbsp;&nbsp;&nbsp;</a>
<span style="cursor: pointer" data-toggle="modal" data-target="#modal-14NXsK3Ogh"><a
<a style="cursor: pointer;" class="act-8r3v0iFpeBCgEsaB"
href="javascript:void(0)">通过&nbsp;&nbsp;&nbsp;</a>
<span style="cursor: pointer" data-toggle="modal"
data-target="#modal-14NXsK3Ogh"><a
href="javascript:void(0)">不通过</a></span>
</td>
</tr>
......@@ -156,7 +174,7 @@
<div class="box-footer d-block clearfix ">
<span class="d-none d-sm-inline" style="line-height:33px;color:#7c858e"><b>1</b><b>15</b> ,总共 <b>15</b></span>
<span class="d-none d-sm-inline" style="line-height:33px;color:#7c858e"><b>1</b><b>15</b> ,总共 <b>{{$total}}</b></span>
<ul class="pagination pagination-sm no-margin pull-right shadow-100"
style="border-radius: 1.5rem">
<!-- Previous Page Link -->
......@@ -179,15 +197,15 @@
<span class="caret"></span>
</a>
<ul class="dropdown-menu"><li class="dropdown-item"><a
href="http://127.0.0.1:83/approves?_pjax=%23pjax-container&amp;per_page=10">10</a></li><li
href=/approves?page_size=5>5</a></li><li
class="dropdown-item"><a
href="http://127.0.0.1:83/approves?_pjax=%23pjax-container&amp;per_page=20">20</a></li><li
href=/approves?per_page=10>10</a></li><li
class="dropdown-item"><a
href="http://127.0.0.1:83/approves?_pjax=%23pjax-container&amp;per_page=30">30</a></li><li
href=/approves?per_page=20>20</a></li><li
class="dropdown-item"><a
href="http://127.0.0.1:83/approves?_pjax=%23pjax-container&amp;per_page=50">50</a></li><li
class="dropdown-item"><a href="http://127.0.0.1:83/approves?_pjax=%23pjax-container&amp;per_page=100">100</a></li><li
class="dropdown-item"><a href="http://127.0.0.1:83/approves?_pjax=%23pjax-container&amp;per_page=200">200</a></li></ul>
href=/approves?per_page=30>30</a></li><li
class="dropdown-item"><a href=/approves?per_page=50>50</a></li><li
class="dropdown-item"><a href=/approves?per_page=100>100</a></li></ul>
</span>
</label>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment