From 9984de0dc7251779434a5bf95c3aa9aab3c4cd65 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 12 Aug 2023 11:39:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=9F=8E=EF=BC=9A=201.=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=BC=98=E6=83=A0=E5=8A=B5=E7=9A=84=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=202.=20=E7=AE=80=E5=8C=96=E7=A7=92=E6=9D=80=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/promotion/{ => coupon}/coupon.ts | 0 .../promotion/{ => coupon}/couponTemplate.ts | 0 .../mall/promotion/seckill/seckillConfig.ts | 2 +- src/views/mall/promotion/coupon/index.vue | 6 ++--- .../template}/CouponTemplateForm.vue | 2 +- .../template}/index.vue | 6 ++--- .../mall/promotion/seckill/activity/index.vue | 4 ++-- .../seckill/activity/seckillActivity.data.ts | 4 ++-- .../seckill/config/SeckillConfigForm.vue | 20 +++++++++------- .../mall/promotion/seckill/config/index.vue | 24 +++++++------------ 10 files changed, 29 insertions(+), 39 deletions(-) rename src/api/mall/promotion/{ => coupon}/coupon.ts (100%) rename src/api/mall/promotion/{ => coupon}/couponTemplate.ts (100%) rename src/views/mall/promotion/{couponTemplate => coupon/template}/CouponTemplateForm.vue (99%) rename src/views/mall/promotion/{couponTemplate => coupon/template}/index.vue (97%) diff --git a/src/api/mall/promotion/coupon.ts b/src/api/mall/promotion/coupon/coupon.ts similarity index 100% rename from src/api/mall/promotion/coupon.ts rename to src/api/mall/promotion/coupon/coupon.ts diff --git a/src/api/mall/promotion/couponTemplate.ts b/src/api/mall/promotion/coupon/couponTemplate.ts similarity index 100% rename from src/api/mall/promotion/couponTemplate.ts rename to src/api/mall/promotion/coupon/couponTemplate.ts diff --git a/src/api/mall/promotion/seckill/seckillConfig.ts b/src/api/mall/promotion/seckill/seckillConfig.ts index eee82115..23ad15ca 100644 --- a/src/api/mall/promotion/seckill/seckillConfig.ts +++ b/src/api/mall/promotion/seckill/seckillConfig.ts @@ -20,7 +20,7 @@ export const getSeckillConfig = async (id: number) => { } // 获得所有开启状态的秒杀时段精简列表 -export const getListAllSimple = async () => { +export const getSimpleSeckillConfigList = async () => { return await request.get({ url: '/promotion/seckill-config/list-all-simple' }) } diff --git a/src/views/mall/promotion/coupon/index.vue b/src/views/mall/promotion/coupon/index.vue index 51369ed9..acfccece 100755 --- a/src/views/mall/promotion/coupon/index.vue +++ b/src/views/mall/promotion/coupon/index.vue @@ -31,9 +31,7 @@ /> - - 搜索 - + 搜索 重置 @@ -108,7 +106,7 @@ diff --git a/src/views/mall/promotion/seckill/activity/seckillActivity.data.ts b/src/views/mall/promotion/seckill/activity/seckillActivity.data.ts index 70766d49..9341c3e3 100644 --- a/src/views/mall/promotion/seckill/activity/seckillActivity.data.ts +++ b/src/views/mall/promotion/seckill/activity/seckillActivity.data.ts @@ -1,6 +1,6 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' -import { getListAllSimple } from '@/api/mall/promotion/seckill/seckillConfig' +import { getSimpleSeckillConfigList } from '@/api/mall/promotion/seckill/seckillConfig' // 表单校验 export const rules = reactive({ @@ -88,7 +88,7 @@ const crudSchemas = reactive([ valueField: 'id' } }, - api: getListAllSimple + api: getSimpleSeckillConfigList }, table: { width: 300 diff --git a/src/views/mall/promotion/seckill/config/SeckillConfigForm.vue b/src/views/mall/promotion/seckill/config/SeckillConfigForm.vue index 22b07d3a..d7f07e92 100644 --- a/src/views/mall/promotion/seckill/config/SeckillConfigForm.vue +++ b/src/views/mall/promotion/seckill/config/SeckillConfigForm.vue @@ -10,7 +10,6 @@