From c64a39b45226f5d5dde67797f4201e479aacf3e9 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Mon, 25 Dec 2023 18:45:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product.js | 4 ++-- src/views/product/addProduct/index.vue | 17 +++++++++-------- src/views/product/productCloud/index.vue | 15 ++++++++++++--- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/api/product.js b/src/api/product.js index 041f01a..804f4c1 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -505,8 +505,8 @@ export function labelStatusApi (id, status) { return request.post(`product/label/status/${id}`, { status }) } /** 商品列表 -- 获取标签项 */ -export function getProductLabelApi () { - return request.get(`product/label/option`) +export function getProductLabelApi (data) { + return request.get(`product/label/option`, data) } /** 商品列表 -- 编辑标签 */ export function updatetProductLabel (id, data) { diff --git a/src/views/product/addProduct/index.vue b/src/views/product/addProduct/index.vue index aaee3b2..1e34649 100644 --- a/src/views/product/addProduct/index.vue +++ b/src/views/product/addProduct/index.vue @@ -85,7 +85,7 @@ /> - + @@ -1251,7 +1251,7 @@ import { productGetTempKeysApi, guaranteeListApi, productPreviewApi, - getProductLabelApi, + labelListApi, specsSelectedApi, productSpecsDetailApi } from '@/api/product' @@ -1714,9 +1714,10 @@ export default { }, // 获取标签项 getLabelLst () { - getProductLabelApi() - .then(res => { - this.labelList = res.data + labelListApi({ + type: 1 + }).then(res => { + this.labelList = res.data.list }) .catch(res => { this.$message.error(res.message) diff --git a/src/views/product/productCloud/index.vue b/src/views/product/productCloud/index.vue index f4fe0d2..b8cbbf0 100644 --- a/src/views/product/productCloud/index.vue +++ b/src/views/product/productCloud/index.vue @@ -146,6 +146,11 @@ /> + + +