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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
15 deletions
+37
-15
app/Admin/Controllers/TasksApproveController.php
+5
-1
resources/views/admin/check.blade.php
+32
-14
No files found.
app/Admin/Controllers/TasksApproveController.php
View file @
440bc69d
...
@@ -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'
);
...
...
resources/views/admin/check.blade.php
View file @
440bc69d
...
@@ -98,7 +98,13 @@
...
@@ -98,7 +98,13 @@
<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>
@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>
{{$item['price']}}
</td>
{{--
<td>
11
</td>
--}}
{{--
<td>
11
</td>
--}}
...
@@ -106,8 +112,10 @@
...
@@ -106,8 +112,10 @@
{{--
<td>
3
</td>
--}}
{{--
<td>
3
</td>
--}}
<td
class=
"grid__actions__"
>
<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-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>
<a
style=
"cursor: pointer;"
class=
"act-8r3v0iFpeBCgEsaB"
<span
style=
"cursor: pointer"
data-toggle=
"modal"
data-target=
"#modal-14NXsK3Ogh"
><a
href=
"javascript:void(0)"
>
全部通过
</a>
<span
style=
"cursor: pointer"
data-toggle=
"modal"
data-target=
"#modal-14NXsK3Ogh"
><a
href=
"javascript:void(0)"
>
全部不通过
</a></span>
href=
"javascript:void(0)"
>
全部不通过
</a></span>
</td>
</td>
</tr>
</tr>
...
@@ -129,7 +137,7 @@
...
@@ -129,7 +137,7 @@
<tr>
<tr>
<td>
{{$k==0?'A':'B'}}
</td>
<td>
{{$k==0?'A':'B'}}
</td>
<td>
{{$rec['user']['name']}}
</td>
<td>
{{$rec['user']['name']}}
</td>
<td
>
{{$rec['collects']['value']}}
</td>
<td
style=
"color: {{$rec['is_bs'] == 1 ? 'red': ''}}"
>
{{$rec['collects']['value']}}
</td>
<td>
<td>
@if(filter_var($rec['collects']['reality_refer'], FILTER_VALIDATE_URL) !== false)
@if(filter_var($rec['collects']['reality_refer'], FILTER_VALIDATE_URL) !== false)
<a
target=
"_blank"
href=
{{$rec['collects']['reality_refer']}}
>
点击查看
</a>
<a
target=
"_blank"
href=
{{$rec['collects']['reality_refer']}}
>
点击查看
</a>
...
@@ -138,10 +146,20 @@
...
@@ -138,10 +146,20 @@
@endif
@endif
</td>
</td>
<td>
{{$rec['collects']['refer_level']}}
</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__"
>
<td
class=
"grid__actions__"
>
<a
style=
"cursor: pointer;"
class=
"act-8r3v0iFpeBCgEsaB"
href=
"javascript:void(0)"
>
通过
</a>
<a
style=
"cursor: pointer;"
class=
"act-8r3v0iFpeBCgEsaB"
<span
style=
"cursor: pointer"
data-toggle=
"modal"
data-target=
"#modal-14NXsK3Ogh"
><a
href=
"javascript:void(0)"
>
通过
</a>
<span
style=
"cursor: pointer"
data-toggle=
"modal"
data-target=
"#modal-14NXsK3Ogh"
><a
href=
"javascript:void(0)"
>
不通过
</a></span>
href=
"javascript:void(0)"
>
不通过
</a></span>
</td>
</td>
</tr>
</tr>
...
@@ -156,7 +174,7 @@
...
@@ -156,7 +174,7 @@
<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&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&per_page=20"
>
2
0
</a></li><li
href=
/approves?per_page=10
>
1
0
</a></li><li
class=
"dropdown-item"
><a
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
class=
"dropdown-item"
><a
href=
"http://127.0.0.1:83/approves?_pjax=%23pjax-container&per_page=50"
>
5
0
</a></li><li
href=
/approves?per_page=30
>
3
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=
/approves?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=200"
>
2
00
</a></li></ul>
class=
"dropdown-item"
><a
href=
/approves?per_page=100
>
1
00
</a></li></ul>
</span>
</span>
</label>
</label>
</div>
</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