Commit 246cfc8f authored by 程卓's avatar 程卓

首页的百分比参数变化

parent ab89cac7
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
<div class="month"> <div class="month">
<div class="home-card monthTitle"> <div class="home-card monthTitle">
<span>房办月查</span> <span>房办月查</span>
<span>{{ !parseInt(((secRowInfos.HOUSING_OFFICE.count.rectifiedCount/secRowInfos.HOUSING_OFFICE.count.rectifyCount)*100))? 0: parseInt(((secRowInfos.HOUSING_OFFICE.count.rectifiedCount/secRowInfos.HOUSING_OFFICE.count.rectifyCount)*100)) }}%</span> <span>{{ FBPresent }}%</span>
</div> </div>
<div class="home-card monthBox"> <div class="home-card monthBox">
<p class="monthBoxTitle">今年完成情况</p> <p class="monthBoxTitle">今年完成情况</p>
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
<div class="month"> <div class="month">
<div class="home-card monthTitle"> <div class="home-card monthTitle">
<span>物企双周查</span> <span>物企双周查</span>
<span>{{ !parseInt(((secRowInfos.PROPERTY_BIWEEKLY.count.rectifiedCount/secRowInfos.PROPERTY_BIWEEKLY.count.rectifyCount)*100))?0: parseInt(((secRowInfos.PROPERTY_BIWEEKLY.count.rectifiedCount/secRowInfos.PROPERTY_BIWEEKLY.count.rectifyCount)*100)) }}%</span> <span>{{ WYPresent }}%</span>
</div> </div>
<div class="home-card monthBox"> <div class="home-card monthBox">
<p class="monthBoxTitle">今年完成情况</p> <p class="monthBoxTitle">今年完成情况</p>
...@@ -412,6 +412,9 @@ export default { ...@@ -412,6 +412,9 @@ export default {
} }
}, },
}, },
FBPresent: 0,
WYPresent: 0,
} }
}, },
mounted(){ mounted(){
...@@ -567,6 +570,12 @@ export default { ...@@ -567,6 +570,12 @@ export default {
}).then(res => { }).then(res => {
if (res.code === '200') { if (res.code === '200') {
this.secRowInfos = this.$com.confirm(res, 'data.content', {}) this.secRowInfos = this.$com.confirm(res, 'data.content', {})
if (this.secRowInfos.HOUSING_OFFICE) {
this.FBPresent = String(this.secRowInfos.HOUSING_OFFICE.rato.value*100).split('.')[0]
}
if (this.secRowInfos.PROPERTY_BIWEEKLY) {
this.WYPresent = String(this.secRowInfos.PROPERTY_BIWEEKLY.rato.value*100).split('.')[0]
}
// 处理房办的月份颜色 // 处理房办的月份颜色
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.rectifiedCount/ele.rectifyCount == 1 ) { // 完成率100 绿色
......
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