|
@@ -282,6 +282,7 @@
|
|
|
:on-success="handleFileSuccess"
|
|
|
:auto-upload="false"
|
|
|
:http-request="reqUploadFile"
|
|
|
+ :on-exceed="exceedMax"
|
|
|
drag
|
|
|
>
|
|
|
<i class="el-icon-upload"></i>
|
|
@@ -524,6 +525,13 @@ export default {
|
|
|
this.upload.isUploading = false;
|
|
|
this.getList();
|
|
|
},
|
|
|
+ // 超出限制时的提示
|
|
|
+ exceedMax() {
|
|
|
+ this.$message({
|
|
|
+ message: '请移除已有文件后再进行上传',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ },
|
|
|
// 提交上传文件
|
|
|
submitFileForm() {
|
|
|
this.$refs.upload.submit();
|