From a8ea0e4b2620225abbc2c6306a9db42664745c67 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Tue, 8 Oct 2024 16:31:21 +0800 Subject: [PATCH 1/6] sc --- src/api/home/reportSignRate.js | 5 ++ src/router/modules/remaining.ts | 42 ++++++------ src/views/Home/CloseRate.vue | 111 +++++++++++++++++++++++++++++++- 3 files changed, 135 insertions(+), 23 deletions(-) create mode 100644 src/api/home/reportSignRate.js diff --git a/src/api/home/reportSignRate.js b/src/api/home/reportSignRate.js new file mode 100644 index 0000000..3ceb4af --- /dev/null +++ b/src/api/home/reportSignRate.js @@ -0,0 +1,5 @@ +import request from '@/config/axios' +// 线索情况 +export const getList = async (data) => { + return await request.post({ url: '/admin-api/crm/sch-clue/signRate/report', data }) +} diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index a6b5036..85ab24e 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -130,27 +130,27 @@ const remainingRouter: AppRouteRecordRaw[] = [ // } // ] // }, - // { - // path: '/Basic', - // component: Layout, - // name: 'Basic', - // meta: {}, - // redirect: '/Basic/menu', - // children: [ - // { - // path: 'menu', - // component: () => import('@/views/Basic/Menu/index.vue'), - // name: 'Menu', - // meta: { - // canTo: true, - // hidden: true, - // noTagsView: false, - // icon: 'ep:user', - // title: '菜单管理' - // } - // } - // ] - // }, + { + path: '/Basic', + component: Layout, + name: 'Basic', + meta: { title: '菜单管理' }, + redirect: '/Basic/menu', + children: [ + { + path: 'menu', + component: () => import('@/views/Basic/Menu/index.vue'), + name: 'Menu', + meta: { + canTo: true, + hidden: true, + noTagsView: false, + icon: 'ep:user', + title: '菜单管理' + } + } + ] + }, { path: '/login', component: () => import('@/views/Login/Login.vue'), diff --git a/src/views/Home/CloseRate.vue b/src/views/Home/CloseRate.vue index c8876d0..f873d6c 100644 --- a/src/views/Home/CloseRate.vue +++ b/src/views/Home/CloseRate.vue @@ -1,7 +1,114 @@ - + From 41c20623d457aa0829e4c8a83a57ef0ddaa7c65d Mon Sep 17 00:00:00 2001 From: qsh <> Date: Tue, 8 Oct 2024 18:08:22 +0800 Subject: [PATCH 2/6] cc --- src/api/home/reportChannel.js | 4 + src/api/home/reportSignRate.js | 1 - src/router/modules/remaining.ts | 42 +++--- src/views/Home/ChannelReport.vue | 140 ++++++++++++++++++ src/views/Home/CloseRate.vue | 2 +- .../Home/{channel.vue => SignReport.vue} | 2 +- 6 files changed, 167 insertions(+), 24 deletions(-) create mode 100644 src/api/home/reportChannel.js create mode 100644 src/views/Home/ChannelReport.vue rename src/views/Home/{channel.vue => SignReport.vue} (76%) diff --git a/src/api/home/reportChannel.js b/src/api/home/reportChannel.js new file mode 100644 index 0000000..0e1d268 --- /dev/null +++ b/src/api/home/reportChannel.js @@ -0,0 +1,4 @@ +import request from '@/config/axios' +export const getList = async (data) => { + return await request.post({ url: '/admin-api/crm/sch-clue/clueQuality/report', data }) +} diff --git a/src/api/home/reportSignRate.js b/src/api/home/reportSignRate.js index 3ceb4af..0b515fe 100644 --- a/src/api/home/reportSignRate.js +++ b/src/api/home/reportSignRate.js @@ -1,5 +1,4 @@ import request from '@/config/axios' -// 线索情况 export const getList = async (data) => { return await request.post({ url: '/admin-api/crm/sch-clue/signRate/report', data }) } diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 85ab24e..13f762a 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -130,27 +130,27 @@ const remainingRouter: AppRouteRecordRaw[] = [ // } // ] // }, - { - path: '/Basic', - component: Layout, - name: 'Basic', - meta: { title: '菜单管理' }, - redirect: '/Basic/menu', - children: [ - { - path: 'menu', - component: () => import('@/views/Basic/Menu/index.vue'), - name: 'Menu', - meta: { - canTo: true, - hidden: true, - noTagsView: false, - icon: 'ep:user', - title: '菜单管理' - } - } - ] - }, + // { + // path: '/Basic', + // component: Layout, + // name: 'Basic', + // meta: { title: '菜单管理' }, + // redirect: '/Basic/menu', + // children: [ + // { + // path: 'menu', + // component: () => import('@/views/Basic/Menu/index.vue'), + // name: 'Menu', + // meta: { + // canTo: true, + // hidden: true, + // noTagsView: false, + // icon: 'ep:user', + // title: '菜单管理' + // } + // } + // ] + // }, { path: '/login', component: () => import('@/views/Login/Login.vue'), diff --git a/src/views/Home/ChannelReport.vue b/src/views/Home/ChannelReport.vue new file mode 100644 index 0000000..c38c3b2 --- /dev/null +++ b/src/views/Home/ChannelReport.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/src/views/Home/CloseRate.vue b/src/views/Home/CloseRate.vue index f873d6c..aa9aa68 100644 --- a/src/views/Home/CloseRate.vue +++ b/src/views/Home/CloseRate.vue @@ -21,7 +21,7 @@ - + -
+
成交报表
From 2406bcb8e4400f1114910f500ef8a365fcc782cd Mon Sep 17 00:00:00 2001 From: qsh <> Date: Wed, 9 Oct 2024 16:38:49 +0800 Subject: [PATCH 3/6] sc --- src/api/home/reportSignDetail.js | 8 + src/views/Home/ChannelReport.vue | 127 ++-------------- src/views/Home/Comp/ChannelMonthly.vue | 147 +++++++++++++++++++ src/views/Home/Comp/ChannelPeriod.vue | 160 ++++++++++++++++++++ src/views/Home/Comp/SignListCard.vue | 105 +++++++++++++ src/views/Home/Comp/SignTotalCard.vue | 195 +++++++++++++++++++++++++ src/views/Home/SignReport.vue | 10 +- 7 files changed, 634 insertions(+), 118 deletions(-) create mode 100644 src/api/home/reportSignDetail.js create mode 100644 src/views/Home/Comp/ChannelMonthly.vue create mode 100644 src/views/Home/Comp/ChannelPeriod.vue create mode 100644 src/views/Home/Comp/SignListCard.vue create mode 100644 src/views/Home/Comp/SignTotalCard.vue diff --git a/src/api/home/reportSignDetail.js b/src/api/home/reportSignDetail.js new file mode 100644 index 0000000..71b6667 --- /dev/null +++ b/src/api/home/reportSignDetail.js @@ -0,0 +1,8 @@ +import request from '@/config/axios' +export const getInfo = async (data) => { + return await request.post({ url: '/admin-api/crm/sch-clue/signData/report/one', data }) +} + +export const getList = async (data) => { + return await request.post({ url: '/admin-api/crm/sch-clue/signData/report/two', data }) +} diff --git a/src/views/Home/ChannelReport.vue b/src/views/Home/ChannelReport.vue index c38c3b2..d541869 100644 --- a/src/views/Home/ChannelReport.vue +++ b/src/views/Home/ChannelReport.vue @@ -1,82 +1,28 @@ diff --git a/src/views/Home/Comp/ChannelMonthly.vue b/src/views/Home/Comp/ChannelMonthly.vue new file mode 100644 index 0000000..6411d27 --- /dev/null +++ b/src/views/Home/Comp/ChannelMonthly.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/views/Home/Comp/ChannelPeriod.vue b/src/views/Home/Comp/ChannelPeriod.vue new file mode 100644 index 0000000..7da3810 --- /dev/null +++ b/src/views/Home/Comp/ChannelPeriod.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/src/views/Home/Comp/SignListCard.vue b/src/views/Home/Comp/SignListCard.vue new file mode 100644 index 0000000..fb9e77d --- /dev/null +++ b/src/views/Home/Comp/SignListCard.vue @@ -0,0 +1,105 @@ + + + + + diff --git a/src/views/Home/Comp/SignTotalCard.vue b/src/views/Home/Comp/SignTotalCard.vue new file mode 100644 index 0000000..c7d3bcb --- /dev/null +++ b/src/views/Home/Comp/SignTotalCard.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/src/views/Home/SignReport.vue b/src/views/Home/SignReport.vue index b780bce..c65aab5 100644 --- a/src/views/Home/SignReport.vue +++ b/src/views/Home/SignReport.vue @@ -1,7 +1,13 @@ - + From 9c7ba2fb87f1cf8097f281d4735ad4da3816f2ef Mon Sep 17 00:00:00 2001 From: qsh <> Date: Thu, 10 Oct 2024 16:49:57 +0800 Subject: [PATCH 4/6] 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="选择日期" /> - + From 8fc9dd449bf8abce1a682677886f13ff032bbf7a Mon Sep 17 00:00:00 2001 From: qsh <> Date: Fri, 11 Oct 2024 11:38:37 +0800 Subject: [PATCH 5/6] sc --- src/views/Home/Comp/ChannelPeriod.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/Home/Comp/ChannelPeriod.vue b/src/views/Home/Comp/ChannelPeriod.vue index 8873ac3..5977f1e 100644 --- a/src/views/Home/Comp/ChannelPeriod.vue +++ b/src/views/Home/Comp/ChannelPeriod.vue @@ -64,6 +64,7 @@