|
|
@@ -147,7 +147,8 @@ const Dashboard = () => {
|
|
|
render: (name, record) => (
|
|
|
<span
|
|
|
onClick={() => handleReminderList(record.type, '7day')}
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
+ className="text-primary cursor-pointer hover:text-[#967bbd]"
|
|
|
+ >
|
|
|
{name}
|
|
|
</span>
|
|
|
)
|
|
|
@@ -158,7 +159,8 @@ const Dashboard = () => {
|
|
|
render: (name, record) => (
|
|
|
<span
|
|
|
onClick={() => handleReminderList(record.type, '15day')}
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
+ className="text-primary cursor-pointer hover:text-[#967bbd]"
|
|
|
+ >
|
|
|
{name}
|
|
|
</span>
|
|
|
)
|
|
|
@@ -169,7 +171,8 @@ const Dashboard = () => {
|
|
|
render: (name, record) => (
|
|
|
<span
|
|
|
onClick={() => handleReminderList(record.type, '30day')}
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
+ className="text-primary cursor-pointer hover:text-[#967bbd]"
|
|
|
+ >
|
|
|
{name}
|
|
|
</span>
|
|
|
)
|
|
|
@@ -180,7 +183,8 @@ const Dashboard = () => {
|
|
|
render: (name, record) => (
|
|
|
<span
|
|
|
onClick={() => handleReminderList(record.type, '3month')}
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
+ className="text-primary cursor-pointer hover:text-[#967bbd]"
|
|
|
+ >
|
|
|
{name}
|
|
|
</span>
|
|
|
)
|
|
|
@@ -191,7 +195,8 @@ const Dashboard = () => {
|
|
|
render: (name, record) => (
|
|
|
<span
|
|
|
onClick={() => handleReminderList(record.type, '6month')}
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
+ className="text-primary cursor-pointer hover:text-[#967bbd]"
|
|
|
+ >
|
|
|
{name}
|
|
|
</span>
|
|
|
)
|
|
|
@@ -202,7 +207,8 @@ const Dashboard = () => {
|
|
|
render: (name, record) => (
|
|
|
<span
|
|
|
onClick={() => handleReminderList(record.type, 'reminder')}
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
+ className="text-primary cursor-pointer hover:text-[#967bbd]"
|
|
|
+ >
|
|
|
{name}
|
|
|
</span>
|
|
|
)
|
|
|
@@ -277,7 +283,8 @@ const Dashboard = () => {
|
|
|
sm={{ span: 24 }}
|
|
|
md={{ span: 24 }}
|
|
|
lg={{ span: 6 }}
|
|
|
- xl={{ span: 6 }}>
|
|
|
+ xl={{ span: 6 }}
|
|
|
+ >
|
|
|
<div className="p-4 bg-white border rounded-2px border-hex-f0f0f0 shadow-card">
|
|
|
{state.loading ? (
|
|
|
<Skeleton active avatar />
|
|
|
@@ -297,7 +304,8 @@ const Dashboard = () => {
|
|
|
state.clientChainRatio.percentage.startsWith('-')
|
|
|
? 'text-green-500'
|
|
|
: 'text-red-500'
|
|
|
- ].join(' ')}>
|
|
|
+ ].join(' ')}
|
|
|
+ >
|
|
|
{state.clientChainRatio.percentage}
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -317,14 +325,16 @@ const Dashboard = () => {
|
|
|
sm={{ span: 24 }}
|
|
|
md={{ span: 24 }}
|
|
|
lg={{ span: 6 }}
|
|
|
- xl={{ span: 6 }}>
|
|
|
+ xl={{ span: 6 }}
|
|
|
+ >
|
|
|
<div className="p-4 bg-white border rounded-2px border-hex-f0f0f0 shadow-card">
|
|
|
{state.loading ? (
|
|
|
<Skeleton active avatar />
|
|
|
) : (
|
|
|
<Row
|
|
|
className="cursor-pointer"
|
|
|
- onClick={() => handleRatioCard(cardTypeMap.COMPANY)}>
|
|
|
+ onClick={() => handleRatioCard(cardTypeMap.COMPANY)}
|
|
|
+ >
|
|
|
<Col span={6}>
|
|
|
<div className="w-full max-w-48px h-48px border rounded-48px bg-[#0c7cd5] flex items-center justify-center">
|
|
|
<City size="26" fill="#fff" />
|
|
|
@@ -339,7 +349,8 @@ const Dashboard = () => {
|
|
|
state.customerChainRatio.percentage.startsWith('-')
|
|
|
? 'text-green-500'
|
|
|
: 'text-red-500'
|
|
|
- ].join(' ')}>
|
|
|
+ ].join(' ')}
|
|
|
+ >
|
|
|
{state.customerChainRatio.percentage}
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -360,14 +371,16 @@ const Dashboard = () => {
|
|
|
sm={{ span: 24 }}
|
|
|
md={{ span: 24 }}
|
|
|
lg={{ span: 6 }}
|
|
|
- xl={{ span: 6 }}>
|
|
|
+ xl={{ span: 6 }}
|
|
|
+ >
|
|
|
<div className="p-4 bg-white border rounded-2px border-hex-f0f0f0 shadow-card">
|
|
|
{state.loading ? (
|
|
|
<Skeleton active avatar />
|
|
|
) : (
|
|
|
<Row
|
|
|
className="cursor-pointer"
|
|
|
- onClick={() => handleRatioCard(cardTypeMap.BUSINESS)}>
|
|
|
+ onClick={() => handleRatioCard(cardTypeMap.BUSINESS)}
|
|
|
+ >
|
|
|
<Col span={6}>
|
|
|
<div className="w-full max-w-48px h-48px border rounded-48px bg-[#0c7cd5] flex items-center justify-center">
|
|
|
<Finance size="26" fill="#fff" />
|
|
|
@@ -382,7 +395,8 @@ const Dashboard = () => {
|
|
|
state.businessChainRatio.percentage.startsWith('-')
|
|
|
? 'text-green-500'
|
|
|
: 'text-red-500'
|
|
|
- ].join(' ')}>
|
|
|
+ ].join(' ')}
|
|
|
+ >
|
|
|
{state.businessChainRatio.percentage}
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -403,14 +417,16 @@ const Dashboard = () => {
|
|
|
sm={{ span: 24 }}
|
|
|
md={{ span: 24 }}
|
|
|
lg={{ span: 6 }}
|
|
|
- xl={{ span: 6 }}>
|
|
|
+ xl={{ span: 6 }}
|
|
|
+ >
|
|
|
<div className="p-4 bg-white border rounded-2px border-hex-f0f0f0 shadow-card">
|
|
|
{state.loading ? (
|
|
|
<Skeleton active avatar />
|
|
|
) : (
|
|
|
<Row
|
|
|
onClick={() => handleRatioCard(cardTypeMap.SERVICE)}
|
|
|
- className="cursor-pointer">
|
|
|
+ className="cursor-pointer"
|
|
|
+ >
|
|
|
<Col span={6}>
|
|
|
<div className="w-full max-w-48px h-48px border rounded-48px bg-[#0c7cd5] flex items-center justify-center">
|
|
|
<Comment size="26" fill="#fff" />
|
|
|
@@ -425,7 +441,8 @@ const Dashboard = () => {
|
|
|
state.serviceLogChainRatio.percentage.startsWith('-')
|
|
|
? 'text-green-500'
|
|
|
: 'text-red-500'
|
|
|
- ].join(' ')}>
|
|
|
+ ].join(' ')}
|
|
|
+ >
|
|
|
{state.serviceLogChainRatio.percentage}
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -450,7 +467,8 @@ const Dashboard = () => {
|
|
|
sm={{ span: 24 }}
|
|
|
md={{ span: 24 }}
|
|
|
lg={{ span: 16 }}
|
|
|
- xl={{ span: 16 }}>
|
|
|
+ xl={{ span: 16 }}
|
|
|
+ >
|
|
|
<BusinessChar
|
|
|
loading={state.loading}
|
|
|
data={state.businessChar}
|
|
|
@@ -463,13 +481,15 @@ const Dashboard = () => {
|
|
|
sm={{ span: 24 }}
|
|
|
md={{ span: 24 }}
|
|
|
lg={{ span: 8 }}
|
|
|
- xl={{ span: 8 }}>
|
|
|
+ xl={{ span: 8 }}
|
|
|
+ >
|
|
|
<Card
|
|
|
headStyle={{ padding: '0 12px' }}
|
|
|
title="数据汇总"
|
|
|
className="shadow-card"
|
|
|
bodyStyle={{ padding: state.loading ? '24px' : 0 }}
|
|
|
- loading={state.loading}>
|
|
|
+ loading={state.loading}
|
|
|
+ >
|
|
|
<ul>
|
|
|
<li className="px-12px py-16px border-b-1">
|
|
|
新增客户<b className="px-1">{state.aggregation.clientCount}</b>个,服务
|
|
|
@@ -497,7 +517,8 @@ const Dashboard = () => {
|
|
|
sm={{ span: 24 }}
|
|
|
md={{ span: 24 }}
|
|
|
lg={{ span: 12 }}
|
|
|
- xl={{ span: 12 }}>
|
|
|
+ xl={{ span: 12 }}
|
|
|
+ >
|
|
|
<LeaderBoard dataList={state.leaderboard} loading={state.loading} />
|
|
|
</Col>
|
|
|
<Col
|
|
|
@@ -505,7 +526,8 @@ const Dashboard = () => {
|
|
|
sm={{ span: 24 }}
|
|
|
md={{ span: 24 }}
|
|
|
lg={{ span: 12 }}
|
|
|
- xl={{ span: 12 }}>
|
|
|
+ xl={{ span: 12 }}
|
|
|
+ >
|
|
|
<SoftLeaderboard
|
|
|
productLeaderBoard={state.productLeaderBoard}
|
|
|
loading={state.loading}
|