diff --git a/src/api/goodsTool.js b/src/api/goodsTool.js index f75309a..820bd68 100644 --- a/src/api/goodsTool.js +++ b/src/api/goodsTool.js @@ -20,6 +20,9 @@ export async function updateGoods(data) { return request({ url: "/admin/shop/shop-sync-productMapper/udpateProductMapping", method: "put", + headers: { + 'Content-Type': 'application/json', + }, data, }); } @@ -28,6 +31,9 @@ export async function deleteGoods(data) { return request({ url: "/admin/shop/shop-sync-productMapper/delProductMapping", method: "delete", + headers: { + 'Content-Type': 'application/json', + }, data, }); } @@ -55,6 +61,9 @@ export async function batchExportGoods(data) { return request({ url: "/admin/shop/shop-sync-productMapper/exportSelected", method: "post", + headers: { + 'Content-Type': 'application/json', + }, data, }); } @@ -62,7 +71,7 @@ export async function batchExportGoods(data) { export async function getProductMapping(data) { return request({ url: "/admin/shop/shop-sync-productMapper/getProductMapping", - method: "post", + method: "get", data, }); } @@ -86,6 +95,9 @@ export async function syncProductMaping() { return request({ url: `/admin/shop/shop-sync-productMapper/syncProductMaping`, method: "put", + headers: { + 'Content-Type': 'application/json', + }, }); } @@ -101,7 +113,7 @@ export default { getProductMapperList, getShopList, updateGoods, - deleteGoods, + deleteGoods,/* */ downloadTempGoods, batchCreateGoods, batchExportGoods, diff --git a/src/views/product/goodsTool/index.vue b/src/views/product/goodsTool/index.vue index 34aac0d..2f626a4 100644 --- a/src/views/product/goodsTool/index.vue +++ b/src/views/product/goodsTool/index.vue @@ -19,10 +19,11 @@ :key="item.store_id" :label="item.store_name" :value="item.store_id" - > + > + - + 搜索 @@ -39,20 +40,15 @@ 导出数据 - - 导入数据 + + 导入数据 同步数据 - 下载错误报告 + 下载错误报告 @@ -96,33 +92,29 @@ type="primary" plain @click="editGoods(scope.row)" + >编辑配置 - 编辑配置 - 删除配置 - 删除配置 - 下载模板 - 下载模板 - 店铺商品映射 - 店铺商品映射 - @@ -149,248 +141,1771 @@