|
|
|
@ -347,7 +347,7 @@ |
|
|
|
</div> |
|
|
|
<div class="bgImg"> |
|
|
|
<Title text="人口分析"></Title> |
|
|
|
<rkfx :orgId="orgId" @handelClickRkfxPei="handelClickRkfxPei"/> |
|
|
|
<rkfx :orgId="orgId" :orgType="orgLevel" @handelClickRkfxPei="handelClickRkfxPei"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -682,19 +682,21 @@ export default { |
|
|
|
const category = data.categoryList[key]; |
|
|
|
const categoryName = category.categoryName; |
|
|
|
const categoryCount = category.categoryCount; |
|
|
|
const radio = categoryCount / resiCount * 100; |
|
|
|
const radio = categoryCount?categoryCount / resiCount * 100:categoryCount; |
|
|
|
console.log(radio, categoryCount, |
|
|
|
resiCount, 'radioradioradio') |
|
|
|
if (categoryName == "OLD_PEOPLE_FLAG") { |
|
|
|
this.perInfo.OLD_PEOPLE_FLAG = radio.toFixed(2); |
|
|
|
this.perInfo.OLD_PEOPLE_FLAG = radio || radio === 0 ? radio.toFixed(2) : '--'; |
|
|
|
} else if (categoryName == "PARTY_FLAG") { |
|
|
|
this.perInfo.PARTY_FLAG = radio.toFixed(2); |
|
|
|
this.perInfo.PARTY_FLAG = radio || radio === 0 ? radio.toFixed(2) : '--'; |
|
|
|
} else if (categoryName == "UNEMPLOYED_FLAG") { |
|
|
|
this.perInfo.UNEMPLOYED_FLAG = radio.toFixed(2); |
|
|
|
this.perInfo.UNEMPLOYED_FLAG = radio || radio === 0 ? radio.toFixed(2) : '--'; |
|
|
|
} else if (categoryName == "VOLUNTEER_FLAG") { |
|
|
|
this.perInfo.VOLUNTEER_FLAG = radio.toFixed(2); |
|
|
|
this.perInfo.VOLUNTEER_FLAG = radio || radio === 0 ? radio.toFixed(2) : '--'; |
|
|
|
} else if (categoryName == "SUBSISTENCE_ALLOWANCE_FLAG") { |
|
|
|
this.perInfo.SUBSISTENCE_ALLOWANCE_FLAG = radio.toFixed(2); |
|
|
|
this.perInfo.SUBSISTENCE_ALLOWANCE_FLAG = radio || radio === 0 ? radio.toFixed(2) : '--'; |
|
|
|
} else if (categoryName == "SPECIAL_CROWD_FLAG") { |
|
|
|
this.perInfo.SPECIAL_CROWD_FLAG = radio.toFixed(2); |
|
|
|
this.perInfo.SPECIAL_CROWD_FLAG = radio || radio === 0 ? radio.toFixed(2) : '--'; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|