|
|
@@ -1,5 +1,43 @@
|
|
|
<template>
|
|
|
<basic-container>
|
|
|
+<!-- 卡片-->
|
|
|
+<!-- <el-container>-->
|
|
|
+<!-- <el-main>-->
|
|
|
+<!-- <template>-->
|
|
|
+<!-- <el-carousel :interval="5000" height="200px">-->
|
|
|
+<!-- <el-carousel-item>-->
|
|
|
+<!-- <el-container>-->
|
|
|
+<!-- <el-header style="background-color: rgb(29,67,58);height: 65px">-->
|
|
|
+<!-- <div class="titleLabel">-->
|
|
|
+<!-- <el-row :gutter="40">-->
|
|
|
+<!-- <div>-->
|
|
|
+<!-- <el-col :span="20"><div class="titleText">{{communityCount.agencyCount}}</div></el-col>-->
|
|
|
+<!-- <el-col :span="4"><div class="titleCount">{{communityCount.buildingCount}}</div></el-col>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </el-row>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </el-header>-->
|
|
|
+<!-- <el-main>-->
|
|
|
+<!-- <div style="margin-left: 100px">-->
|
|
|
+<!-- <avue-data-display :option="dataShow(item)"></avue-data-display>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </el-main>-->
|
|
|
+<!-- </el-container>-->
|
|
|
+<!-- </el-carousel-item>-->
|
|
|
+<!-- </el-carousel>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </el-main>-->
|
|
|
+<!-- </el-container>-->
|
|
|
+
|
|
|
+<!--卡片数据展示-->
|
|
|
+ <el-card style="background: #f5f5f5;margin-bottom: 20px">
|
|
|
+ <el-tabs type="border-card">
|
|
|
+ <el-tab-pane label="社区数据统计">
|
|
|
+ <div><avue-data-box :option="communityStatistics"></avue-data-box></div>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
<avue-crud :option="option" :table-loading="loading" :data="data" :page="page" :permission="permissionList"
|
|
|
:before-open="beforeOpen" v-model="form" ref="crud" @row-update="rowUpdate" @row-save="rowSave" @row-del="rowDel"
|
|
|
@search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange"
|
|
|
@@ -33,6 +71,7 @@ import {
|
|
|
update,
|
|
|
remove
|
|
|
} from "@/api/community/agency.js";
|
|
|
+import {getCommunityList} from "../../api/grid/index";
|
|
|
import {
|
|
|
mapGetters
|
|
|
} from "vuex";
|
|
|
@@ -46,6 +85,7 @@ export default {
|
|
|
components: {CyExcelImport,editPolygonMap},
|
|
|
data() {
|
|
|
return {
|
|
|
+ communityCount:{},
|
|
|
mapVisible:false,
|
|
|
areaData: [],
|
|
|
form: {},
|
|
|
@@ -56,10 +96,41 @@ export default {
|
|
|
currentPage: 1,
|
|
|
total: 0
|
|
|
},
|
|
|
+ //数据展示
|
|
|
+ communityStatistics:{
|
|
|
+ span:6,
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ title: '社区数量',
|
|
|
+ count: 0,
|
|
|
+ icon: 'el-icon-s-home',
|
|
|
+ color: 'rgb(49, 180, 141)',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '小区数量',
|
|
|
+ count: 0,
|
|
|
+ icon: 'el-icon-s-home',
|
|
|
+ color: 'rgb(56, 161, 242)',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '楼宇数量',
|
|
|
+ count: 0,
|
|
|
+ icon: 'el-icon-s-home',
|
|
|
+ color: 'rgb(117, 56, 199)',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '住户数量',
|
|
|
+ count: 0,
|
|
|
+ icon: 'el-icon-user-solid',
|
|
|
+ color: 'rgb(143,119,0)',
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+
|
|
|
selectionList: [],
|
|
|
option: {
|
|
|
height: 'auto',
|
|
|
- calcHeight: 60,
|
|
|
+ // calcHeight: 60,
|
|
|
tip: false,
|
|
|
searchShow: true,
|
|
|
searchMenuSpan: 6,
|
|
|
@@ -450,6 +521,14 @@ export default {
|
|
|
this.onLoad(this.page, this.query);
|
|
|
},
|
|
|
onLoad(page, params = {}) {
|
|
|
+ getCommunityList('/640000').then(res=>{
|
|
|
+ this.communityCount = res.data.data;
|
|
|
+ console.log(this.communityCount,"打印communityCount");
|
|
|
+ this.communityStatistics.data[0].count = this.communityCount.agencyCount;
|
|
|
+ this.communityStatistics.data[1].count = this.communityCount.residentialCount;
|
|
|
+ this.communityStatistics.data[2].count = this.communityCount.buildingCount;
|
|
|
+ this.communityStatistics.data[3].count = this.communityCount.userCount;
|
|
|
+ });
|
|
|
this.loading = true;
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
|
|
const data = res.data.data;
|