From 57855eff06f1b1d686c3554d1d4024cfe0b1de9e Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sat, 20 Dec 2025 08:40:09 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90antd=E3=80=91=E3=80=90mal?= =?UTF-8?q?l=E3=80=91seckill=20=E4=BC=98=E5=8C=96=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/promotion/seckill/activity/data.ts | 14 +- .../seckill/activity/modules/form.vue | 366 +++++++++--------- 2 files changed, 203 insertions(+), 177 deletions(-) diff --git a/apps/web-antd/src/views/mall/promotion/seckill/activity/data.ts b/apps/web-antd/src/views/mall/promotion/seckill/activity/data.ts index 8c1d52e23..2ebb63de5 100644 --- a/apps/web-antd/src/views/mall/promotion/seckill/activity/data.ts +++ b/apps/web-antd/src/views/mall/promotion/seckill/activity/data.ts @@ -59,8 +59,8 @@ export function useFormSchema(): VbenFormSchema[] { component: 'DatePicker', componentProps: { placeholder: '请选择活动开始时间', - showTime: false, - format: 'YYYY-MM-DD', + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', class: 'w-full', }, @@ -72,8 +72,8 @@ export function useFormSchema(): VbenFormSchema[] { component: 'DatePicker', componentProps: { placeholder: '请选择活动结束时间', - showTime: false, - format: 'YYYY-MM-DD', + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', class: 'w-full', }, @@ -137,6 +137,12 @@ export function useFormSchema(): VbenFormSchema[] { }, formItemClass: 'col-span-2', }, + { + fieldName: 'spuId', + label: '秒杀商品', + component: 'Input', + formItemClass: 'col-span-2', + }, ]; } diff --git a/apps/web-antd/src/views/mall/promotion/seckill/activity/modules/form.vue b/apps/web-antd/src/views/mall/promotion/seckill/activity/modules/form.vue index 10485fca1..0a9bc4839 100644 --- a/apps/web-antd/src/views/mall/promotion/seckill/activity/modules/form.vue +++ b/apps/web-antd/src/views/mall/promotion/seckill/activity/modules/form.vue @@ -1,13 +1,20 @@