| | |
| | | <!-- |
| | | * @Date: 2025-06-20 20:48:17 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2025-07-07 22:55:12 |
| | | * @LastEditTime: 2025-07-07 23:00:25 |
| | | * @FilePath: /mdmweb/src/views/flowmgr/programexport.vue |
| | | --> |
| | | <template> |
| | |
| | | import NProgress from 'nprogress'; |
| | | import { exportBlobPost } from '@/api/common'; |
| | | import { getToken } from '@/utils/auth'; |
| | | import { downloadXls } from '@/utils/util'; |
| | | import { downloadFile } from '@/utils/util'; |
| | | export default { |
| | | name: 'programexport', |
| | | data() { |
| | |
| | | {}, |
| | | {ids: this.selection.map(item => item.id)}, |
| | | ).then(res => { |
| | | downloadXls(res.data, `导出机床回传程序${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`); |
| | | console.log(res); |
| | | downloadFile(res.data, `导出DNC${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.zip`); |
| | | NProgress.done(); |
| | | }); |
| | | }); |