Browse Source

党组织接口加根组织id

feature
mk 2 years ago
parent
commit
404695af4a
  1. 4
      src/views/components/editResi.vue
  2. 8
      src/views/components/resiExpand/editExpand.vue

4
src/views/components/editResi.vue

@ -1698,6 +1698,10 @@ export default {
formData &&
Object.keys(formData).includes(formName)
) {
if(this.footerInputList[i].children[index].itemType == 'cascader1'){
this.footerInputList[i].children[index].orgPath =
formData.partyOrgIdPath || null;
}
this.footerInputList[i].children[index].value =
formData[formName] || null;
this.footerInputList[i].children[index].id =

8
src/views/components/resiExpand/editExpand.vue

@ -201,7 +201,8 @@ export default {
},
changId:null,
changPid:null,
changType:null
changType:null,
partyOrgIdPath:null
};
},
props: {
@ -243,7 +244,8 @@ export default {
this.form[item.pformName].id = item.id
if (item.itemType == 'checkbox') {
this.form[item.pformName][item.formName] = item.value || []
} else if (item.itemType == 'cascader1') {
} else if (item.itemType == 'cascader1' && item.orgPath) {
this.partyOrgIdPath = item.orgPath.split(':')[0]
await this.getOrgTree()
this.form[item.pformName][item.formName] = item.value || null
} else {
@ -305,7 +307,7 @@ export default {
},
async getOrgTree() {
try {
const { data } = await requestGet('/actual/base/party/org/listPartyOrgTreeRoot4Select', { depth: 8 })
const { data } = await requestGet('/actual/base/party/org/listPartyOrgTreeRoot4Select', { partyOrgId:this.partyOrgIdPath,depth:8 })
this.formList.forEach(c => {
if (c.formId == "parymemberInfoDto") {
for (let i of c.form[0].children) {

Loading…
Cancel
Save