|
|
@ -307,6 +307,7 @@ |
|
|
|
import axios from 'axios' |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import crateForm from '../communityParty/members/crateForm.vue' |
|
|
|
import { requestGet } from '../../../js/dai/request' |
|
|
|
export default { |
|
|
|
data () { |
|
|
|
return { |
|
|
@ -434,7 +435,7 @@ export default { |
|
|
|
crateForm |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
initForm (agencyId, id) { |
|
|
|
initForm (agencyId, id,agencyIds) { |
|
|
|
this.agencyId = agencyId |
|
|
|
this.searchForm.partyOrgId = id |
|
|
|
this.partyOrgId = id |
|
|
@ -445,7 +446,7 @@ export default { |
|
|
|
this.pageLoading = true |
|
|
|
|
|
|
|
this.getTableData() |
|
|
|
this.getGridList('query') |
|
|
|
this.getGridList('query',agencyIds) |
|
|
|
}, |
|
|
|
// 取消 |
|
|
|
handleCancle () { |
|
|
@ -695,20 +696,18 @@ export default { |
|
|
|
}, |
|
|
|
async getGridList (type, agencyId) { |
|
|
|
// addorupdate query |
|
|
|
await this.$http |
|
|
|
.get('/resi/partymember/icPartyOrg/getSearchTreelist', { params: { agencyId: agencyId } }) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
let url = "/resi/partymember/icPartyOrg/getSearchTreelist" |
|
|
|
let params = { |
|
|
|
agencyId: agencyId |
|
|
|
} |
|
|
|
const {data , msg,code } = await requestGet(url,params) |
|
|
|
if (code !== 0) { |
|
|
|
return this.$message.error(msg) |
|
|
|
} else { |
|
|
|
console.log('获取查询详情成功', res.data) |
|
|
|
|
|
|
|
this.optionsG = this.deepArrTOnull(res.data) |
|
|
|
console.log('获取查询详情成功', data) |
|
|
|
this.optionsG = this.deepArrTOnull(data) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
deepArrTOnull (arr) { |
|
|
|
let a = [] |
|
|
|