From 129e151f68e215ff592bb36ef52eb1ed5c15740d Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 16 十一月 2022 17:50:22 +0800
Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui

---
 src/utils/helper.js |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/src/utils/helper.js b/src/utils/helper.js
index e9853bc..e29e5e6 100644
--- a/src/utils/helper.js
+++ b/src/utils/helper.js
@@ -49,15 +49,15 @@
 // data: 鏂囦欢, contentDisposition锛氳姹傚ご涓枃浠剁殑鍚嶅瓧
 // 榛樿涓嶇敤淇敼锛岀洿鎺ュ皢杩斿洖鐨剅es浼犲叆鍗冲彲
 export function downloadFile(res) {
-    const blob = new Blob([res.data], { type: 'application/vnd.ms-excel' });
+    const blob = new Blob([res.data], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
     const fileName = res.contentDisposition.split('=')[1];
     if (window.navigator && window.navigator.msSaveBlob) {
-        navigator.msSaveBlob(blob, fileName);
+        navigator.msSaveBlob(blob, `${new Date().getTime()}`);
     } else {
         const link = document.createElement('a');
         link.style.display = 'none';
         link.href = URL.createObjectURL(blob);
-        link.setAttribute('download', decodeURI(fileName));
+        link.setAttribute('download', decodeURI(`${new Date().getTime()}`));
         document.body.appendChild(link);
         link.click();
         URL.revokeObjectURL(link.href);
@@ -120,3 +120,18 @@
     }
     return str + '鍒嗛挓'
 }
+
+export const EVENT_SOURCE = [
+    { label: '瑙嗛', value: 1 },
+    { label: '鎵嬪姩绛夌骇', value: 2 }
+]
+
+export const CATEGOTY = [
+    { label: '杩濊', value: 1 },
+    { label: '杩濆缓', value: 2 }
+]
+
+export const RESOURCE_TYPE = [
+    { label: '涓婃姤', value: '01' },
+    { label: '澶勭疆', value: '02' }
+]

--
Gitblit v1.8.0