You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.0 KiB
JavaScript
23 lines
1.0 KiB
JavaScript
import { observer } from 'mobx-react';
|
|
import KPISettings from './KPISettings';
|
|
import { bu, KPISubjects } from '../../libs/ht';
|
|
|
|
const sort = { DateType: 10, years: 11 };
|
|
const yearInitial = {};
|
|
const searchFormItemSet = {
|
|
'bu': { shows: ['DateType', 'years', 'HTBusinessUnits'], sort },
|
|
'dept': { shows: ['DateType', 'years', 'DepartmentList'], sort, fieldProps: { DepartmentList: { allowClear: true,isLeaf: true, show_all: false } }, },
|
|
'operator': { shows: ['DateType', 'years', 'DepartmentList', 'operator'], fieldProps: { DepartmentList: { allowClear: true, isLeaf: true }, operator: { param: { } } }, sort }, // is_assign: 1
|
|
'destination': { shows: ['DateType', 'years', 'city'], sort }, // 'country', , 'globalCity'
|
|
'country': { shows: ['DateType', 'years', 'country'], sort },
|
|
};
|
|
|
|
export default observer((props) => {
|
|
const searchProps = searchFormItemSet?.[props.curObject] || { shows: ['DateType', 'years',] , sort };
|
|
return (
|
|
<>
|
|
<KPISettings {...{ searchProps, KPISubjects }} {...props} />
|
|
</>
|
|
);
|
|
});
|