From 18cf9bd33ed7364c8e9f28aeb95f7b9a659bd20f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 9 Sep 2021 15:02:06 +0000 Subject: [PATCH] --- ayanova/src/components/pick-list.vue | 18 ++++++++++++++---- ayanova/src/views/customer-csr-edit.vue | 14 ++++++++++---- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/ayanova/src/components/pick-list.vue b/ayanova/src/components/pick-list.vue index b17df902..a0aa72ec 100644 --- a/ayanova/src/components/pick-list.vue +++ b/ayanova/src/components/pick-list.vue @@ -90,6 +90,10 @@ export default { type: String, default: null }, + template: { + type: String, + default: null + }, hint: { type: String, default: null @@ -214,10 +218,11 @@ export default { if (vm.variant != null) { pickListParams["listVariant"] = vm.variant; - //variantSegment = `&variant=${vm.variant}`; } - // let pickListParams = - // "?ayaType=" + vm.ayaType + "&preId=" + vm.value + variantSegment; + + if (vm.template != null) { + pickListParams["template"] = vm.template; + } vm.getList(pickListParams); } @@ -313,6 +318,9 @@ export default { if (vm.variant != null) { pickListParams["listVariant"] = vm.variant; } + if (vm.template != null) { + pickListParams["template"] = vm.template; + } } try { let res = await window.$gz.api.upsert("pick-list/list", pickListParams); @@ -421,7 +429,9 @@ export default { } if (vm.variant != null) { pickListParams["listVariant"] = vm.variant; - //urlParams += `&variant=${vm.variant}`; + } + if (vm.template != null) { + pickListParams["template"] = vm.template; } this.getList(pickListParams); //------------ diff --git a/ayanova/src/views/customer-csr-edit.vue b/ayanova/src/views/customer-csr-edit.vue index ccb56792..4469c9e2 100644 --- a/ayanova/src/views/customer-csr-edit.vue +++ b/ayanova/src/views/customer-csr-edit.vue @@ -22,7 +22,6 @@ ref="customerId" data-cy="customerId" variant="ho" - template="{}"<----this is where I left off @input="fieldValueChanged('customerId')" > @@ -80,8 +79,12 @@ >