人员组件完成

This commit is contained in:
aixianling
2021-12-24 12:05:40 +08:00
parent db781c050c
commit 1902f0e197
5 changed files with 122 additions and 60 deletions

View File

@@ -1,10 +1,6 @@
<template>
<div class="AppBuilding">
<component
:is="component"
@change="onChange"
:params="params">
</component>
<search-map v-if="show"/>
</div>
</template>
@@ -18,21 +14,17 @@ import Map from './map'
export default {
name: 'AppBuilding',
appName: '以房找人',
data() {
return {
component: 'SearchMap',
params: {}
show: true
}
},
components: {Detail, Add, List, SearchMap, Map},
methods: {
onChange(e) {
this.params = e.params
this.component = e.type
}
onShow() {
this.show = false
this.$nextTick(() => {
this.show = true
})
},
mounted() {
document.title = "以房找人"