From 4818a067a9d14c826c901705d4b3a85eef3c699f Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Tue, 10 Dec 2024 17:22:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=93=81=E5=88=86=E7=B1=BB=EF=BC=8C?= =?UTF-8?q?=E8=8F=9C=E5=93=81=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/canteen/canteenCategory.ts | 8 ++ src/components/Upload/Image.vue | 4 +- src/views/canteen/canteenSpu/form.vue | 131 +++++++++++-------------- src/views/canteen/canteenSpu/index.vue | 23 ++--- 4 files changed, 78 insertions(+), 88 deletions(-) diff --git a/src/api/canteen/canteenCategory.ts b/src/api/canteen/canteenCategory.ts index 24ace76..dbe27ae 100644 --- a/src/api/canteen/canteenCategory.ts +++ b/src/api/canteen/canteenCategory.ts @@ -39,3 +39,11 @@ export function putObj(obj?: Object) { }) } +export function getAllSimple(query?: Object) { + return request({ + url: '/canteen/canteenCategory/getAllSimple', + method: 'get', + params: query + }) +} + diff --git a/src/components/Upload/Image.vue b/src/components/Upload/Image.vue index ef65a25..343941e 100644 --- a/src/components/Upload/Image.vue +++ b/src/components/Upload/Image.vue @@ -72,6 +72,7 @@ interface UploadFileProps { borderRadius?: string; // 组件边框圆角 ==> 非必传(默认为 8px) iconSize?: number; dir?: string; // 文件目录 + listType:string; } // 接受父组件参数 @@ -85,7 +86,8 @@ const props = withDefaults(defineProps(), { height: '150px', width: '150px', borderRadius: '8px', - dir: '' + dir: '', + listType:'' }); // 生成组件唯一id diff --git a/src/views/canteen/canteenSpu/form.vue b/src/views/canteen/canteenSpu/form.vue index d648bd8..12eae43 100644 --- a/src/views/canteen/canteenSpu/form.vue +++ b/src/views/canteen/canteenSpu/form.vue @@ -8,115 +8,90 @@ - + + + + + + + + + + + + + + + - - - + + + + + - - - - 0 - - - - - - - - - - - - - - - - - - - + + + - - + + - 商品状态: 1 上架(开启) 0 下架(禁用) -1 回收 + {{ item.label }} + - - - + + + - - - + + + - - - - - - - + - + - - - - - - - + - - - - - - - - - - - - - - - - - - + + + + +