| | |
| | | import CheckIcon from '@mui/icons-material/Check'; |
| | | import request from '@/utils/request' |
| | | import { compDirectChoices } from "./compDirect"; |
| | | import ImportButton from '../components/ImportButton'; |
| | | import { useLocImport } from './useLocImport'; |
| | | |
| | | const IMPORT_TEMP_URL = '/imports/loc_import_template.xlsx'; |
| | | |
| | | const LocInit = (props) => { |
| | | const { open, setOpen } = props; |
| | |
| | | <DialogActions sx={{ position: 'sticky', bottom: 0, backgroundColor: 'background.paper', zIndex: 1000 }}> |
| | | <Toolbar sx={{ width: '100%', justifyContent: 'space-between' }} > |
| | | <Button variant="contained" type="submit" startIcon={<CheckIcon />}>{translate('ra.action.confirm')}</Button> |
| | | <ImportButton type="xlsx" importTemp={IMPORT_TEMP_URL} useImport={useLocImport} onceBatch={10} /> |
| | | </Toolbar> |
| | | </DialogActions> |
| | | </Form> |