BUG 28186
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
<ai-search-popup mode="bottom" ref="areaSelector" length="85%">
|
<ai-search-popup mode="bottom" ref="areaSelector" length="85%">
|
||||||
<div slot="btn" @tap="handleInit">
|
<div slot="btn" @tap="handleInit">
|
||||||
<slot v-if="$slots.default"/>
|
<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">
|
<div v-else class="areaSelector">
|
||||||
<image :src="locationIcon" class="location"/>
|
<image :src="locationIcon" class="location"/>
|
||||||
<div v-text="areaName"/>
|
<div v-text="areaName"/>
|
||||||
@@ -57,7 +60,10 @@ export default {
|
|||||||
name: {default: ''},
|
name: {default: ''},
|
||||||
value: String,
|
value: String,
|
||||||
all: Boolean,
|
all: Boolean,
|
||||||
icon: {default: "location.svg"}
|
icon: {default: "location.svg"},
|
||||||
|
isForm: Boolean,
|
||||||
|
valueLevel: {default: 5},
|
||||||
|
fullName: {default: ''}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
@@ -204,7 +210,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getChild(op) {
|
getChild(op) {
|
||||||
if (op.id != this.index) {
|
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.fullArea.push(op)
|
||||||
this.getChildAreas(op.id)
|
this.getChildAreas(op.id)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user