调整过渡页面

This commit is contained in:
aixianling
2021-12-07 20:38:13 +08:00
parent 70e6d98378
commit 54ef536bf0
2 changed files with 10 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
<template v-if="showDetail"> <template v-if="showDetail">
<form-detail/> <form-detail/>
</template> </template>
<ai-result v-else :tips="errMsg" status="error"/> <ai-result v-else :tips="errMsg" :status="errStatus"/>
</section> </section>
</template> </template>
@@ -29,7 +29,11 @@ export default {
return !!this.$route.query?.id && this.access return !!this.$route.query?.id && this.access
}, },
errMsg() { errMsg() {
return this.err || (this.access ? "表单不存在" : "无法获取用户信息") this.access && (this.err = "表单不存在")
return this.err || "数据读取中..."
},
errStatus() {
return !!this.err ? "error" : "loading"
}, },
isPreview() { isPreview() {
return !!this.$route.query?.preview return !!this.$route.query?.preview
@@ -64,7 +68,7 @@ export default {
}, },
created() { created() {
this.checkAccess() this.checkAccess()
document.title = "调查问卷" document.title = "问卷调查"
} }
} }
</script> </script>

View File

@@ -30,6 +30,9 @@ export default {
if (this.status == "error") { if (this.status == "error") {
obj.image = this.$cdn + "result/fail.png" obj.image = this.$cdn + "result/fail.png"
obj.tips = this.tips || "提交失败!" obj.tips = this.tips || "提交失败!"
} else if (this.status == "loading") {
obj.image = "https://cdn.cunwuyun.cn/wxAdmin/img/message.png"
obj.tips = this.tips || "数据读取中..."
} }
return obj return obj
} }