yangys
2025-08-04 0cc5d0c1cfe9f1a1b87575fefbc0451b6192633a
src/views/flowmgr/programexport.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2025-06-20 20:48:17
 * @LastEditors: gaoshp
 * @LastEditTime: 2025-07-07 23:00:25
 * @LastEditTime: 2025-07-08 20:46:33
 * @FilePath: /mdmweb/src/views/flowmgr/programexport.vue
-->
<template>
@@ -171,14 +171,19 @@
                type: 'warning',
            }).then(() => {
                console.log(this.selection)
            if(this.selection == null || this.selection.length == 0){
               this.$message.error('请至少选择一条导出');
               return;
            }
                NProgress.start();
                exportBlobPost(
                    `/blade-mdm/program/exchange/export-dnc`,
                    {},
                    {ids: this.selection.map(item => item.id)},
                ).then(res => {
                    console.log(res);
                    downloadFile(res.data, `导出DNC${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.zip`);
                    let name = res.headers['content-disposition'].split('filename=')[1]
                    console.log(res.headers['content-disposition'].split('filename=')[1]);
                    downloadFile(res.data, `导出DNC-${name}`);
                    NProgress.done();
                });
            });