From 812298acce619ca50642b69a4910ab5626f279c1 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sun, 9 Jun 2024 19:00:43 +0800 Subject: [PATCH 1/5] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E4=B8=8A=E6=8A=A5=E6=98=AF=E5=90=A6=E4=B8=93=E9=A1=B9?= =?UTF-8?q?=E8=B5=84=E9=87=91=E6=B5=81=E7=A8=8B=E5=9B=BE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DetailComponent/SummaryDetail.vue | 2 +- src/views/project-demand/summary/add.vue | 30 ++++++++++++------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/components/DetailComponent/SummaryDetail.vue b/src/components/DetailComponent/SummaryDetail.vue index da790e8..8ded615 100644 --- a/src/components/DetailComponent/SummaryDetail.vue +++ b/src/components/DetailComponent/SummaryDetail.vue @@ -9,7 +9,7 @@ - {{localFormData.specialFund }} + {{localFormData.specialFundId===0?localFormData.specialFund:changeName(fundOption,localFormData.specialFundId) }} diff --git a/src/views/project-demand/summary/add.vue b/src/views/project-demand/summary/add.vue index 57ada02..1aaf3bc 100644 --- a/src/views/project-demand/summary/add.vue +++ b/src/views/project-demand/summary/add.vue @@ -10,18 +10,18 @@ - + - + {{ formData.specialFund }} - + { const getIsFund = async () => { if (!route.query.id) return; - loading.value = true + // loading.value = true await getFormInfo(route.query.id).then(res => { if (res.code === 1000) { - loading.value = false + // loading.value = false formData.value.isSpecialFund = res.data.isSpecialFund if (res.data.isSpecialFund) { res.data.specialFundId = getSpecialFundId(res.data.specialFund) @@ -428,7 +428,7 @@ const handleResubmit = debounce(() => { otherFiles.push(getFileParam(item)) }) } - if (attachment.value.singleFile==null) { + if (attachment.value.singleFile == null) { attachment.value.validate() ElNotification({ title: '提示', @@ -436,7 +436,7 @@ const handleResubmit = debounce(() => { type: 'error' }) return; - } else{ + } else { attachment.value.clearValidate() } let params = { @@ -475,17 +475,26 @@ const getDetailInfo = async () => { } }) } +const specialFundChange = () => { + processInfo() +} const init = async () => { + await getIsFund() loading.value = true const resFund = await getFundOption() specialFundOption.value = resFund.data const res = await getSubCompOpt() companyOption.value = res.data + await processInfo() + loading.value = false +} +const processInfo = () => { + processStore.setDesign(null) + processDiagramViewer.value=false getProcessInfo(formData.value.isSpecialFund).then(res => { if (res.code === 1000) { let data = res.data deploymentId.value = data.deploymentId - loading.value = false processStore.setDesign(data) processStore.runningList.value = data.runningList; processStore.endList.value = data.endList; @@ -495,7 +504,6 @@ const init = async () => { nextTick(() => { processDiagramViewer.value = true }) - getIsFund() } else { ElNotification({ title: '提示', @@ -506,10 +514,10 @@ const init = async () => { }) } onMounted(async () => { - await init() if (route.query.projectId) { await getDetailInfo() } + await init() }) const staging = async () => { } From c3e006bba85f8e414d06f04804cd7f2050cbcb4d Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sun, 9 Jun 2024 19:12:37 +0800 Subject: [PATCH 2/5] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=AB=8B=E9=A1=B9=E9=87=8D=E6=96=B0=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E7=AD=89=E6=93=8D=E4=BD=9C=E6=9B=BF=E6=8D=A2=E5=88=B0=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DetailComponent/ProjectApply.vue | 20 +++++++++++++++---- .../implementation/detail.vue | 20 +++---------------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue index 8ae2735..d4b1edb 100644 --- a/src/components/DetailComponent/ProjectApply.vue +++ b/src/components/DetailComponent/ProjectApply.vue @@ -13,8 +13,15 @@ @getAttachment="getAttachment" @getOtherFile="getOtherFile" :showFileList="true" :formData="formData" :preview="route.query.state==3"/> +
+ +
+ +
+
+
-
@@ -25,6 +32,7 @@