Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
service
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
1
Merge Requests
1
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
aimeiyue
service
Commits
7e1daeaf
Commit
7e1daeaf
authored
Nov 05, 2024
by
lizhilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
8b105e87
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletions
+3
-1
app/Admin/Controllers/StoreAdminUsersController.php
+1
-0
app/Admin/Controllers/UserBuycodeCheckController.php
+1
-0
app/Admin/Metrics/Examples/Product.php
+1
-1
No files found.
app/Admin/Controllers/StoreAdminUsersController.php
View file @
7e1daeaf
...
...
@@ -23,6 +23,7 @@ protected function grid()
{
return
Grid
::
make
(
StoreAdminUsers
::
with
([
'merchant'
,
'store'
]),
function
(
Grid
$grid
)
{
$grid
->
model
()
->
where
(
'role_id'
,
2
);
//2: 核销员
$grid
->
model
()
->
orderBy
(
'created_at'
,
'DESC'
);
$grid
->
column
(
'id'
)
->
sortable
();
$grid
->
column
(
'name'
,
'姓名'
);
$grid
->
column
(
'username'
,
'登录账号'
);
...
...
app/Admin/Controllers/UserBuycodeCheckController.php
View file @
7e1daeaf
...
...
@@ -19,6 +19,7 @@ class UserBuycodeCheckController extends AdminController
protected
function
grid
()
{
return
Grid
::
make
(
UserBuycodeCheck
::
with
([
'user'
]),
function
(
Grid
$grid
)
{
$grid
->
model
()
->
orderBy
(
'created_at'
,
'DESC'
);
$grid
->
column
(
'id'
)
->
sortable
();
$grid
->
column
(
'user.avatar'
,
'用户头像'
)
->
image
(
''
,
100
,
100
);
$grid
->
column
(
'user.name'
,
'用户昵称'
);
...
...
app/Admin/Metrics/Examples/Product.php
View file @
7e1daeaf
...
...
@@ -48,7 +48,7 @@ public function handle(Request $request)
$html
=
''
;
foreach
(
$list
as
$kk
=>
$vv
)
{
$html
.=
'<tr>'
;
$html
.=
'<td style="width:20%;text-align:left;"><img src="'
.
env
(
'IMAGE_URL'
)
.
$vv
->
cover_img
.
'" width="100"></td>'
;
$html
.=
'<td style="width:20%;text-align:left;"><img src="'
.
togetherFilePath
(
$vv
->
cover_img
)
.
'" width="100"></td>'
;
$html
.=
'<td style="width:36%;text-align:left;">'
.
$vv
->
goods_name
.
'</td>'
;
$html
.=
'<td style="width:33%;">销量:'
.
$vv
->
sale
.
'</td>'
;
$html
.=
'</tr>'
;
...
...
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