Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dxgaqgl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
dxgaqgl-vue
Commits
dc470b0f
Commit
dc470b0f
authored
Sep 03, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
5ed44624
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
31 deletions
+13
-31
index.vue
src/views/threeViolations/homePage/index.vue
+13
-31
No files found.
src/views/threeViolations/homePage/index.vue
View file @
dc470b0f
...
...
@@ -1041,51 +1041,33 @@
color
:
'white'
}
}
let
seriesData
=
[{
name
:
"持证人数"
,
let
seriesData
=
{
data
:
[],
type
:
"bar"
,
barWidth
:
20
,
stack
:
'total'
,
itemStyle
:
{
color
:
"#334284"
}
,
...
seriesStyle
}
,
{
name
:
"即将到期"
,
data
:
[],
type
:
"bar"
,
barWidth
:
20
,
stack
:
'total'
,
itemStyle
:
{
color
:
""
}
,
...
seriesStyle
}
,
],
xAxis
=
[];
}
let
xAxis
=
[];
value
.
forEach
(
element
=>
{
xAxis
.
push
(
element
.
flName
);
seriesData
[
0
][
"data"
].
push
(
element
.
allCount
-
element
.
dqCount
||
0
);
seriesData
[
1
][
"data"
].
push
(
element
.
dqCount
||
0
);
xAxis
.
push
(
element
.
flName
.
replace
(
'持证信息'
,
''
));
seriesData
.
data
.
push
(
element
.
allCount
)
}
);
this
.
setBarhart
(
this
.
ygzcChart
,
{
title
:
"员工持证"
,
titleShow
:
true
,
yAxis
:
{
name
:
"种类"
,
data
:
xAxis
,
show
:
false
,
type
:
"category"
,
...
yAxisStyle
}
,
customxAxis
:
{
type
:
"value"
,
boundaryGap
:
[
0
,
0.01
],
...
yAxisStyle
data
:
xAxis
,
"axisLabel"
:
{
"show"
:
true
,
"color"
:
"white"
// 设置轴标签颜色为白色
}
}
,
series
:
seriesData
series
:
seriesData
,
}
)
}
}
)
...
...
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