|
@@ -8,6 +8,7 @@ import { useModal } from '@/components/Modal'
|
|
|
import { queryDashboard } from '@/services/dashboard'
|
|
import { queryDashboard } from '@/services/dashboard'
|
|
|
import ReminderList from './components/ReminderList'
|
|
import ReminderList from './components/ReminderList'
|
|
|
import LeaderBoard from './components/LeaderBoard'
|
|
import LeaderBoard from './components/LeaderBoard'
|
|
|
|
|
+import SoftLeaderboard from './components/SoftLeaderboard'
|
|
|
import { cyclicalOp } from './consts'
|
|
import { cyclicalOp } from './consts'
|
|
|
import BusinessChar from './components/BusinessChar'
|
|
import BusinessChar from './components/BusinessChar'
|
|
|
|
|
|
|
@@ -20,6 +21,7 @@ const Dashboard = () => {
|
|
|
visible: false,
|
|
visible: false,
|
|
|
reminderData: [],
|
|
reminderData: [],
|
|
|
leaderboard: [],
|
|
leaderboard: [],
|
|
|
|
|
+ productLeaderBoard: [],
|
|
|
clientChainRatio: {},
|
|
clientChainRatio: {},
|
|
|
customerChainRatio: {},
|
|
customerChainRatio: {},
|
|
|
businessChainRatio: {},
|
|
businessChainRatio: {},
|
|
@@ -45,7 +47,8 @@ const Dashboard = () => {
|
|
|
data: {
|
|
data: {
|
|
|
reminderData = [],
|
|
reminderData = [],
|
|
|
leaderboard = [],
|
|
leaderboard = [],
|
|
|
- clientChainRatio = {},
|
|
|
|
|
|
|
+ productLeaderBoard = {},
|
|
|
|
|
+ clientChainRatio = [],
|
|
|
customerChainRatio = {},
|
|
customerChainRatio = {},
|
|
|
businessChainRatio = {},
|
|
businessChainRatio = {},
|
|
|
serviceLogChainRatio = {},
|
|
serviceLogChainRatio = {},
|
|
@@ -61,6 +64,7 @@ const Dashboard = () => {
|
|
|
immediate: false,
|
|
immediate: false,
|
|
|
reminderData,
|
|
reminderData,
|
|
|
leaderboard,
|
|
leaderboard,
|
|
|
|
|
+ productLeaderBoard,
|
|
|
clientChainRatio,
|
|
clientChainRatio,
|
|
|
customerChainRatio,
|
|
customerChainRatio,
|
|
|
businessChainRatio,
|
|
businessChainRatio,
|
|
@@ -75,6 +79,7 @@ const Dashboard = () => {
|
|
|
loading: false,
|
|
loading: false,
|
|
|
reminderData,
|
|
reminderData,
|
|
|
leaderboard,
|
|
leaderboard,
|
|
|
|
|
+ productLeaderBoard,
|
|
|
clientChainRatio,
|
|
clientChainRatio,
|
|
|
customerChainRatio,
|
|
customerChainRatio,
|
|
|
businessChainRatio,
|
|
businessChainRatio,
|
|
@@ -395,6 +400,12 @@ const Dashboard = () => {
|
|
|
<Col className="gutter-row" span={12}>
|
|
<Col className="gutter-row" span={12}>
|
|
|
<LeaderBoard dataList={state.leaderboard} loading={state.loading} />
|
|
<LeaderBoard dataList={state.leaderboard} loading={state.loading} />
|
|
|
</Col>
|
|
</Col>
|
|
|
|
|
+ <Col className="gutter-row" span={12}>
|
|
|
|
|
+ <SoftLeaderboard
|
|
|
|
|
+ productLeaderBoard={state.productLeaderBoard}
|
|
|
|
|
+ loading={state.loading}
|
|
|
|
|
+ />
|
|
|
|
|
+ </Col>
|
|
|
</Row>
|
|
</Row>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|