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

52 lines
1021 B
Vue
Raw Normal View History

2021-11-22 16:39:07 +08:00
<template>
<div class="form">
2021-11-23 11:51:14 +08:00
<component
2021-12-09 18:31:25 +08:00
:is="component"
@change="onChange"
:params="params">
2021-11-23 11:51:14 +08:00
</component>
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'
import AddForm from './components/AddForm.vue'
import Result from './components/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',
params: {}
}
},
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() {
document.title = "问卷调查"
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact', 'shareAppMessage', 'shareWechatMessage']).then(() => {
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType'])
})
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>