Browse Source

修改部门id传参

feature
战立标 2 years ago
parent
commit
7cf4e73b6a
  1. 25
      src/views/dataBoard/renfang/visualizing/components/dibaorenyuan.vue
  2. 2
      src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue

25
src/views/dataBoard/renfang/visualizing/components/dibaorenyuan.vue

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

2
src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue

@ -50,7 +50,9 @@ export default {
}, },
}, },
mounted() { mounted() {
if (this.$store.state.chooseArea.chooseName.orgId) {
this.getList() this.getList()
}
}, },
methods: { methods: {
getList() { getList() {

Loading…
Cancel
Save