BUG 26030

This commit is contained in:
aixianling
2021-12-24 21:28:37 +08:00
parent 43f1cff92f
commit 33685758f3
2 changed files with 12 additions and 13 deletions

View File

@@ -1,10 +1,6 @@
<template>
<div class="form">
<component
:is="component"
@change="onChange"
:params="params">
</component>
<component v-if="refresh" :is="component" @change="onChange" :params="params"/>
</div>
</template>
@@ -21,7 +17,8 @@ export default {
data() {
return {
component: 'Tabbar',
params: {}
params: {},
refresh: true
}
},
@@ -40,9 +37,14 @@ export default {
},
onShow() {
document.title = "问卷表单"
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact', 'shareAppMessage', 'shareWechatMessage']).then(() => {
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType'])
this.refresh = false
this.$nextTick(() => {
this.refresh = true
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact', 'shareAppMessage', 'shareWechatMessage']).then(() => {
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType'])
})
})
}
}
</script>

View File

@@ -1,8 +1,8 @@
<template>
<div class="form-wrapper">
<div class="form-content">
<add-list ref="addList" v-if="currIndex === 1" @change="onChange"></add-list>
<list ref="list" v-if="currIndex === 0" @change="onChange"></list>
<list ref="list" v-if="currIndex === 0" @change="onChange"/>
<add-list ref="addList" v-if="currIndex === 1" @change="onChange"/>
</div>
<AiTabbar :active.sync="currIndex" :list="tabBar"/>
</div>
@@ -26,7 +26,6 @@ export default {
AddList,
List
},
computed: {
tabBar() {
const link = icon => `${this.$cdn}askform/${icon}.png`
@@ -40,13 +39,11 @@ export default {
}))
}
},
methods: {
onChange(e) {
this.$emit('change', e)
}
},
onReachBottom() {
if (this.currIndex === 0) {
}