Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
bill-manager-ui
Commits
f2cc8309
Commit
f2cc8309
authored
Jul 09, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化首页图表日期显示
parent
c721d4b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
admin_2/src/pages/home/Home.vue
admin_2/src/pages/home/Home.vue
+13
-9
No files found.
admin_2/src/pages/home/Home.vue
View file @
f2cc8309
...
...
@@ -194,9 +194,11 @@ export default {
this
.
totalDataset
.
source
=
thirtyStatList
.
map
((
item
)
=>
{
return
{
name
:
this
.
$moment
(
`
${
item
.
year
}
-
${
item
.
month
}
-
${
item
.
day
}
`
).
format
(
"
YYYY-MM-DD
"
),
name
:
`
${
item
.
year
}
-
${
String
(
item
.
month
).
padStart
(
2
,
"
0
"
)}
-
${
String
(
item
.
day
).
padStart
(
2
,
"
0
"
)}
`
,
value
:
item
.
count
,
};
})
...
...
@@ -204,9 +206,10 @@ export default {
this
.
phDataset
.
source
=
thirtyPhStatList
.
map
((
item
)
=>
{
return
{
name
:
this
.
$moment
(
`
${
item
.
year
}
-
${
item
.
month
}
-
${
item
.
day
}
`
).
format
(
"
YYYY-MM-DD
"
),
name
:
`
${
item
.
year
}
-
${
String
(
item
.
month
).
padStart
(
2
,
"
0
"
)}
-
${
String
(
item
.
day
).
padStart
(
2
,
"
0
"
)}
`
,
value
:
item
.
phCount
,
};
})
...
...
@@ -214,9 +217,10 @@ export default {
this
.
pjDataset
.
source
=
thirtyPjStatList
.
map
((
item
)
=>
{
return
{
name
:
this
.
$moment
(
`
${
item
.
year
}
-
${
item
.
month
}
-
${
item
.
day
}
`
).
format
(
"
YYYY-MM-DD
"
),
name
:
`
${
item
.
year
}
-
${
String
(
item
.
month
).
padStart
(
2
,
"
0
"
)}
-
${
String
(
item
.
day
).
padStart
(
2
,
"
0
"
)}
`
,
value
:
item
.
pjCount
,
};
})
...
...
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