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
ed8ca110
Commit
ed8ca110
authored
Jan 29, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未通过原因
parent
fe9fe498
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
app/Admin/Controllers/AlreadyApproveController.php
+9
-1
No files found.
app/Admin/Controllers/AlreadyApproveController.php
View file @
ed8ca110
...
@@ -10,6 +10,7 @@ use Dcat\Admin\Form;
...
@@ -10,6 +10,7 @@ use Dcat\Admin\Form;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Show
;
use
Dcat\Admin\Show
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Widgets\Tooltip
;
class
AlreadyApproveController
extends
AdminController
class
AlreadyApproveController
extends
AdminController
{
{
...
@@ -63,7 +64,14 @@ class AlreadyApproveController extends AdminController
...
@@ -63,7 +64,14 @@ class AlreadyApproveController extends AdminController
$grid
->
column
(
'collects.refer_level'
,
'信源等级'
);
$grid
->
column
(
'collects.refer_level'
,
'信源等级'
);
// $grid->column('collects.net_img', '截图链接');
// $grid->column('collects.net_img', '截图链接');
$grid
->
column
(
'status'
,
'状态'
)
->
display
(
function
(
$statusValue
)
{
//是当前字段的值
$grid
->
column
(
'status'
,
'状态'
)
->
display
(
function
(
$statusValue
)
{
//是当前字段的值
return
\App\Models\TasksApprove
::
APPROVE_STATUS_DESC
[
$statusValue
];
$html
=
\App\Models\TasksApprove
::
APPROVE_STATUS_DESC
[
$statusValue
];
if
(
$statusValue
==
1
)
{
// var_dump($this->id,$this->approve->msg);
Tooltip
::
make
(
'.ti-shi-span'
.
$this
->
id
)
->
title
(
$this
->
msg
);
return
"<span style='color: red' class='ti-shi-span
{
$this
->
id
}
'>
{
$html
}
</span>"
;
}
else
{
return
$html
;
}
});
});
// $grid->tools('<a class="btn btn-primary disable-outline">测试按钮</a>');
// $grid->tools('<a class="btn btn-primary disable-outline">测试按钮</a>');
...
...
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