Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ffb8f74c
authored
Jan 15, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 修改X轴
1 parent
ce106020
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/views/earlyWarningManager/shopGuard/components/chartConfig.js
src/views/earlyWarningManager/shopGuard/components/chartConfig.js
View file @
ffb8f74
...
@@ -25,17 +25,17 @@ export const tooltipConfig = {
...
@@ -25,17 +25,17 @@ export const tooltipConfig = {
// }
// }
}
}
export
const
xAxisConfig
=
(
params
)
=>
{
export
const
xAxisConfig
=
(
params
)
=>
{
let
{
allYear
}
=
params
.
searchTime
return
{
return
{
type
:
'time'
,
type
:
'time'
,
boundaryGap
:
false
,
boundaryGap
:
false
,
splitLine
:
{
splitLine
:
{
show
:
false
show
:
false
},
},
splitNumber
:
allYear
?
12
:
10
,
axisLabel
:
{
axisLabel
:
{
interval
:
0
,
showMaxLabel
:
true
,
showMaxLabel
:
true
,
formatter
:
function
(
value
,
index
)
{
formatter
:
function
(
value
,
index
)
{
let
{
allYear
}
=
params
.
searchTime
return
allYear
?
dayjs
(
value
).
format
(
'MM月'
)
:
dayjs
(
value
).
format
(
'MM/DD'
)
return
allYear
?
dayjs
(
value
).
format
(
'MM月'
)
:
dayjs
(
value
).
format
(
'MM/DD'
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment