|
|
|
@ -175,7 +175,7 @@ export default observer((props) => {
|
|
|
|
|
};
|
|
|
|
|
const onValuesChange = (...args) => {
|
|
|
|
|
const [changedValues, allValues] = args;
|
|
|
|
|
console.log('form onValuesChange', Object.keys(changedValues), args);
|
|
|
|
|
// console.log('form onValuesChange', Object.keys(changedValues), args);
|
|
|
|
|
|
|
|
|
|
const dest = formValuesMapper(allValues);
|
|
|
|
|
searchFormStore.setFormValues(allValues);
|
|
|
|
@ -232,28 +232,28 @@ function getFields(props) {
|
|
|
|
|
'HTBusinessUnits',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name={`HTBusinessUnits`} initialValue={at(props, 'initialValue.HTBusinessUnits')[0] || undefined}>
|
|
|
|
|
<BusinessUnitSelect {...fieldProps.HTBusinessUnits} />
|
|
|
|
|
<BusinessUnitSelect {...fieldProps.HTBusinessUnits} labelInValue={true} />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
),
|
|
|
|
|
item(
|
|
|
|
|
'businessUnits',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name={`businessUnits`} initialValue={at(props, 'initialValue.businessUnits')[0] || undefined}>
|
|
|
|
|
<BusinessSelect {...fieldProps.businessUnits} />
|
|
|
|
|
<BusinessSelect {...fieldProps.businessUnits} labelInValue={true} />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
),
|
|
|
|
|
item(
|
|
|
|
|
'DepartmentList',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name={`DepartmentList`} initialValue={at(props, 'initialValue.DepartmentList')[0] || (fieldProps?.DepartmentList?.show_all ? { key: 'ALL', label: '所有小组' } : undefined)}>
|
|
|
|
|
<GroupSelect {...fieldProps.DepartmentList} />
|
|
|
|
|
<GroupSelect {...fieldProps.DepartmentList} labelInValue={true} />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
),
|
|
|
|
|
item(
|
|
|
|
|
'WebCode',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name={`WebCode`} initialValue={at(props, 'initialValue.WebCode')[0] || (fieldProps?.WebCode?.show_all ? { key: 'ALL', label: '所有来源' } : undefined)}>
|
|
|
|
|
<SiteSelect {...fieldProps.WebCode} />
|
|
|
|
|
<SiteSelect {...fieldProps.WebCode} labelInValue={true} />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
),
|
|
|
|
|
item(
|
|
|
|
@ -277,7 +277,7 @@ function getFields(props) {
|
|
|
|
|
'DateType',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name={`DateType`} initialValue={at(props, 'initialValue.DateType')[0] || { key: 'applyDate', label: '提交日期' }}>
|
|
|
|
|
<DateTypeSelect />
|
|
|
|
|
<DateTypeSelect labelInValue={true} />
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
2
|
|
|
|
|
),
|
|
|
|
|