Browse Source

reactor:甄别调整;

zhangchong 6 months ago
parent
commit
f90f2f5794
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/components/AnnexList/index.vue

+ 3 - 3
src/components/AnnexList/index.vue

@@ -56,7 +56,7 @@
 </template>
 <script setup lang="ts" name="annexList">
 import { computed, ref, watch } from 'vue';
-import { ElMessage, ElMessageBox } from 'element-plus';
+import { ElMessage, ElMessageBox, UploadUserFile } from 'element-plus';
 import Other from '@/utils/other';
 import { fileDownloadByUrl } from '@/api/public/file';
 import { useAppConfig } from '@/stores/appConfig';
@@ -141,8 +141,8 @@ const formatData = (data: any) => {
 	});
 };
 //文件限制
-const handleExceed = (files: any) => {
-	ElMessage.warning(`当前限制选择 ${props.fileLimit} 个文件,本次选择了 ${files.length} 个文件`);
+const handleExceed = (files: any,uploadFiles: UploadUserFile[]) => {
+	ElMessage.warning(`当前限制最多上传 ${props.fileLimit} 个文件,已经上传了${uploadFiles.length}个文件,本次选择了 ${files.length} 个文件。`);
 };
 //限制文件大小
 const handleChangeFile = (file: any, fileList: any) => {