BUG 28186

This commit is contained in:
aixianling
2022-03-14 20:35:00 +08:00
parent 6be9eda1e1
commit c7e3d118c0

View File

@@ -3,6 +3,9 @@
<ai-search-popup mode="bottom" ref="areaSelector" length="85%">
<div slot="btn" @tap="handleInit">
<slot v-if="$slots.default"/>
<div v-else-if="isForm">
<u-icon name="arrow-right" :label="areaName||'请选择'" label-pos="left" color="#ddd"/>
</div>
<div v-else class="areaSelector">
<image :src="locationIcon" class="location"/>
<div v-text="areaName"/>
@@ -57,7 +60,10 @@ export default {
name: {default: ''},
value: String,
all: Boolean,
icon: {default: "location.svg"}
icon: {default: "location.svg"},
isForm: Boolean,
valueLevel: {default: 5},
fullName: {default: ''}
},
computed: {
...mapState(['user']),
@@ -204,7 +210,7 @@ export default {
},
getChild(op) {
if (op.id != this.index) {
if (op.type < 5 && (/0{3}$/g.test(this.index) || !this.index)) {
if (op.type <= this.valueLevel && op.type < 5 && (/0{3}$/g.test(this.index) || !this.index)) {
this.fullArea.push(op)
this.getChildAreas(op.id)
}