forked from github/dataease
Merge branch 'v1.12' of github.com:dataease/dataease into v1.12
This commit is contained in:
commit
09557ac539
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-select
|
<el-select
|
||||||
|
v-if="show"
|
||||||
ref="visualSelect"
|
ref="visualSelect"
|
||||||
v-model="selectValue"
|
v-model="selectValue"
|
||||||
:class="classId"
|
:class="classId"
|
||||||
@ -52,7 +53,8 @@ export default {
|
|||||||
maxLength: 9, // 弹出框最大支持9个条目
|
maxLength: 9, // 弹出框最大支持9个条目
|
||||||
itemHeight: 34, // select组件选项高度
|
itemHeight: 34, // select组件选项高度
|
||||||
maxHeightDom: null,
|
maxHeightDom: null,
|
||||||
defaultFirst: false
|
defaultFirst: false,
|
||||||
|
show: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -69,9 +71,13 @@ export default {
|
|||||||
},
|
},
|
||||||
list() {
|
list() {
|
||||||
this.resetList()
|
this.resetList()
|
||||||
|
this.show = false
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.show = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.init()
|
this.init()
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -128,6 +128,8 @@ export default {
|
|||||||
this.element.options.attrs.fieldId.length > 0 &&
|
this.element.options.attrs.fieldId.length > 0 &&
|
||||||
method(param).then(res => {
|
method(param).then(res => {
|
||||||
this.datas = this.optionDatas(res.data)
|
this.datas = this.optionDatas(res.data)
|
||||||
|
}).catch(e => {
|
||||||
|
bus.$emit('valid-values-change', false)
|
||||||
}) || (this.element.options.value = '')
|
}) || (this.element.options.value = '')
|
||||||
},
|
},
|
||||||
'element.options.attrs.multiple': function(value, old) {
|
'element.options.attrs.multiple': function(value, old) {
|
||||||
@ -167,6 +169,8 @@ export default {
|
|||||||
this.show = true
|
this.show = true
|
||||||
this.handleCoustomStyle()
|
this.handleCoustomStyle()
|
||||||
})
|
})
|
||||||
|
}).catch(e => {
|
||||||
|
bus.$emit('valid-values-change', false)
|
||||||
}) || (this.element.options.value = '')
|
}) || (this.element.options.value = '')
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -222,6 +226,8 @@ export default {
|
|||||||
}
|
}
|
||||||
method({ fieldIds: this.element.options.attrs.fieldId.split(','), sort: this.element.options.attrs.sort }).then(res => {
|
method({ fieldIds: this.element.options.attrs.fieldId.split(','), sort: this.element.options.attrs.sort }).then(res => {
|
||||||
this.datas = this.optionDatas(res.data)
|
this.datas = this.optionDatas(res.data)
|
||||||
|
}).catch(e => {
|
||||||
|
bus.$emit('valid-values-change', false)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.element.options.value) {
|
if (this.element.options.value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user