资质图片上传限制3m

ywj_dev
郑明梁 2 years ago
parent 414646ee59
commit 5bed73cadc

@ -124,7 +124,7 @@
<el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1">
{{ choiceFile }}
</el-button>
<div>只能上传 jpg,png,pdf,doc 文件且不超过 10 MB</div>
<div>只能上传 jpg,png,pdf,doc 文件且不超过 3 MB</div>
</el-upload>
<!-- <el-button type="primary" size="mini" icon="search" @click="toViewCompanyCert"-->
<!-- style="text-align:right"-->
@ -318,9 +318,9 @@ export default {
return;
}
//
const isLt = file.size / 1024 / 1024 / 30 <= 1;
const isLt = file.size / 1024 / 1024 / 3 <= 1;
if (!isLt) {
this.$message.error("上传文件大小不能超过 30MB");
this.$message.error("上传文件大小不能超过 3MB");
for (let i = 0; i < fileList.length; i++) {
if (fileList[i].uid === uid) {
fileList.splice(i, 1)

Loading…
Cancel
Save