|
@@ -27,7 +27,7 @@ class ModalIntegralRecord extends React.Component {
|
27
|
27
|
|
28
|
28
|
// 挂载之后
|
29
|
29
|
componentDidMount() {
|
30
|
|
- // this.getList({ pageNumber: 1, pageSize: 5 })
|
|
30
|
+ this.getList({ pageNumber: 1, pageSize: 5 })
|
31
|
31
|
}
|
32
|
32
|
|
33
|
33
|
componentDidUpdate(preProps, preState) {
|
|
@@ -77,7 +77,6 @@ class ModalIntegralRecord extends React.Component {
|
77
|
77
|
|
78
|
78
|
// 积分类型
|
79
|
79
|
showChangeType(str) {
|
80
|
|
-
|
81
|
80
|
switch (str) {
|
82
|
81
|
case 'goods':
|
83
|
82
|
return '兑换商品'
|
|
@@ -126,7 +125,7 @@ class ModalIntegralRecord extends React.Component {
|
126
|
125
|
title: '发生时间',
|
127
|
126
|
dataIndex: 'createDate',
|
128
|
127
|
key: 'createDate',
|
129
|
|
- render: (_, record) => { moment(record.createDate).format('YYYY-MM-DD') },
|
|
128
|
+ render: (text, records) => { moment(records.createDate).format('YYYY-MM-DD') },
|
130
|
129
|
},
|
131
|
130
|
]
|
132
|
131
|
return (
|
|
@@ -140,7 +139,7 @@ class ModalIntegralRecord extends React.Component {
|
140
|
139
|
// onOk={() => this.handleOk()}
|
141
|
140
|
onCancel={(e) => this.handleCancel(e)}
|
142
|
141
|
>
|
143
|
|
- <Table dataSource={this.state.dataSource.result.records} rowKey="integralrecord" columns={columns} pagination={{ total: this.state.dataSource.result.total, onChange: e => this.onChange(e) }} />
|
|
142
|
+ <Table dataSource={this.state.dataSource.result.records} columns={columns} pagination={{ total: this.state.dataSource.result.total, onChange: e => this.onChange(e) }} />
|
144
|
143
|
</Modal>
|
145
|
144
|
</>
|
146
|
145
|
);
|