Parcourir la source

refactor: 仪表盘样式调整

lanjianrong il y a 4 ans
Parent
commit
63af7a99b6

+ 6 - 6
config/routes.js

@@ -67,13 +67,13 @@ export default [
         icon: 'icon-shangji',
         component: './Customer/Business',
         access: 'authRouteFilterWithPerm'
-      },
-      {
-        path: '/customer/test',
-        name: 'test',
-        icon: 'icon-usd-circle',
-        component: './Customer/Test'
       }
+      // {
+      //   path: '/customer/test',
+      //   name: 'test',
+      //   icon: 'icon-usd-circle',
+      //   component: './Customer/Test'
+      // }
     ]
   },
   {

+ 2 - 2
src/pages/Workbench/Dashboard/components/LeaderBoard.tsx

@@ -99,10 +99,10 @@ const LeaderBoard = ({ loading = false, dataList = [] }) => {
   return (
     <Card
       loading={loading}
-      bodyStyle={{ padding: loading ? '24px' : 0 }}
+      bodyStyle={{ padding: loading ? '16px' : 0 }}
       className="shadow-card"
       title={
-        <div className="px-4 pt-2 pb-0 flex items-center justify-between">
+        <div className="flex items-center justify-between">
           <span>排行榜</span>
           <Select defaultValue="client" onChange={e => setActiveOp(e)}>
             <Option value="client">新增客户</Option>

+ 2 - 2
src/pages/Workbench/Dashboard/components/SoftLeaderboard.tsx

@@ -76,10 +76,10 @@ const SoftLeaderboard = ({ loading = false, productLeaderBoard = [] }) => {
   return (
     <Card
       loading={loading}
-      bodyStyle={{ padding: loading ? '24px' : 0 }}
+      bodyStyle={{ padding: loading ? '16px' : 0 }}
       className="shadow-card"
       title={
-        <div className="px-4 pt-2 pb-0 flex items-center justify-between">
+        <div className="flex items-center justify-between">
           <span>产品排行榜</span>
           <Select defaultValue="soft" onChange={e => setActiveOp(e)}>
             <Option value="soft">软件锁</Option>