Browse Source

统计计算方式修改,入参改null

master
mk 1 year ago
parent
commit
b373a37349
  1. 4
      src/views/next/screen-content-map/index.vue
  2. 10
      src/views/next/screen-content-right/human-room-analysis/index.vue
  3. 2
      src/views/next/screen-content-right/human-room-analysis/option.js

4
src/views/next/screen-content-map/index.vue

@ -177,7 +177,7 @@ export default {
}),
getResidentClassifyStatistics() {
let params = {
agencyId: this.communityId || '0'
agencyId: this.communityId || null
}
getResidentClassifyStatistics(params).then(({ data: res }) => {
console.log('产品内网接口-获取居民分类统计数据地图', res)
@ -190,7 +190,7 @@ export default {
},
getHourseClassifyStatistics () {
let params = {
agencyId: this.communityId || '0'
agencyId: this.communityId || null
}
getHourseClassifyStatistics(params).then(({ data: res }) => {
numAnimation(this.statisticsList[1].value, res.count, this.statisticsList[1], 'value')

10
src/views/next/screen-content-right/human-room-analysis/index.vue

@ -385,16 +385,16 @@ export default {
maskColor: 'transparent'
})
let params = {
agencyId:this.communityId || '0'
agencyId:this.communityId || null
}
getResidentClassifyStatistics(params).then(({ data: res }) => {
console.log('产品内网接口-获取居民分类统计数据', res)
const dict = {
cj: '残疾',
db: '大病',
// db: '',
dbh: '低保人员',
ensureHouse: '保障房人员',
mb: '慢病',
// ensureHouse: '',
// mb: '',
sd: '失独人员',
special: '特殊人群',
unemployed: '失业人员'
@ -476,7 +476,7 @@ export default {
maskColor: 'transparent'
})
let params = {
agencyId: this.communityId || '0'
agencyId: this.communityId || null
}
getHourseClassifyStatistics(params).then(({ data: res }) => {
console.log('产品内网接口-获取房屋分类统计数据', res)

2
src/views/next/screen-content-right/human-room-analysis/option.js

@ -437,7 +437,7 @@ export function getHumanTypeChartOption ({ data = [], count = 0 }) {
}
var arr = [
'{a|' + name + '}',
'{b|' + ((target / total) * 100).toFixed(2) + '%}'
'{b|' + ((target / count) * 100).toFixed(2) + '%}'
]
// return name + ' ' + ((target/total)*100).toFixed(2) + '%';
return arr.join('')

Loading…
Cancel
Save