From fcd98cb138ada4d6603dfadbed99722b06adcb83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B7=91=E5=8B=A4?= <13326422+wang-shuqin98@user.noreply.gitee.com> Date: Wed, 29 Jul 2026 10:38:22 +0800 Subject: [PATCH] =?UTF-8?q?wsq-=E5=89=8D=E7=AB=AF-20260728-fix-=E6=96=B0?= =?UTF-8?q?=E5=A2=9E/=E8=AF=A6=E6=83=85/=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=99=84=E4=BB=B6=E8=83=BD=E5=A4=9F=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=92=8C=E4=B8=8B=E8=BD=BD=EF=BC=8C=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ImprovementProposalForm.vue | 48 ++++++++++++------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/src/views/gh/improvementProposal/components/ImprovementProposalForm.vue b/src/views/gh/improvementProposal/components/ImprovementProposalForm.vue index a668a73..08b20bf 100644 --- a/src/views/gh/improvementProposal/components/ImprovementProposalForm.vue +++ b/src/views/gh/improvementProposal/components/ImprovementProposalForm.vue @@ -34,8 +34,8 @@ - - + + @@ -50,24 +50,24 @@ - - + + - - - + + + - - + + - - - + + + @@ -204,19 +204,19 @@ }; const longLabelCol = { xs: {span: 24}, - sm: {span: 4}, + sm: {span: 5}, }; const longWrapperCol = { xs: {span: 24}, - sm: {span: 20}, + sm: {span: 16}, }; const halfLabelCol = { xs: {span: 24}, - sm: {span: 8}, + sm: {span: 5}, }; const halfWrapperCol = { xs: {span: 24}, - sm: {span: 16}, + sm: {span: 18}, }; const disabled = computed(()=>{ @@ -330,6 +330,12 @@ improvementDeptScoreTable.dataSource = [...improvementDeptScoreDataList]; const improvementInstituteVoteDataList = await queryImprovementInstituteVoteListByMainId(row['id']); improvementInstituteVoteTable.dataSource = [...improvementInstituteVoteDataList]; + // 加载改善前/后图片文件列表 + await nextTick(); + if (formData.id) { + beforeFileRef.value?.loadFileList(); + afterFileRef.value?.loadFileList(); + } } } @@ -359,6 +365,12 @@ improvementDeptScoreTable.dataSource = [...improvementDeptScoreDataList]; const improvementInstituteVoteDataList = await queryImprovementInstituteVoteListByMainId(row['id']); improvementInstituteVoteTable.dataSource = [...improvementInstituteVoteDataList]; + // 加载改善前/后图片文件列表 + await nextTick(); + if (formData.id) { + beforeFileRef.value?.loadFileList(); + afterFileRef.value?.loadFileList(); + } } async function queryMainData(id) { @@ -411,8 +423,8 @@ const newId = typeof result === 'string' ? result : (result?.id || result); if (newId) { formData.id = newId; - await beforeFileRef.value?.bindBussinessId(`${newId}:before`); - await afterFileRef.value?.bindBussinessId(`${newId}:after`); + await beforeFileRef.value?.bindBussinessId(`${formData.proposalNo}:before`); + await afterFileRef.value?.bindBussinessId(`${formData.proposalNo}:after`); } } emit('success');