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