|
|
@ -8,18 +8,18 @@ |
|
|
|
<div class="item" @click="toResiClassPage(item.code, item.name)" :key="item.code + index" v-for="(item, index) in resiCategoryData"> |
|
|
|
<div>{{ ('0' + (index + 1)).substr(-2) }}.</div> |
|
|
|
<div class="item-name">{{ item.name }}</div> |
|
|
|
<div class="item-count"> |
|
|
|
<!-- <div class="item-count"> |
|
|
|
<b>{{ item.count }}</b> |
|
|
|
人 |
|
|
|
</div> |
|
|
|
<div class="item-progress"><b :style="{ width: item.ratio + '%' }"></b></div> |
|
|
|
<div class="item-per"> |
|
|
|
|
|
|
|
</div> --> |
|
|
|
<div class="item-progress"><b :style="{ width: item.count + '%' }"></b></div> |
|
|
|
<!-- <div class="item-per"> |
|
|
|
<span>较上月</span> |
|
|
|
<img v-if="item.growth >= 0" src="~@/assets/images/shuju/renfang/index/up.png" /> |
|
|
|
<img v-else src="~@/assets/images/shuju/renfang/index/down.png" /> |
|
|
|
<b>{{ item.growthAbs }}</b> |
|
|
|
<span>人</span> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="empty" v-else><img src="~@/assets/images/shuju/renfang/index/empty.png" /></div> |
|
|
@ -89,7 +89,7 @@ export default { |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
currentTab() { |
|
|
|
// this.getResiCategoryData(); |
|
|
|
this.getResiCategoryData(); |
|
|
|
}, |
|
|
|
orgId() { |
|
|
|
this.init(); |
|
|
@ -122,15 +122,20 @@ export default { |
|
|
|
async getResiCategoryData() { |
|
|
|
|
|
|
|
let url = ''; |
|
|
|
let mockId=0; |
|
|
|
if (this.currentTab == '满意度') { |
|
|
|
url = 'satis_eval_view'; |
|
|
|
mockId=66906114 |
|
|
|
} else if (this.currentTab == '关注度') { |
|
|
|
url = 'attention_eval_view'; |
|
|
|
mockId=66906882 |
|
|
|
} else if (this.currentTab == '期盼度') { |
|
|
|
url = 'expect_eval_view'; |
|
|
|
mockId=66907201 |
|
|
|
} else { |
|
|
|
// 烦心度 |
|
|
|
url = 'upset_eval_view'; |
|
|
|
mockId=66906871 |
|
|
|
} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPostBi( |
|
|
@ -143,16 +148,16 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
mockId: 66906114, |
|
|
|
mockId: mockId, |
|
|
|
} |
|
|
|
); |
|
|
|
if (code === 0) { |
|
|
|
this.resiCategoryData = data.map(item => { |
|
|
|
return { |
|
|
|
code: item.label_id, |
|
|
|
name: item.label, |
|
|
|
count: item.count, |
|
|
|
ratio: item.ratio, |
|
|
|
code: item.org_id, |
|
|
|
name: item.name, |
|
|
|
value: item.value, |
|
|
|
ratio: item.value, |
|
|
|
growth: item.growth, |
|
|
|
growthAbs: Math.abs(item.growth) |
|
|
|
}; |
|
|
@ -165,3 +170,6 @@ export default { |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style lang="scss" src="@/assets/scss/dataBoard/renfang/index.scss" scoped></style> |
|
|
|
<style scoped> |
|
|
|
.linecharts .item .item-progress{width: 100%;} |
|
|
|
</style> |
|
|
|