BUG 30302
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
</el-steps>
|
||||
</div>
|
||||
</template>
|
||||
<template #content v-if="detailObj.id">
|
||||
<template #content v-if="loaded">
|
||||
<baseInfo ref="baseInfo" :instance="instance" :dict="dict" v-if="activeStep==0"/>
|
||||
<applyForm ref="applyForm" :instance="instance" :dict="dict" v-show="activeStep==1"/>
|
||||
<attachmentMaterial ref="attachmentMaterial" :instance="instance" v-if="activeStep==2"/>
|
||||
@@ -50,7 +50,8 @@ export default {
|
||||
},
|
||||
processAnnexDefs: [],
|
||||
detailObj: {},
|
||||
activeStep: 0
|
||||
activeStep: 0,
|
||||
loaded: true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -133,7 +134,7 @@ export default {
|
||||
})
|
||||
},
|
||||
getDetail(id) {
|
||||
this.instance.post(`/approval-process-def/info-id`, null, {params: {id}}).then(res => {
|
||||
return this.instance.post(`/approval-process-def/info-id`, null, {params: {id}}).then(res => {
|
||||
if (res?.data) {
|
||||
this.detailObj = res.data
|
||||
}
|
||||
@@ -150,7 +151,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getDetail(this.$route.query.id)
|
||||
this.getDetail(this.$route.query.id).finally(() => this.loaded = false)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user