From e98cdb88e8160fac76028571b870638fe2e3cac7 Mon Sep 17 00:00:00 2001 From: xuwenbo <717567226@qq.com> Date: Wed, 19 Aug 2020 17:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E5=90=8E=E7=AB=AF=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AF=B9=E5=B1=9E=E6=80=A7=E7=9A=84=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/yxStoreCombination.js | 7 +- src/api/yxStoreProduct.js | 7 + src/views/activity/combination/form.vue | 1023 ++++++++++++++++++---- src/views/activity/combination/form1.vue | 222 +++++ src/views/activity/combination/index.vue | 21 +- src/views/components/good/index.vue | 1 + src/views/shop/goods/form.vue | 20 +- src/views/shop/goods/index.vue | 33 +- 8 files changed, 1143 insertions(+), 191 deletions(-) create mode 100644 src/views/activity/combination/form1.vue diff --git a/src/api/yxStoreCombination.js b/src/api/yxStoreCombination.js index 18dca30..671a90a 100644 --- a/src/api/yxStoreCombination.js +++ b/src/api/yxStoreCombination.js @@ -15,11 +15,10 @@ export function del(id) { }) } -export function edit(data) { +export function getCombinationInfo(id) { return request({ - url: 'api/yxStoreCombination', - method: 'put', - data + url: 'api/yxStoreCombination/info/' + id, + method: 'get' }) } diff --git a/src/api/yxStoreProduct.js b/src/api/yxStoreProduct.js index f645aef..40eed23 100644 --- a/src/api/yxStoreProduct.js +++ b/src/api/yxStoreProduct.js @@ -46,6 +46,13 @@ export function isFormatAttr(id, data) { }) } +export function isFormatAttrForActivity(id, data) { + return request({ + url: 'api/yxStoreProduct/isFormatAttrForActivity/' + id, + method: 'post', + data + }) +} export function setAttr(id, data) { return request({ url: 'api/yxStoreProduct/setAttr/' + id, diff --git a/src/views/activity/combination/form.vue b/src/views/activity/combination/form.vue index 0249a9d..2a11384 100644 --- a/src/views/activity/combination/form.vue +++ b/src/views/activity/combination/form.vue @@ -1,101 +1,458 @@ - diff --git a/src/views/activity/combination/form1.vue b/src/views/activity/combination/form1.vue new file mode 100644 index 0000000..a804700 --- /dev/null +++ b/src/views/activity/combination/form1.vue @@ -0,0 +1,222 @@ + + + + + diff --git a/src/views/activity/combination/index.vue b/src/views/activity/combination/index.vue index 9b67575..dc8c111 100644 --- a/src/views/activity/combination/index.vue +++ b/src/views/activity/combination/index.vue @@ -16,7 +16,11 @@ type="primary" icon="el-icon-plus" @click="add" - >新增 + > + + 新增 + + 刷新 - + @@ -61,7 +65,15 @@