BUG 27518

This commit is contained in:
aixianling
2022-02-28 12:04:56 +08:00
parent f216078eea
commit f3f4374159
2 changed files with 4 additions and 5 deletions

View File

@@ -56,7 +56,8 @@ export default {
type: Boolean,
default: false
},
isForm: Boolean
isForm: Boolean,
valueLevel: 5
},
computed: {
...mapState(['user']),
@@ -192,7 +193,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)
}

View File

@@ -4,9 +4,7 @@
<slot/>
</div>
<div v-else class="display" @tap="handleShowOptions">
<div class="selectedLabel" v-if="selectedLabel">{{ selectedLabel }}</div>
<i v-else>{{ placeholder }}</i>
<u-icon name="arrow-right" color="#ddd"/>
<u-icon :label="selectedLabel||placeholder" label-post="left" name="arrow-right" color="#ddd"/>
</div>
<u-select v-model="show" :list="options" :mode="mode" @confirm="handleConfirm"/>
</section>