| | |
| | | |
| | | import { Modal, Switch, Upload } from 'ant-design-vue'; |
| | | |
| | | import { downloadImportTemplate, equImportData } from '#/api/eims/equ'; |
| | | import { downloadImportTemplate, fixtureImportData } from '#/api/eims/fixture'; |
| | | import { commonDownloadExcel } from '#/utils/file/download'; |
| | | |
| | | const emit = defineEmits<{ reload: [] }>(); |
| | |
| | | file: fileList.value[0]!.originFileObj as Blob, |
| | | updateSupport: unref(checked), |
| | | }; |
| | | const { code, msg } = await equImportData(data); |
| | | const { code, msg } = await fixtureImportData(data); |
| | | let modal = Modal.success; |
| | | if (code === 200) { |
| | | emit('reload'); |
| | |
| | | <BasicModal |
| | | :close-on-click-modal="false" |
| | | :fullscreen-button="false" |
| | | title="设备导入" |
| | | title="工具导入" |
| | | > |
| | | <!-- z-index不设置会遮挡模板下载loading --> |
| | | <!-- 手动处理 而不是放入文件就上传 --> |