From cef39fe5c0e359e8e5eb98fa025a90f6492946ce Mon Sep 17 00:00:00 2001 From: Chad Derya Date: Wed, 11 Sep 2019 21:43:24 +0100 Subject: [PATCH] prroduct type edit works --- src/api/product.js | 2 +- src/views/products/components/ProductDetail.vue | 17 +++++++++-------- src/views/products/list.vue | 7 ++++++- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/api/product.js b/src/api/product.js index 7acb55b6..54fcd7e4 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -34,7 +34,7 @@ function __dataToDTO(data) { 'description': data.description, 'lpt': Number(data.lpt), 'duty': Number(data.duty), - 'type': 'SPOT', + 'type': data.type, 'platform': store.state.platform, 'meta': data.meta, 'status': data.status diff --git a/src/views/products/components/ProductDetail.vue b/src/views/products/components/ProductDetail.vue index 3469e3de..61fe9fce 100644 --- a/src/views/products/components/ProductDetail.vue +++ b/src/views/products/components/ProductDetail.vue @@ -48,14 +48,14 @@ - - + + - + - -