Files
dvcp_v2_wxcp_app/src/apps/AppAskForm/AppForm.vue

44 lines
799 B
Vue
Raw Normal View History

2021-11-22 16:39:07 +08:00
<template>
<section class="askForm">
2021-11-25 16:02:53 +08:00
<template v-if="showDetail">
2021-11-22 16:39:07 +08:00
<form-detail/>
</template>
<ai-loading v-else :tips="errMsg"/>
</section>
</template>
<script>
import AiLoading from "../../components/AiLoading";
import {mapState} from "vuex";
import FormDetail from "./formDetail";
export default {
name: "askForm",
2021-11-25 16:02:53 +08:00
appName: "问卷表单",
components: {FormDetail, AiLoading},
2021-11-22 16:39:07 +08:00
computed: {
...mapState(['openUser', 'user']),
showDetail() {
return !!this.$route.query?.id
},
},
data() {
return {
errMsg: "加载表单中..."
}
},
onReachBottom() {
this.$refs?.FormList?.reachBottom()
}
}
</script>
<style lang="scss" scoped>
.askForm {
position: absolute;
width: 100%;
height: 100%;
background: #fff;
}
</style>