lanjianrong 5 лет назад
Родитель
Сommit
97c09be549
3 измененных файлов с 12 добавлено и 8 удалено
  1. 1 1
      src/consts.js
  2. 6 7
      src/pages/Customer/Contact/index.jsx
  3. 5 0
      src/pages/Customer/Contact/index.less

+ 1 - 1
src/consts.js

@@ -3,5 +3,5 @@ import BASE_CONSTS from '@/basic/consts'
 export default {
   ...BASE_CONSTS,
   // 自定义变量
-  PAGE_SIZE: 10 // 分页条数
+  PAGE_SIZE: 20 // 分页条数
 }

+ 6 - 7
src/pages/Customer/Contact/index.jsx

@@ -1,13 +1,14 @@
 import Contacts from '@/components/PopContent/Contacts'
 import ProTable from '@ant-design/pro-table'
 // import { PageHeaderWrapper } from '@ant-design/pro-layout';
-import { Button, Tag,Cascader } from 'antd'
+import { Button, Tag, Cascader } from 'antd'
 import { connect } from 'dva'
 import React, { useEffect, useState } from 'react'
 import SvgIcon from '@/components/SvgIcon'
 import useAutoTable from '@/hooks/useAutoTable'
 import consts from '@/consts'
 import { queryContact } from '@/services/contact'
+import styles from './index.less'
 
 const Contact = props => {
   const [x, y] = useAutoTable(props.collapsed)
@@ -205,7 +206,8 @@ const Contact = props => {
       title: '乘车',
       dataIndex: 'ride',
       key: 'ride',
-      width: 100
+      width: 100,
+      ellipsis: true
     },
     {
       title: '地标',
@@ -302,14 +304,11 @@ const Contact = props => {
     options()
   }, [])
 
-
   return (
     // <PageHeaderWrapper></PageHeaderWrapper>
     <div>
       <div className="zh-pd-24">
-        <Cascader
-          onChange={onChange}
-        />
+        <Cascader onChange={onChange} />
       </div>
       <ProTable
         rowKey={record => record.id}
@@ -342,7 +341,7 @@ const Contact = props => {
 }
 
 export default connect(({ global, loading }) => ({
-// export default connect(({ contact, global, loading })
+  // export default connect(({ contact, global, loading })
   // contactName: contact,
   // data: contact.data,
   // total: contact.total,

+ 5 - 0
src/pages/Customer/Contact/index.less

@@ -0,0 +1,5 @@
+.tableContent {
+  :global(.ant-table-body) {
+    height: 700px;
+  }
+}