BUG 27518
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user