From 9e72f30047f61524b16a8d95d652f14f8a857305 Mon Sep 17 00:00:00 2001 From: "396572590@qq.com" Date: Tue, 21 Jun 2022 14:04:27 +0800 Subject: [PATCH] feat: There is no way the, bug #55865 --- .../my-questions/components/answerItem.vue | 5 +++++ .../components/questionItemInfo.vue | 18 ++++++++++++++++-- .../personal/pages/my-questions/index.vue | 19 ++++++++++++++++--- 3 files changed, 37 insertions(+), 5 deletions(-) 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 @@