this.props.form.validateFields((err, values) => {
if (!err) {
var r = '';
for (let key in values) if (values[key]) {
if (key === 'pubDate') {
const startSignDate = moment(values.pubDate[0]).format('YYYY-MM-DD');
const endSignDate = moment(values.pubDate[1]).format('YYYY-MM-DD');
r += `&startSignDate=${startSignDate}&endSignDate=${endSignDate}`;
} else {
r += `&${key}=${values[key]}`
}
}
this.queryData(r);
}
});