Parcourir la source

增加测试页面+调整图标库

outaozhen il y a 5 ans
Parent
commit
e83e922b5d

+ 1 - 1
config/defaultSettings.js

@@ -9,7 +9,7 @@ const proSettings = {
   colorWeak: false,
   title: '产品',
   pwa: false,
-  iconfontUrl: '//at.alicdn.com/t/font_2276974_kpk5a8k5m2.js',
+  iconfontUrl: '//at.alicdn.com/t/font_2276974_wqk3gxkzrpr.js',
   splitMenus: true,
 
 }

+ 6 - 0
config/routes.js

@@ -58,6 +58,12 @@ export default [
                   icon: 'icon-building',
                   component: './Customer/Company',
                 },
+                {
+                  path: '/customer/test',
+                  name: 'test',
+                  icon: 'icon-siglyphalarmclock',
+                  component: './Customer/Test',
+                },
               ],
             },
             {

+ 1 - 0
src/locales/zh-CN/menu.js

@@ -9,6 +9,7 @@ export default {
   'menu.customer': '客户',
   'menu.customer.contact': '联系人',
   'menu.customer.company': '客户',
+  'menu.customer.test': '测试',
   'menu.product': '产品',
   'menu.product.lock': '软件锁',
   'menu.product.lock.lockstore': '公共锁库',

+ 3 - 29
src/pages/Customer/Company/index.jsx

@@ -1,36 +1,10 @@
 import React from 'react'
-import { Card } from 'antd'
-import EditableForm from '@/components/EditableForm'
 
 const Company = () => {
-
-  const record = {
-    address: '珠海',
-    clientName: '啊实打实大',
-    age: 16
-  }
-
-  const columns = [
-    {
-      dataIndex: 'address',
-      label: '珠海',
-      span: 12
-    },
-    {
-      dataIndex: 'clientName',
-      label: '名字',
-      span: 12
-    },
-    {
-      dataIndex: 'age',
-      label: '年龄',
-      span: 24
-    }
-  ]
   return (
-    <Card bordered={false}>
-      <EditableForm dataSource={record} columns={columns} />
-    </Card>
+    <div>
+      casda
+    </div>
   )
 }
 

+ 1 - 1
src/pages/Customer/Contact/index.jsx

@@ -14,7 +14,7 @@ import LazyCascader from '@/components/LazyCascader'
 
 const Contact = props => {
   const { collapsed } = props
-  const needSubtractHeight = 48 + 48 + 48 + 64 + 24 // 需要被裁掉的高度
+  const needSubtractHeight = 48 + 48 + 48 + 64 + 24 + 32 // 需要被裁掉的高度
   const needSubtractWidth = (collapsed ? 208 : 48) + 48 + 48 + 48 // 需要被裁掉的高度
 
   const [x, y] = useAutoTable(collapsed, needSubtractHeight, needSubtractWidth)

+ 37 - 0
src/pages/Customer/Test/index.jsx

@@ -0,0 +1,37 @@
+import React from 'react'
+import { Card } from 'antd'
+import EditableForm from '@/components/EditableForm'
+
+const Test = () => {
+
+  const record = {
+    address: '珠海',
+    clientName: '啊实打实大',
+    age: 16
+  }
+
+  const columns = [
+    {
+      dataIndex: 'address',
+      label: '珠海',
+      span: 12
+    },
+    {
+      dataIndex: 'clientName',
+      label: '名字',
+      span: 12
+    },
+    {
+      dataIndex: 'age',
+      label: '年龄',
+      span: 24
+    }
+  ]
+  return (
+    <Card bordered={false}>
+      <EditableForm dataSource={record} columns={columns} />
+    </Card>
+  )
+}
+
+export default Test