diff --git a/src/pages/mediation-page/components/caseFileDialog.vue b/src/pages/mediation-page/components/caseFileDialog.vue index 4ca9648..e8a94e5 100644 --- a/src/pages/mediation-page/components/caseFileDialog.vue +++ b/src/pages/mediation-page/components/caseFileDialog.vue @@ -31,7 +31,7 @@
请知悉!
-
请上传图片或pdf材料,单个文件需要在0KB以上,50MB以内;文件名称中请勿包含换行符、空格、tab#&V:?"#*|&"<>%+'等特色字符。
+
请上传图片或pdf材料,单个文件需要在0KB以上,50MB以内;文件名称中请勿包含换行符、空格、tab&V:?"#*|&"<>%+'等特色字符。
文件名称不超过45个字
@@ -108,9 +108,14 @@ export default { objectName: item.objectName } }) - this.repaymentObj.url = this.fileList.length?this.fileList[0].fileName : ''; this.repaymentObj.name = this.fileList.length?this.fileList[0].objectName : ''; - // console.log(this.repaymentObj, '---this.repaymentObj', this.fileList) + if (!this.$verify.specialChar(this.repaymentObj.name)) { + this.$message.error('文件名称包含非法字符,请重新上传!') + return false + } + this.repaymentObj.url = this.fileList.length?this.fileList[0].fileName : ''; + + console.log(this.repaymentObj, '---this.repaymentObj', this.fileList) }, handleClose() { this.$emit('update:eventDialog', null)