表格应用替换
This commit is contained in:
parent
a91ce27139
commit
314ffff8ec
|
|
@ -1,20 +1,20 @@
|
|||
import React from 'react'
|
||||
import { WeaTable } from 'ecCom'
|
||||
import { Spin } from 'antd'
|
||||
import React from "react";
|
||||
import { WeaTable } from "ecCom";
|
||||
import { Spin, Table } from "antd";
|
||||
|
||||
export default class CustomTable extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
{
|
||||
this.props.loading ?
|
||||
<div style={{textAlign: 'center'}}>
|
||||
<Spin />
|
||||
</div>
|
||||
:
|
||||
<WeaTable {...this.props}/>
|
||||
}
|
||||
render() {
|
||||
const { loading, isWeaTable = true } = this.props;
|
||||
return (
|
||||
<div>
|
||||
{loading
|
||||
? <div style={{ textAlign: "center" }}>
|
||||
<Spin />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
: isWeaTable
|
||||
? <WeaTable {...this.props} />
|
||||
: <Table {...this.props} size="middle" className="wea-new-table" />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ export default class SalaryDetail extends React.Component {
|
|||
}
|
||||
|
||||
if(result.dataIndex === "taxAgentName" || result.dataIndex === "username" || result.dataIndex === "departmentName") {
|
||||
// result.fixed = "left"
|
||||
result.fixed = "left"
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
@ -162,6 +162,7 @@ export default class SalaryDetail extends React.Component {
|
|||
this.pageInfo.current = value
|
||||
this.handleDataPageChange(value)
|
||||
}}
|
||||
isWeaTable={false}
|
||||
onShowSizeChange={(current, pageSize) => {
|
||||
this.pageInfo = {current, pageSize}
|
||||
this.handleShowSizeChange(this.pageInfo)
|
||||
|
|
|
|||
|
|
@ -449,6 +449,7 @@ export default class UserSure extends React.Component {
|
|||
this.pageInfo.current = value;
|
||||
this.handleUserListPageChange(value);
|
||||
}}
|
||||
isWeaTable={false}
|
||||
onShowSizeChange={(current, pageSize) => {
|
||||
this.pageInfo = { current, pageSize };
|
||||
this.handleShowSizeChange(this.pageInfo);
|
||||
|
|
@ -456,6 +457,7 @@ export default class UserSure extends React.Component {
|
|||
/>}
|
||||
{this.state.selectedKey == 1 &&
|
||||
<CustomPaginationTable
|
||||
isWeaTable={false}
|
||||
dataSource={reducedemployeeListDataSource}
|
||||
columns={reducedemployeeListColumns}
|
||||
total={reducedemployeeListPageInfo.total}
|
||||
|
|
|
|||
Loading…
Reference in New Issue