Files
dvcp_v2_wxcp_app/src/saas/AppAskForm/AppAskForm.vue

52 lines
1.0 KiB
Vue
Raw Normal View History

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