提交 349653fe authored 作者: 宋雄's avatar 宋雄

优化

上级 78ef46d7
NODE_ENV=development
VUE_APP_API_BASE_URL='http://220.203.25.212:9998'
# VUE_APP_API_BASE_URL='http://192.168.0.100:9999'
# VUE_APP_API_BASE_URL='http://220.203.25.212:9998'
VUE_APP_API_BASE_URL='http://192.168.0.100:9999'
# VUE_APP_API_BASE_URL='http://220.203.25.212:9999'
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
......
<template>
<div class="page-header-index-wide">
<a-spin :spinning="confirmLoading">
<a-row :gutter="12">
<a-col :sm="24" :md="8" :xl="4" :style="{ marginBottom: '12px' }">
<div class="statistics">
......@@ -73,20 +73,27 @@
<h3 class="box-title">待处理事务(入驻待审核)</h3>
<div class="content" v-if="waitAuditList.length > 0">
<div class="item" v-for="(item, index) in waitAuditList" :key="index">
<template v-if="item.creditCode">
<template v-if="item.urlType === 'center'">
<p>入驻物业集团名称:{{ item.propertyName }}</p>
<p>申请入驻小区数量:{{ item.empowerCommunityNum }}</p>
<p>申请入驻物业时间:{{ item.createTime }}</p>
<p>添加人:{{ item.createBy }}</p>
<a-button type="primary" size="small" @click="toOperation(item, 1)">审核</a-button>
</template>
<template v-else>
<template v-else-if="item.urlType === 'councils'">
<p>入驻社区名称:{{ item.councilsName }}</p>
<p>申请入驻小区数量:{{ item.empowerCommunityNum }}</p>
<p>申请入驻社区时间:{{ item.createTime }}</p>
<p>添加人:{{ item.createBy }}</p>
<a-button type="primary" size="small" @click="toOperation(item, 2)">审核</a-button>
</template>
<template v-else>
<p>入驻合作伙伴名称:{{ item.partnersName }}</p>
<p>统一社会信用代码:{{ item.creditCode }}</p>
<p>申请入驻社区时间:{{ item.createTime }}</p>
<p>添加人:{{ item.createBy }}</p>
<a-button type="primary" size="small" @click="toOperation(item, 3)">审核</a-button>
</template>
</div>
</div>
<div class="content" v-else>
......@@ -98,7 +105,7 @@
<h3 class="box-title">社区分布数量图</h3>
<div ref="mapEcharts" class="map-echart" style="height: 500px"></div>
</div>
</div>
</a-spin>
</template>
<script>
......@@ -149,10 +156,10 @@ export default {
},
data() {
return {
confirmLoading: false,
statistical: {},
mapData: [],
waitAuditList: [],
loading: true,
center: null,
rankList,
barData,
......@@ -163,10 +170,7 @@ export default {
}
},
created() {
setTimeout(() => {
this.loading = !this.loading
}, 1000)
this.initLogInfo()
// this.initLogInfo()
this.getDataStatistics()
},
methods: {
......@@ -186,6 +190,7 @@ export default {
})
},
async getDataStatistics() {
this.confirmLoading = true
let { result } = await getDataStatisticsApi()
// this.statistical = {
// settledNum: result.settledNum,
......@@ -195,9 +200,14 @@ export default {
// monthSettledNum: result.monthSettledNum,
// }
this.statistical = {...result}
let propertyList = result.waitAuditList[0] || []
let communityList = result.waitAuditList[1] || []
this.waitAuditList = propertyList.concat(communityList)
let propertyList = result.waitAuditList.propertySettleds || []
propertyList.forEach(item=>item['urlType'] = 'center')
let communityList = result.waitAuditList.propertyCouncils || []
communityList.forEach(item=>item['urlType'] = 'councils')
let partnersList = result.waitAuditList.partnersInfos || []
partnersList.forEach(item=>item['urlType'] = 'partners')
this.waitAuditList = propertyList.concat(communityList, partnersList)
this.confirmLoading = false
this.mapData =
result.propertySettledList.map((item) => {
return {
......@@ -213,10 +223,14 @@ export default {
this.$router.push({
path: '/settled/propertyDetails?type=audit&id=' + record.id,
})
} else {
} else if(type === 2) {
this.$router.push({
path: '/settled/communityDetails?type=audit&id=' + record.id,
})
} else {
this.$router.push({
path: '/settled/partners/PartnersDetails?type=audit&id=' + record.id
})
}
},
//地图
......@@ -297,29 +311,25 @@ export default {
</script>
<style lang="less" scoped>
.page-header-index-wide {
// padding: 16px;
.statistics {
// flex: none;
background: #fff;
width: 100%;
height: 90px;
box-sizing: border-box;
border: 1px solid #e0dfdf;
display: flex;
align-items: center;
justify-content: center;
.icon {
margin-right: 12px;
.anticon {
font-size: 36px;
}
}
span {
font-size: 14px;
color: #1890ff;
.statistics {
background: #fff;
width: 100%;
height: 90px;
box-sizing: border-box;
border: 1px solid #e0dfdf;
display: flex;
align-items: center;
justify-content: center;
.icon {
margin-right: 12px;
.anticon {
font-size: 36px;
}
}
span {
font-size: 14px;
color: #1890ff;
}
}
.map-box {
background-color: #fff;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论