表单的返回值处理

perf/export-docx
Lei OT 1 year ago
parent cbfb2749d0
commit ce921312af

@ -52,6 +52,7 @@ const SearchForm = ({ initialValue, onSubmit, onReset, confirmText, formName, fo
const formValuesMapper = (values) => { const formValuesMapper = (values) => {
const destinationObject = { const destinationObject = {
'keyword': { key: 'keyword', transform: (value) => value || '' }, 'keyword': { key: 'keyword', transform: (value) => value || '' },
'username': { key: 'username', transform: (value) => value || '' },
'referenceNo': { key: 'referenceNo', transform: (value) => value || '' }, 'referenceNo': { key: 'referenceNo', transform: (value) => value || '' },
'dates': [ 'dates': [
{ key: 'startdate', transform: (arrVal) => (arrVal ? arrVal[0].format(DATE_FORMAT) : '') }, { key: 'startdate', transform: (arrVal) => (arrVal ? arrVal[0].format(DATE_FORMAT) : '') },

Loading…
Cancel
Save