|
|
@@ -11,7 +11,9 @@
|
|
|
:placeholder="placeholder"
|
|
|
:normalizer="tenantIdnormalizer"
|
|
|
:show-count="true"
|
|
|
- :noChildrenText="''">
|
|
|
+ :noChildrenText="''"
|
|
|
+
|
|
|
+ noResultsText="暂无符合条件的数据">
|
|
|
</tree-select>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -24,6 +26,11 @@ export default {
|
|
|
TreeSelect
|
|
|
},
|
|
|
props: {
|
|
|
+ //是否展示机构简称
|
|
|
+ isOrgName:{
|
|
|
+ type:Boolean,
|
|
|
+ default:false
|
|
|
+ },
|
|
|
value: {
|
|
|
type: [String,Number],
|
|
|
default: null
|
|
|
@@ -65,7 +72,8 @@ export default {
|
|
|
}
|
|
|
return {
|
|
|
id: node.id,
|
|
|
- label: node.name,
|
|
|
+ label: this.isOrgName? node.shortName: node.name,
|
|
|
+
|
|
|
children: node.children
|
|
|
}
|
|
|
},
|