fix : 修复项目立项切换bug

This commit is contained in:
2024-06-09 19:30:45 +08:00
parent f61adaf18b
commit adbd98f035

View File

@@ -1,4 +1,5 @@
<template>
{{showApply}}{{showActive}}
<steps :active="route.query.id==='-1'?currentStep-1:currentStep" @setDetail="setDetail" @stepChange="stepChange"
:reportType="route.query.id==='-1'?'direct':''">
<template #content>
@@ -22,7 +23,7 @@
<ApprovalDetail type="archivist" v-show="showActive == '50'" :formData="commonForm.formData" :data="commonForm"
:processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"
v-model:value="auditOpinion"/>
<project-apply v-if="showApply" :data="commonForm"/>
<project-apply v-if="showApply&&showActive == '20'" :data="commonForm"/>
</template>
</steps>
<opinion v-if="commonForm.taskId" :formData="commonForm.formData" :taskId="commonForm.taskId"
@@ -92,9 +93,9 @@ const getAllInfo = async (state) => {
}
}
const changeModel = (active) => {
if (route.query.state === '0' && active === '20') {
if (route.query.state === '0' && route.query.step === '20') {
showApply.value = true
} else if (route.query.state === '3' && active === '20') {
} else if (route.query.state === '3' && route.query.step === '20') {
showApply.value = true
getAllInfo(active)
} else {