From 52594553248e87dd391c9d061256b7076b73d67c Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期五, 19 一月 2024 14:32:59 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before
---
src/api/quality/rawMaterial.js | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/src/api/quality/rawMaterial.js b/src/api/quality/rawMaterial.js
index f00fc4c..407f523 100644
--- a/src/api/quality/rawMaterial.js
+++ b/src/api/quality/rawMaterial.js
@@ -110,3 +110,23 @@
})
}
+export function downloadProcessConfigFile(data) {
+ return request({
+ url: '/mes/rawInsProduct/processConfig/'+data.bucket+'/'+data.fileName,
+ method: 'post',
+ responseType: 'blob'
+ }).then((response) => {
+ // 澶勭悊杩斿洖鐨勬枃浠舵祦
+ const blob = response.data
+ const link = document.createElement('a')
+ link.href = URL.createObjectURL(blob)
+ link.download = data.originalFileName
+ document.body.appendChild(link)
+ link.click()
+ window.setTimeout(function() {
+ URL.revokeObjectURL(blob)
+ document.body.removeChild(link)
+ }, 0)
+ })
+}
+
--
Gitblit v1.9.3