From f8ee49ca47a342ff54410cf7f824344f4f414e66 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 17 Feb 2022 14:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B7=E5=90=8D=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/resi.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue index 4f9c4663..0959dc87 100644 --- a/src/views/modules/base/resi.vue +++ b/src/views/modules/base/resi.vue @@ -444,13 +444,13 @@ export default { const isType = file.type === 'application/vnd.ms-excel' const isTypeComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' const fileType = isType || isTypeComputer - const isLt1M = (file.size / 1024 / 1024) < 10 + const isLt1M = (file.size / 1024 / 1024) < 100 if (!fileType) { this.$message.error('上传文件只能是xls/xlsx格式!') } if (!isLt1M) { - this.$message.error('上传文件大小不能超过 10MB!') + this.$message.error('上传文件大小不能超过 100MB!') } return fileType && isLt1M }, @@ -463,6 +463,7 @@ export default { url: window.SITE_CONFIG['apiURL'] + '/epmetuser/icresiuser/importExcel', method: 'post', data: formData, + timeout: '300000', responseType: 'blob' }) .then((res) => {