From 9c7ba2fb87f1cf8097f281d4735ad4da3816f2ef Mon Sep 17 00:00:00 2001 From: qsh <> Date: Thu, 10 Oct 2024 16:49:57 +0800 Subject: [PATCH] sc --- src/api/home/reportChannel.js | 4 ++ src/hooks/web/useMessage.ts | 7 +++- src/router/modules/remaining.ts | 1 - src/views/Home/Comp/ChannelPeriod.vue | 19 ++++++---- src/views/Home/Comp/SignListCard.vue | 54 ++++++++++++++++++++++++--- 5 files changed, 71 insertions(+), 14 deletions(-) diff --git a/src/api/home/reportChannel.js b/src/api/home/reportChannel.js index 0e1d268..3a66cc1 100644 --- a/src/api/home/reportChannel.js +++ b/src/api/home/reportChannel.js @@ -2,3 +2,7 @@ import request from '@/config/axios' export const getList = async (data) => { return await request.post({ url: '/admin-api/crm/sch-clue/clueQuality/report', data }) } + +export const getPeriodList = async (data) => { + return await request.post({ url: '/admin-api/crm/sch-clue/clueQuality/period/report', data }) +} diff --git a/src/hooks/web/useMessage.ts b/src/hooks/web/useMessage.ts index ac2b552..e064b08 100644 --- a/src/hooks/web/useMessage.ts +++ b/src/hooks/web/useMessage.ts @@ -13,7 +13,12 @@ export const useMessage = () => { }, // 成功消息 success(content: string) { - ElMessage.success(content) + // ElMessage.success(content) + ElMessage({ + message: content, + duration: 1500, + type: 'success' + }) }, // 警告消息 warning(content: string) { diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 13f762a..fdd7af5 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -106,7 +106,6 @@ const remainingRouter: AppRouteRecordRaw[] = [ } ] }, - // { // path: '/dict', // component: Layout, diff --git a/src/views/Home/Comp/ChannelPeriod.vue b/src/views/Home/Comp/ChannelPeriod.vue index 7da3810..8873ac3 100644 --- a/src/views/Home/Comp/ChannelPeriod.vue +++ b/src/views/Home/Comp/ChannelPeriod.vue @@ -11,9 +11,9 @@ end-placeholder="选择日期" /> - +