This commit is contained in:
2021-06-23 19:45:12 +00:00
parent 70efafacc8
commit 2007758a7e
2 changed files with 15 additions and 52 deletions

View File

@@ -434,16 +434,20 @@ function initWorkingView(vm) {
//Pass 1, iterate the columns first
for (let i = 0; i < columns.length; i++) {
//de-lodash
//let fld = window.$gz. _.find(vm.fieldDefinitions, ["fieldKey", lvItem.fld]);
let fld = vm.fieldDefinitions.find(z => z.fieldKey == columns[i]);
let o = {
key: fld.fieldKey,
title: vm.$ay.t(fld.tKey),
title: null,
include: true
};
if (fld.tKeySection != null) {
o.title = vm.$ay.t(fld.tKeySection) + "." + vm.$ay.t(fld.tKey);
} else {
o.title = vm.$ay.t(fld.tKey);
}
if (fld.isRowId) {
o.rid = true;
}
@@ -459,10 +463,16 @@ function initWorkingView(vm) {
//nope, so add it
let o = {
key: fld.fieldKey,
title: vm.$ay.t(fld.tKey),
title: null,
include: false
};
if (fld.tKeySection != null) {
o.title = vm.$ay.t(fld.tKeySection) + "." + vm.$ay.t(fld.tKey);
} else {
o.title = vm.$ay.t(fld.tKey);
}
if (fld.isRowId) {
o.rid = true;
o.include = true;