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');
......
......@@ -63,100 +63,118 @@
<div class="table-responsive table-wrapper complex-container table-middle mt-1 table-collapse ">
@foreach($data as $key=>$item)
<table style="" class="table custom-data-table data-table" id="grid-table">
<thead>
<tr>
{{-- <th>--}}
{{-- <div class="vs-checkbox-con vs-checkbox-primary checkbox-grid checkbox-grid-header">--}}
{{-- <input type="checkbox" class="select-all grid-select-all">--}}
{{-- <span class="vs-checkbox"><span class="vs-checkbox--check"><i class="vs-icon feather icon-check"></i></span></span>--}}
{{-- </div>--}}
{{-- </th>--}}
<th>序号</th>
<th>指标名称</th>
<th>地区</th>
<th>时间</th>
<th>参考信源</th>
<th>单价</th>
{{-- <th>指标值</th>--}}
{{-- <th>实际信源</th>--}}
{{-- <th>信源等级</th>--}}
<th class="grid__actions__">操作</th>
</tr>
</thead>
<tbody>
<tr>
{{-- <td>--}}
{{-- <div class="vs-checkbox-con vs-checkbox-primary checkbox-grid checkbox-grid-column">--}}
{{-- <input type="checkbox" class="grid-row-checkbox" data-id="17" data-label="17">--}}
{{-- <span class="vs-checkbox"><span class="vs-checkbox--check"><i class="vs-icon feather icon-check"></i></span></span>--}}
{{-- </div>--}}
{{-- </td>--}}
<td>{{$key+1}}</td>
<td>{{$item['name']}}</td>
<td>{{\App\Admin\Services\CityAreaService::getAreaName($item['city_id'])}}</td>
<td>{{$item['year']}}</td>
<td>{{$item['refer']}}</td>
<td>{{$item['price']}}</td>
{{-- <td>11</td>--}}
{{-- <td>的d</td>--}}
{{-- <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
href="javascript:void(0)">全部不通过</a></span>
</td>
</tr>
</tbody>
<thead>
<tr>
<th>序号</th>
<th>用户</th>
<th>指标值</th>
<th>实际信源</th>
<th>信源等级</th>
<th>截图链接</th>
<th class="grid__actions__">操作</th>
</tr>
</thead>
<tbody>
@foreach($item['receives'] as $k=>$rec)
<tr>
<td>{{$k==0?'A':'B'}}</td>
<td>{{$rec['user']['name']}}</td>
<td>{{$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>
@else
{{$rec['collects']['reality_refer']}}
@endif
</td>
<td>{{$rec['collects']['refer_level']}}</td>
<td>{{$rec['collects']['net_img']}}</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
href="javascript:void(0)">不通过</a></span>
</td>
</tr>
@endforeach
</tbody>
</table>
<div style="height: 60px;background-color: #eff1f7;border: none;"></div>
<table style="" class="table custom-data-table data-table" id="grid-table">
<thead>
<tr>
{{-- <th>--}}
{{-- <div class="vs-checkbox-con vs-checkbox-primary checkbox-grid checkbox-grid-header">--}}
{{-- <input type="checkbox" class="select-all grid-select-all">--}}
{{-- <span class="vs-checkbox"><span class="vs-checkbox--check"><i class="vs-icon feather icon-check"></i></span></span>--}}
{{-- </div>--}}
{{-- </th>--}}
<th>序号</th>
<th>指标名称</th>
<th>地区</th>
<th>时间</th>
<th>参考信源</th>
<th>单价</th>
{{-- <th>指标值</th>--}}
{{-- <th>实际信源</th>--}}
{{-- <th>信源等级</th>--}}
<th class="grid__actions__">操作</th>
</tr>
</thead>
<tbody>
<tr>
{{-- <td>--}}
{{-- <div class="vs-checkbox-con vs-checkbox-primary checkbox-grid checkbox-grid-column">--}}
{{-- <input type="checkbox" class="grid-row-checkbox" data-id="17" data-label="17">--}}
{{-- <span class="vs-checkbox"><span class="vs-checkbox--check"><i class="vs-icon feather icon-check"></i></span></span>--}}
{{-- </div>--}}
{{-- </td>--}}
<td>{{$key+1}}</td>
<td>{{$item['name']}}</td>
<td>{{\App\Admin\Services\CityAreaService::getAreaName($item['city_id'])}}</td>
<td>{{$item['year']}}</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>--}}
{{-- <td>的d</td>--}}
{{-- <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
href="javascript:void(0)">全部不通过</a></span>
</td>
</tr>
</tbody>
<thead>
<tr>
<th>序号</th>
<th>用户</th>
<th>指标值</th>
<th>实际信源</th>
<th>信源等级</th>
<th>截图链接</th>
<th class="grid__actions__">操作</th>
</tr>
</thead>
<tbody>
@foreach($item['receives'] as $k=>$rec)
<tr>
<td>{{$k==0?'A':'B'}}</td>
<td>{{$rec['user']['name']}}</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>
@else
{{$rec['collects']['reality_refer']}}
@endif
</td>
<td>{{$rec['collects']['refer_level']}}</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
href="javascript:void(0)">不通过</a></span>
</td>
</tr>
@endforeach
</tbody>
</table>
<div style="height: 60px;background-color: #eff1f7;border: none;"></div>
@endforeach
</div>
<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