Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fd428f13
authored
Nov 20, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
药店登录
parent
5c215d9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
21 deletions
+15
-21
app/Admin/Controllers/HomeController.php
+13
-14
app/Models/AdminUsers.php
+2
-7
No files found.
app/Admin/Controllers/HomeController.php
View file @
fd428f13
...
@@ -14,23 +14,22 @@ class HomeController extends Controller
...
@@ -14,23 +14,22 @@ class HomeController extends Controller
public
function
index
(
Content
$content
)
public
function
index
(
Content
$content
)
{
{
return
$content
return
$content
->
header
(
'Dashboard'
)
->
header
(
'首页'
)
->
description
(
'Description...'
)
->
body
(
function
(
Row
$row
)
{
->
body
(
function
(
Row
$row
)
{
$row
->
column
(
6
,
function
(
Column
$column
)
{
//
$row->column(6, function (Column $column) {
$column
->
row
(
Dashboard
::
title
());
//
$column->row(Dashboard::title());
$column
->
row
(
new
Examples\Tickets
());
//
$column->row(new Examples\Tickets());
});
//
});
$row
->
column
(
6
,
function
(
Column
$column
)
{
//
$row->column(6, function (Column $column) {
$column
->
row
(
function
(
Row
$row
)
{
//
$column->row(function (Row $row) {
$row
->
column
(
6
,
new
Examples\NewUsers
());
//
$row->column(6, new Examples\NewUsers());
$row
->
column
(
6
,
new
Examples\NewDevices
());
//
$row->column(6, new Examples\NewDevices());
});
//
});
$column
->
row
(
new
Examples\Sessions
());
//
$column->row(new Examples\Sessions());
$column
->
row
(
new
Examples\ProductOrders
());
//
$column->row(new Examples\ProductOrders());
});
//
});
});
});
}
}
}
}
app/Models/AdminUsers.php
View file @
fd428f13
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
namespace
App\Models
;
namespace
App\Models
;
use
Dcat\Admin\Models\Administrator
as
AdministratorModel
;
use
Dcat\Admin\Traits\HasDateTimeFormatter
;
use
Dcat\Admin\Traits\HasDateTimeFormatter
;
use
Illuminate\Database\Eloquent\Model
;
/**
/**
* App\Models\AdminUsers
* App\Models\AdminUsers
...
@@ -23,12 +23,7 @@
...
@@ -23,12 +23,7 @@
*
*
* @mixin \Eloquent
* @mixin \Eloquent
*/
*/
class
AdminUsers
extends
Model
class
AdminUsers
extends
Administrator
Model
{
{
use
HasDateTimeFormatter
;
use
HasDateTimeFormatter
;
public
function
getIdNameMap
()
:
array
{
return
self
::
orderBy
(
'id'
,
'desc'
)
->
pluck
(
'name'
,
'id'
)
->
toArray
();
}
}
}
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