diff --git a/ayanova/src/api/enums.js b/ayanova/src/api/enums.js
index abe5c07c..1e68aee0 100644
--- a/ayanova/src/api/enums.js
+++ b/ayanova/src/api/enums.js
@@ -4,6 +4,11 @@ export default {
get(enumKey, enumValue) {
enumKey = enumKey.toLowerCase();
if (enumKey != "authorizationroles") {
+ if (window.$gz.store.state.enums[enumKey] == undefined) {
+ throw "ERROR enums::get -> enumKey " +
+ enumKey +
+ " is missing from store";
+ }
return window.$gz.store.state.enums[enumKey][enumValue];
} else {
let ret = [];
diff --git a/ayanova/src/components/currency-control.vue b/ayanova/src/components/currency-control.vue
index 3ee701b8..3a335783 100644
--- a/ayanova/src/components/currency-control.vue
+++ b/ayanova/src/components/currency-control.vue
@@ -2,7 +2,8 @@
diff --git a/ayanova/src/components/duration-control.vue b/ayanova/src/components/duration-control.vue
index eb54cdcb..e0e72ad0 100644
--- a/ayanova/src/components/duration-control.vue
+++ b/ayanova/src/components/duration-control.vue
@@ -3,7 +3,7 @@
{{ label }}
-
+
-
-
-
+
{{ error }}
@@ -153,14 +146,6 @@ export default {
}
return ret;
},
- readonlyFormat() {
- return window.$gz.locale.utcDateToShortDateLocalized(
- this.internalValue,
- this.timeZoneName,
- this.languageName,
- this.hour12
- );
- },
updateSpan() {
//{"data":{"testTSDaysWMS":"22.10:15:22.0330000","testTSHMS":"05:16:33","testTS_DHMS":"5.10:15:33","testTS_MS":"00:15:33","testTS_S":"00:00:33","testTS_D":"22.00:00:00"}}
// DD.HH:MM:SS.ms
diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue
index e9e378ec..95edfa84 100644
--- a/ayanova/src/components/gz-data-table.vue
+++ b/ayanova/src/components/gz-data-table.vue
@@ -96,7 +96,18 @@
- {{ c.v }}
+
+
+
+
+
+ {{ c.v }}
+
@@ -257,7 +268,18 @@
- {{ c.v }}
+
+
+
+
+
+ {{ c.v }}
+
@@ -549,10 +571,12 @@ export default {
vm.serverColumns = res.columns;
//Make sure the translation keys are fetched
await fetchTranslatedHeaderNames(res.columns); //Note can use await here because it's wrapped inside an async function call, it will wait then resume next stuff below
+
await fetchEnums(res.columns);
//build vm.headers here
vm.headers = buildHeaders(res.columns);
+
//Post process data here and then set vm.records
vm.records = buildRecords(res.data, res.columns);
@@ -790,7 +814,7 @@ async function fetchEnums(columnData) {
return;
}
let headerKeys = [];
- for (let i = 1; i < columnData.length; i++) {
+ for (let i = 0; i < columnData.length; i++) {
let cm = columnData[i];
if (cm.et) {
await window.$gz.enums.fetchEnumList(cm.et);