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
cfe7cd58
authored
Jan 10, 2025
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计bug
parent
3291bb79
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
app/Admin/Metrics/Examples/NewUsers.php
+4
-4
app/Admin/Metrics/Statistics/PharmacyChart.php
+1
-1
app/Admin/Metrics/Statistics/PrescriptionChart.php
+1
-1
No files found.
app/Admin/Metrics/Examples/NewUsers.php
View file @
cfe7cd58
...
...
@@ -18,10 +18,10 @@ protected function init()
$this
->
title
(
'New Users'
);
$this
->
dropdown
([
'7'
=>
'Last 7 Days'
,
'28'
=>
'Last 28 Days'
,
'30'
=>
'Last Month'
,
'365'
=>
'Last Year'
,
//
'7' => 'Last 7 Days',
//
'28' => 'Last 28 Days',
//
'30' => 'Last Month',
//
'365' => 'Last Year',
]);
}
...
...
app/Admin/Metrics/Statistics/PharmacyChart.php
View file @
cfe7cd58
...
...
@@ -62,7 +62,7 @@ public function handle(Request $request)
$labels
=
array_keys
(
$datesRange
);
$data
=
array_values
(
$datesRange
);
// 卡片内容
$this
->
withContent
(
$data
[
6
]
);
$this
->
withContent
(
$data
[
7
]
??
0
);
// 图表数据
$this
->
withChart
([
[
...
...
app/Admin/Metrics/Statistics/PrescriptionChart.php
View file @
cfe7cd58
...
...
@@ -71,7 +71,7 @@ public function handle(Request $request)
$labels
=
array_keys
(
$datesRange
);
$data
=
array_values
(
$datesRange
);
// 卡片内容
$this
->
withContent
(
$data
[
6
]
);
$this
->
withContent
(
$data
[
7
]
??
0
);
// 图表数据
$this
->
withChart
([
[
...
...
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