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
f4a16cce
Commit
f4a16cce
authored
Jul 12, 2023
by
dlkong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
四色图增加评分判断
parent
5b3ed6c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
src/App.vue
src/App.vue
+2
-0
src/views/drawCanvas/riskView.vue
src/views/drawCanvas/riskView.vue
+14
-1
No files found.
src/App.vue
View file @
f4a16cce
...
...
@@ -62,6 +62,8 @@ export default {
"
riskExecution
"
,
"
riskAssess
"
,
"
riskApprove
"
,
"
taskList
"
,
"
taskDetail
"
],
// cachePage预先定义的缓存页面
...
...
src/views/drawCanvas/riskView.vue
View file @
f4a16cce
...
...
@@ -218,6 +218,20 @@ export default {
if
(
!
this
.
isViews
||
item
.
position
.
type
==
'
thorough
'
)
{
//添加页面不显示颜色
item
.
position
.
c
=
'
#e6e5e5
'
}
else
{
/**
* 根据风险评分来匹配相应的颜色
* score 风险评分字段
*/
// item.score = Number(item.score)
// if (item.score>=21 && item.score
<=
27
)
{
//优
// item.position.c = this.colorList[3]
// }else if(item.score>=14 && item.score
<=
20
){
//良
// item.position.c = this.colorList[2]
// }else if (item.score>=7&& item.score
<=
13
)
{
//中
// item.position.c = this.colorList[1]
// }else if (item.score>=0 && item.score
<=
6
)
{
//差
// item.position.c = this.colorList[0]
// }
item
.
position
.
c
=
this
.
colorList
[
Math
.
floor
(
Math
.
random
()
*
4
)]
}
this
.
layout
.
push
(
item
.
position
)
...
...
@@ -440,7 +454,6 @@ export default {
.vue-grid-layout
{
background
:
#f0f1f5
;
}
.vue-grid-item
:not
(
.vue-grid-placeholder
)
{
background
:
#ccc
;
border
:
1px
solid
black
;
...
...
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