From 74e46fe54b18750628e1dd0c01ceb134131bcf9e Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Wed, 5 Nov 2025 11:22:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E9=A1=B9=E7=9B=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../analysis/components/AnalysisForm.vue | 268 ++++++++++-------- src/views/analysis/index.vue | 4 +- src/views/common/UploadMoreFile.vue | 5 +- .../tool/components/ToolForm.vue | 4 +- 4 files changed, 154 insertions(+), 127 deletions(-) diff --git a/src/views/analysis/components/AnalysisForm.vue b/src/views/analysis/components/AnalysisForm.vue index 1e3d363..1c3ee6e 100644 --- a/src/views/analysis/components/AnalysisForm.vue +++ b/src/views/analysis/components/AnalysisForm.vue @@ -5,152 +5,167 @@
- - + + - - + + +
- 确认 + 确认 取消 \ No newline at end of file + diff --git a/src/views/analysis/index.vue b/src/views/analysis/index.vue index 9a49b15..b743c05 100644 --- a/src/views/analysis/index.vue +++ b/src/views/analysis/index.vue @@ -35,7 +35,7 @@ @download-success="onDownloadSuccess" /> - @@ -63,7 +63,6 @@ export default { documentName: 'technicalSolutionDatabase/2025/11/03/716d9f3d89434c56bc49296dbbccc226.docx', showAnalysisForm: false, title: '', - isAdd: '', row: {}, } }, @@ -85,7 +84,6 @@ export default { /** 新增按钮操作 */ handleAdd() { this.title = "新建项目"; - this.isAdd = 'add'; this.showAnalysisForm = true; }, diff --git a/src/views/common/UploadMoreFile.vue b/src/views/common/UploadMoreFile.vue index cfce0d6..79abbb5 100644 --- a/src/views/common/UploadMoreFile.vue +++ b/src/views/common/UploadMoreFile.vue @@ -10,7 +10,7 @@
+ 点击或将文件拖拽到这里上传
-
最多可上传 {{ limitUploadNum }} 个文件,
+
最多可上传 {{ limitUploadNum }} 个文件,
单份文件大小上限 {{ maxFileTips }},
支持文件类型:{{ uploadType }}
@@ -111,6 +111,7 @@ export default { watch: { fileList: { handler(newVal) { + if (this.files.length === 0 && newVal.length > 0) { this.$nextTick(() => { if (this.$refs.upload) { @@ -141,7 +142,7 @@ export default { return false } - if (this.files.length >= this.limitUploadNum) { + if (this.files.length > this.limitUploadNum) { this.$message.error(`最多只能上传 ${this.limitUploadNum} 个文件!`) return false } diff --git a/src/views/enterpriseLibrary/tool/components/ToolForm.vue b/src/views/enterpriseLibrary/tool/components/ToolForm.vue index eb99f98..ae38bb2 100644 --- a/src/views/enterpriseLibrary/tool/components/ToolForm.vue +++ b/src/views/enterpriseLibrary/tool/components/ToolForm.vue @@ -257,7 +257,9 @@ export default { } catch (error) { } finally { - this.loading.close(); + if(this.loading){ + this.loading.close() + } } },