| | |
| | | import type { PageParam, PageResult } from '..\..\..\..\packages\effects\request\src'; |
| | | import type { PageParam, PageResult } from '@vben/request'; |
| | | |
| | | import { requestClient } from '#/api/request'; |
| | | |
| | |
| | | export function exportTool(params: any) { |
| | | return requestClient.download('/mes/tm/tool/export-excel', { params }); |
| | | } |
| | | |
| | | /** 下载工具导入模板 */ |
| | | export function importToolTemplate() { |
| | | return requestClient.download('/mes/tm/tool/get-import-template'); |
| | | } |
| | | |
| | | /** 导入工具 */ |
| | | export function importTool(file: File, updateSupport: boolean) { |
| | | return requestClient.upload( |
| | | `/mes/tm/tool/import?updateSupport=${updateSupport}`, |
| | | { file }, |
| | | ); |
| | | } |