Browse Source

修改部门id传参

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

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

@ -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);

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

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

Loading…
Cancel
Save