Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rongtong-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
融通安全管理系统
rongtong-app
Commits
91a1f7e0
Commit
91a1f7e0
authored
Jul 26, 2023
by
陈晓晋
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xjchen' into 'develop'
风险按照风险等级显示不同背景色20230726 See merge request
!28
parents
feeb85f6
a70129b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/views/riskProject/add/resultPage.vue
src/views/riskProject/add/resultPage.vue
+8
-5
No files found.
src/views/riskProject/add/resultPage.vue
View file @
91a1f7e0
...
...
@@ -3,8 +3,8 @@
<LHeader
:text=
"text"
></LHeader>
<div
class=
"section"
>
<p>
该次测评风险值为:
</p>
<div
class=
"resultScore"
>
<p
style=
"font-weight: bold;font-size: 20px;"
>
{{
this
.
$route
.
params
.
score
}}
</p>
<div
class=
"resultScore"
:style=
"
{ background: backgroundColor}"
>
<p
style=
"font-weight: bold;font-size: 20px;
color: white;
"
>
{{
this
.
$route
.
params
.
score
}}
</p>
</div>
<p>
本次评估结果评定为:
{{
level
}}
</p>
<van-divider></van-divider>
...
...
@@ -34,7 +34,8 @@ import LHeader from "@/components/header.vue";
return
{
text
:
'
测评结果
'
,
score
:
0
,
level
:
''
level
:
''
,
backgroundColor
:
''
,
}
},
created
(){
...
...
@@ -45,6 +46,8 @@ import LHeader from "@/components/header.vue";
getFun
(
`/risk/plan/matrix/score/
${
this
.
$route
.
params
.
score
}
`
).
then
(
res
=>
{
this
.
level
=
res
.
data
.
level
this
.
score
=
res
.
data
.
max
this
.
backgroundColor
=
this
.
level
==
'
一般风险
'
?
"
#FFFF00
"
:
this
.
level
==
'
较小风险
'
?
"
#0091EA
"
:
this
.
level
==
'
较大风险
'
?
"
#FF9800
"
:
this
.
level
==
'
重大风险
'
?
"
#FF4433
"
:
"
orange
"
;
})
},
resetClose
(){
...
...
@@ -88,6 +91,6 @@ import LHeader from "@/components/header.vue";
border-radius: 50%;
margin: 0 auto;
}
}
</
style
>
\ No newline at end of file
</
style
>
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