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
77d68051
Commit
77d68051
authored
Jan 24, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
筛选
parent
9086adf8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
app/Admin/Controllers/AlreadyApproveController.php
+9
-2
app/Admin/routes.php
+1
-0
resources/views/admin/check.blade.php
+6
-0
No files found.
app/Admin/Controllers/AlreadyApproveController.php
View file @
77d68051
...
@@ -68,9 +68,10 @@ class AlreadyApproveController extends AdminController
...
@@ -68,9 +68,10 @@ class AlreadyApproveController extends AdminController
// $grid->tools('<a class="btn btn-primary disable-outline">测试按钮</a>');
// $grid->tools('<a class="btn btn-primary disable-outline">测试按钮</a>');
$grid
->
disableEditButton
()
->
disableDeleteButton
()
->
disableCreateButton
()
->
disable
FilterButton
()
->
disable
BatchDelete
();
$grid
->
disableEditButton
()
->
disableDeleteButton
()
->
disableCreateButton
()
->
disableBatchDelete
();
$grid
->
filter
(
function
(
Grid\Filter
$filter
)
{
$grid
->
filter
(
function
(
Grid\Filter
$filter
)
{
$filter
->
equal
(
'id'
);
$filter
->
equal
(
'user.id'
,
'用户'
)
->
select
(
'/getUsers'
);
$filter
->
like
(
'task.name'
,
'指标名称'
);
});
});
$grid
->
actions
(
function
(
Grid\Displayers\Actions
$actions
)
{
$grid
->
actions
(
function
(
Grid\Displayers\Actions
$actions
)
{
...
@@ -84,6 +85,12 @@ class AlreadyApproveController extends AdminController
...
@@ -84,6 +85,12 @@ class AlreadyApproveController extends AdminController
});
});
}
}
public
function
getUsers
()
{
$users
=
\App\Models\AdminUser
::
query
()
->
where
(
'is_admin'
,
0
)
->
get
([
'id'
,
'name as text'
])
->
toArray
();
return
$users
;
}
/**
/**
* Make a show builder.
* Make a show builder.
*
*
...
...
app/Admin/routes.php
View file @
77d68051
...
@@ -19,6 +19,7 @@ Route::group([
...
@@ -19,6 +19,7 @@ Route::group([
$router
->
get
(
'getCity'
,
'TaskController@getCity'
);
$router
->
get
(
'getCity'
,
'TaskController@getCity'
);
$router
->
get
(
'getUsers'
,
'AlreadyApproveController@getUsers'
);
$router
->
get
(
'receive/{id}'
,
'TaskController@receiveDetail'
);
$router
->
get
(
'receive/{id}'
,
'TaskController@receiveDetail'
);
...
...
resources/views/admin/check.blade.php
View file @
77d68051
...
@@ -21,6 +21,12 @@
...
@@ -21,6 +21,12 @@
style="
margin
-
right
:
3
px
">
style="
margin
-
right
:
3
px
">
<i class="
feather
icon
-
refresh
-
cw
"></i><span class="
d
-
none
d
-
sm
-
inline
"> 刷新</span>
<i class="
feather
icon
-
refresh
-
cw
"></i><span class="
d
-
none
d
-
sm
-
inline
"> 刷新</span>
</button>
</button>
{{-- <div class="
btn
-
group
filter
-
button
-
group
dropdown
" style="
margin
-
right
:
3
px
">--}}
{{-- <button class="
btn
btn
-
primary
filter
-
btn
-
ATDVmyrF
btn
-
outline
">--}}
{{-- <i class="
feather
icon
-
filter
"></i><span class="
d
-
none
d
-
sm
-
inline
"> 筛选</span>--}}
{{-- <span class="
filter
-
count
"></span>--}}
{{-- </button>--}}
{{-- </div>--}}
<div class="
pull
-
right
" data-responsive-table-toolbar="
grid
-
table
">
<div class="
pull
-
right
" data-responsive-table-toolbar="
grid
-
table
">
...
...
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