fix : 修复项目立项切换bug
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
{{showApply}}{{showActive}}
|
||||||
<steps :active="route.query.id==='-1'?currentStep-1:currentStep" @setDetail="setDetail" @stepChange="stepChange"
|
<steps :active="route.query.id==='-1'?currentStep-1:currentStep" @setDetail="setDetail" @stepChange="stepChange"
|
||||||
:reportType="route.query.id==='-1'?'direct':''">
|
:reportType="route.query.id==='-1'?'direct':''">
|
||||||
<template #content>
|
<template #content>
|
||||||
@@ -22,7 +23,7 @@
|
|||||||
<ApprovalDetail type="archivist" v-show="showActive == '50'" :formData="commonForm.formData" :data="commonForm"
|
<ApprovalDetail type="archivist" v-show="showActive == '50'" :formData="commonForm.formData" :data="commonForm"
|
||||||
:processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"
|
:processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"
|
||||||
v-model:value="auditOpinion"/>
|
v-model:value="auditOpinion"/>
|
||||||
<project-apply v-if="showApply" :data="commonForm"/>
|
<project-apply v-if="showApply&&showActive == '20'" :data="commonForm"/>
|
||||||
</template>
|
</template>
|
||||||
</steps>
|
</steps>
|
||||||
<opinion v-if="commonForm.taskId" :formData="commonForm.formData" :taskId="commonForm.taskId"
|
<opinion v-if="commonForm.taskId" :formData="commonForm.formData" :taskId="commonForm.taskId"
|
||||||
@@ -92,9 +93,9 @@ const getAllInfo = async (state) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const changeModel = (active) => {
|
const changeModel = (active) => {
|
||||||
if (route.query.state === '0' && active === '20') {
|
if (route.query.state === '0' && route.query.step === '20') {
|
||||||
showApply.value = true
|
showApply.value = true
|
||||||
} else if (route.query.state === '3' && active === '20') {
|
} else if (route.query.state === '3' && route.query.step === '20') {
|
||||||
showApply.value = true
|
showApply.value = true
|
||||||
getAllInfo(active)
|
getAllInfo(active)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user