Files
dvcp_v2_wxcp_app/library/apps/AppAskForm/AppAskForm.vue

52 lines
1.0 KiB
Vue
Raw Normal View History

2021-12-15 16:42:31 +08:00
<template>
<div class="form">
2021-12-24 22:45:52 +08:00
<component ref="TabPage" :is="component" @change="onChange" :params="params"/>
2021-12-15 16:42:31 +08:00
</div>
</template>
<script>
import Tabbar from './components/Tabbar.vue'
2021-12-24 22:45:52 +08:00
import AddForm from './AddForm.vue'
import Result from './Result.vue'
2021-12-15 16:42:31 +08:00
import {mapActions} from "vuex";
export default {
name: 'AppAskForm',
appName: '问卷表单管理',
data() {
return {
component: 'Tabbar',
2021-12-24 21:28:37 +08:00
params: {},
refresh: true
2021-12-15 16:42:31 +08:00
}
},
components: {
Tabbar,
Result,
AddForm
},
methods: {
...mapActions(['injectJWeixin']),
onChange(e) {
this.params = e.params
this.component = e.type
}
},
onShow() {
2022-03-25 11:29:08 +08:00
document.title = "问卷表单"
2021-12-28 16:30:48 +08:00
this.$refs?.TabPage?.show()
2021-12-24 21:28:37 +08:00
this.$nextTick(() => {
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact', 'shareAppMessage', 'shareWechatMessage']).then(() => {
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType'])
})
2021-12-15 16:42:31 +08:00
})
}
}
</script>
<style lang="scss" scoped>
</style>