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

View File

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