From 9cb389b74302ce6b0a2333328922e7c462234a56 Mon Sep 17 00:00:00 2001 From: 石广澎 <shiguangpeng@163.com> Date: 星期五, 01 十二月 2023 18:31:27 +0800 Subject: [PATCH] feat: 基础信息 新增、编辑增加防重提交 列表也优化 --- admin-web/src/utils/base.js | 18 ------------------ 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/admin-web/src/utils/base.js b/admin-web/src/utils/base.js index b2f7f05..74c10b5 100644 --- a/admin-web/src/utils/base.js +++ b/admin-web/src/utils/base.js @@ -23,24 +23,6 @@ return getBaseUrl() + '/pc/fin/file/uploadMore' } -// 棰勮鏂囦欢 -export function previewDoc(obj) { - const routeUrl = this.$router.resolve({url: '/webOffice/preview'}) - let url = obj.url - const wordLIst = ['doc', 'docm', 'docx', 'docxf', 'dot', 'dotm', 'dotx', 'epub', 'fodt', 'fb2', 'htm', 'html', 'mht', 'odt', 'oform', 'ott', 'oxps', 'pdf', 'rtf', 'txt', 'djvu', 'xml', 'xps', 'csv', 'fods', 'ods', 'ots', 'xls', 'xlsb', 'xlsm', 'xlsx', 'xlt', 'xltm', 'xltx', 'fodp', 'odp', 'otp', 'pot', 'potm', 'potx', 'pps', 'ppsm', 'ppsx', 'ppt', 'pptm', 'pptx'] - const arr = url.split('.') - if (arr.length === 2) { - if (wordLIst.includes(arr[arr.length - 1])) { - if (obj.url.indexOf('http') !== 0) { - url = SettingIplatform.ftpUrl + url - } - const newWindow = window.open(routeUrl.href + '?url=' + encodeURIComponent(url) + '&docName=' + encodeURIComponent(encodeURIComponent(obj.fileName)), '_blank') - if (newWindow) newWindow.opener = null - } else { - Message.warning('鏂囦欢鏍煎紡涓嶆敮鎸侀瑙堬紒') - } - } -} // 涓嬭浇鏂囦欢 export function downLoad(obj) { -- Gitblit v1.9.1