From 3c6a8bedc229436019f8582fae5c50e287909f38 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sun, 8 Sep 2024 20:51:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E6=96=87=E4=BB=B6=E4=B9=8B=E5=90=8E=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E4=B8=80=E4=B8=AA=E6=96=87=E4=BB=B6=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98,=E5=88=86=E6=91=8A=E7=A0=94=E5=8F=91?= =?UTF-8?q?=E4=BA=BA=E5=91=98clearable,=20=E4=BF=AE=E5=A4=8D=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E6=9B=B4=E6=96=B0=E9=A1=B9=E7=9B=AE=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AttachmentUpload.vue | 6 ++- .../DetailComponent/ProjectApply.vue | 4 +- .../implementation/share.vue | 3 +- .../implementation/updateTable.vue | 38 ++++++++++--------- 4 files changed, 29 insertions(+), 22 deletions(-) diff --git a/src/components/AttachmentUpload.vue b/src/components/AttachmentUpload.vue index 2b4969b..9d3c72d 100644 --- a/src/components/AttachmentUpload.vue +++ b/src/components/AttachmentUpload.vue @@ -370,8 +370,12 @@ const handleDelete = (row, type) => { _singleFileValue.value.splice(_singleFileValue.value.findIndex((item) => item.fileId === row.fileId), 1); isSingleFile.value = false } else { - isHaveOneFile.value=false allFileList.value.splice(allFileList.value.findIndex((item) => item.fileId === row.fileId), 1); + if(allFileList.value&&allFileList.value?.length==0){ + isHaveOneFile.value=false + }else{ + isHaveOneFile.value=true + } } } }); diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue index 66d94fa..c78db14 100644 --- a/src/components/DetailComponent/ProjectApply.vue +++ b/src/components/DetailComponent/ProjectApply.vue @@ -480,7 +480,6 @@ const getFileParam = (item) => { } } const handleSubmit = async () => { - console.log(' projectPersonUserList.value', projectPersonUserList.value) let files = [] if (props.mode === 'resubmit') { attachment.value.allFileList.forEach(item => { @@ -491,6 +490,7 @@ const handleSubmit = async () => { files.push(getFileParam(item)) }) } + // console.info("🚀 ~method:handleSubmit -----", files,attachment.value.isHaveOneFile) if (!attachment.value.isHaveOneFile) { attachment.value.validate() ElNotification({ @@ -510,7 +510,7 @@ const handleSubmit = async () => { deploymentId: deploymentId.value, requirementId: route.query.id, fileList: files, - singleFile: attachment.value.singleFile, + // singleFile: attachment.value.singleFile, projectId: projectId.value, preProcess: JSON.stringify(localFormData.value.preProcess) } diff --git a/src/views/project-management/implementation/share.vue b/src/views/project-management/implementation/share.vue index 453faf4..27d73a8 100644 --- a/src/views/project-management/implementation/share.vue +++ b/src/views/project-management/implementation/share.vue @@ -232,7 +232,8 @@ const searchConfig = reactive([ prop: 'researchPersonnel', component: 'el-input', props: { - placeholder: '请输入研发人员查询' + placeholder: '请输入研发人员查询', + clearable: true, } }, { diff --git a/src/views/project-management/implementation/updateTable.vue b/src/views/project-management/implementation/updateTable.vue index 5aa427c..8f3836a 100644 --- a/src/views/project-management/implementation/updateTable.vue +++ b/src/views/project-management/implementation/updateTable.vue @@ -18,28 +18,30 @@ - - + + + + + + + + + {{ tableForm.startTime }} - - + + + + + + + + + + + {{ tableForm.endTime }}