Bläddra i källkod

fix: 增加排序字段以及抽屉ui调整

lanjianrong 5 år sedan
förälder
incheckning
a67c36fbe8
2 ändrade filer med 7 tillägg och 7 borttagningar
  1. 5 5
      src/pages/Customer/Client/index.jsx
  2. 2 2
      src/pages/Customer/Company/index.jsx

+ 5 - 5
src/pages/Customer/Client/index.jsx

@@ -193,14 +193,14 @@ const Client = props => {
       dataIndex: 'phone',
       key: 'phone',
       width: 65,
-      sorter: (a, b) => a.phone - b.phone
+      sorter: true
     },
     {
       title: '手机',
       dataIndex: 'telephone',
       key: 'telephone',
       width: 75,
-      sorter: (a, b) => a.telephone - b.telephone,
+      sorter: true,
       search: false
     },
     {
@@ -208,7 +208,7 @@ const Client = props => {
       dataIndex: 'qq',
       key: 'qq',
       width: 75,
-      sorter: (a, b) => a.qq - b.qq,
+      sorter: true,
       search: false
     },
     {
@@ -216,7 +216,7 @@ const Client = props => {
       dataIndex: 'email',
       key: 'email',
       width: 75,
-      sorter: (a, b) => a.email - b.email,
+      sorter: true,
       search: false
     },
     {
@@ -321,7 +321,7 @@ const Client = props => {
       key: 'address',
       ellipsis: true,
       width: 150,
-      sorter: (a, b) => a.address - b.address,
+      sorter: true,
       search: false
     },
     {

+ 2 - 2
src/pages/Customer/Company/index.jsx

@@ -185,7 +185,7 @@ const Company = props => {
       dataIndex: 'phone',
       key: 'phone',
       search: false,
-      sorter: (a, b) => a.phone - b.phone,
+      sorter: true,
       width: 80
     },
     {
@@ -270,7 +270,7 @@ const Company = props => {
       dataIndex: 'address',
       key: 'address',
       search: false,
-      sorter: (a, b) => a.address - b.address,
+      sorter: true,
       width: 150
     },
     {