|
@@ -8,14 +8,12 @@ import { queryDashboard } from '@/services/dashboard'
|
|
|
import { queryStaff } from '@/services/staff'
|
|
import { queryStaff } from '@/services/staff'
|
|
|
import LeaderBoard from './components/LeaderBoard'
|
|
import LeaderBoard from './components/LeaderBoard'
|
|
|
import SoftLeaderboard from './components/SoftLeaderboard'
|
|
import SoftLeaderboard from './components/SoftLeaderboard'
|
|
|
-import { cardTypeMap, cyclicalOp } from './consts'
|
|
|
|
|
-// import BusinessChar from './components/BusinessChar'
|
|
|
|
|
|
|
+import { CardTypeMap, cyclicalOp } from './util'
|
|
|
import PermSelect, { PermDataTypeEunm } from '@/pages/Customer/Company/components/PermSelect'
|
|
import PermSelect, { PermDataTypeEunm } from '@/pages/Customer/Company/components/PermSelect'
|
|
|
import { getAuthCache, getPermAuthCache, setAuthCache } from '@/utils/auth'
|
|
import { getAuthCache, getPermAuthCache, setAuthCache } from '@/utils/auth'
|
|
|
import { WORKBENCH_CYCLICAL_KEY } from '@/utils/cache/cacheEnum'
|
|
import { WORKBENCH_CYCLICAL_KEY } from '@/utils/cache/cacheEnum'
|
|
|
import styles from './index.less'
|
|
import styles from './index.less'
|
|
|
import { isDevMode } from '@/utils/env'
|
|
import { isDevMode } from '@/utils/env'
|
|
|
-import { isMobile } from '@/utils/is'
|
|
|
|
|
import { useModal } from '@/components/ModalStore'
|
|
import { useModal } from '@/components/ModalStore'
|
|
|
import classNames from 'classnames'
|
|
import classNames from 'classnames'
|
|
|
import { PageContainer } from '@ant-design/pro-layout'
|
|
import { PageContainer } from '@ant-design/pro-layout'
|
|
@@ -409,7 +407,7 @@ const Dashboard = ({ dispatch, departments = [] }) => {
|
|
|
{state.loading ? (
|
|
{state.loading ? (
|
|
|
<Skeleton active avatar />
|
|
<Skeleton active avatar />
|
|
|
) : (
|
|
) : (
|
|
|
- <Row className="cursor-pointer" onClick={() => handleRatioCard(cardTypeMap.CLIENT)}>
|
|
|
|
|
|
|
+ <Row className="cursor-pointer" onClick={() => handleRatioCard(CardTypeMap.CLIENT)}>
|
|
|
<Col span={6}>
|
|
<Col span={6}>
|
|
|
<div className="w-full max-w-12 h-12 rounded-1/2 bg-hex-0c7cd5 flex items-center justify-center">
|
|
<div className="w-full max-w-12 h-12 rounded-1/2 bg-hex-0c7cd5 flex items-center justify-center">
|
|
|
<AddressBook size="26" fill="#fff" />
|
|
<AddressBook size="26" fill="#fff" />
|
|
@@ -442,7 +440,7 @@ const Dashboard = ({ dispatch, departments = [] }) => {
|
|
|
{state.loading ? (
|
|
{state.loading ? (
|
|
|
<Skeleton active avatar />
|
|
<Skeleton active avatar />
|
|
|
) : (
|
|
) : (
|
|
|
- <Row className="cursor-pointer" onClick={() => handleRatioCard(cardTypeMap.COMPANY)}>
|
|
|
|
|
|
|
+ <Row className="cursor-pointer" onClick={() => handleRatioCard(CardTypeMap.COMPANY)}>
|
|
|
<Col span={6}>
|
|
<Col span={6}>
|
|
|
<div className="w-full max-w-12 h-12 rounded-1/2 bg-hex-0c7cd5 flex items-center justify-center">
|
|
<div className="w-full max-w-12 h-12 rounded-1/2 bg-hex-0c7cd5 flex items-center justify-center">
|
|
|
<City size="26" fill="#fff" />
|
|
<City size="26" fill="#fff" />
|
|
@@ -478,7 +476,7 @@ const Dashboard = ({ dispatch, departments = [] }) => {
|
|
|
) : (
|
|
) : (
|
|
|
<Row
|
|
<Row
|
|
|
className="cursor-pointer"
|
|
className="cursor-pointer"
|
|
|
- onClick={() => handleRatioCard(cardTypeMap.BUSINESS)}>
|
|
|
|
|
|
|
+ onClick={() => handleRatioCard(CardTypeMap.BUSINESS)}>
|
|
|
<Col span={6}>
|
|
<Col span={6}>
|
|
|
<div className="w-full max-w-48px h-48px border rounded-48px bg-[#0c7cd5] flex items-center justify-center">
|
|
<div className="w-full max-w-48px h-48px border rounded-48px bg-[#0c7cd5] flex items-center justify-center">
|
|
|
<Finance size="26" fill="#fff" />
|
|
<Finance size="26" fill="#fff" />
|
|
@@ -514,7 +512,7 @@ const Dashboard = ({ dispatch, departments = [] }) => {
|
|
|
{state.loading ? (
|
|
{state.loading ? (
|
|
|
<Skeleton active avatar />
|
|
<Skeleton active avatar />
|
|
|
) : (
|
|
) : (
|
|
|
- <Row onClick={() => handleRatioCard(cardTypeMap.SERVICE)} className="cursor-pointer">
|
|
|
|
|
|
|
+ <Row onClick={() => handleRatioCard(CardTypeMap.SERVICE)} className="cursor-pointer">
|
|
|
<Col span={6}>
|
|
<Col span={6}>
|
|
|
<div className="w-full max-w-12 h-12 rounded-1/2 bg-hex-0c7cd5 flex items-center justify-center">
|
|
<div className="w-full max-w-12 h-12 rounded-1/2 bg-hex-0c7cd5 flex items-center justify-center">
|
|
|
<Comment size="26" fill="#fff" />
|
|
<Comment size="26" fill="#fff" />
|