From fb156344add43a710a3f6ba168fcc77ef1095421 Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期五, 11 七月 2025 09:59:04 +0800
Subject: [PATCH] 1
---
src/views/flowmgr/programexport.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/flowmgr/programexport.vue b/src/views/flowmgr/programexport.vue
index cbf2b00..dfc6062 100644
--- a/src/views/flowmgr/programexport.vue
+++ b/src/views/flowmgr/programexport.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2025-06-20 20:48:17
* @LastEditors: gaoshp
- * @LastEditTime: 2025-07-07 22:51:10
+ * @LastEditTime: 2025-07-08 20:46:33
* @FilePath: /mdmweb/src/views/flowmgr/programexport.vue
-->
<template>
@@ -27,6 +27,7 @@
import NProgress from 'nprogress';
import { exportBlobPost } from '@/api/common';
import { getToken } from '@/utils/auth';
+ import { downloadFile } from '@/utils/util';
export default {
name: 'programexport',
data() {
@@ -64,11 +65,11 @@
column: [
{
label: '鍥惧彿',
- prop: 'partNo',
+ prop: 'drawingNo',
},
{
label: '鍥惧彿鐗堟',
- prop: 'partNoEdition',
+ prop: 'drawingNoEdition',
},
{
label: '宸ュ簭鍚嶇О',
@@ -176,7 +177,9 @@
{},
{ids: this.selection.map(item => item.id)},
).then(res => {
- downloadXls(res.data, `瀵煎嚭鏈哄簥鍥炰紶绋嬪簭${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
+ 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();
});
});
--
Gitblit v1.9.3