From 4ec82f0fd020c69662ab47816b7bb99a037dcbca Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 15 Dec 2025 19:29:47 +0800 Subject: [PATCH] =?UTF-8?q?review=EF=BC=9A=E3=80=90antd/ele=E3=80=91?= =?UTF-8?q?=E3=80=90mall=E3=80=91=E8=90=A5=E9=94=80=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E7=9A=84=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nodes/modules/process-instance-modal.vue | 2 +- .../nodes/modules/task-list-modal.vue | 2 +- .../iot/rule/data/sink/data-sink-form.vue | 1 - .../mall/product/comment/modules/form.vue | 3 +- .../spu/components/spu-and-sku-list.vue | 2 +- .../mall/promotion/bargain/activity/index.vue | 23 +++------ .../bargain/activity/modules/form.vue | 26 ++++++---- .../promotion/combination/activity/index.vue | 21 ++------ .../combination/activity/modules/form.vue | 23 +++++---- .../promotion/coupon/components/select.vue | 18 +++---- .../mall/promotion/discountActivity/index.vue | 19 ++----- .../mall/promotion/point/activity/data.ts | 1 - .../promotion/point/activity/modules/form.vue | 1 - .../point/components/point-showcase.vue | 1 + .../point/components/point-table-select.vue | 1 + .../promotion/rewardActivity/modules/form.vue | 3 +- .../seckill/activity/modules/form.vue | 14 ++---- apps/web-antd/src/views/mp/material/index.vue | 24 +++++---- .../mall/promotion/bargain/bargainActivity.ts | 13 ----- .../combination/combinationActivity.ts | 14 +----- .../promotion/discount/discountActivity.ts | 13 ----- .../src/api/mall/promotion/point/index.ts | 11 ---- .../mall/promotion/seckill/seckillActivity.ts | 14 +----- .../mall/product/comment/modules/form.vue | 1 + .../mall/promotion/bargain/activity/data.ts | 3 ++ .../mall/promotion/bargain/activity/index.vue | 15 ++++-- .../bargain/activity/modules/form.vue | 37 ++++++++++++-- .../mall/promotion/bargain/record/data.ts | 3 ++ .../promotion/combination/activity/index.vue | 17 +++++-- .../combination/activity/modules/form.vue | 23 +++++---- .../combination/components/showcase.vue | 1 - .../promotion/coupon/components/select.vue | 4 +- .../mall/promotion/discountActivity/data.ts | 2 +- .../mall/promotion/discountActivity/index.vue | 16 ++++-- .../discountActivity/modules/form.vue | 3 ++ .../mall/promotion/point/activity/data.ts | 1 - .../promotion/point/activity/modules/form.vue | 4 +- .../promotion/point/components/showcase.vue | 1 + .../point/components/table-select.vue | 1 + .../mall/promotion/rewardActivity/data.ts | 8 ++- .../mall/promotion/rewardActivity/index.vue | 14 ++++-- .../promotion/rewardActivity/modules/form.vue | 9 ++++ .../modules/reward-rule-coupon-select.vue | 15 +++++- .../rewardActivity/modules/reward-rule.vue | 34 +++++++++---- .../mall/promotion/seckill/activity/data.ts | 50 +++++++++---------- .../promotion/seckill/activity/formatter.ts | 11 ++-- .../mall/promotion/seckill/activity/index.vue | 2 + .../seckill/activity/modules/form.vue | 31 ++++++++++-- .../promotion/seckill/components/showcase.vue | 1 - apps/web-ele/src/views/mp/material/index.vue | 23 +++++---- 50 files changed, 317 insertions(+), 263 deletions(-) diff --git a/apps/web-antd/src/views/bpm/components/simple-process-design/components/nodes/modules/process-instance-modal.vue b/apps/web-antd/src/views/bpm/components/simple-process-design/components/nodes/modules/process-instance-modal.vue index dec77d854..c66bcef38 100644 --- a/apps/web-antd/src/views/bpm/components/simple-process-design/components/nodes/modules/process-instance-modal.vue +++ b/apps/web-antd/src/views/bpm/components/simple-process-design/components/nodes/modules/process-instance-modal.vue @@ -30,7 +30,7 @@ const [Modal, modalApi] = useVbenModal({ try { const data = modalApi.getData(); // 填充列表数据 - await gridApi.setGridOptions({ data }); + gridApi.setGridOptions({ data }); } finally { modalApi.unlock(); } diff --git a/apps/web-antd/src/views/bpm/components/simple-process-design/components/nodes/modules/task-list-modal.vue b/apps/web-antd/src/views/bpm/components/simple-process-design/components/nodes/modules/task-list-modal.vue index 38b869a49..baa4cc7ed 100644 --- a/apps/web-antd/src/views/bpm/components/simple-process-design/components/nodes/modules/task-list-modal.vue +++ b/apps/web-antd/src/views/bpm/components/simple-process-design/components/nodes/modules/task-list-modal.vue @@ -33,7 +33,7 @@ const [Modal, modalApi] = useVbenModal({ try { const data = modalApi.getData(); // 填充列表数据 - await gridApi.setGridOptions({ data }); + gridApi.setGridOptions({ data }); } finally { modalApi.unlock(); } diff --git a/apps/web-antd/src/views/iot/rule/data/sink/data-sink-form.vue b/apps/web-antd/src/views/iot/rule/data/sink/data-sink-form.vue index b24accd90..98ce5faf7 100644 --- a/apps/web-antd/src/views/iot/rule/data/sink/data-sink-form.vue +++ b/apps/web-antd/src/views/iot/rule/data/sink/data-sink-form.vue @@ -83,7 +83,6 @@ const [Modal, modalApi] = useVbenModal({ } // 加载数据 const data = modalApi.getData(); - if (!data || !data.id) { formData.value = { type: IotDataSinkTypeEnum.HTTP, diff --git a/apps/web-antd/src/views/mall/product/comment/modules/form.vue b/apps/web-antd/src/views/mall/product/comment/modules/form.vue index f2d3d14e0..3ff475282 100644 --- a/apps/web-antd/src/views/mall/product/comment/modules/form.vue +++ b/apps/web-antd/src/views/mall/product/comment/modules/form.vue @@ -21,7 +21,6 @@ import { useFormSchema } from '../data'; const emit = defineEmits(['success']); -// 初始化 formData,确保始终有值 const formData = ref>({ descriptionScores: 5, benefitScores: 5, @@ -100,7 +99,6 @@ const [Modal, modalApi] = useVbenModal({ }, async onOpenChange(isOpen: boolean) { if (!isOpen) { - // 重置表单数据 selectedSku.value = undefined; return; } @@ -108,6 +106,7 @@ const [Modal, modalApi] = useVbenModal({ const data = modalApi.getData(); if (!data || !data.id) { // 新建模式:重置表单 + // TODO @puhui999:这里的重置,可以统一到 103 行那么? selectedSku.value = undefined; await formApi.setValues({ spuId: undefined, skuId: undefined }); return; diff --git a/apps/web-antd/src/views/mall/product/spu/components/spu-and-sku-list.vue b/apps/web-antd/src/views/mall/product/spu/components/spu-and-sku-list.vue index ea5cc0b8a..f48a51f6a 100644 --- a/apps/web-antd/src/views/mall/product/spu/components/spu-and-sku-list.vue +++ b/apps/web-antd/src/views/mall/product/spu/components/spu-and-sku-list.vue @@ -127,7 +127,7 @@ watch( - +