From 1e2d2b9a9b32683952a1056a19ab4c06b84a4ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Wed, 20 Mar 2024 09:20:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=A8=E7=AB=99=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=94=BB=E5=87=BB=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/mixins/JeroListMixin.js | 29 +--------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/jero-web/src/mixins/JeroListMixin.js b/jero-web/src/mixins/JeroListMixin.js index 52b487a..61063ac 100644 --- a/jero-web/src/mixins/JeroListMixin.js +++ b/jero-web/src/mixins/JeroListMixin.js @@ -385,19 +385,6 @@ export const JeroListMixin = { modalLoading.destroy() }) }, - htmlspecialchars (string) { - var entityMap = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - "'": ''', - '/': '/' - } - return String(string).replace(/[&<>"'\/]/g, function (s) { - return entityMap[s] - }) - }, /* 导入 */ handleImportExcel (info) { // 限制导入大于500MB @@ -427,21 +414,7 @@ export const JeroListMixin = { importModalLoading && importModalLoading.destroy() this.loading = false if (info.file.response.success) { - // this.$message.success(`${info.file.name} 文件上传成功`); - if (info.file.response.code === 201) { - const { message, result: { msg, fileUrl, fileName } } = info.file.response - const href = this.htmlspecialchars(window._CONFIG.domianURL + fileUrl) - this.$warning({ - title: message, - content: (
- ) - }) - } else { - this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`) - } + this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`) this.loadData() } else { if (Array.isArray(info.file.response.result) && info.file.response.result.length > 0) {