Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-collect
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汪伟伟
data-collect
Commits
440bc69d
Commit
440bc69d
authored
Jan 22, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
38902576
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
118 additions
and
96 deletions
+118
-96
app/Admin/Controllers/TasksApproveController.php
+5
-1
resources/views/admin/check.blade.php
+113
-95
No files found.
app/Admin/Controllers/TasksApproveController.php
View file @
440bc69d
...
...
@@ -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'
);
...
...
resources/views/admin/check.blade.php
View file @
440bc69d
...
...
@@ -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)"
>
全部通过
</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)"
>
通过
</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)"
>
全部通过
</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)"
>
通过
</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&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&per_page=20"
>
2
0
</a></li><li
href=
/approves?per_page=10
>
1
0
</a></li><li
class=
"dropdown-item"
><a
href=
"http://127.0.0.1:83/approves?_pjax=%23pjax-container&per_page=30"
>
3
0
</a></li><li
href=
/approves?per_page=20
>
2
0
</a></li><li
class=
"dropdown-item"
><a
href=
"http://127.0.0.1:83/approves?_pjax=%23pjax-container&per_page=50"
>
5
0
</a></li><li
class=
"dropdown-item"
><a
href=
"http://127.0.0.1:83/approves?_pjax=%23pjax-container&per_page=100"
>
10
0
</a></li><li
class=
"dropdown-item"
><a
href=
"http://127.0.0.1:83/approves?_pjax=%23pjax-container&per_page=200"
>
2
00
</a></li></ul>
href=
/approves?per_page=30
>
3
0
</a></li><li
class=
"dropdown-item"
><a
href=
/approves?per_page=50
>
5
0
</a></li><li
class=
"dropdown-item"
><a
href=
/approves?per_page=100
>
1
00
</a></li></ul>
</span>
</label>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment