彭刘杨
This commit is contained in:
50
project/pengliuyang/communityResource/communityResource.vue
Normal file
50
project/pengliuyang/communityResource/communityResource.vue
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
<template>
|
||||||
|
<keep-alive include="resourceMap">
|
||||||
|
<component :is="currentPage" v-bind="$props" @change="onChange"/>
|
||||||
|
</keep-alive>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import resourceMap from "./components/resourceMap.vue"
|
||||||
|
import resourceManagement from "./components/resourceManagement.vue"
|
||||||
|
import resourceClassification from './components/resourceClassification.vue'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'communityResource',
|
||||||
|
label: "社会资源",
|
||||||
|
|
||||||
|
props: {
|
||||||
|
instance: Function,
|
||||||
|
dict: Object,
|
||||||
|
permissions: Function,
|
||||||
|
},
|
||||||
|
|
||||||
|
computed: {
|
||||||
|
currentPage() {
|
||||||
|
let { hash } = this.$route
|
||||||
|
return hash == "#resourceMap" ? resourceMap :
|
||||||
|
hash == "#resourceManagement" ? resourceManagement : resourceClassification
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
resourceMap,
|
||||||
|
resourceManagement,
|
||||||
|
resourceClassification,
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
onChange(data) {
|
||||||
|
let {type, params: query} = data,
|
||||||
|
hash = ["resourceMap", "resourceManagement","resourceClassification"].includes(type) ? "" : "#" + type
|
||||||
|
this.$router.push({hash, query})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.communityResource {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
<div>资源分类</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
<div>资源管理</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
<div>资源地图</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user