Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
digital-construction
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
张牧越
digital-construction
Commits
78099157
Commit
78099157
authored
Jun 08, 2023
by
张牧越
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styleFix
parent
44e5b5dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
9 deletions
+52
-9
Index.vue
src/components/construction/Index.vue
+18
-3
Index.vue
src/components/earlywarning/Index.vue
+34
-6
No files found.
src/components/construction/Index.vue
View file @
78099157
...
...
@@ -281,13 +281,23 @@
v-for=
"(legend, index) in aiwarningData"
:key=
"index"
:style=
"{
color: legend.name == '已处理' ? '#AEE4F8' : '#FF754C',
color:
legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}"
>
<span
class=
"rect"
:style=
"{
background: legend.name == '已处理' ? '#AEE4F8' : '#FF754C',
background:
legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}"
></span>
{{ legend.name }} {{ legend.value }}
...
...
@@ -370,7 +380,12 @@ export default {
return
{
...
item
,
itemStyle
:
{
color
:
item
.
name
==
"已处理"
?
"#AEE4F8"
:
"#FF754C"
,
color
:
item
.
name
==
"已处理"
?
"#18d7b9"
:
item
.
name
==
"处理中"
?
"#feba01"
:
"#ff754c"
,
},
};
}),
...
...
src/components/earlywarning/Index.vue
View file @
78099157
...
...
@@ -129,14 +129,23 @@
v-for=
"(legend, index) in todayPieChartData"
:key=
"index"
:style=
"
{
color: legend.name == '未处理' ? '#FFAF51' : '#0CDEE3',
color:
legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}"
>
<span
class=
"rect"
:style=
"
{
background:
legend.name == '未处理' ? '#FFAF51' : '#0CDEE3',
legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}"
>
</span>
{{
legend
.
name
}}
{{
legend
.
value
}}
...
...
@@ -164,14 +173,23 @@
v-for=
"(legend, index) in historyChartData"
:key=
"index"
:style=
"
{
color: legend.name == '未处理' ? '#FCFF11' : '#2980FF',
color:
legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}"
>
<span
class=
"rect"
:style=
"
{
background:
legend.name == '未处理' ? '#FCFF11' : '#2980FF',
legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}"
>
</span>
{{
legend
.
name
}}
{{
legend
.
value
}}
...
...
@@ -338,7 +356,12 @@ export default {
return
{
...
item
,
itemStyle
:
{
color
:
item
.
name
==
"未处理"
?
"#FFAF51"
:
"#0CDEE3"
,
color
:
item
.
name
==
"已处理"
?
"#18d7b9"
:
item
.
name
==
"处理中"
?
"#feba01"
:
"#ff754c"
,
},
};
}),
...
...
@@ -388,7 +411,12 @@ export default {
return
{
...
item
,
itemStyle
:
{
color
:
item
.
name
==
"未处理"
?
"#FCFF11"
:
"#2980FF"
,
color
:
item
.
name
==
"已处理"
?
"#18d7b9"
:
item
.
name
==
"处理中"
?
"#feba01"
:
"#ff754c"
,
},
};
}),
...
...
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