特殊调整
This commit is contained in:
@@ -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>
|
||||
@@ -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
|
||||
|
||||
@@ -127,7 +127,7 @@ export default {
|
||||
}
|
||||
return this.fullArea
|
||||
}
|
||||
})
|
||||
}) || Promise.reject()
|
||||
},
|
||||
getChildAreas(id) {
|
||||
id && this.$http.post('/admin/area/queryAreaByParentId', null, {
|
||||
|
||||
Reference in New Issue
Block a user