From 681fc3b5cb3eddc61930c42fe073a86c2c6e6dbe Mon Sep 17 00:00:00 2001 From: liujun Date: Sat, 3 Feb 2024 12:59:35 +0800 Subject: [PATCH 1/5] =?UTF-8?q?13969=20=E6=89=93=E5=9B=9E=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E5=90=8E=20=E6=89=93=E5=9B=9E=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E4=B8=AA=E4=B8=8D=E8=83=BD=E8=BE=93=E5=85=A5=E6=96=87=E5=AD=97?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xgf/flow/components/sendUtil.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/xgf/flow/components/sendUtil.vue b/src/views/xgf/flow/components/sendUtil.vue index 61dc14e..90b56fc 100644 --- a/src/views/xgf/flow/components/sendUtil.vue +++ b/src/views/xgf/flow/components/sendUtil.vue @@ -225,6 +225,7 @@ export default { APPOINT_DEPARTMENT_NAME: '', APPOINT_USER_ID: '', APPOINT_USER_NAME: '', + OPINION: '', user: '', list: [], tm: new Date().getTime() From a372a7b0e04195efb990a611955388c2f94756ef Mon Sep 17 00:00:00 2001 From: liujun Date: Sun, 4 Feb 2024 13:41:56 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E7=9B=91=E7=AE=A1=E7=AB=AF=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=A7=94=E6=89=98=E4=B9=A6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/useDownloadFile.js | 16 +++++++++++++++ .../xgf/flowApply/components/userInfo.vue | 20 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/utils/useDownloadFile.js diff --git a/src/utils/useDownloadFile.js b/src/utils/useDownloadFile.js new file mode 100644 index 0000000..faa22ac --- /dev/null +++ b/src/utils/useDownloadFile.js @@ -0,0 +1,16 @@ +export default async function useDownloadFile(url) { + if (!url) throw new Error('没有下载地址') + fetch(config.fileUrl + url) + .then((res) => res.blob()) + .then((blob) => { + const a = document.createElement('a') + document.body.appendChild(a) + a.style.display = 'none' + const url = window.URL.createObjectURL(blob) + a.href = url + a.download = url.substring(url.lastIndexOf('/') + 1) + a.click() + document.body.removeChild(a) + window.URL.revokeObjectURL(url) + }) +} diff --git a/src/views/xgf/flowApply/components/userInfo.vue b/src/views/xgf/flowApply/components/userInfo.vue index 05b7242..ab8529c 100644 --- a/src/views/xgf/flowApply/components/userInfo.vue +++ b/src/views/xgf/flowApply/components/userInfo.vue @@ -137,6 +137,22 @@ {{ formatLabel(userDetailForm.ISFLOW) }} +
+
+

承诺书

+
+
+ 下载附件 +
+
+
+
+

委托书

+
+
+ 下载附件 +
+

培训记录

@@ -317,6 +333,7 @@ import vueQr from 'vue-qr' import dateformat from '@/utils/dateformat' import { requestFN } from '@/utils/request' +import useDownloadFile from '../../../../utils/useDownloadFile' export default { components: { vueQr }, @@ -401,6 +418,9 @@ export default { } else { return '' } + }, + download(item) { + useDownloadFile(item) } } } From 8b5701c9fe260302dfa2dd28cd7bb4dbdb25d71e Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 20 Feb 2024 16:05:34 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=AB=AF=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=B8=8B=E8=BD=BD=E9=99=84=E8=BF=91bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xgf/flow/components/flowInfo.vue | 47 +++++++++++++--------- 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/src/views/xgf/flow/components/flowInfo.vue b/src/views/xgf/flow/components/flowInfo.vue index 7ffe2e4..75435c4 100644 --- a/src/views/xgf/flow/components/flowInfo.vue +++ b/src/views/xgf/flow/components/flowInfo.vue @@ -7,31 +7,38 @@ title="审批流程" width="60%"> - +