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
53c88ebb
Commit
53c88ebb
authored
Jan 18, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提示信息
parent
66cebc84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
app/Admin/Controllers/AlreadyDoneTaskController.php
+11
-2
No files found.
app/Admin/Controllers/AlreadyDoneTaskController.php
View file @
53c88ebb
...
...
@@ -14,6 +14,7 @@ use Dcat\Admin\Grid;
use
Dcat\Admin\Layout\Content
;
use
Dcat\Admin\Show
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Widgets\Tooltip
;
class
AlreadyDoneTaskController
extends
AdminController
{
...
...
@@ -26,7 +27,7 @@ class AlreadyDoneTaskController extends AdminController
*/
protected
function
grid
()
{
return
Grid
::
make
(
TasksReceive
::
with
([
'task'
,
'collects'
,
'user'
]),
function
(
Grid
$grid
){
return
Grid
::
make
(
TasksReceive
::
with
([
'task'
,
'collects'
,
'user'
,
'approve'
]),
function
(
Grid
$grid
){
$user
=
Admin
::
user
();
$user
->
is_admin
==
0
&&
$grid
->
model
()
->
where
(
'user_id'
,
$user
->
id
);
$grid
->
model
()
->
where
(
'status'
,
'>'
,
0
);
...
...
@@ -71,7 +72,15 @@ class AlreadyDoneTaskController extends AdminController
// $grid->column('collects.net_img', '网页截图');
$grid
->
column
(
'status'
,
'状态'
)
->
display
(
function
(
$val
)
{
return
\App\Models\TasksReceive
::
STATUS_DESC
[
$val
];
$html
=
\App\Models\TasksReceive
::
STATUS_DESC
[
$val
];
if
(
$val
==
2
)
{
// dd($this->id,$this->approve->msg);
Tooltip
::
make
(
'.ti-shi-span'
)
->
title
(
$this
->
approve
->
msg
);
return
"<span style='color: red' class='ti-shi-span'>
{
$html
}
<i class='feather icon-help-circle'></i></span>"
;
}
else
{
return
$html
;
}
});
$grid
->
column
(
'created_at'
,
'领取任务时间'
);
...
...
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