|
|
@ -401,10 +401,10 @@ |
|
|
<el-cascader |
|
|
<el-cascader |
|
|
v-model="orgId" |
|
|
v-model="orgId" |
|
|
:options="organizationalstructure" |
|
|
:options="organizationalstructure" |
|
|
:show-all-levels="false" |
|
|
|
|
|
ref="example" |
|
|
|
|
|
|
|
|
ref="examples" |
|
|
popper-class="example" |
|
|
popper-class="example" |
|
|
@change="cascaderchang" |
|
|
|
|
|
|
|
|
:show-all-levels="false" |
|
|
|
|
|
@change="cascaderchangs" |
|
|
:props="{ |
|
|
:props="{ |
|
|
label: 'displayName', |
|
|
label: 'displayName', |
|
|
children: 'treeChildren', |
|
|
children: 'treeChildren', |
|
|
@ -819,6 +819,14 @@ export default { |
|
|
} |
|
|
} |
|
|
this.$refs.example.toggleDropDownVisible(); |
|
|
this.$refs.example.toggleDropDownVisible(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
cascaderchangs(v) { |
|
|
|
|
|
if (v.length > 1) { |
|
|
|
|
|
this.orgId = this.orgId.slice(-1)[0]; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.orgId = this.orgId[0]; |
|
|
|
|
|
} |
|
|
|
|
|
this.$refs.examples.toggleDropDownVisible(); |
|
|
|
|
|
}, |
|
|
gettreedata() { |
|
|
gettreedata() { |
|
|
getapi("/api/app/organization-units/by-code-all").then((res) => { |
|
|
getapi("/api/app/organization-units/by-code-all").then((res) => { |
|
|
if (res.code != -1) { |
|
|
if (res.code != -1) { |
|
|
|