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.
24 lines
899 B
React
24 lines
899 B
React
2 years ago
|
import { useContext } from 'react';
|
||
|
import { observer } from 'mobx-react';
|
||
|
// import { stores_Context } from '../config';
|
||
|
import { Table } from 'antd';
|
||
|
import KPISettings from './KPISettings';
|
||
|
import { bu, KPISubjects } from '../../libs/ht';
|
||
|
|
||
|
const searchFormItemSet = {
|
||
|
'bu': { shows: ['DateType', 'years', 'HTBusinessUnits'] },
|
||
|
'dept': { shows: ['DateType', 'years', 'DepartmentList'], fieldProps: { DepartmentList: { allowClear: true } } },
|
||
|
'operator': { shows: ['DateType', 'years', 'DepartmentList'] }, // , 'operator'
|
||
|
'destination': { shows: ['DateType', 'years', 'destination'] },
|
||
|
'country': { shows: ['DateType', 'years', 'country'] },
|
||
|
};
|
||
|
|
||
|
export default observer((props) => {
|
||
|
const searchProps = searchFormItemSet?.[props.curObject] || {};
|
||
|
return (
|
||
|
<>
|
||
|
<KPISettings {...{ searchProps, objects: bu, KPISubjects }} {...props} />
|
||
|
</>
|
||
|
);
|
||
|
});
|