فهرست منبع

feat: 增加数据统计的权限

outaozhen 4 سال پیش
والد
کامیت
ba4e21d395
2فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 4 2
      config/routes.js
  2. 1 1
      src/pages/Workbench/Dashboard/index.tsx

+ 4 - 2
config/routes.js

@@ -230,12 +230,14 @@ export default [
           {
             path: '/statistic/customer/source',
             name: 'source',
-            component: './Statistic/Customer/Source'
+            component: './Statistic/Customer/Source',
+            access: 'authRouteFilter'
           },
           {
             path: '/statistic/customer/nature',
             name: 'nature',
-            component: './Statistic/Customer/Nature'
+            component: './Statistic/Customer/Nature',
+            access: 'authRouteFilter'
           }
         ]
       }

+ 1 - 1
src/pages/Workbench/Dashboard/index.tsx

@@ -521,7 +521,7 @@ const Dashboard = ({ dispatch, departments = [] }) => {
                   <Skeleton active avatar />
                 ) : (
                   <Row
-                    onClick={() => handleRatioCard(CardTypeMap.SERVICE, { paddingTop: 0 })}
+                    onClick={() => handleRatioCard(CardTypeMap.SERVICE, { paddingTop: 'unset' })}
                     className="cursor-pointer">
                     <Col span={16}>
                       <div className="flex items-center">