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) {