diff --git a/src/pages/personal/pages/my-questions/components/answerItem.vue b/src/pages/personal/pages/my-questions/components/answerItem.vue index a207a4e53..a25deb7b9 100644 --- a/src/pages/personal/pages/my-questions/components/answerItem.vue +++ b/src/pages/personal/pages/my-questions/components/answerItem.vue @@ -60,6 +60,8 @@ :action="actionPath" accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx, .pdf, .PDF" name="file" + :limit="5" + :on-exceed="handleExceed" :file-list="fileList" ref="importFileAboutStand"> @@ -100,6 +102,9 @@ export default { } }, methods:{ + handleExceed(files, fileList) { + this.$message.warning(`当前限制选择 5 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); + }, //提交 handleSubmit(){ this.$refs['form'].validate((valid) => { diff --git a/src/pages/personal/pages/my-questions/components/questionItemInfo.vue b/src/pages/personal/pages/my-questions/components/questionItemInfo.vue index 1026e8895..408da7b5c 100644 --- a/src/pages/personal/pages/my-questions/components/questionItemInfo.vue +++ b/src/pages/personal/pages/my-questions/components/questionItemInfo.vue @@ -26,7 +26,7 @@
- 归档 + 归档
@@ -38,16 +38,30 @@