Commit ef279f25 authored by zhangrui123's avatar zhangrui123

房办月查的颜色判断

parent 246cfc8f
...@@ -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.rectifiedCount/ele.rectifyCount == 1 ) { // 完成率100 绿色 if (ele.rato == 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.rectifiedCount/ele.rectifyCount <.9){ // 完成率90以下 红色 }else if(ele.rato <.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.rectifiedCount/ele.rectifyCount>0.9){ // 完成率90到100之间 黄色 } else if(ele.rato>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.rectifiedCount/ele.rectifyCount == 1 || ele.rectifyCount == 0) { // 完成率100 绿色 if (ele.rato == 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.rectifiedCount/ele.rectifyCount <.9){ // 完成率90以下 红色 }else if(ele.rato <.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.rectifiedCount/ele.rectifyCount>0.9){ // 完成率90到100之间 黄色 } else if(ele.rato>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.rectifiedCount/ele.rectifyCount == 1 ) { // 完成率100 绿色 if (ele.rato == 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.rectifiedCount/ele.rectifyCount <.9){ // 完成率90以下 红色 }else if(ele.rato <.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.rectifiedCount/ele.rectifyCount>0.9){ // 完成率90到100之间 黄色 } else if(ele.rato>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{ // 无数据状态
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment