lanjianrong 5 年 前
コミット
4e01b3cf56

+ 5 - 0
src/pages/Customer/Contact/components/AlertOption/index.jsx

@@ -0,0 +1,5 @@
+const AlertOption = () => {
+  return <div />
+}
+
+export default AlertOption

+ 42 - 0
src/pages/workbench/Dashboard/consts.js

@@ -0,0 +1,42 @@
+export 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'
+  }
+]

+ 1 - 43
src/pages/workbench/Dashboard/index.jsx

@@ -9,49 +9,7 @@ import { useModal } from '@/components/Modal'
 import { queryDashboard } from '@/services/dashboard'
 import ReminderList from './components/ReminderList'
 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 { Option } = Select