Преглед изворни кода

feat: 翻页器增加快速跳转

lanjianrong пре 4 година
родитељ
комит
956cd192b0

+ 1 - 0
src/pages/Customer/Business/index.tsx

@@ -178,6 +178,7 @@ const Business = ({ dispatch, groupList, shouldUpdate, loading, refreshGroupList
               onPermChange={handleOnPermChange}
               params={state.params}
               rowKey={record => record.id}
+              pagination={{ showQuickJumper: true }}
               columns={columns}
               request={async (params, sort, filter) => {
                 if (!state.params.businessGroupId) {

+ 2 - 1
src/pages/Customer/Client/index.tsx

@@ -334,7 +334,7 @@ const Client = props => {
       dataIndex: 'ride',
       key: 'ride',
       ellipsis: true,
-      width: 80,
+      width: 120,
       search: false
     },
     {
@@ -545,6 +545,7 @@ const Client = props => {
           actionRef={tRef}
           rowKey={record => record.id}
           columns={columns}
+          pagination={{ showQuickJumper: true }}
           request={async (params, sort, filter) => {
             const {
               code = -1,

+ 6 - 2
src/pages/Customer/Company/index.tsx

@@ -298,6 +298,7 @@ const Company = props => {
       dataIndex: 'ride',
       key: 'ride',
       search: false,
+      ellipsis: true,
       width: 80
     },
     {
@@ -312,14 +313,16 @@ const Company = props => {
       dataIndex: 'stay',
       key: 'stay',
       search: false,
-      width: 80
+      ellipsis: true,
+      width: 120
     },
     {
       title: '备注',
       dataIndex: 'remarks',
       key: 'remarks',
       search: false,
-      width: 80
+      ellipsis: true,
+      width: 120
     },
     {
       title: '创建人',
@@ -468,6 +471,7 @@ const Company = props => {
           mainMenuType="customer"
           columnStateType="COMPANY"
           params={state.params}
+          pagination={{ showQuickJumper: true }}
           request={async (params, sort, filter) => {
             const { code = -1, data: { customer = [], total = 0 } = { customer: [], total: 0 } } =
               await queryCompany({