From 163030aef17edbaeb3be42a9bcc0e7300c8595da Mon Sep 17 00:00:00 2001 From: zc <2064281269@qq.com> Date: Fri, 31 Oct 2025 18:03:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20app=E7=B1=BB=E7=9B=AE=E5=AE=8C=E6=88=90?= =?UTF-8?q?+=E5=95=86=E5=93=81=E7=BC=96=E8=BE=91=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E7=B1=BB=E7=9B=AE=E8=87=AA=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/commodity.ts | 4 +- src/components/FileExplorerDialog/index.vue | 2 +- src/components/FileUploadBtn/index.vue | 17 +- src/stores/modules/app.ts | 2 +- src/views/goods/appCategory/index.vue | 201 +++++++++--------- src/views/goods/appCategory/init-method.ts | 97 +++++++++ src/views/goods/appCategory/use-drag.ts | 2 +- src/views/goods/category/init-method.ts | 10 +- .../detail-dialog/category-config.vue | 4 +- .../commodity/detail-dialog/edit-method.ts | 24 ++- .../goods/commodity/detail-dialog/index.vue | 12 +- .../commodity/detail-dialog/init-method.ts | 38 +++- .../commodity/detail-dialog/use-method.ts | 19 +- src/views/goods/commodity/index.vue | 13 +- 14 files changed, 316 insertions(+), 129 deletions(-) create mode 100644 src/views/goods/appCategory/init-method.ts diff --git a/src/api/commodity.ts b/src/api/commodity.ts index cf89f0a..7b617f9 100644 --- a/src/api/commodity.ts +++ b/src/api/commodity.ts @@ -31,7 +31,9 @@ const login = { */ getCommodityList: ['/product/list'], // 获取商品列表 getCommodityDetail: ['/product/detail'], // 获取商品详情 - addOrUpdateCommodity: ['/product/insertOrUpadate'] // 修改商品详情 + addOrUpdateCommodity: ['/product/insertOrUpadate'], // 修改商品详情 + changeCommodityInfo: ['/product/onlyUpdateProduct'], // 修改商品信息(列表页) + copyCommodity: ['/product/copy'] // 复制商品 } export default login diff --git a/src/components/FileExplorerDialog/index.vue b/src/components/FileExplorerDialog/index.vue index b5fbf5b..6f24298 100644 --- a/src/components/FileExplorerDialog/index.vue +++ b/src/components/FileExplorerDialog/index.vue @@ -73,7 +73,7 @@ import { ElMessage } from 'element-plus' import { Folder } from '@element-plus/icons-vue' -interface FileItem { +export interface FileItem { id: number fileName: string type: 'file' | 'image' | 'video' diff --git a/src/components/FileUploadBtn/index.vue b/src/components/FileUploadBtn/index.vue index 787c215..8d11ea5 100644 --- a/src/components/FileUploadBtn/index.vue +++ b/src/components/FileUploadBtn/index.vue @@ -1,7 +1,12 @@