网格
@@ -1,15 +1,19 @@
|
||||
<template>
|
||||
<div class="AppGridManagement">
|
||||
<component
|
||||
:is="component"
|
||||
@change="onChange"
|
||||
:params="params">
|
||||
</component>
|
||||
<component v-if="refresh" :is="component" @change="onChange" :params="params"> </component>
|
||||
<div class="tabs" v-if="isTab">
|
||||
<div class="item" @click="tabClick(index, item.component)" v-for="(item, index) in tabs" :key="index">
|
||||
<img :src="tabIndex == index ? item.activeImg : item.img" alt="" />
|
||||
<p :class="tabIndex == index ? 'color-3267F0' : ''">{{ item.text }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Detail from './components/detail'
|
||||
import Statistics from './Statistics.vue'
|
||||
import Organization from './Organization.vue'
|
||||
import Map from './Map.vue'
|
||||
|
||||
export default {
|
||||
name: 'AppGridManagement',
|
||||
@@ -17,30 +21,102 @@ export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
component: 'Detail',
|
||||
params: {}
|
||||
component: 'Map',
|
||||
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: {
|
||||
onChange(e) {
|
||||
this.params = e.params
|
||||
this.component = e.type
|
||||
}
|
||||
},
|
||||
tabClick(index, component) {
|
||||
this.tabIndex = index
|
||||
this.component = component
|
||||
this.refresh = false
|
||||
this.$nextTick(() => {
|
||||
this.refresh = true
|
||||
})
|
||||
},
|
||||
},
|
||||
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>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
::v-deep uni-page-body{
|
||||
.AppGridManagement {
|
||||
height: 100%;
|
||||
}
|
||||
.AppGridManagement{
|
||||
height: 100%;
|
||||
.tabs {
|
||||
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>
|
||||
@@ -188,7 +188,7 @@ ai-tree-picker {
|
||||
|
||||
.map-content {
|
||||
width: 100%;
|
||||
height: calc(100% - 112px);
|
||||
height: calc(100% - 210px);
|
||||
}
|
||||
|
||||
.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 |