特殊调整

This commit is contained in:
aixianling
2021-12-31 17:23:43 +08:00
parent 477705690c
commit 9f12e9ba78
3 changed files with 17 additions and 16 deletions

View File

@@ -1,10 +1,6 @@
<template>
<div class="AppCountryAlbum">
<component
:is="component"
@change="onChange"
:params="params">
</component>
<component v-if="refresh" :is="component" @change="onChange" :params="params"/>
</div>
</template>
@@ -19,28 +15,37 @@ export default {
data() {
return {
component: 'List',
params: {}
params: {},
refresh: true
}
},
components: { Detail, List },
components: {Detail, List},
onShow() {
document.title = "乡村相册"
this.handleRefresh()
},
methods: {
onChange(e) {
this.params = e.params
this.component = e.type
},
handleRefresh() {
this.refresh = false
this.$nextTick(() => {
this.refresh = true
})
}
},
}
</script>
<style lang="scss" scoped>
uni-page-body{
uni-page-body {
height: 100%;
}
.AppCountryAlbum{
.AppCountryAlbum {
height: 100%;
}
</style>

View File

@@ -35,7 +35,7 @@ export default {
}
},
computed: { ...mapState(['user']) },
mounted() {
created() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
this.getList()
@@ -44,10 +44,6 @@ export default {
})
this.cdn = this.$cdn.replace("/dvcp/h5","");
},
onShow() {
document.title = "乡村相册"
},
methods: {
areaSelect(e) {
this.areaId = e

View File

@@ -127,7 +127,7 @@ export default {
}
return this.fullArea
}
})
}) || Promise.reject()
},
getChildAreas(id) {
id && this.$http.post('/admin/area/queryAreaByParentId', null, {