mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 05:11:59 +08:00
Bugfix lookups labels (#369)
* Update version for gRPC data client * bugfix display label in lookups components Co-authored-by: Yamel Senih <ysenih@erpya.com>
This commit is contained in:
parent
7ed14ac44e
commit
de202000e3
@ -143,7 +143,7 @@ export default {
|
|||||||
if (!this.options.some(option => option.key === value)) {
|
if (!this.options.some(option => option.key === value)) {
|
||||||
this.options.push({
|
this.options.push({
|
||||||
key: value,
|
key: value,
|
||||||
label: this.findLabel(value)
|
label: this.isEmptyValue(this.findLabel(value)) ? ' ' : this.findLabel(value)
|
||||||
})
|
})
|
||||||
this.value = value
|
this.value = value
|
||||||
}
|
}
|
||||||
@ -170,7 +170,7 @@ export default {
|
|||||||
beforeMount() {
|
beforeMount() {
|
||||||
if (this.metadata.displayed) {
|
if (this.metadata.displayed) {
|
||||||
this.options = this.getterLookupAll
|
this.options = this.getterLookupAll
|
||||||
if (!this.isEmptyValue(this.value) && this.metadata.panelType !== 'table') {
|
if (!this.isEmptyValue(this.value)) {
|
||||||
if (!this.findLabel(this.value)) {
|
if (!this.findLabel(this.value)) {
|
||||||
if (!this.isEmptyValue(this.metadata.displayColumn)) {
|
if (!this.isEmptyValue(this.metadata.displayColumn)) {
|
||||||
// verify if exists to add
|
// verify if exists to add
|
||||||
|
Loading…
x
Reference in New Issue
Block a user