diff --git a/yudao-ui-admin/src/api/mall/product/spu.js b/yudao-ui-admin/src/api/mall/product/spu.js index 068e7d838..fc4a545f2 100644 --- a/yudao-ui-admin/src/api/mall/product/spu.js +++ b/yudao-ui-admin/src/api/mall/product/spu.js @@ -42,13 +42,3 @@ export function getSpuPage(query) { params: query }) } - -// 导出商品spu Excel -export function exportSpuExcel(query) { - return request({ - url: '/product/spu/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/yudao-ui-admin/src/views/mall/product/spu/index.vue b/yudao-ui-admin/src/views/mall/product/spu/index.vue index 4cac422a1..5817a8cfb 100644 --- a/yudao-ui-admin/src/views/mall/product/spu/index.vue +++ b/yudao-ui-admin/src/views/mall/product/spu/index.vue @@ -1,57 +1,30 @@ - + - + - - + @@ -166,13 +96,15 @@ import { deleteSpu, getSpuPage, - exportSpuExcel, } from "@/api/mall/product/spu"; import Editor from "@/components/Editor"; import ImageUpload from "@/components/ImageUpload"; import save from "./save"; +// 1. TODO @Luowenfeng:商品的添加、修改,走一个单独的页面,不走弹窗;https://v5.niuteam.cn/shop/goods/addgoods.html +// 2. TODO + export default { name: "Spu", components: { @@ -306,27 +238,7 @@ export default { this.$modal.msgSuccess("删除成功"); }) .catch(() => {}); - }, - /** 导出按钮操作 */ - handleExport() { - // 处理查询参数 - let params = { ...this.queryParams }; - params.pageNo = undefined; - params.pageSize = undefined; - this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime"); - // 执行导出 - this.$modal - .confirm("是否确认导出所有商品spu数据项?") - .then(() => { - this.exportLoading = true; - return exportSpuExcel(params); - }) - .then((response) => { - this.$download.excel(response, "商品spu.xls"); - this.exportLoading = false; - }) - .catch(() => {}); - }, + } }, }; diff --git a/yudao-ui-admin/src/views/mall/product/spu/save.vue b/yudao-ui-admin/src/views/mall/product/spu/save.vue index a8ce18852..c0972777e 100644 --- a/yudao-ui-admin/src/views/mall/product/spu/save.vue +++ b/yudao-ui-admin/src/views/mall/product/spu/save.vue @@ -7,24 +7,28 @@ - - + + - - - - + + - - + + + + + + + + + + + + 立即上架 + 放入仓库 + @@ -32,7 +36,8 @@ - + + 单规格 多规格 @@ -41,28 +46,13 @@
-
+
- +
规格项: - - +
@@ -71,24 +61,17 @@
- 添加规格项目 - + 添加规格项目
@@ -98,25 +81,20 @@ style="width: 100px; height: 50px"/> - @@ -164,12 +142,8 @@ -