|
|
|
@ -58,6 +58,7 @@ export default observer((props) => {
|
|
|
|
|
KPIStore.setSettingYear(formVal?.year?.year() || KPIStore.settingYear);
|
|
|
|
|
// console.log('invoke on search', obj, formVal, getkpiParam);
|
|
|
|
|
if (curObject === 'operator') {
|
|
|
|
|
KPIStore.setListLoading(true);
|
|
|
|
|
const searchOperator = await DictDataStore.fetchDictData('operator', {
|
|
|
|
|
is_assign: 1,
|
|
|
|
|
dept_id: (obj?.DepartmentList || '').replace('ALL', ''),
|
|
|
|
@ -71,11 +72,12 @@ export default observer((props) => {
|
|
|
|
|
delete getkpiParam.dept_id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
getKPIList(getkpiParam);
|
|
|
|
|
await getKPIList(getkpiParam);
|
|
|
|
|
};
|
|
|
|
|
const getKPIList = (getkpiParam) => {
|
|
|
|
|
KPIStore.getList(getkpiParam).then((data) => {
|
|
|
|
|
// setDataSource(data);
|
|
|
|
|
const getKPIList = async (getkpiParam) => {
|
|
|
|
|
const _data = await KPIStore.getList(getkpiParam);
|
|
|
|
|
// KPIStore.getList(getkpiParam).then((data) => {
|
|
|
|
|
// // setDataSource(data);
|
|
|
|
|
if (objectFilterKey?.[curObject]) {
|
|
|
|
|
const selectItem = searchFormStore.formValues[objectFilterKey[curObject]];
|
|
|
|
|
if (selectItem) {
|
|
|
|
@ -83,7 +85,7 @@ export default observer((props) => {
|
|
|
|
|
}
|
|
|
|
|
setRetObjects(flush([selectItem]));
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// });
|
|
|
|
|
};
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|