From 04741e7f8c835197dfca889c0a01723ad60c451d Mon Sep 17 00:00:00 2001 From: yangyuanshuai Date: Mon, 4 Nov 2024 14:41:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9F=A5=E8=AF=A2=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + .../RepTemplate/RepTemplate/index.ts | 5 +++ .../PreViewFile/src/PreViewFile.vue | 5 --- .../reporting/RepTemplate/RepTemplate.vue | 13 ++++--- .../RepTemplate/components/Write.vue | 35 +++++++++++++++---- 5 files changed, 42 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 8ee723c..23002af 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "element-plus": "^2.4.0", "file-saver": "^2.0.5", "lodash-es": "^4.17.21", + "mammoth": "^1.8.0", "mitt": "^3.0.1", "mockjs": "^1.1.0", "nprogress": "^0.2.0", diff --git a/src/api/reporting/RepTemplate/RepTemplate/index.ts b/src/api/reporting/RepTemplate/RepTemplate/index.ts index 9ebe720..7bc0a45 100644 --- a/src/api/reporting/RepTemplate/RepTemplate/index.ts +++ b/src/api/reporting/RepTemplate/RepTemplate/index.ts @@ -36,6 +36,11 @@ export const queryRepTemplateApi = (tId?: string): Promise => { return request.postJson({ url: '/RepTemplate/spi/reporting/RepTemplate/RepTemplateQueryOne', data: { tId } }); }; +/** 查询文件流 */ +export const queryFileFlowRepTemplateApi = (tId?: string): Promise => { + return request.postJson({ url: '/RepTemplate/spi/reporting/RepTemplate/RepTemplateQueryOneFileFlow', data: { tId } }); +}; + /** 同步导入 */ export const importExcelApiUrl = '/RepTemplate/sui/reporting/RepTemplate/RepTemplateImportExcel'; diff --git a/src/components/PreViewFile/src/PreViewFile.vue b/src/components/PreViewFile/src/PreViewFile.vue index a91a9a1..c61aca0 100644 --- a/src/components/PreViewFile/src/PreViewFile.vue +++ b/src/components/PreViewFile/src/PreViewFile.vue @@ -1,19 +1,14 @@