|
@@ -82,7 +82,16 @@ function record(props) {
|
82
|
82
|
const changePageNum = (pageNumber) => {
|
83
|
83
|
props.form.validateFields((err, values) => {
|
84
|
84
|
if (!err) {
|
85
|
|
- getList({ pageNum: pageNumber, pageSize: 10, ...values })
|
|
85
|
+ let {shareTime,receiveTime, ...submitValue} = values
|
|
86
|
+ if(null != shareTime && shareTime.length > 0){
|
|
87
|
+ const [startCreateDate, endCreateDate] = shareTime
|
|
88
|
+ submitValue.startCreateDate = moment(startCreateDate).format('YYYY-MM-DD');
|
|
89
|
+ submitValue.endCreateDate = moment(endCreateDate).format('YYYY-MM-DD');
|
|
90
|
+ }else{
|
|
91
|
+ submitValue.startCreateDate = null
|
|
92
|
+ submitValue.endCreateDate = null
|
|
93
|
+ }
|
|
94
|
+ getList({ pageNum: pageNumber, pageSize: 10, ...submitValue })
|
86
|
95
|
}
|
87
|
96
|
});
|
88
|
97
|
}
|