BUG 29877

This commit is contained in:
aixianling
2022-06-24 20:41:54 +08:00
parent 8a7d6f746f
commit d979943852

View File

@@ -51,7 +51,7 @@ export default {
processAnnexDefs: [], processAnnexDefs: [],
detailObj: {}, detailObj: {},
activeStep: 0, activeStep: 0,
loaded: true loaded: false
} }
}, },
computed: { computed: {
@@ -134,11 +134,11 @@ export default {
}) })
}, },
getDetail(id) { getDetail(id) {
return this.instance.post(`/approval-process-def/info-id`, null, {params: {id}}).then(res => { this.instance.post(`/approval-process-def/info-id`, null, {params: {id}}).then(res => {
if (res?.data) { if (res?.data) {
this.detailObj = res.data this.detailObj = res.data
} }
}) }).finally(() => this.loaded = true)
}, },
getStepIcon(rowIndex) { getStepIcon(rowIndex) {
if (rowIndex < this.activeStep) return "iconfont iconSteps_Finished" if (rowIndex < this.activeStep) return "iconfont iconSteps_Finished"
@@ -151,7 +151,7 @@ export default {
} }
}, },
created() { created() {
this.getDetail(this.$route.query.id).finally(() => this.loaded = false) this.getDetail(this.$route.query.id)
} }
} }
</script> </script>