Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
multiSystem
Project
Project
Details
Activity
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
Yulun Yao
multiSystem
Commits
ef279f25
Commit
ef279f25
authored
Apr 09, 2021
by
zhangrui123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
房办月查的颜色判断
parent
246cfc8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
home.vue
src/views/home.vue
+9
-9
No files found.
src/views/home.vue
View file @
ef279f25
...
@@ -578,13 +578,13 @@ export default {
...
@@ -578,13 +578,13 @@ export default {
}
}
// 处理房办的月份颜色
// 处理房办的月份颜色
this
.
secRowInfos
.
HOUSING_OFFICE
.
data
.
forEach
((
ele
,
i
)
=>
{
this
.
secRowInfos
.
HOUSING_OFFICE
.
data
.
forEach
((
ele
,
i
)
=>
{
if
(
ele
.
r
ectifiedCount
/
ele
.
rectifyCount
==
1
)
{
// 完成率100 绿色
if
(
ele
.
r
ato
==
1
)
{
// 完成率100 绿色
this
.
FB_month
[
i
].
backgroundColor
=
'#6EB629'
this
.
FB_month
[
i
].
backgroundColor
=
'#6EB629'
this
.
FB_month
[
i
].
color
=
'#fff'
this
.
FB_month
[
i
].
color
=
'#fff'
}
else
if
(
ele
.
r
ectifiedCount
/
ele
.
rectifyCount
<
.
9
){
// 完成率90以下 红色
}
else
if
(
ele
.
r
ato
<
.
9
){
// 完成率90以下 红色
this
.
FB_month
[
i
].
backgroundColor
=
'#CC4D4D'
this
.
FB_month
[
i
].
backgroundColor
=
'#CC4D4D'
this
.
FB_month
[
i
].
color
=
'#fff'
this
.
FB_month
[
i
].
color
=
'#fff'
}
else
if
(
ele
.
r
ectifiedCount
/
ele
.
rectifyCount
>
0.9
){
// 完成率90到100之间 黄色
}
else
if
(
ele
.
r
ato
>
0.9
){
// 完成率90到100之间 黄色
this
.
FB_month
[
i
].
backgroundColor
=
'#FFD400'
this
.
FB_month
[
i
].
backgroundColor
=
'#FFD400'
this
.
FB_month
[
i
].
color
=
'#fff'
this
.
FB_month
[
i
].
color
=
'#fff'
}
else
{
// 无数据状态
}
else
{
// 无数据状态
...
@@ -595,13 +595,13 @@ export default {
...
@@ -595,13 +595,13 @@ export default {
// 处理物企双周查月份颜色
// 处理物企双周查月份颜色
this
.
secRowInfos
.
PROPERTY_BIWEEKLY
.
data
.
forEach
((
ele
,
i
)
=>
{
this
.
secRowInfos
.
PROPERTY_BIWEEKLY
.
data
.
forEach
((
ele
,
i
)
=>
{
if
(
ele
.
r
ectifiedCount
/
ele
.
rectifyCount
==
1
||
ele
.
rectifyCount
==
0
)
{
// 完成率100 绿色
if
(
ele
.
r
ato
==
1
||
ele
.
rectifyCount
==
0
)
{
// 完成率100 绿色
this
.
WQ_month
[
i
].
backgroundColor
=
'#6EB629'
this
.
WQ_month
[
i
].
backgroundColor
=
'#6EB629'
this
.
WQ_month
[
i
].
color
=
'#fff'
this
.
WQ_month
[
i
].
color
=
'#fff'
}
else
if
(
ele
.
r
ectifiedCount
/
ele
.
rectifyCount
<
.
9
){
// 完成率90以下 红色
}
else
if
(
ele
.
r
ato
<
.
9
){
// 完成率90以下 红色
this
.
WQ_month
[
i
].
backgroundColor
=
'#CC4D4D'
this
.
WQ_month
[
i
].
backgroundColor
=
'#CC4D4D'
this
.
WQ_month
[
i
].
color
=
'#fff'
this
.
WQ_month
[
i
].
color
=
'#fff'
}
else
if
(
ele
.
r
ectifiedCount
/
ele
.
rectifyCount
>
0.9
){
// 完成率90到100之间 黄色
}
else
if
(
ele
.
r
ato
>
0.9
){
// 完成率90到100之间 黄色
this
.
WQ_month
[
i
].
backgroundColor
=
'#FFD400'
this
.
WQ_month
[
i
].
backgroundColor
=
'#FFD400'
this
.
WQ_month
[
i
].
color
=
'#fff'
this
.
WQ_month
[
i
].
color
=
'#fff'
}
else
{
// 无数据状态
}
else
{
// 无数据状态
...
@@ -612,13 +612,13 @@ export default {
...
@@ -612,13 +612,13 @@ export default {
// 处理小区经理自查月份颜色
// 处理小区经理自查月份颜色
this
.
secRowInfos
.
COMMUNITY_MANAGER_YEAR
.
data
.
forEach
((
ele
,
i
)
=>
{
this
.
secRowInfos
.
COMMUNITY_MANAGER_YEAR
.
data
.
forEach
((
ele
,
i
)
=>
{
if
(
ele
.
r
ectifiedCount
/
ele
.
rectifyCount
==
1
)
{
// 完成率100 绿色
if
(
ele
.
r
ato
==
1
)
{
// 完成率100 绿色
this
.
manager_month
[
i
].
backgroundColor
=
'#6EB629'
this
.
manager_month
[
i
].
backgroundColor
=
'#6EB629'
this
.
manager_month
[
i
].
color
=
'#fff'
this
.
manager_month
[
i
].
color
=
'#fff'
}
else
if
(
ele
.
r
ectifiedCount
/
ele
.
rectifyCount
<
.
9
){
// 完成率90以下 红色
}
else
if
(
ele
.
r
ato
<
.
9
){
// 完成率90以下 红色
this
.
manager_month
[
i
].
backgroundColor
=
'#CC4D4D'
this
.
manager_month
[
i
].
backgroundColor
=
'#CC4D4D'
this
.
manager_month
[
i
].
color
=
'#fff'
this
.
manager_month
[
i
].
color
=
'#fff'
}
else
if
(
ele
.
r
ectifiedCount
/
ele
.
rectifyCount
>
0.9
){
// 完成率90到100之间 黄色
}
else
if
(
ele
.
r
ato
>
0.9
){
// 完成率90到100之间 黄色
this
.
manager_month
[
i
].
backgroundColor
=
'#FFD400'
this
.
manager_month
[
i
].
backgroundColor
=
'#FFD400'
this
.
manager_month
[
i
].
color
=
'#fff'
this
.
manager_month
[
i
].
color
=
'#fff'
}
else
{
// 无数据状态
}
else
{
// 无数据状态
...
...
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