|
|
@ -73,10 +73,19 @@ export default { |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
currentLevelData(val) { |
|
|
|
if (val.orgId) { |
|
|
|
this.getUserDemandList() |
|
|
|
this.getCommonDemandList() |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.getUserDemandList() |
|
|
|
this.getCommonDemandList() |
|
|
|
console.log(this.currentLevelData,'this.currentLevelData32') |
|
|
|
if (this.currentLevelData.orgId) { |
|
|
|
this.getUserDemandList() |
|
|
|
this.getCommonDemandList() |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
goToPortrait({demandUserId}) { |
|
|
@ -94,7 +103,12 @@ export default { |
|
|
|
this.$refs.Bmysxxq.open(id); |
|
|
|
}, |
|
|
|
getUserDemandList() { |
|
|
|
this.$http.post('/governance/userdemand/pagelist', {undoneStauts: "undone", pageSize: 20}).then(({data: {data}}) => { |
|
|
|
this.$http.post('/governance/userdemand/pagelist', { |
|
|
|
undoneStauts: "undone", |
|
|
|
pageSize: 20, |
|
|
|
orgLevel: this.currentLevelData.orgLevel, |
|
|
|
orgId: this.currentLevelData.orgId |
|
|
|
}).then(({data: {data}}) => { |
|
|
|
console.log(data.list, 'data.list ', data) |
|
|
|
this.userDemandList = data ? data.list : [] |
|
|
|
}) |
|
|
@ -102,7 +116,9 @@ export default { |
|
|
|
getCommonDemandList() { |
|
|
|
this.$http.post('/governance/commonDemand/list',{ |
|
|
|
assignFlag:0, |
|
|
|
pageSize: 20 |
|
|
|
pageSize: 20, |
|
|
|
level: this.currentLevelData.orgLevel, |
|
|
|
agencyld: this.currentLevelData.orgId |
|
|
|
}).then(({data: {data}}) => { |
|
|
|
this.commonDemandList = data ? data.list : [] |
|
|
|
}) |
|
|
|