|
|
@ -80,17 +80,20 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getData() { |
|
|
|
const { user } = this.$store.state |
|
|
|
const {user} = this.$store.state |
|
|
|
|
|
|
|
var level = user.level; |
|
|
|
if(level==='grid'){ |
|
|
|
if (level === 'grid') { |
|
|
|
level = "grid" |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
level = "agency" |
|
|
|
} |
|
|
|
|
|
|
|
let params = this.$paramsFormat({ |
|
|
|
agencyId: this.org_id, |
|
|
|
level |
|
|
|
}) |
|
|
|
this.$http |
|
|
|
.get("/actual/base/peopleRoomOverview/lowIncomePie?type=0") |
|
|
|
.get("/actual/base/peopleRoomOverview/lowIncomePie?type=0&"+params) |
|
|
|
.then(({data: res}) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg); |
|
|
@ -101,7 +104,7 @@ export default { |
|
|
|
.catch(() => { |
|
|
|
}); |
|
|
|
this.$http |
|
|
|
.get("/actual/base/peopleRoomOverview/lowIncomePie?type=1") |
|
|
|
.get("/actual/base/peopleRoomOverview/lowIncomePie?type=1&"+params) |
|
|
|
.then(({data: res}) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg); |
|
|
@ -112,7 +115,7 @@ export default { |
|
|
|
.catch(() => { |
|
|
|
}); |
|
|
|
this.$http |
|
|
|
.get("/actual/base/peopleRoomOverview/lowIncomePie?type=2") |
|
|
|
.get("/actual/base/peopleRoomOverview/lowIncomePie?type=2&"+params) |
|
|
|
.then(({data: res}) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg); |
|
|
@ -123,7 +126,7 @@ export default { |
|
|
|
.catch(() => { |
|
|
|
}); |
|
|
|
this.$http |
|
|
|
.get("/actual/base/peopleRoomOverview/lowIncomePie?type=3") |
|
|
|
.get("/actual/base/peopleRoomOverview/lowIncomePie?type=3&"+params) |
|
|
|
.then(({data: res}) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg); |
|
|
@ -134,7 +137,11 @@ export default { |
|
|
|
.catch(() => { |
|
|
|
}); |
|
|
|
this.$http |
|
|
|
.post(`/actual/base/peopleRoomOverview/findPeoplePie`,{ agencyId:user.agencyId,level:level,category:'SUBSISTENCE_ALLOWANCE_FLAG'}) |
|
|
|
.post(`/actual/base/peopleRoomOverview/findPeoplePie`, { |
|
|
|
agencyId: user.agencyId, |
|
|
|
level: level, |
|
|
|
category: 'SUBSISTENCE_ALLOWANCE_FLAG' |
|
|
|
}) |
|
|
|
.then(({data: res}) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg); |
|
|
|