人员组件完成
This commit is contained in:
@@ -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 = "以房找人"
|
||||
|
||||
Reference in New Issue
Block a user