BUG 26030
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<component
|
<component v-if="refresh" :is="component" @change="onChange" :params="params"/>
|
||||||
:is="component"
|
|
||||||
@change="onChange"
|
|
||||||
:params="params">
|
|
||||||
</component>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -21,7 +17,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
component: 'Tabbar',
|
component: 'Tabbar',
|
||||||
params: {}
|
params: {},
|
||||||
|
refresh: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -40,9 +37,14 @@ export default {
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = "问卷表单"
|
document.title = "问卷表单"
|
||||||
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact', 'shareAppMessage', 'shareWechatMessage']).then(() => {
|
this.refresh = false
|
||||||
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType'])
|
this.$nextTick(() => {
|
||||||
|
this.refresh = true
|
||||||
|
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact', 'shareAppMessage', 'shareWechatMessage']).then(() => {
|
||||||
|
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType'])
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="form-wrapper">
|
<div class="form-wrapper">
|
||||||
<div class="form-content">
|
<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 ref="list" v-if="currIndex === 0" @change="onChange"></list>
|
<add-list ref="addList" v-if="currIndex === 1" @change="onChange"/>
|
||||||
</div>
|
</div>
|
||||||
<AiTabbar :active.sync="currIndex" :list="tabBar"/>
|
<AiTabbar :active.sync="currIndex" :list="tabBar"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -26,7 +26,6 @@ export default {
|
|||||||
AddList,
|
AddList,
|
||||||
List
|
List
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
tabBar() {
|
tabBar() {
|
||||||
const link = icon => `${this.$cdn}askform/${icon}.png`
|
const link = icon => `${this.$cdn}askform/${icon}.png`
|
||||||
@@ -40,13 +39,11 @@ export default {
|
|||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onChange(e) {
|
onChange(e) {
|
||||||
this.$emit('change', e)
|
this.$emit('change', e)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.currIndex === 0) {
|
if (this.currIndex === 0) {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user