|
@@ -1,76 +1,68 @@
|
|
|
<template>
|
|
|
- <ul>
|
|
|
- <li style="background: linear-gradient(135deg, #488fff 0%, #65dcff 100%)" @click="goPath('/communityManagement/index')">
|
|
|
- <div class="header-left">
|
|
|
- <div class="header-left-top">
|
|
|
- <div class="header-icon"></div>
|
|
|
- <div>社区</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="header-number">{{ houseData.communityTotal }}</div>
|
|
|
- <div class="header-right">
|
|
|
- <img src="@assets/img/img_shequ.png" alt="" />
|
|
|
- </div>
|
|
|
- <!-- </router-link> -->
|
|
|
- </li>
|
|
|
- <li style="background: linear-gradient(315deg, #5eedcc 0%, #24c3f1 100%)" @click="goPath('/buildingManagement/index')">
|
|
|
- <div class="header-left">
|
|
|
- <div class="header-left-top">
|
|
|
- <div class="header-icon"></div>
|
|
|
- <div>楼栋</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="header-number">{{ houseData.buildingTotal }}</div>
|
|
|
- <div class="header-right">
|
|
|
- <img src="@assets/img/img_loudong.png" alt="" />
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- <li
|
|
|
- style="background: linear-gradient(135deg, #f0646c 0%, #f4994e 100%)"
|
|
|
- @click="goPath('/assetManagement/housingManagement/index')"
|
|
|
- >
|
|
|
- <div class="header-left">
|
|
|
- <div class="header-left-top">
|
|
|
- <div class="header-icon"></div>
|
|
|
- <div>房屋</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="header-number">{{ houseData.houseTotal }}</div>
|
|
|
- <div class="header-right">
|
|
|
- <img src="@assets/img/img_fangwu.png" alt="" />
|
|
|
+ <div class="modelBlock">
|
|
|
+ <template v-if="permissionFiltering">
|
|
|
+ <div class="model-title">
|
|
|
+ <div class="model-title-text">社区总体情况统计</div>
|
|
|
</div>
|
|
|
- </li>
|
|
|
- <li style="background: linear-gradient(135deg, #7178ff 0%, #d2a4ff 100%)" @click="goPath('/assetManagement/shopManagement/index')">
|
|
|
- <div class="header-left">
|
|
|
- <div class="header-left-top">
|
|
|
- <div class="header-icon"></div>
|
|
|
- <div>商铺</div>
|
|
|
+ <div class="model-contents">
|
|
|
+ <div
|
|
|
+ class="blockmuen"
|
|
|
+ :style="item.style"
|
|
|
+ v-for="(item, index) in blockArr"
|
|
|
+ :key="index"
|
|
|
+ @click="$router.push({ path: item.path })"
|
|
|
+ >
|
|
|
+ <div class="number">{{ houseData[item.fontObj] }}</div>
|
|
|
+ <div class="text">{{ item.name }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="header-number">{{ houseData.shopsTotal }}</div>
|
|
|
- <div class="header-right">
|
|
|
- <img src="@assets/img/img_shangpu.png" alt="" />
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- <li style="background: linear-gradient(135deg, #884dd2 0%, #df63cc 100%)" @click="goPath('/ownerManagement/index')">
|
|
|
- <div class="header-left">
|
|
|
- <div class="header-left-top">
|
|
|
- <div class="header-icon"></div>
|
|
|
- <div>住户</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="header-number">{{ houseData.residentTotal }}</div>
|
|
|
- <div class="header-right">
|
|
|
- <img src="@assets/img/img_zhuhu.png" alt="" />
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ </template>
|
|
|
+ <no-permission v-else tipsText="社区总体情况统计"></no-permission>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import permissionComponent from '../permissionComponent';
|
|
|
export default {
|
|
|
+ mixins: [permissionComponent],
|
|
|
data() {
|
|
|
return {
|
|
|
- houseData: {}
|
|
|
+ defaultModel: {
|
|
|
+ permissUrl: '11',
|
|
|
+ titleName: '房产管理'
|
|
|
+ },
|
|
|
+ houseData: {},
|
|
|
+ blockArr: [
|
|
|
+ {
|
|
|
+ style: 'background: linear-gradient(135deg, #488fff 0%, #65dcff 100%)',
|
|
|
+ name: '社区',
|
|
|
+ fontObj: 'communityTotal',
|
|
|
+ path: '/communityManagement/index'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: 'background: linear-gradient(315deg, #5EEDCC 0%, #24C3F1 100%);',
|
|
|
+ name: '楼栋',
|
|
|
+ fontObj: 'buildingTotal',
|
|
|
+ path: '/buildingManagement/index'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: 'background: linear-gradient(135deg, #F0646C 0%, #F4994E 100%);',
|
|
|
+ name: '房屋',
|
|
|
+ fontObj: 'houseTotal',
|
|
|
+ path: '/assetManagement/housingManagement/index'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: 'background: linear-gradient(135deg, #7178FF 0%, #D2A4FF 100%);',
|
|
|
+ name: '商铺',
|
|
|
+ fontObj: 'shopsTotal',
|
|
|
+ path: '/assetManagement/shopManagement/index'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ style: 'background: linear-gradient(135deg, #884DD2 0%, #DF63CC 100%);',
|
|
|
+ name: '住户',
|
|
|
+ fontObj: 'residentTotal',
|
|
|
+ path: '/ownerManagement/index'
|
|
|
+ }
|
|
|
+ ]
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -89,4 +81,27 @@ export default {
|
|
|
this.getHouseData();
|
|
|
}
|
|
|
};
|
|
|
-</script>
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+@import '../style.scss';
|
|
|
+.modelBlock {
|
|
|
+ .model-contents {
|
|
|
+ height: 50%;
|
|
|
+ margin: 5% 0;
|
|
|
+ display: grid;
|
|
|
+ row-gap: rem(20);
|
|
|
+ column-gap: rem(20);
|
|
|
+ grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
+ .blockmuen {
|
|
|
+ border-radius: rem(10);
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding-left: rem(20);
|
|
|
+ padding-top: rem(20);
|
|
|
+ cursor: pointer;
|
|
|
+ .number {
|
|
|
+ font-size: rem(30);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|