diff --git a/src/api/product.js b/src/api/product.js index adb7f2e..041f01a 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -75,6 +75,12 @@ export function templateLsitApi () { export function productLstApi (data) { return request.get(`store/product/lst`, data) } +/** + * @description 云商品列表 -- 列表 + */ +export function cloudProductList (data) { + return request.get(`store/product/cloud_product_list`, data) +} /** * @description 导入商品列表 -- 列表 */ @@ -93,6 +99,12 @@ export function productDeleteApi (id) { export function spikeProductDeleteApi (id) { return request.delete(`store/seckill_product/delete/${id}`) } +/** + * @description 云商品 -- 添加 + */ +export function addCloudProduct (data) { + return request.post(`store/product/add_cloud_product`, data) +} /** * @description 商品列表 -- 添加 */ diff --git a/src/router/modules/product.js b/src/router/modules/product.js index 498b25d..d618148 100644 --- a/src/router/modules/product.js +++ b/src/router/modules/product.js @@ -101,6 +101,15 @@ const productRouter = }, component: () => import('@/views/product/productImport') }, + { + path: 'cloudList', + name: `cloudList`, + meta: { + title: '云商品列表', + noCache: true + }, + component: () => import('@/views/product/productCloud') + }, ] } diff --git a/src/views/product/productCloud/goodsList.vue b/src/views/product/productCloud/goodsList.vue new file mode 100644 index 0000000..29a5585 --- /dev/null +++ b/src/views/product/productCloud/goodsList.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/src/views/product/productCloud/index.vue b/src/views/product/productCloud/index.vue new file mode 100644 index 0000000..f4fe0d2 --- /dev/null +++ b/src/views/product/productCloud/index.vue @@ -0,0 +1,839 @@ + + + + diff --git a/src/views/product/productList/index.vue b/src/views/product/productList/index.vue index a8ae45c..e18ea58 100644 --- a/src/views/product/productList/index.vue +++ b/src/views/product/productList/index.vue @@ -1073,8 +1073,6 @@ export default { }, // 预览 handlePreview (id) { - console.log(id); - console.log("123"); this.previewVisible = true; this.goodsId = id; this.previewKey = "";