|
@@ -9,49 +9,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'
|
|
|
-
|
|
|
|
|
-const cyclicalOp = [
|
|
|
|
|
- {
|
|
|
|
|
- label: '今天',
|
|
|
|
|
- value: 'today'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '昨天',
|
|
|
|
|
- value: 'yesterday'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '本周',
|
|
|
|
|
- value: 'week'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '上周',
|
|
|
|
|
- value: 'lastWeek'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '本月',
|
|
|
|
|
- value: 'month'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '上月',
|
|
|
|
|
- value: 'lastMonth'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '本季度',
|
|
|
|
|
- value: 'quarter'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '上季度',
|
|
|
|
|
- value: 'lastQuarter'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '本年',
|
|
|
|
|
- value: 'year'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '去年',
|
|
|
|
|
- value: 'lastYear'
|
|
|
|
|
- }
|
|
|
|
|
-]
|
|
|
|
|
|
|
+import { cyclicalOp } from './consts'
|
|
|
|
|
|
|
|
const Dashboard = ({ permData }) => {
|
|
const Dashboard = ({ permData }) => {
|
|
|
const { Option } = Select
|
|
const { Option } = Select
|