1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: value overridden when join tables with fields with same name

This commit is contained in:
2020-09-13 18:25:28 +02:00
parent 9b76c8eae0
commit 78965d23e3
6 changed files with 24 additions and 6 deletions

View File

@ -281,7 +281,11 @@ export default {
return length;
},
getFieldObj (cKey) {
return this.fields.filter(field => field.name === cKey || field.alias === cKey)[0];
return this.fields.filter(field =>
field.name === cKey ||
field.alias === cKey ||
`${field.table}.${field.name}` === cKey ||
`${field.table}.${field.alias}` === cKey)[0];
},
isNull (value) {
return value === null ? ' is-null' : '';