|
|
@ -18,8 +18,7 @@ |
|
|
|
v-model="agencyId" |
|
|
|
:show-all-levels="false" |
|
|
|
@change="handleChangeAgencytree" |
|
|
|
:props="{ expandTrigger: 'hover', emitPath: false, label: 'orgName', value: 'orgId', children: 'subOrgList' }" |
|
|
|
clearable/> |
|
|
|
:props="{ expandTrigger: 'hover', emitPath: false, label: 'orgName', value: 'orgId', children: 'subOrgList' }"/> |
|
|
|
</div> |
|
|
|
<!-- <div class="second-select "> |
|
|
|
|
|
|
@ -406,14 +405,14 @@ export default { |
|
|
|
// 取最后一级组织的第一条数据的 orgId |
|
|
|
setListAgencyId_one(subOrgList) { |
|
|
|
if (subOrgList[0].subOrgList && subOrgList[0].subOrgList.length > 0) { |
|
|
|
this.setAgencyId_two(subOrgList[0].subOrgList) |
|
|
|
return this.setAgencyId_two(subOrgList[0].subOrgList) |
|
|
|
} else { |
|
|
|
return subOrgList[0].orgId |
|
|
|
} |
|
|
|
}, |
|
|
|
setAgencyId_two(subOrgList) { |
|
|
|
if (subOrgList[0].subOrgList && subOrgList[0].subOrgList.length > 0) { |
|
|
|
this.setListAgencyId_one(subOrgList[0].subOrgList) |
|
|
|
return this.setListAgencyId_one(subOrgList[0].subOrgList) |
|
|
|
} else { |
|
|
|
return subOrgList[0].orgId |
|
|
|
} |
|
|
|