|
@@ -1,11 +1,11 @@
|
|
import React, { Component } from 'react';
|
|
import React, { Component } from 'react';
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
import { connect } from 'dva';
|
|
import { connect } from 'dva';
|
|
-import { Card, message, Badge } from 'antd';
|
|
|
|
|
|
+import { Card, Badge } from 'antd';
|
|
import { StandardTableList } from '../../../components/AXList';
|
|
import { StandardTableList } from '../../../components/AXList';
|
|
import { addRowKey } from '../../../utils/utils';
|
|
import { addRowKey } from '../../../utils/utils';
|
|
import styles from './AccountsTerminals.less';
|
|
import styles from './AccountsTerminals.less';
|
|
-const Message = message;
|
|
|
|
|
|
+
|
|
|
|
|
|
@connect(({ loading, accounts }) => ({
|
|
@connect(({ loading, accounts }) => ({
|
|
accounts,
|
|
accounts,
|
|
@@ -21,20 +21,19 @@ export default class TerminalsAccountsPage extends Component {
|
|
Queryers: (state || {}).Queryers, // 查询的条件参数
|
|
Queryers: (state || {}).Queryers, // 查询的条件参数
|
|
};
|
|
};
|
|
}
|
|
}
|
|
-
|
|
|
|
componentWillMount() {
|
|
componentWillMount() {
|
|
- console.log('TerminalsAccountsPage');
|
|
|
|
-
|
|
|
|
this.props.dispatch({
|
|
this.props.dispatch({
|
|
type: 'accounts/fetchTerminalsList',
|
|
type: 'accounts/fetchTerminalsList',
|
|
payload: { ...this.state.Queryers }
|
|
payload: { ...this.state.Queryers }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ // 下载
|
|
handleDownloadOperation = () => {
|
|
handleDownloadOperation = () => {
|
|
this.props.dispatch({
|
|
this.props.dispatch({
|
|
type: 'accounts/fetchTerminalsExcel'
|
|
type: 'accounts/fetchTerminalsExcel'
|
|
})
|
|
})
|
|
};
|
|
};
|
|
|
|
+
|
|
handleFilterOperation = (params, states) => {
|
|
handleFilterOperation = (params, states) => {
|
|
this.setState({
|
|
this.setState({
|
|
UIParams: states,
|
|
UIParams: states,
|
|
@@ -47,15 +46,6 @@ export default class TerminalsAccountsPage extends Component {
|
|
},
|
|
},
|
|
});
|
|
});
|
|
};
|
|
};
|
|
- // 显示最近30天的数据
|
|
|
|
- handleOverdueOperation = () => {
|
|
|
|
- this.props.dispatch({
|
|
|
|
- type: 'accounts/fetchTerminalsList',
|
|
|
|
- payload: {
|
|
|
|
- fastExpired: 1,
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- };
|
|
|
|
render() {
|
|
render() {
|
|
const { loading,accounts } = this.props;
|
|
const { loading,accounts } = this.props;
|
|
const { list, totalSize, pageSize, pageNo } = accounts;
|
|
const { list, totalSize, pageSize, pageNo } = accounts;
|
|
@@ -66,8 +56,6 @@ export default class TerminalsAccountsPage extends Component {
|
|
field: 'code',
|
|
field: 'code',
|
|
}],
|
|
}],
|
|
};
|
|
};
|
|
-
|
|
|
|
-
|
|
|
|
const pagination = {
|
|
const pagination = {
|
|
pageNo,
|
|
pageNo,
|
|
pageSize,
|
|
pageSize,
|
|
@@ -142,7 +130,6 @@ export default class TerminalsAccountsPage extends Component {
|
|
header={{
|
|
header={{
|
|
basicSearch,
|
|
basicSearch,
|
|
onFilterClick: this.handleFilterOperation,
|
|
onFilterClick: this.handleFilterOperation,
|
|
- onOverdue: this.handleOverdueOperation,
|
|
|
|
onDownload: this.handleDownloadOperation,
|
|
onDownload: this.handleDownloadOperation,
|
|
}}
|
|
}}
|
|
footer={{
|
|
footer={{
|