|
@@ -2,7 +2,7 @@ import {FilterButtonGroup, FilterField, FilterSelect} from '@components';
|
|
|
import {Card, Row} from 'antd';
|
|
|
import {FC} from 'react';
|
|
|
import {useExport, useSearch} from './hooks';
|
|
|
-import {useDepartmentOptions, useFilterField, useTableSearch} from '@hooks';
|
|
|
+import {useDictionaryOptions, useFilterField, useTableSearch} from '@hooks';
|
|
|
import {searchContext} from '../context';
|
|
|
|
|
|
const Filter: FC = function() {
|
|
@@ -11,7 +11,7 @@ const Filter: FC = function() {
|
|
|
type: '',
|
|
|
name: '',
|
|
|
});
|
|
|
- const options = useDepartmentOptions(true);
|
|
|
+ const options = useDictionaryOptions('部门字典', true);
|
|
|
const onSearch = useSearch({name, department, type});
|
|
|
const [isSearching] = useTableSearch(searchContext);
|
|
|
const [isExporting, onExport] = useExport();
|