网格
@@ -1,15 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppGridManagement">
|
<div class="AppGridManagement">
|
||||||
<component
|
<component v-if="refresh" :is="component" @change="onChange" :params="params"> </component>
|
||||||
:is="component"
|
<div class="tabs" v-if="isTab">
|
||||||
@change="onChange"
|
<div class="item" @click="tabClick(index, item.component)" v-for="(item, index) in tabs" :key="index">
|
||||||
:params="params">
|
<img :src="tabIndex == index ? item.activeImg : item.img" alt="" />
|
||||||
</component>
|
<p :class="tabIndex == index ? 'color-3267F0' : ''">{{ item.text }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Detail from './components/detail'
|
import Statistics from './Statistics.vue'
|
||||||
|
import Organization from './Organization.vue'
|
||||||
|
import Map from './Map.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AppGridManagement',
|
name: 'AppGridManagement',
|
||||||
@@ -17,30 +21,102 @@ export default {
|
|||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
component: 'Detail',
|
component: 'Map',
|
||||||
params: {}
|
params: {},
|
||||||
|
refresh: true,
|
||||||
|
tabIndex: 0,
|
||||||
|
tabs: [
|
||||||
|
{
|
||||||
|
img: require('./components/img/handle-icon.png'),
|
||||||
|
activeImg: require('./components/img/handle-icon-active.png'),
|
||||||
|
text: '统计',
|
||||||
|
component: 'Statistics',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
img: require('./components/img/statistics-icon.png'),
|
||||||
|
activeImg: require('./components/img/statistics-icon-active.png'),
|
||||||
|
text: '组织',
|
||||||
|
component: 'Organization',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
img: require('./components/img/set-icon.png'),
|
||||||
|
activeImg: require('./components/img/set-icon-active.png'),
|
||||||
|
text: '地图',
|
||||||
|
component: 'Map'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
isTab: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
components: { Detail },
|
components: {
|
||||||
|
Organization,
|
||||||
|
Statistics,
|
||||||
|
Map,
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onChange(e) {
|
onChange(e) {
|
||||||
this.params = e.params
|
this.params = e.params
|
||||||
this.component = e.type
|
this.component = e.type
|
||||||
}
|
},
|
||||||
|
tabClick(index, component) {
|
||||||
|
this.tabIndex = index
|
||||||
|
this.component = component
|
||||||
|
this.refresh = false
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.refresh = true
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = "网格管理"
|
document.title = '网格管理'
|
||||||
}
|
uni.$on('hideTab', () => {
|
||||||
|
this.isTab = false
|
||||||
|
})
|
||||||
|
uni.$on('showTab', () => {
|
||||||
|
this.isTab = true
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
if(!this.tabIndex) {
|
||||||
|
uni.$emit('nextList')
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
::v-deep uni-page-body{
|
.AppGridManagement {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.AppGridManagement{
|
.tabs {
|
||||||
height: 100%;
|
width: 100%;
|
||||||
|
height: 98px;
|
||||||
|
background: #fff;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
display: flex;
|
||||||
|
.item {
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
img {
|
||||||
|
width: 56px;
|
||||||
|
height: 56px;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
font-size: 22px;
|
||||||
|
font-family: PingFangSC-Medium, PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #c4cad4;
|
||||||
|
line-height: 8px;
|
||||||
|
}
|
||||||
|
.color-3267F0 {
|
||||||
|
color: #3267f0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -188,7 +188,7 @@ ai-tree-picker {
|
|||||||
|
|
||||||
.map-content {
|
.map-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 112px);
|
height: calc(100% - 210px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.popup {
|
.popup {
|
||||||
0
src/apps/AppGridManagement/Organization.vue
Normal file
0
src/apps/AppGridManagement/Statistics.vue
Normal file
BIN
src/apps/AppGridManagement/components/img/add-icon.png
Normal file
|
After Width: | Height: | Size: 815 B |
BIN
src/apps/AppGridManagement/components/img/bg-1.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
src/apps/AppGridManagement/components/img/bg-2.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/apps/AppGridManagement/components/img/bg-3.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
src/apps/AppGridManagement/components/img/down-icon.png
Normal file
|
After Width: | Height: | Size: 314 B |
BIN
src/apps/AppGridManagement/components/img/gird--select-icon.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/apps/AppGridManagement/components/img/gird-icon.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/apps/AppGridManagement/components/img/handle-icon-active.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/apps/AppGridManagement/components/img/handle-icon.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/apps/AppGridManagement/components/img/jujue.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/apps/AppGridManagement/components/img/line-img.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/apps/AppGridManagement/components/img/local-icon.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/apps/AppGridManagement/components/img/remove-icon.png
Normal file
|
After Width: | Height: | Size: 803 B |
BIN
src/apps/AppGridManagement/components/img/right-icon.png
Normal file
|
After Width: | Height: | Size: 373 B |
BIN
src/apps/AppGridManagement/components/img/search-icon.png
Normal file
|
After Width: | Height: | Size: 766 B |
BIN
src/apps/AppGridManagement/components/img/set-icon-active.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/apps/AppGridManagement/components/img/set-icon.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/apps/AppGridManagement/components/img/setting-icon.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/apps/AppGridManagement/components/img/statistics-icon.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/apps/AppGridManagement/components/img/tx@2x.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/apps/AppGridManagement/components/img/user-img.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/apps/AppGridManagement/components/img/xz.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/apps/AppGridManagement/components/img/xzh.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/apps/AppGridManagement/components/img/zhuanjiao.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |