样式优化整合
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { UnorderedListOutlined } from "@ant-design/icons"
|
||||
import ProTable, { ActionType, ProColumns } from "@ant-design/pro-table"
|
||||
import tableProps from '@/utils/tableProps';
|
||||
import { Button, Card, Divider, Drawer, message, Modal, Spin, Table } from "antd"
|
||||
import React, { useEffect, useRef, useState } from "react"
|
||||
import BiddingAnnouncement from "./components/BiddingAnnouncement"
|
||||
@ -605,9 +606,7 @@ const BiddingAnnouncementList: React.FC<{}> = (props) => {
|
||||
pageSize: dataSourceNum,
|
||||
current: dataSourcePage,
|
||||
total: dataSourceAllNum,
|
||||
defaultPageSize: 10,
|
||||
showQuickJumper: true,
|
||||
pageSizeOptions: ['10', '20', '50'],
|
||||
...tableProps.pagination,
|
||||
onShowSizeChange: ((current, size) => setDataSourceNum(size)),
|
||||
onChange: ((page, pageSize) => setDataSourcePage(page))
|
||||
}}
|
||||
@ -634,7 +633,7 @@ const BiddingAnnouncementList: React.FC<{}> = (props) => {
|
||||
options={false}
|
||||
columns={ChangeNoticeListcolumns}
|
||||
dataSource={ChangeNoticeListdataSource}
|
||||
pagination={{ hideOnSinglePage: true, pageSize: 50 }}
|
||||
pagination={{ ...tableProps.pagination, pageSize: 50 }}
|
||||
loading={pageloading}
|
||||
/>
|
||||
</Modal>
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { UnorderedListOutlined } from "@ant-design/icons"
|
||||
import ProTable, { ActionType, ProColumns } from "@ant-design/pro-table"
|
||||
import tableProps from '@/utils/tableProps';
|
||||
import { Button, Card, Divider, message, Spin } from "antd"
|
||||
import React, { useEffect, useRef, useState } from "react"
|
||||
import BiddingDocument from "./components/BiddingDocument"
|
||||
@ -213,8 +214,7 @@ const BiddingDocumentList: React.FC<{}> = (props) => {
|
||||
pageSize: dataSourceNum,
|
||||
current: dataSourcePage,
|
||||
total: dataSourceAllNum,
|
||||
showQuickJumper: true,
|
||||
pageSizeOptions: ['10', '20', '50'],
|
||||
...tableProps.pagination,
|
||||
onShowSizeChange: ((current, size) => setDataSourceNum(size)),
|
||||
onChange: ((page, pageSize) => setDataSourcePage(page))
|
||||
}}
|
||||
|
@ -1,6 +1,7 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Modal, Spin } from 'antd';
|
||||
import ProTable from "@ant-design/pro-table";
|
||||
import tableProps from '@/utils/tableProps';
|
||||
import { getProMethod } from '@/utils/session';
|
||||
|
||||
|
||||
@ -87,6 +88,7 @@ const FinisCalibrationListModal: React.FC<FinisCalibrationListProps> = (props) =
|
||||
disabled: record.qstate === "1",
|
||||
}),
|
||||
}}
|
||||
{...tableProps}
|
||||
/>
|
||||
</Spin>
|
||||
</Modal>
|
||||
|
@ -1,6 +1,7 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Modal, Spin } from 'antd';
|
||||
import ProTable from "@ant-design/pro-table";
|
||||
import tableProps from '@/utils/tableProps';
|
||||
|
||||
|
||||
interface JgtzsModalProps {
|
||||
@ -93,7 +94,7 @@ const JgtzsModal: React.FC<JgtzsModalProps> = (props) => {
|
||||
selectedRowKeys: selectedRowsState,
|
||||
onChange: (_, selectedRows) => setSelectedRows(_),
|
||||
}}
|
||||
pagination={{ defaultPageSize: 10, showSizeChanger: false }}
|
||||
{...tableProps}
|
||||
/>
|
||||
</Spin>
|
||||
</Modal>
|
||||
|
@ -1,6 +1,7 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Button, Card, Collapse, Input, List, message, Space, Spin } from "antd";
|
||||
import ProTable from "@ant-design/pro-table";
|
||||
import tableProps from '@/utils/tableProps';
|
||||
import { getProId, getProMethod } from "@/utils/session";
|
||||
import { getURLInformation } from '@/utils/CommonUtils';
|
||||
import JgtzsModal from './components/JgtzsModal';
|
||||
@ -294,7 +295,7 @@ const ResultNotice: React.FC<any> = (props) => {
|
||||
columns={columns}
|
||||
dataSource={item1.reviewList}
|
||||
toolBarRender={() => BtnMsg(item, item1)}
|
||||
pagination={{ defaultPageSize: 10, showSizeChanger: false }}
|
||||
{...tableProps}
|
||||
/>
|
||||
)}
|
||||
>
|
||||
|
@ -1,6 +1,7 @@
|
||||
import React, { useRef, useState } from 'react';
|
||||
import { Button, Modal, Form, Input, Spin } from 'antd';
|
||||
import ProTable, { ActionType } from '@ant-design/pro-table';
|
||||
import tableProps from '@/utils/tableProps';
|
||||
import { getJgtzsValues, getSubViewNoticeList } from '../service';
|
||||
import PreviewJgtzsModal from './PreviewJgtzsModal';
|
||||
import { getSessionUserData, getProId, getProMethod } from '@/utils/session';
|
||||
@ -124,7 +125,7 @@ const SubViewNotice: React.FC<any> = (props) => {
|
||||
)
|
||||
}
|
||||
size="small"
|
||||
pagination={{defaultPageSize: 10,showSizeChanger: false}}
|
||||
{...tableProps}
|
||||
/>
|
||||
{previewJgtzsFormVisible ? (
|
||||
<PreviewJgtzsModal
|
||||
|
Reference in New Issue
Block a user