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 @@ /> + + +