From d525b55561557b5e538f3e4c0ea9a75a5e220123 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 11 Feb 2020 18:08:29 +0000 Subject: [PATCH] --- ayanova/src/views/ay-customize.vue | 2 +- .../src/views/test-inventory-widget-edit.vue | 40 +++++++++---------- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/ayanova/src/views/ay-customize.vue b/ayanova/src/views/ay-customize.vue index e07b1d29..c7d7c6fa 100644 --- a/ayanova/src/views/ay-customize.vue +++ b/ayanova/src/views/ay-customize.vue @@ -457,7 +457,7 @@ Example form available fields {"key":"WidgetSerial","propertyName":"Serial","hideable":true,"sharedLTKey":false,"custom":false}, {"key":"WidgetDollarAmount","propertyName":"DollarAmount","hideable":true,"sharedLTKey":false,"custom":false}, {"key":"WidgetCount","propertyName":"Count","hideable":true,"sharedLTKey":false,"custom":false}, -{"key":"WidgetRoles","propertyName":"Roles","hideable":true,"sharedLTKey":false,"custom":false}, +{"key":"WidgetUserType","propertyName":"UserType","hideable":true,"sharedLTKey":false,"custom":false}, {"key":"WidgetStartDate","propertyName":"StartDate","hideable":false,"sharedLTKey":false,"custom":false}, {"key":"WidgetEndDate","propertyName":"EndDate","hideable":false,"sharedLTKey":false,"custom":false}, {"key":"WidgetNotes","propertyName":"Notes","hideable":true,"sharedLTKey":false,"custom":false}, diff --git a/ayanova/src/views/test-inventory-widget-edit.vue b/ayanova/src/views/test-inventory-widget-edit.vue index e38b993a..1d15eafb 100644 --- a/ayanova/src/views/test-inventory-widget-edit.vue +++ b/ayanova/src/views/test-inventory-widget-edit.vue @@ -148,23 +148,23 @@ > @@ -244,7 +244,7 @@ export default { "WidgetSerial", "WidgetDollarAmount", "WidgetCount", - "WidgetRoles", + "WidgetUserType", "WidgetStartDate", "WidgetEndDate", "WidgetNotes", @@ -341,18 +341,18 @@ export default { return { formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY, pickLists: { - roles: [] + usertypes: [] }, obj: { //IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record - //I.E. Serial, Roles fields + //I.E. Serial, usertype fields id: 0, concurrencyToken: 0, name: null, serial: 0, dollarAmount: null, active: null, - roles: 0, + usertype: 0, startDate: null, endDate: null, notes: null, @@ -729,14 +729,12 @@ function initForm(vm) { // // function populatePickLists(vm) { - return window.$gz.api - .get("EnumPickList/list/authorizationroles") - .then(res => { - if (res.error) { - throw res.error; - } - vm.pickLists.roles = res.data; - }); + return window.$gz.api.get("EnumPickList/list/usertypes").then(res => { + if (res.error) { + throw res.error; + } + vm.pickLists.usertypes = res.data; + }); } ////////////////////// @@ -750,7 +748,7 @@ function populatePickLists(vm) { // "WidgetSerial", // "WidgetDollarAmount", // "WidgetCount", -// "WidgetRoles", +// "WidgetUserType", // "WidgetStartDate", // "WidgetEndDate", // "WidgetNotes",