From 1a3de7e97a264c593bc256a79f2bdbc281ae2a57 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 21 Jun 2026 08:03:15 -0700 Subject: [PATCH] =?UTF-8?q?fix(ts):=20=E5=AF=B9=E9=BD=90=E6=A0=91=E8=A1=A8?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=B8=8E=E4=BD=8E=E9=A3=8E=E9=99=A9=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - demo02 树表 list API 参数改为可选 - 优惠券数量 formatter 统一返回字符串 - AI 音乐播放器进度滑块改用独立数值状态 - 同步适配 web-antd、web-ele、web-antdv-next 对齐 Vue3 管理后台 a57df0b2d --- apps/web-antd/src/api/infra/demo/demo02/index.ts | 2 +- .../src/views/ai/music/index/list/audioBar/index.vue | 7 ++----- apps/web-antd/src/views/mall/promotion/coupon/formatter.ts | 4 ++-- apps/web-antdv-next/src/api/infra/demo/demo02/index.ts | 2 +- .../src/views/ai/music/index/list/audioBar/index.vue | 7 ++----- .../src/views/mall/promotion/coupon/formatter.ts | 4 ++-- apps/web-ele/src/api/infra/demo/demo02/index.ts | 2 +- .../src/views/ai/music/index/list/audioBar/index.vue | 3 ++- apps/web-ele/src/views/mall/promotion/coupon/formatter.ts | 4 ++-- 9 files changed, 15 insertions(+), 20 deletions(-) diff --git a/apps/web-antd/src/api/infra/demo/demo02/index.ts b/apps/web-antd/src/api/infra/demo/demo02/index.ts index b4edd746e..60d79889e 100644 --- a/apps/web-antd/src/api/infra/demo/demo02/index.ts +++ b/apps/web-antd/src/api/infra/demo/demo02/index.ts @@ -11,7 +11,7 @@ export namespace Demo02CategoryApi { } /** 查询示例分类列表 */ -export function getDemo02CategoryList(params: any) { +export function getDemo02CategoryList(params?: any) { return requestClient.get( '/infra/demo02-category/list', { params }, diff --git a/apps/web-antd/src/views/ai/music/index/list/audioBar/index.vue b/apps/web-antd/src/views/ai/music/index/list/audioBar/index.vue index 351dcac3e..1767bc7d5 100644 --- a/apps/web-antd/src/views/ai/music/index/list/audioBar/index.vue +++ b/apps/web-antd/src/views/ai/music/index/list/audioBar/index.vue @@ -11,6 +11,7 @@ defineOptions({ name: 'AiMusicAudioBarIndex' }); const currentSong = inject('currentSong', {}); const audioRef = ref(null); +const audioProgress = ref(0); const audioProps = reactive({ autoplay: true, paused: false, @@ -73,11 +74,7 @@ function audioTimeUpdate(args: any) { />
{{ audioProps.currentTime }} - + {{ audioProps.duration }}
diff --git a/apps/web-antd/src/views/mall/promotion/coupon/formatter.ts b/apps/web-antd/src/views/mall/promotion/coupon/formatter.ts index 2f34863ff..aa652494a 100644 --- a/apps/web-antd/src/views/mall/promotion/coupon/formatter.ts +++ b/apps/web-antd/src/views/mall/promotion/coupon/formatter.ts @@ -47,7 +47,7 @@ export function totalCountFormat(row: MallCouponTemplateApi.CouponTemplate) { if (row.totalCount === -1) { return '不限制'; } - return row.totalCount; + return `${row.totalCount}`; } /** 格式化【剩余数量】 */ @@ -55,7 +55,7 @@ export function remainedCountFormat(row: MallCouponTemplateApi.CouponTemplate) { if (row.totalCount === -1) { return '不限制'; } - return row.totalCount - row.takeCount; + return `${row.totalCount - row.takeCount}`; } /** 格式化【最低消费】 */ diff --git a/apps/web-antdv-next/src/api/infra/demo/demo02/index.ts b/apps/web-antdv-next/src/api/infra/demo/demo02/index.ts index b4edd746e..60d79889e 100644 --- a/apps/web-antdv-next/src/api/infra/demo/demo02/index.ts +++ b/apps/web-antdv-next/src/api/infra/demo/demo02/index.ts @@ -11,7 +11,7 @@ export namespace Demo02CategoryApi { } /** 查询示例分类列表 */ -export function getDemo02CategoryList(params: any) { +export function getDemo02CategoryList(params?: any) { return requestClient.get( '/infra/demo02-category/list', { params }, diff --git a/apps/web-antdv-next/src/views/ai/music/index/list/audioBar/index.vue b/apps/web-antdv-next/src/views/ai/music/index/list/audioBar/index.vue index 30c5b2c4c..ab6430f37 100644 --- a/apps/web-antdv-next/src/views/ai/music/index/list/audioBar/index.vue +++ b/apps/web-antdv-next/src/views/ai/music/index/list/audioBar/index.vue @@ -11,6 +11,7 @@ defineOptions({ name: 'AiMusicAudioBarIndex' }); const currentSong = inject('currentSong', {}); const audioRef = ref(null); +const audioProgress = ref(0); const audioProps = reactive({ autoplay: true, paused: false, @@ -73,11 +74,7 @@ function audioTimeUpdate(args: any) { />
{{ audioProps.currentTime }} - + {{ audioProps.duration }}
diff --git a/apps/web-antdv-next/src/views/mall/promotion/coupon/formatter.ts b/apps/web-antdv-next/src/views/mall/promotion/coupon/formatter.ts index 2f34863ff..aa652494a 100644 --- a/apps/web-antdv-next/src/views/mall/promotion/coupon/formatter.ts +++ b/apps/web-antdv-next/src/views/mall/promotion/coupon/formatter.ts @@ -47,7 +47,7 @@ export function totalCountFormat(row: MallCouponTemplateApi.CouponTemplate) { if (row.totalCount === -1) { return '不限制'; } - return row.totalCount; + return `${row.totalCount}`; } /** 格式化【剩余数量】 */ @@ -55,7 +55,7 @@ export function remainedCountFormat(row: MallCouponTemplateApi.CouponTemplate) { if (row.totalCount === -1) { return '不限制'; } - return row.totalCount - row.takeCount; + return `${row.totalCount - row.takeCount}`; } /** 格式化【最低消费】 */ diff --git a/apps/web-ele/src/api/infra/demo/demo02/index.ts b/apps/web-ele/src/api/infra/demo/demo02/index.ts index b4edd746e..60d79889e 100644 --- a/apps/web-ele/src/api/infra/demo/demo02/index.ts +++ b/apps/web-ele/src/api/infra/demo/demo02/index.ts @@ -11,7 +11,7 @@ export namespace Demo02CategoryApi { } /** 查询示例分类列表 */ -export function getDemo02CategoryList(params: any) { +export function getDemo02CategoryList(params?: any) { return requestClient.get( '/infra/demo02-category/list', { params }, diff --git a/apps/web-ele/src/views/ai/music/index/list/audioBar/index.vue b/apps/web-ele/src/views/ai/music/index/list/audioBar/index.vue index 961620aab..59960dc1f 100644 --- a/apps/web-ele/src/views/ai/music/index/list/audioBar/index.vue +++ b/apps/web-ele/src/views/ai/music/index/list/audioBar/index.vue @@ -11,6 +11,7 @@ defineOptions({ name: 'AiMusicAudioBarIndex' }); const currentSong = inject('currentSong', {}); const audioRef = ref(null); +const audioProgress = ref(0); const audioProps = reactive({ autoplay: true, paused: false, @@ -73,7 +74,7 @@ function audioTimeUpdate(args: any) { />
{{ audioProps.currentTime }} - + {{ audioProps.duration }}
diff --git a/apps/web-ele/src/views/mall/promotion/coupon/formatter.ts b/apps/web-ele/src/views/mall/promotion/coupon/formatter.ts index 2f34863ff..aa652494a 100644 --- a/apps/web-ele/src/views/mall/promotion/coupon/formatter.ts +++ b/apps/web-ele/src/views/mall/promotion/coupon/formatter.ts @@ -47,7 +47,7 @@ export function totalCountFormat(row: MallCouponTemplateApi.CouponTemplate) { if (row.totalCount === -1) { return '不限制'; } - return row.totalCount; + return `${row.totalCount}`; } /** 格式化【剩余数量】 */ @@ -55,7 +55,7 @@ export function remainedCountFormat(row: MallCouponTemplateApi.CouponTemplate) { if (row.totalCount === -1) { return '不限制'; } - return row.totalCount - row.takeCount; + return `${row.totalCount - row.takeCount}`; } /** 格式化【最低消费】 */