Browse Source

调整书记看板传参

feature
战立标 2 years ago
parent
commit
abc6b0f30c
  1. 26
      src/views/dataBoard/overview/components/RequirementList.vue

26
src/views/dataBoard/overview/components/RequirementList.vue

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

Loading…
Cancel
Save