From efcb815e2ae81e1685b890088440d774088b35df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 8 Mar 2024 17:37:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E6=97=A7=E6=8B=86?= =?UTF-8?q?=E5=88=86=E5=8D=95=E5=AF=B9=E6=AF=94--=E5=85=A8=E6=96=87?= =?UTF-8?q?=E6=AF=94=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/jero/JUpload.vue | 8 ++++++++ .../documentSplit/modules/splitIsInStorage.vue | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/jero-web/src/components/jero/JUpload.vue b/jero-web/src/components/jero/JUpload.vue index 5a0e29f..939dc23 100644 --- a/jero-web/src/components/jero/JUpload.vue +++ b/jero-web/src/components/jero/JUpload.vue @@ -355,6 +355,14 @@ export default { file.uploadGoOn = false return false } + if (this.fileType === 'docx') { + if (!(fileSuffix === 'docx')) { + this.$message.warning(this.$t('uploadFile.pleaseUpload') + `${this.fileType}` + this.$t('uploadFile.file')) + this.uploadGoOn = false + file.uploadGoOn = false + return false + } + } if (this.fileType.indexOf(fileSuffix) === -1) { this.$message.warning(this.$t('uploadFile.pleaseUpload') + `${this.fileType}` + this.$t('uploadFile.file')) this.uploadGoOn = false diff --git a/jero-web/src/views/documentTool/documentSplit/modules/splitIsInStorage.vue b/jero-web/src/views/documentTool/documentSplit/modules/splitIsInStorage.vue index dbf1c0e..8faa63e 100644 --- a/jero-web/src/views/documentTool/documentSplit/modules/splitIsInStorage.vue +++ b/jero-web/src/views/documentTool/documentSplit/modules/splitIsInStorage.vue @@ -71,7 +71,7 @@ return-id :number="1" class="line-btn" - file-type="doc,docx" /> + file-type="docx" />