Commit 440bc69d by 汪伟伟

1

parent 38902576
...@@ -16,6 +16,7 @@ use Dcat\Admin\Show; ...@@ -16,6 +16,7 @@ use Dcat\Admin\Show;
use Dcat\Admin\Http\Controllers\AdminController; use Dcat\Admin\Http\Controllers\AdminController;
use Dcat\Admin\Widgets\Card; use Dcat\Admin\Widgets\Card;
use Dcat\Admin\Widgets\Table; use Dcat\Admin\Widgets\Table;
use Illuminate\Http\Request;
class TasksApproveController extends AdminController class TasksApproveController extends AdminController
{ {
...@@ -23,8 +24,11 @@ class TasksApproveController extends AdminController ...@@ -23,8 +24,11 @@ class TasksApproveController extends AdminController
protected $title = '未审核'; 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() $data = Task::query()
->whereHas('receives',function ($query){ ->whereHas('receives',function ($query){
$query->where('status', 1)->orderBy('created_at', 'desc'); $query->where('status', 1)->orderBy('created_at', 'desc');
......
...@@ -63,100 +63,118 @@ ...@@ -63,100 +63,118 @@
<div class="table-responsive table-wrapper complex-container table-middle mt-1 table-collapse "> <div class="table-responsive table-wrapper complex-container table-middle mt-1 table-collapse ">
@foreach($data as $key=>$item) @foreach($data as $key=>$item)
<table style="" class="table custom-data-table data-table" id="grid-table"> <table style="" class="table custom-data-table data-table" id="grid-table">
<thead> <thead>
<tr> <tr>
{{-- <th>--}} {{-- <th>--}}
{{-- <div class="vs-checkbox-con vs-checkbox-primary checkbox-grid checkbox-grid-header">--}} {{-- <div class="vs-checkbox-con vs-checkbox-primary checkbox-grid checkbox-grid-header">--}}
{{-- <input type="checkbox" class="select-all grid-select-all">--}} {{-- <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>--}} {{-- <span class="vs-checkbox"><span class="vs-checkbox--check"><i class="vs-icon feather icon-check"></i></span></span>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- </th>--}} {{-- </th>--}}
<th>序号</th> <th>序号</th>
<th>指标名称</th> <th>指标名称</th>
<th>地区</th> <th>地区</th>
<th>时间</th> <th>时间</th>
<th>参考信源</th> <th>参考信源</th>
<th>单价</th> <th>单价</th>
{{-- <th>指标值</th>--}} {{-- <th>指标值</th>--}}
{{-- <th>实际信源</th>--}} {{-- <th>实际信源</th>--}}
{{-- <th>信源等级</th>--}} {{-- <th>信源等级</th>--}}
<th class="grid__actions__">操作</th> <th class="grid__actions__">操作</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
{{-- <td>--}} {{-- <td>--}}
{{-- <div class="vs-checkbox-con vs-checkbox-primary checkbox-grid checkbox-grid-column">--}} {{-- <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">--}} {{-- <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>--}} {{-- <span class="vs-checkbox"><span class="vs-checkbox--check"><i class="vs-icon feather icon-check"></i></span></span>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- </td>--}} {{-- </td>--}}
<td>{{$key+1}}</td> <td>{{$key+1}}</td>
<td>{{$item['name']}}</td> <td>{{$item['name']}}</td>
<td>{{\App\Admin\Services\CityAreaService::getAreaName($item['city_id'])}}</td> <td>{{\App\Admin\Services\CityAreaService::getAreaName($item['city_id'])}}</td>
<td>{{$item['year']}}</td> <td>{{$item['year']}}</td>
<td>{{$item['refer']}}</td> <td>
<td>{{$item['price']}}</td> @if(filter_var($item['refer'], FILTER_VALIDATE_URL) !== false)
<a target="_blank" href={{$item['refer']}}>点击查看</a>
{{-- <td>11</td>--}} @else
{{-- <td>的d</td>--}} {{$item['refer']}}
{{-- <td>3</td>--}} @endif
<td class="grid__actions__"> </td>
{{-- <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>--}} <td>{{$item['price']}}</td>
<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 {{-- <td>11</td>--}}
href="javascript:void(0)">全部不通过</a></span> {{-- <td>的d</td>--}}
</td> {{-- <td>3</td>--}}
</tr> <td class="grid__actions__">
</tbody> {{-- <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"
<thead> href="javascript:void(0)">全部通过&nbsp;&nbsp;&nbsp;</a>
<tr> <span style="cursor: pointer" data-toggle="modal"
<th>序号</th> data-target="#modal-14NXsK3Ogh"><a
<th>用户</th> href="javascript:void(0)">全部不通过</a></span>
<th>指标值</th> </td>
<th>实际信源</th> </tr>
<th>信源等级</th> </tbody>
<th>截图链接</th>
<th class="grid__actions__">操作</th> <thead>
</tr> <tr>
</thead> <th>序号</th>
<tbody> <th>用户</th>
@foreach($item['receives'] as $k=>$rec) <th>指标值</th>
<tr> <th>实际信源</th>
<td>{{$k==0?'A':'B'}}</td> <th>信源等级</th>
<td>{{$rec['user']['name']}}</td> <th>截图链接</th>
<td>{{$rec['collects']['value']}}</td> <th class="grid__actions__">操作</th>
<td> </tr>
@if(filter_var($rec['collects']['reality_refer'], FILTER_VALIDATE_URL) !== false) </thead>
<a target="_blank" href={{$rec['collects']['reality_refer']}}>点击查看</a> <tbody>
@else @foreach($item['receives'] as $k=>$rec)
{{$rec['collects']['reality_refer']}} <tr>
@endif <td>{{$k==0?'A':'B'}}</td>
</td> <td>{{$rec['user']['name']}}</td>
<td>{{$rec['collects']['refer_level']}}</td> <td style="color: {{$rec['is_bs'] == 1 ? 'red': ''}}">{{$rec['collects']['value']}}</td>
<td>{{$rec['collects']['net_img']}}</td> <td>
<td class="grid__actions__"> @if(filter_var($rec['collects']['reality_refer'], FILTER_VALIDATE_URL) !== false)
<a style="cursor: pointer;" class="act-8r3v0iFpeBCgEsaB" href="javascript:void(0)">通过&nbsp;&nbsp;&nbsp;</a> <a target="_blank" href={{$rec['collects']['reality_refer']}}>点击查看</a>
<span style="cursor: pointer" data-toggle="modal" data-target="#modal-14NXsK3Ogh"><a @else
href="javascript:void(0)">不通过</a></span> {{$rec['collects']['reality_refer']}}
</td> @endif
</tr> </td>
@endforeach <td>{{$rec['collects']['refer_level']}}</td>
<td>
</tbody> @foreach(explode(',',$rec['collects']['net_img']) as $url)
@if(filter_var($url, FILTER_VALIDATE_URL) !== false)
</table> <a href={{$url}}>点击查看</a><br>
<div style="height: 60px;background-color: #eff1f7;border: none;"></div>
@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 @endforeach
</div> </div>
<div class="box-footer d-block clearfix "> <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" <ul class="pagination pagination-sm no-margin pull-right shadow-100"
style="border-radius: 1.5rem"> style="border-radius: 1.5rem">
<!-- Previous Page Link --> <!-- Previous Page Link -->
...@@ -179,15 +197,15 @@ ...@@ -179,15 +197,15 @@
<span class="caret"></span> <span class="caret"></span>
</a> </a>
<ul class="dropdown-menu"><li class="dropdown-item"><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 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 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 class="dropdown-item"><a
href="http://127.0.0.1:83/approves?_pjax=%23pjax-container&amp;per_page=50">50</a></li><li href=/approves?per_page=30>30</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=/approves?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=200">200</a></li></ul> class="dropdown-item"><a href=/approves?per_page=100>100</a></li></ul>
</span> </span>
</label> </label>
</div> </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