|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1,94 @@ |
|||||
|
@import '../../c/config'; |
||||
|
@import '../../c/function'; |
||||
|
@import './c/common'; |
||||
|
|
||||
|
.title { |
||||
|
padding: 10px; |
||||
|
font-size: 22px; |
||||
|
font-family: PingFang SC; |
||||
|
font-weight: 800; |
||||
|
color: #ffffff; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
|
||||
|
img { |
||||
|
display: block; |
||||
|
margin-right: 5px; |
||||
|
} |
||||
|
span { |
||||
|
display: block; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.g-cpt-resi { |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
// flex-wrap: wrap; |
||||
|
// justify-content: center; |
||||
|
height: calc(100vh - 130px); |
||||
|
|
||||
|
.g-l { |
||||
|
flex-shrink: 0; |
||||
|
width: 600px; |
||||
|
height: calc(100vh - 190px); |
||||
|
} |
||||
|
|
||||
|
.g-r { |
||||
|
text-align: center; |
||||
|
margin: 40px 19px 20px; |
||||
|
width: calc(100vw - 60px - 600px); |
||||
|
height: calc(100vh - 140px - 20px); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.g-r { |
||||
|
.tb { |
||||
|
position: relative; |
||||
|
height: calc(100vh - 220px); |
||||
|
overflow-y: auto; |
||||
|
@include scrollBar; |
||||
|
|
||||
|
.m-pagination { |
||||
|
position: absolute; |
||||
|
box-sizing: border-box; |
||||
|
right: 0; |
||||
|
bottom: 0; |
||||
|
|
||||
|
width: 100%; |
||||
|
height: 40px; |
||||
|
display: flex; |
||||
|
justify-content: flex-end; |
||||
|
|
||||
|
/deep/ .el-pagination.is-background .el-pager li:not(.disabled).active { |
||||
|
background: #0266d1; |
||||
|
color: #000d3f; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-pagination .el-pager li { |
||||
|
background: #002e74; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-pagination .btn-prev { |
||||
|
background: #002e74; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-pagination .btn-next { |
||||
|
background: #002e74; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.echart-wr { |
||||
|
margin-left: 30px; |
||||
|
// margin-top: 100px; |
||||
|
text-align: center; |
||||
|
position: relative; |
||||
|
width: 500px; |
||||
|
height: 100%; |
||||
|
box-sizing: border-box; |
||||
|
.echart-org { |
||||
|
width: 100%; |
||||
|
height: 90%; |
||||
|
} |
||||
|
} |
||||
@ -1,442 +0,0 @@ |
|||||
<template> |
|
||||
|
|
||||
<div class="div_community_info" |
|
||||
@click="handleShowAllUser()"> |
|
||||
<div class="div_select"> |
|
||||
|
|
||||
<img src="../../../../assets/img/shuju/title-tip.png" |
|
||||
alt /> |
|
||||
<div class="customer_select"> |
|
||||
<!-- <span>{{neighborHoodName+'-'}}</span> --> |
|
||||
<el-select v-model="selBuildingId" |
|
||||
:popper-append-to-body="false" |
|
||||
placeholder="请选择"> |
|
||||
<el-option v-for="(item,index) in buildingArray" |
|
||||
:key="item.buildingId" |
|
||||
:label="item.buildingName" |
|
||||
:value="item.buildingId" |
|
||||
@click.native="handleClickBuilding(index)"> |
|
||||
</el-option> |
|
||||
</el-select> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="div_room_bar"> |
|
||||
<el-scrollbar style="height:100%"> |
|
||||
<div v-if="roomLoaded" |
|
||||
class="div_room"> |
|
||||
|
|
||||
<div v-for="(item,index) in roomArray" |
|
||||
:key="index" |
|
||||
:class="['item',{'item_sel':selHouseIndex==index}]" |
|
||||
@click="handleClickRoom(index)"> |
|
||||
<span>{{item.houseName}}</span> |
|
||||
|
|
||||
<div class="icon_party"> |
|
||||
<img :src="item.partyUrl" |
|
||||
alt /> |
|
||||
</div> |
|
||||
<div class="icon_category"> |
|
||||
<img v-for="(iconItem,iconIndex) in item.iconArrayShow" |
|
||||
:key="iconIndex" |
|
||||
:src="iconItem.iconUrl" |
|
||||
alt /> |
|
||||
</div> |
|
||||
<div @click.stop="handleShowAllUser(index)" |
|
||||
class="div_user"> |
|
||||
|
|
||||
<span>全部成员</span> |
|
||||
<img src="../../../../assets/img/xiala.png" |
|
||||
alt /> |
|
||||
|
|
||||
<div class="user_list" |
|
||||
v-show="item.showAllUser&&userArray.length>0"> |
|
||||
<div v-for="(userItem,userIndex) in userArray" |
|
||||
:key="userIndex" |
|
||||
class="user_item" |
|
||||
@click.stop="handleClickUser(userItem.userId)"> |
|
||||
<div class="user_item_content"> |
|
||||
<div class="name">{{userItem.name}}</div> |
|
||||
|
|
||||
<img src="../../../../assets/img/jinru.png" |
|
||||
alt /> |
|
||||
|
|
||||
</div> |
|
||||
<div :class="['item_line',{'last_line':userIndex==(userArray.length-1)}]"></div> |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
</el-scrollbar> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import { mapGetters } from "vuex"; |
|
||||
import { Loading } from 'element-ui'; //引入Loading服务 |
|
||||
import { requestPost } from "@/js/dai/request"; |
|
||||
|
|
||||
let loading;//加载动画 |
|
||||
|
|
||||
export default { |
|
||||
|
|
||||
data () { |
|
||||
return { |
|
||||
//父组件传过来的小区id |
|
||||
neighborHoodId: '', |
|
||||
neighborHoodName: '', |
|
||||
buildingArray: [],//楼栋下拉框数据 |
|
||||
selBuildingId: '', |
|
||||
selBuildingName: '', |
|
||||
|
|
||||
roomLoaded: false, |
|
||||
roomArray: [], |
|
||||
selHouseId: '', |
|
||||
selHouseName: '', |
|
||||
selHouseIndex: 0, |
|
||||
|
|
||||
userArray: [], |
|
||||
selUserName: '', |
|
||||
selUserId: '', |
|
||||
|
|
||||
orgData: {},//当前组织对象 |
|
||||
orgId: '', |
|
||||
orgLevel: '', |
|
||||
|
|
||||
//下钻层级记录 |
|
||||
runNum: 0, |
|
||||
runAgencyArray: [], |
|
||||
|
|
||||
} |
|
||||
}, |
|
||||
async mounted () { |
|
||||
|
|
||||
|
|
||||
}, |
|
||||
methods: { |
|
||||
//小区id,小区名称 |
|
||||
async initData (neighborHoodId, neighborHoodName) { |
|
||||
this.roomLoaded = false |
|
||||
this.neighborHoodId = neighborHoodId |
|
||||
this.neighborHoodName = neighborHoodName |
|
||||
//加载楼栋数据 |
|
||||
await this.loadBuilding() |
|
||||
|
|
||||
if (this.selBuildingId) { |
|
||||
await this.loadRoom() |
|
||||
this.roomLoaded = true |
|
||||
|
|
||||
} |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//切换楼栋 |
|
||||
async handleClickBuilding (index) { |
|
||||
|
|
||||
this.selBuildingId = this.buildingArray[index].buildingId |
|
||||
this.selBuildingName = this.buildingArray[index].buildingName |
|
||||
|
|
||||
await this.loadRoom() |
|
||||
this.roomLoaded = true |
|
||||
|
|
||||
this.$emit('refreshInfoList', this.selBuildingId, 'building') |
|
||||
}, |
|
||||
//选择房间 |
|
||||
handleClickRoom (index) { |
|
||||
this.selHouseIndex = index |
|
||||
this.selHouseId = this.roomArray[index].houseId |
|
||||
this.selHouseName = this.roomArray[index].houseName |
|
||||
|
|
||||
// this.$emit('refreshInfoList', this.selHouseId, 'room') |
|
||||
}, |
|
||||
//点击全部成员 |
|
||||
async handleShowAllUser (selIndex) { |
|
||||
// this.startLoading() |
|
||||
await this.loadUser(this.roomArray[selIndex].houseId, selIndex) |
|
||||
|
|
||||
this.roomArray.forEach((element, index) => { |
|
||||
let obj = JSON.parse(JSON.stringify(element)) |
|
||||
|
|
||||
if (index === selIndex) { |
|
||||
obj.showAllUser = !obj.showAllUser |
|
||||
this.$set(this.roomArray, selIndex, obj) |
|
||||
|
|
||||
|
|
||||
} else { |
|
||||
obj.showAllUser = false |
|
||||
this.$set(this.roomArray, index, obj) |
|
||||
// element.showAllUser = false |
|
||||
} |
|
||||
}); |
|
||||
// this.endLoading() |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//点击用户 |
|
||||
handleClickUser (userId) { |
|
||||
this.$emit('toSubAgency', 'people', userId, "") |
|
||||
}, |
|
||||
//获取右侧infolist数据 |
|
||||
async loadList () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//加载楼栋数据 |
|
||||
async loadBuilding () { |
|
||||
const url = "/gov/org/agency/baseinfofamilybuilding" |
|
||||
// const url = "http://yapi.elinkservice.cn/mock/245/gov/org/agency/baseinfofamilybuilding" |
|
||||
let params = { |
|
||||
neighborHoodId: this.neighborHoodId |
|
||||
} |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, params) |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.buildingArray = data |
|
||||
this.buildingArray.forEach(item => { |
|
||||
if (!this.buildingArray[0].buildingName) { |
|
||||
item.buildingName = '楼' |
|
||||
} |
|
||||
|
|
||||
}); |
|
||||
if (this.buildingArray.length > 0) { |
|
||||
this.selBuildingId = this.buildingArray[0].buildingId |
|
||||
this.selBuildingName = this.buildingArray[0].buildingName |
|
||||
|
|
||||
} else { |
|
||||
this.selBuildingId = '' |
|
||||
this.selBuildingName = '' |
|
||||
} |
|
||||
|
|
||||
} else { |
|
||||
this.$message.error(msg) |
|
||||
} |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//加载房间数据 |
|
||||
async loadRoom () { |
|
||||
const url = "/gov/org/ichouse/houselist" |
|
||||
// const url = "http://yapi.elinkservice.cn/mock/245/gov/org/ichouse/houselist" |
|
||||
let params = { |
|
||||
buildingId: this.selBuildingId |
|
||||
} |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, params) |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.roomArray = data |
|
||||
|
|
||||
if (this.roomArray.length > 0) { |
|
||||
|
|
||||
this.roomArray.forEach(roomItem => { |
|
||||
let iconArrayShow = JSON.parse(JSON.stringify(roomItem.categoryList)) |
|
||||
let iconArray = [] |
|
||||
|
|
||||
if (iconArrayShow.length > 0) { |
|
||||
if (iconArrayShow[0].isSpecial === '1') {//第一个图标是党员 |
|
||||
roomItem.isParty = true |
|
||||
roomItem.partyUrl = iconArrayShow[0].iconUrl |
|
||||
iconArrayShow.shift();//删除第一个数据 |
|
||||
} else { |
|
||||
roomItem.isParty = false |
|
||||
} |
|
||||
} |
|
||||
if (iconArrayShow.length > 4) {//去前四个 |
|
||||
for (let i = 0; i < 4; i++) { |
|
||||
iconArray.push(iconArrayShow[i]) |
|
||||
} |
|
||||
} else { |
|
||||
iconArray = iconArrayShow |
|
||||
} |
|
||||
this.$nextTick(() => { |
|
||||
// ref_tree 元素的ref value 绑定的node-key |
|
||||
roomItem.iconArrayShow = iconArray |
|
||||
}); |
|
||||
|
|
||||
roomItem.showAllUser = false |
|
||||
|
|
||||
}); |
|
||||
|
|
||||
} |
|
||||
|
|
||||
|
|
||||
} else { |
|
||||
this.$message.error(msg) |
|
||||
} |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//加载成员数据 |
|
||||
async loadUser (houseId, index) { |
|
||||
const url = "/epmetuser/icresiuser/getpeoplebyroom" |
|
||||
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icresiuser/getpeoplebyroom" |
|
||||
let params = { |
|
||||
homeId: houseId |
|
||||
} |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, params) |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.userArray = data |
|
||||
if (this.userArray.length === 0) { |
|
||||
this.$message.warning('该房间下没有住户') |
|
||||
} |
|
||||
|
|
||||
} else { |
|
||||
this.$message.error(msg) |
|
||||
} |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
|
|
||||
//开启加载动画 |
|
||||
startLoading () { |
|
||||
loading = Loading.service({ |
|
||||
lock: true, //是否锁定 |
|
||||
text: '正在加载……', //加载中需要显示的文字 |
|
||||
background: 'rgba(0,0,0,.7)' //背景颜色 |
|
||||
}); |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//结束加载动画 |
|
||||
endLoading () { |
|
||||
//clearTimeout(timer); |
|
||||
if (loading) { |
|
||||
loading.close(); |
|
||||
} |
|
||||
}, |
|
||||
}, |
|
||||
props: { |
|
||||
|
|
||||
}, |
|
||||
computed: { |
|
||||
// selectWidth () { |
|
||||
// let width = this.selHouseName.length * 200 |
|
||||
// console.log(width) |
|
||||
// return width + 'px'; |
|
||||
// }, |
|
||||
|
|
||||
mapHeight () { |
|
||||
|
|
||||
return this.clientHeight - 120; |
|
||||
|
|
||||
}, |
|
||||
// zoom: { |
|
||||
// get () { |
|
||||
// //根据不同屏幕分辨率,控制zoom大小 |
|
||||
// if (this.clientHeight < 900) { |
|
||||
// return 2.3 |
|
||||
// } else { |
|
||||
// return 2.8 |
|
||||
// } |
|
||||
// }, |
|
||||
// set (value) { |
|
||||
// } |
|
||||
// }, |
|
||||
...mapGetters(["clientHeight"]) |
|
||||
|
|
||||
}, |
|
||||
components: {}, |
|
||||
} |
|
||||
|
|
||||
</script> |
|
||||
|
|
||||
<style |
|
||||
lang="scss" |
|
||||
src="@/assets/scss/modules/visual/basicInfoMain.scss" |
|
||||
scoped |
|
||||
></style> |
|
||||
|
|
||||
<style lang=scss scoped> |
|
||||
.customer_select { |
|
||||
/* 未选中任何选项的时候 placeholder的样式 需要先选中父元素 增加权重 */ |
|
||||
/deep/ input::-webkit-input-placeholder { |
|
||||
color: #fff; |
|
||||
} |
|
||||
/deep/ input::-moz-input-placeholder { |
|
||||
color: #fff; |
|
||||
} |
|
||||
/deep/ input::-ms-input-placeholder { |
|
||||
color: #fff; |
|
||||
} |
|
||||
|
|
||||
/* 修改的是el-input的样式 */ |
|
||||
/* 一种方法是设置最里层el-input__inner的背景色 外层的两级父元素设置为透明色 */ |
|
||||
/* 另一种方法是从el-select到el-input__inenr的背景色都设置为需要的颜色 */ |
|
||||
/deep/ .el-select, |
|
||||
/deep/ .el-input, |
|
||||
/deep/ .el-input__inner { |
|
||||
background-color: #08164d00; |
|
||||
color: #fff; |
|
||||
border: 0px; |
|
||||
border-radius: 0px; |
|
||||
text-align: left; |
|
||||
font-size: 22px; |
|
||||
font-family: PingFang SC; |
|
||||
font-weight: 800; |
|
||||
color: #ffffff; |
|
||||
display: flex; |
|
||||
} |
|
||||
|
|
||||
/* el-input聚焦的时候 外层的border会有一个样式 */ |
|
||||
/deep/ .el-select .el-input.is-focus .el-input__inner { |
|
||||
border: 0px; |
|
||||
} |
|
||||
|
|
||||
/* 修改的是el-input上下的小图标的颜色 */ |
|
||||
/deep/ .el-select .el-input .el-select__caret::before { |
|
||||
color: #fff; |
|
||||
content: ""; |
|
||||
background: url("../../../../assets/img/xiala.png") center center no-repeat; |
|
||||
position: absolute; |
|
||||
width: 100%; |
|
||||
height: 100%; |
|
||||
top: 50%; |
|
||||
left: 50%; |
|
||||
transform: translate(-50%, -50%); |
|
||||
} |
|
||||
|
|
||||
/* 修改总体选项的样式 最外层 */ |
|
||||
/deep/ .el-select-dropdown { |
|
||||
background-color: #08164d; |
|
||||
margin: 0px; |
|
||||
border: 0px; |
|
||||
border-radius: 0px; |
|
||||
} |
|
||||
|
|
||||
/* 修改选项整体的样式 */ |
|
||||
/deep/ .el-select-dropdown__list { |
|
||||
padding: 6px 0 20px 0; |
|
||||
} |
|
||||
/* 修改单个的选项的样式 */ |
|
||||
/deep/ .el-select-dropdown__item { |
|
||||
background-color: transparent; |
|
||||
color: #fff; |
|
||||
} |
|
||||
|
|
||||
/* item选项的hover样式 */ |
|
||||
/deep/ .el-select-dropdown__item.hover, |
|
||||
/deep/ .el-select-dropdown__item:hover { |
|
||||
color: #409eff; |
|
||||
} |
|
||||
|
|
||||
/* 修改的是下拉框选项内容上方的尖角 */ |
|
||||
/deep/ .el-popper .popper__arrow, |
|
||||
.el-popper .popper__arrow::after { |
|
||||
display: none; |
|
||||
} |
|
||||
} |
|
||||
</style> |
|
||||
|
|
||||
<style lang=scss > |
|
||||
.el-scrollbar__wrap { |
|
||||
overflow-x: hidden !important; |
|
||||
} |
|
||||
</style> |
|
||||
@ -0,0 +1,68 @@ |
|||||
|
<template> |
||||
|
<div class="screen-loading"> |
||||
|
<svg width="50px" |
||||
|
height="50px"> |
||||
|
<circle cx="25" |
||||
|
cy="25" |
||||
|
r="20" |
||||
|
fill="transparent" |
||||
|
stroke-width="3" |
||||
|
stroke-dasharray="31.415, 31.415" |
||||
|
stroke="#29cdff" |
||||
|
stroke-linecap="round"> |
||||
|
<animateTransform attributeName="transform" |
||||
|
type="rotate" |
||||
|
values="0, 25 25;360, 25 25" |
||||
|
dur="1.5s" |
||||
|
repeatCount="indefinite" /> |
||||
|
<animate attributeName="stroke" |
||||
|
values="#02bcfe;#3be6cb;#02bcfe" |
||||
|
dur="3s" |
||||
|
repeatCount="indefinite" /> |
||||
|
</circle> |
||||
|
|
||||
|
<circle cx="25" |
||||
|
cy="25" |
||||
|
r="10" |
||||
|
fill="transparent" |
||||
|
stroke-width="3" |
||||
|
stroke-dasharray="15.7, 15.7" |
||||
|
stroke="#29cdff" |
||||
|
stroke-linecap="round"> |
||||
|
<animateTransform attributeName="transform" |
||||
|
type="rotate" |
||||
|
values="360, 25 25;0, 25 25" |
||||
|
dur="1.5s" |
||||
|
repeatCount="indefinite" /> |
||||
|
<animate attributeName="stroke" |
||||
|
values="#3be6cb;#02bcfe;#3be6cb" |
||||
|
dur="3s" |
||||
|
repeatCount="indefinite" /> |
||||
|
</circle> |
||||
|
</svg> |
||||
|
<div class="loading-tip"> |
||||
|
<slot></slot> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'DvLoading' |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.screen-loading { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
.loading-tip { |
||||
|
font-size: 14px; |
||||
|
color: #fff; |
||||
|
} |
||||
|
} |
||||
|
</style> |
||||
@ -0,0 +1,310 @@ |
|||||
|
<template> |
||||
|
<div class="warning-table"> |
||||
|
<div class="table"> |
||||
|
<div class="table-header"> |
||||
|
<div |
||||
|
class="table-header-th" |
||||
|
v-for="(item, index) in headerList" |
||||
|
:key="item.title" |
||||
|
:style="headerStyle[index]" |
||||
|
> |
||||
|
{{ item.title }} |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="table-body"> |
||||
|
<div |
||||
|
class="table-body-tr" |
||||
|
v-for="(value, index) in tableData" |
||||
|
:key="index" |
||||
|
> |
||||
|
<div |
||||
|
class="td" |
||||
|
v-for="(item, indexs) in value" |
||||
|
:key="indexs" |
||||
|
:style="tableContentStyle[indexs]" |
||||
|
> |
||||
|
{{ item }} |
||||
|
<span |
||||
|
v-if="indexs + 1 == value.length && item.length > 8" |
||||
|
class="more" |
||||
|
@click.stop="onClickMorePop(index)" |
||||
|
ref="morePop" |
||||
|
> |
||||
|
更多> |
||||
|
<span class="more-pop" v-if="visiblePopList[index]"> |
||||
|
<!-- 李佳琪、刘阳、赵欣、丁一、嘉敏、李岩、何嘉慧 |
||||
|
李易峰、赵敏、何军、曲树惠 --> |
||||
|
{{ item }} |
||||
|
</span> |
||||
|
</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<screen-loading v-if="visibleLoading">加载中</screen-loading> |
||||
|
<div class="no-data" v-if="tableData.length == 0 && !visibleLoading"> |
||||
|
<img |
||||
|
src="../../../../../../assets/img/modules/visual/noData.png" |
||||
|
alt="" |
||||
|
srcset="" |
||||
|
class="no-data-img" |
||||
|
/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import ScreenLoading from "../screen-loading/index"; |
||||
|
import Vue from "vue"; |
||||
|
export default { |
||||
|
name: "warning-table", |
||||
|
components: { |
||||
|
ScreenLoading, |
||||
|
}, |
||||
|
props: { |
||||
|
headerList: { |
||||
|
type: Array, |
||||
|
required: false, |
||||
|
default: () => { |
||||
|
return [ |
||||
|
{ title: "序号" }, |
||||
|
{ title: "所属网格" }, |
||||
|
{ title: "所属小区" }, |
||||
|
{ title: "楼号" }, |
||||
|
{ title: "姓名" }, |
||||
|
]; |
||||
|
}, |
||||
|
}, |
||||
|
tableData: { |
||||
|
type: Array, |
||||
|
required: false, |
||||
|
default: () => { |
||||
|
return [ |
||||
|
// [ |
||||
|
// 1, |
||||
|
// "商丘路社区第一网格", |
||||
|
// "商丘路小区", |
||||
|
// "2号楼", |
||||
|
// "杨颖、王平、刘佳敏、丁辉、杨萍", |
||||
|
// ], |
||||
|
// [ |
||||
|
// 2, |
||||
|
// "商丘路社区第一网格", |
||||
|
// "商丘路小区", |
||||
|
// "2号楼", |
||||
|
// "杨颖、王平、刘佳敏、丁辉、杨萍", |
||||
|
// ], |
||||
|
]; |
||||
|
}, |
||||
|
}, |
||||
|
// 单独给头部设置样式 |
||||
|
headerStyle: { |
||||
|
type: Array, |
||||
|
default: () => { |
||||
|
return [ |
||||
|
// { |
||||
|
// width:'200px', |
||||
|
// border:'1px solid red' |
||||
|
// }, |
||||
|
// { |
||||
|
// width:'200px' |
||||
|
// } |
||||
|
]; |
||||
|
}, |
||||
|
}, |
||||
|
// 单独给内容设置样式 |
||||
|
tableContentStyle: { |
||||
|
type: Array, |
||||
|
default: () => { |
||||
|
return [ |
||||
|
// { |
||||
|
// width:'200px', |
||||
|
// border:'1px solid red' |
||||
|
// }, |
||||
|
// { |
||||
|
// width:'200px' |
||||
|
// } |
||||
|
]; |
||||
|
}, |
||||
|
}, |
||||
|
visibleLoading: { |
||||
|
type: Boolean, |
||||
|
default: true, |
||||
|
}, |
||||
|
// // 表格平均分的份数 |
||||
|
// ava: { |
||||
|
// type: Number, |
||||
|
// default: 8 |
||||
|
// }, |
||||
|
// // 表头高度--默认占比10% |
||||
|
// headerHeightAva: { |
||||
|
// type: String, |
||||
|
// default: '10%' |
||||
|
// }, |
||||
|
// // 表格主体平均分成的份数 |
||||
|
// tableContentAva: { |
||||
|
// type: Number, |
||||
|
// default: 5 |
||||
|
// }, |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
visiblePopList: [ |
||||
|
false, |
||||
|
false, |
||||
|
false, |
||||
|
false, |
||||
|
false, |
||||
|
false, |
||||
|
false, |
||||
|
false, |
||||
|
false, |
||||
|
false, |
||||
|
], |
||||
|
}; |
||||
|
}, |
||||
|
watch: { |
||||
|
tableData(arr) { |
||||
|
if (Array.isArray(arr)) { |
||||
|
this.visiblePopList = new Array(arr.length).fill(false); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
mounted() { |
||||
|
window.addEventListener("click", (e) => { |
||||
|
this.visiblePopList = new Array(this.visiblePopList.length).fill(false); |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
created() {}, |
||||
|
|
||||
|
methods: { |
||||
|
onClickMorePop(index) { |
||||
|
this.visiblePopList.forEach((item, indexs) => { |
||||
|
if (index == indexs) { |
||||
|
Vue.set(this.visiblePopList, index, true); |
||||
|
} else { |
||||
|
Vue.set(this.visiblePopList, indexs, false); |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.warning-table { |
||||
|
box-sizing: border-box; |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
.table { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
&-header { |
||||
|
width: 100%; |
||||
|
height: 50px; |
||||
|
display: flex; |
||||
|
justify-content: space-around; |
||||
|
align-items: center; |
||||
|
background: rgba(8, 37, 134, 0.85); |
||||
|
font-size: 16px; |
||||
|
font-weight: 400; |
||||
|
color: #ffffff; |
||||
|
|
||||
|
&-th { |
||||
|
text-align: center; |
||||
|
width: calc(100% / 5); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
&-body { |
||||
|
box-sizing: border-box; |
||||
|
width: 100%; |
||||
|
height: calc(100% - 50px); |
||||
|
font-size: 18px; |
||||
|
font-weight: 400; |
||||
|
color: #ffffff; |
||||
|
|
||||
|
&-tr { |
||||
|
width: 100%; |
||||
|
height: 50px; |
||||
|
// height: calc(100% / 10); |
||||
|
display: flex; |
||||
|
justify-content: space-around; |
||||
|
align-items: center; |
||||
|
|
||||
|
.td { |
||||
|
text-align: center; |
||||
|
width: calc(100% / 5); |
||||
|
.more { |
||||
|
font-size: 18px; |
||||
|
font-weight: 400; |
||||
|
color: #e4dc00; |
||||
|
position: relative; |
||||
|
cursor: pointer; |
||||
|
|
||||
|
&-pop { |
||||
|
box-sizing: border-box; |
||||
|
display: block; |
||||
|
box-sizing: border-box; |
||||
|
width: 215px; |
||||
|
height: auto; |
||||
|
line-height: 20px; |
||||
|
border: 1px solid red; |
||||
|
position: absolute; |
||||
|
right: -100%; |
||||
|
top: 150%; |
||||
|
background: #06186d; |
||||
|
border: 1px solid #1a64cc; |
||||
|
border-radius: 5px; |
||||
|
font-size: 9px; |
||||
|
font-weight: 400; |
||||
|
color: #ffffff; |
||||
|
padding: 16px 8px 10px 9px; |
||||
|
z-index: 1; |
||||
|
cursor: default; |
||||
|
// &::after{ |
||||
|
// position: absolute; |
||||
|
// left: 30%; |
||||
|
// top: -30%; |
||||
|
// display: flex; |
||||
|
// content:''; |
||||
|
// width: 0; |
||||
|
// height: 0; |
||||
|
// border-width: 13px; |
||||
|
// border-style: solid; |
||||
|
// border-color: transparent transparent rgba(26, 100, 204,0.5) transparent; |
||||
|
// // border-color: transparent transparent red transparent; |
||||
|
// transform: translate(-50%,0); |
||||
|
// } |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
&-tr:nth-child(2n) { |
||||
|
background: rgba(16, 75, 164, 0.24); |
||||
|
} |
||||
|
|
||||
|
&-tr:hover { |
||||
|
background: url("../../../../../../assets/img/modules/visual/hover-bac.png") |
||||
|
no-repeat center; |
||||
|
background-size: 100% 100%; |
||||
|
} |
||||
|
// 暂无数据 |
||||
|
.no-data { |
||||
|
width: 100%; |
||||
|
height: calc(100% - 50px); |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
&-img { |
||||
|
width: 249px; |
||||
|
height: 172px; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</style> |
||||
@ -1,503 +0,0 @@ |
|||||
<template> |
|
||||
<div class="m-pop"> |
|
||||
<div class="wrap"> |
|
||||
<cpt-card> |
|
||||
<div class="title"> |
|
||||
<img src="@/assets/img/shuju/title-tip.png" /> |
|
||||
<span>更多信息</span> |
|
||||
</div> |
|
||||
|
|
||||
<div class="btn-close" @click="handleClose"> |
|
||||
<img src="@/assets/img/shuju/people/close.png" /> |
|
||||
</div> |
|
||||
|
|
||||
<div |
|
||||
:key="'fieldSubList' + index" |
|
||||
v-for="(fieldSubList, index) in fieldList" |
|
||||
> |
|
||||
<div class="list"> |
|
||||
<div class="item" v-if="index == 0"> |
|
||||
<span class="item-field">所属网格:</span> |
|
||||
<span>{{ gridName }}</span> |
|
||||
</div> |
|
||||
<div class="item" v-if="index == 0"> |
|
||||
<span class="item-field">所属小区:</span> |
|
||||
<span>{{ xiaoquName }}</span> |
|
||||
</div> |
|
||||
<div class="item" v-if="index == 0"> |
|
||||
<span class="item-field">所属楼宇:</span> |
|
||||
<span>{{ louName }}-{{ danyuanName }}</span> |
|
||||
</div> |
|
||||
<div class="item" v-if="index == 0"> |
|
||||
<span class="item-field">所属家庭:</span> |
|
||||
<span>{{ homeName }}</span> |
|
||||
</div> |
|
||||
<div class="item" :key="field.itemId" v-for="field in fieldSubList"> |
|
||||
<span class="item-field">{{ field.label }}:</span> |
|
||||
|
|
||||
<span |
|
||||
v-if=" |
|
||||
field.itemType == 'select' || |
|
||||
field.itemType == 'radio' || |
|
||||
field.itemType == 'checkbox' || |
|
||||
field.itemType == 'cascader' |
|
||||
" |
|
||||
>{{ |
|
||||
info[field.columnName] == null |
|
||||
? "--" |
|
||||
: getOptionLabel( |
|
||||
field.options, |
|
||||
info[field.columnName], |
|
||||
field.itemType |
|
||||
) |
|
||||
}}</span |
|
||||
> |
|
||||
|
|
||||
<span v-else>{{ |
|
||||
info[field.columnName] == null ? "--" : info[field.columnName] |
|
||||
}}</span> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="line"></div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="tabs"> |
|
||||
<div |
|
||||
class="tab-btn" |
|
||||
@click="subStartGroupIndex" |
|
||||
v-if="groupList.length > 9" |
|
||||
> |
|
||||
<img src="@/assets/img/shuju/people/arrow-double-left.png" /> |
|
||||
</div> |
|
||||
<div |
|
||||
v-show="index >= startGroupIndex && index < startGroupIndex + 9" |
|
||||
class="tab" |
|
||||
:class="groupIndex % groupList.length == index ? 'z-on' : ''" |
|
||||
:key="'tab' + index" |
|
||||
@click="groupIndex = index" |
|
||||
v-for="(item, index) in groupList" |
|
||||
> |
|
||||
{{ item.label }} |
|
||||
</div> |
|
||||
<div |
|
||||
class="tab-btn" |
|
||||
@click="addStartGroupIndex" |
|
||||
v-if="groupList.length > 9" |
|
||||
> |
|
||||
<img src="@/assets/img/shuju/people/arrow-double-right.png" /> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div |
|
||||
:key="'group' + index" |
|
||||
v-show="groupIndex % groupList.length == index" |
|
||||
v-for="(group, index) in groupList" |
|
||||
> |
|
||||
<div v-if="group.tableName == 'ic_resi_demand' && Array.isArray(allInfo.ic_resi_demand) && allInfo.ic_resi_demand.length>0"> |
|
||||
<div |
|
||||
class="list" |
|
||||
:key="'ic_resi_demand' + infoIndex" |
|
||||
v-for="(infoItem, infoIndex) in allInfo.ic_resi_demand" |
|
||||
> |
|
||||
<div |
|
||||
class="item" |
|
||||
:key="field.itemId" |
|
||||
v-for="field in group.itemList" |
|
||||
> |
|
||||
<span class="item-field">{{ field.label }}:</span> |
|
||||
<span |
|
||||
v-if=" |
|
||||
field.itemType == 'select' || |
|
||||
field.itemType == 'radio' || |
|
||||
field.itemType == 'checkbox' || |
|
||||
field.itemType == 'cascader' |
|
||||
" |
|
||||
>{{ |
|
||||
infoItem[field.columnName] == null |
|
||||
? "--" |
|
||||
: getOptionLabel( |
|
||||
field.options, |
|
||||
infoItem[field.columnName], |
|
||||
field.itemType |
|
||||
) |
|
||||
}}</span |
|
||||
> |
|
||||
|
|
||||
<span v-else>{{ |
|
||||
infoItem[field.columnName] == null |
|
||||
? "--" |
|
||||
: infoItem[field.columnName] |
|
||||
}}</span> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="list" v-else> |
|
||||
<div |
|
||||
class="item" |
|
||||
:key="field.itemId" |
|
||||
v-for="field in group.itemList" |
|
||||
> |
|
||||
<span class="item-field">{{ field.label }}:</span> |
|
||||
<span |
|
||||
v-if=" |
|
||||
field.itemType == 'select' || |
|
||||
field.itemType == 'radio' || |
|
||||
field.itemType == 'checkbox' || |
|
||||
field.itemType == 'cascader' |
|
||||
" |
|
||||
>{{ |
|
||||
!allInfo[group.tableName] || |
|
||||
allInfo[group.tableName][0][field.columnName] == null |
|
||||
? "--" |
|
||||
: getOptionLabel( |
|
||||
field.options, |
|
||||
allInfo[group.tableName][0][field.columnName], |
|
||||
field.itemType |
|
||||
) |
|
||||
}}</span |
|
||||
> |
|
||||
|
|
||||
<span v-else>{{ |
|
||||
!allInfo[group.tableName] || |
|
||||
allInfo[group.tableName][0][field.columnName] == null |
|
||||
? "--" |
|
||||
: allInfo[group.tableName][0][field.columnName] |
|
||||
}}</span> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</cpt-card> |
|
||||
</div> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import cptCard from "@/views/modules/visual/cpts/card"; |
|
||||
import { requestPost } from "@/js/dai/request"; |
|
||||
|
|
||||
export default { |
|
||||
name: "peopleMore", |
|
||||
props: { |
|
||||
userId: { |
|
||||
type: String, |
|
||||
default: "", |
|
||||
}, |
|
||||
gridName: { |
|
||||
type: String, |
|
||||
default: "", |
|
||||
}, |
|
||||
}, |
|
||||
|
|
||||
components: { |
|
||||
cptCard, |
|
||||
}, |
|
||||
|
|
||||
data() { |
|
||||
return { |
|
||||
fieldList: [], |
|
||||
groupList: [], |
|
||||
groupIndex: 0, |
|
||||
startGroupIndex: 0, |
|
||||
info: {}, |
|
||||
allInfo: {}, |
|
||||
|
|
||||
xiaoquList: [], |
|
||||
louList: [], |
|
||||
danyuanList: [], |
|
||||
homeList: [], |
|
||||
}; |
|
||||
}, |
|
||||
|
|
||||
computed: { |
|
||||
xiaoquName() { |
|
||||
const { |
|
||||
xiaoquList, |
|
||||
info: { VILLAGE_ID }, |
|
||||
} = this; |
|
||||
if (Array.isArray(xiaoquList) && xiaoquList.length > 0 && VILLAGE_ID) { |
|
||||
let item = xiaoquList.find((item) => item.value == VILLAGE_ID); |
|
||||
if (item) { |
|
||||
return item.label; |
|
||||
} |
|
||||
} |
|
||||
return ""; |
|
||||
}, |
|
||||
louName() { |
|
||||
const { |
|
||||
louList, |
|
||||
info: { BUILD_ID }, |
|
||||
} = this; |
|
||||
if (Array.isArray(louList) && louList.length > 0 && BUILD_ID) { |
|
||||
let item = louList.find((item) => item.value == BUILD_ID); |
|
||||
if (item) { |
|
||||
return item.label; |
|
||||
} |
|
||||
} |
|
||||
return ""; |
|
||||
}, |
|
||||
danyuanName() { |
|
||||
const { |
|
||||
danyuanList, |
|
||||
info: { UNIT_ID }, |
|
||||
} = this; |
|
||||
if (Array.isArray(danyuanList) && danyuanList.length > 0 && UNIT_ID) { |
|
||||
let item = danyuanList.find((item) => item.value == UNIT_ID); |
|
||||
if (item) { |
|
||||
return item.label; |
|
||||
} |
|
||||
} |
|
||||
return ""; |
|
||||
}, |
|
||||
danyuanName() { |
|
||||
const { |
|
||||
danyuanList, |
|
||||
info: { UNIT_ID }, |
|
||||
} = this; |
|
||||
if (Array.isArray(danyuanList) && danyuanList.length > 0 && UNIT_ID) { |
|
||||
let item = danyuanList.find((item) => item.value == UNIT_ID); |
|
||||
if (item) { |
|
||||
return item.label; |
|
||||
} |
|
||||
} |
|
||||
return ""; |
|
||||
}, |
|
||||
homeName() { |
|
||||
const { |
|
||||
homeList, |
|
||||
info: { HOME_ID }, |
|
||||
} = this; |
|
||||
if (Array.isArray(homeList) && homeList.length > 0 && HOME_ID) { |
|
||||
let item = homeList.find((item) => item.value == HOME_ID); |
|
||||
if (item) { |
|
||||
return item.label; |
|
||||
} |
|
||||
} |
|
||||
return ""; |
|
||||
}, |
|
||||
}, |
|
||||
|
|
||||
watch: { |
|
||||
userId() { |
|
||||
this.getApiData(); |
|
||||
}, |
|
||||
}, |
|
||||
|
|
||||
mounted() { |
|
||||
this.getApiData(); |
|
||||
}, |
|
||||
|
|
||||
methods: { |
|
||||
addStartGroupIndex() { |
|
||||
const { startGroupIndex, groupList } = this; |
|
||||
if (startGroupIndex < groupList.length - 9) { |
|
||||
this.startGroupIndex = startGroupIndex + 1; |
|
||||
} else { |
|
||||
this.startGroupIndex = groupList.length - 9; |
|
||||
} |
|
||||
}, |
|
||||
subStartGroupIndex() { |
|
||||
const { startGroupIndex, groupList } = this; |
|
||||
if (startGroupIndex > 0) { |
|
||||
this.startGroupIndex = startGroupIndex - 1; |
|
||||
} else { |
|
||||
this.startGroupIndex = 0; |
|
||||
} |
|
||||
}, |
|
||||
handleClose() { |
|
||||
this.$emit("close"); |
|
||||
}, |
|
||||
|
|
||||
async getApiData() { |
|
||||
await this.getField(); |
|
||||
await this.getInfo(); |
|
||||
this.getXiaoquList(); |
|
||||
this.getLouList(); |
|
||||
this.getDanyuanList(); |
|
||||
this.getHomeList(); |
|
||||
}, |
|
||||
|
|
||||
getOptionLabel(options, value, type = "") { |
|
||||
if (Array.isArray(options)) { |
|
||||
let valueArr = value.split(","); |
|
||||
if (type == "cascader") { |
|
||||
if (valueArr.length > 0) { |
|
||||
let level1 = options.find((item) => item.value == valueArr[0]); |
|
||||
if (level1) { |
|
||||
if (valueArr.length > 1 && level1.children) { |
|
||||
let level2 = level1.children.find( |
|
||||
(item) => item.value == valueArr[1] |
|
||||
); |
|
||||
if (level2) { |
|
||||
return level1.label + "-" + level2.label; |
|
||||
} |
|
||||
} |
|
||||
return level1.label; |
|
||||
} |
|
||||
} |
|
||||
} else { |
|
||||
return valueArr |
|
||||
.map((val) => { |
|
||||
let item = options.find((item) => item.value == val); |
|
||||
if (item && item.label) { |
|
||||
return item.label; |
|
||||
} |
|
||||
return "--"; |
|
||||
}) |
|
||||
.join("、"); |
|
||||
} |
|
||||
} |
|
||||
return "--"; |
|
||||
}, |
|
||||
|
|
||||
//加载组织数据 |
|
||||
async getField() { |
|
||||
const url = "/oper/customize/icform/getcustomerform"; |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, { |
|
||||
dynamic: true, |
|
||||
formCode: "resi_base_info", |
|
||||
}); |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.groupList = data.groupList; |
|
||||
this.fieldList = (function (arr) { |
|
||||
let col = []; |
|
||||
let ele = []; |
|
||||
for (let i = 0; i < arr.length; i++) { |
|
||||
let item = arr[i]; |
|
||||
if (item.itemType == "divider" || i == arr.length - 1) { |
|
||||
col.push([...ele]); |
|
||||
ele = []; |
|
||||
} else { |
|
||||
ele.push(item); |
|
||||
} |
|
||||
} |
|
||||
return col; |
|
||||
})(data.itemList); |
|
||||
|
|
||||
this.fieldList.forEach((subList, index) => { |
|
||||
subList.forEach(async (item, subIndex) => { |
|
||||
if (item.optionSourceType == "remote" && item.optionSourceValue) { |
|
||||
this.fieldList[index][subIndex].options = await this.getOptions( |
|
||||
item.optionSourceValue |
|
||||
); |
|
||||
} |
|
||||
}); |
|
||||
}); |
|
||||
} else { |
|
||||
this.$message.error(msg); |
|
||||
} |
|
||||
}, |
|
||||
|
|
||||
//加载组织数据 |
|
||||
async getInfo() { |
|
||||
const url = "/epmetuser/icresiuser/detail"; |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, { |
|
||||
icResiUserId: this.userId, |
|
||||
formCode: "resi_base_info", |
|
||||
}); |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.info = data.ic_resi_user[0]; |
|
||||
this.allInfo = data; |
|
||||
|
|
||||
this.fieldList.forEach((subList, index) => { |
|
||||
subList.forEach((item, subIndex) => { |
|
||||
if ( |
|
||||
item.itemType == "radio" && |
|
||||
item.childGroup && |
|
||||
this.allInfo[item.tableName] && |
|
||||
this.allInfo[item.tableName][0][item.columnName] == "1" |
|
||||
) { |
|
||||
this.groupList = [...this.groupList, item.childGroup]; |
|
||||
} |
|
||||
}); |
|
||||
}); |
|
||||
console.log("1111111111111111111111111", this.groupList); |
|
||||
|
|
||||
this.groupList.forEach((subList, index) => { |
|
||||
subList.itemList.forEach(async (item, subIndex) => { |
|
||||
if (item.optionSourceType == "remote" && item.optionSourceValue) { |
|
||||
this.groupList[index].itemList[subIndex].options = |
|
||||
await this.getOptions(item.optionSourceValue); |
|
||||
} |
|
||||
}); |
|
||||
}); |
|
||||
} else { |
|
||||
this.$message.error(msg); |
|
||||
} |
|
||||
}, |
|
||||
|
|
||||
//加载组织数据 |
|
||||
async getOptions(url) { |
|
||||
if (!url) return []; |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, {}); |
|
||||
|
|
||||
if (code === 0) { |
|
||||
return data; |
|
||||
} else { |
|
||||
return []; |
|
||||
} |
|
||||
}, |
|
||||
|
|
||||
async getXiaoquList() { |
|
||||
const url = "/gov/org/icneighborhood/neighborhoodoption"; |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, { |
|
||||
agencyId: this.info.AGENCY_ID, |
|
||||
gridId: this.info.GRID_ID, |
|
||||
}); |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.xiaoquList = data; |
|
||||
} else { |
|
||||
this.$message.error(msg); |
|
||||
} |
|
||||
}, |
|
||||
async getLouList() { |
|
||||
const url = "/gov/org/icbuilding/buildingoption"; |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, { |
|
||||
neighborHoodId: this.info.VILLAGE_ID, |
|
||||
}); |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.louList = data; |
|
||||
} else { |
|
||||
this.$message.error(msg); |
|
||||
} |
|
||||
}, |
|
||||
async getDanyuanList() { |
|
||||
const url = "/gov/org/icbuildingunit/unitoption"; |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, { |
|
||||
buildingId: this.info.BUILD_ID, |
|
||||
}); |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.danyuanList = data; |
|
||||
} else { |
|
||||
this.$message.error(msg); |
|
||||
} |
|
||||
}, |
|
||||
async getHomeList() { |
|
||||
const url = "/gov/org/ichouse/houseoption"; |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, { |
|
||||
unitId: this.info.UNIT_ID, |
|
||||
}); |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.homeList = data; |
|
||||
} else { |
|
||||
this.$message.error(msg); |
|
||||
} |
|
||||
}, |
|
||||
}, |
|
||||
}; |
|
||||
</script> |
|
||||
|
|
||||
<style lang="scss" src="@/assets/scss/modules/visual/people.scss" scoped></style> |
|
||||
@ -1,748 +0,0 @@ |
|||||
<template> |
|
||||
<div style="position: relative"> |
|
||||
|
|
||||
<!-- 组织路由 --> |
|
||||
<div class="div_top"> |
|
||||
<div class="router_line"></div> |
|
||||
<div class="div_router"> |
|
||||
<span class="router_parents" |
|
||||
v-for="(item,index) in runAgencyArray" |
|
||||
@click="handleClickAgency(index)" |
|
||||
:key="index">{{item.name}}<span class="arrow">></span></span> |
|
||||
|
|
||||
<span class="router_child">{{orgData.name}}</span> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<people-search v-show="orgLevel==='search'" |
|
||||
@toSubAgency="toSubAgency" |
|
||||
ref="ref_search"></people-search> |
|
||||
<people v-if="orgLevel==='people'" |
|
||||
:uid="selUserId" |
|
||||
ref="ref_people"></people> |
|
||||
|
|
||||
<div v-show="orgLevel!=='people' && orgLevel!=='search'" |
|
||||
class="div_content"> |
|
||||
|
|
||||
<basic-info-community v-show="orgLevel==='neighborHood'" |
|
||||
@toSubAgency="toSubAgency" |
|
||||
ref="ref_community" |
|
||||
@refreshInfoList="refreshInfoList"></basic-info-community> |
|
||||
|
|
||||
<div v-show="orgLevel!=='people' && orgLevel!=='search' && orgLevel!=='neighborHood'" |
|
||||
class="div_map" |
|
||||
id="map" |
|
||||
ref="map"> |
|
||||
<!-- <div id="map" |
|
||||
class="map"></div> --> |
|
||||
</div> |
|
||||
|
|
||||
<div class="div_data"> |
|
||||
<div @click="handleSearch" |
|
||||
class="div_search"> |
|
||||
<div class="div_search_left"> |
|
||||
<i slot="prefix" |
|
||||
class="icon"> |
|
||||
<img src="../../../../assets/img/modules/visual/sousuo.png" |
|
||||
alt /> |
|
||||
</i> |
|
||||
<span>请输入姓名</span> |
|
||||
</div> |
|
||||
|
|
||||
<div class="btn">搜索</div> |
|
||||
|
|
||||
</div> |
|
||||
|
|
||||
<div class="div_info"> |
|
||||
<el-scrollbar style="height:100%"> |
|
||||
<div class="info_tip"> |
|
||||
<img src="../../../../assets/img/shuju/title-tip.png" |
|
||||
alt /> |
|
||||
<div class="tip_title">分类列表</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="info_list"> |
|
||||
<div v-for="(item,index) in listDatashow" |
|
||||
:key="index" |
|
||||
class="item"> |
|
||||
<div class="list_item"> |
|
||||
<div v-for="(colItem,colIndex) in item" |
|
||||
:key="colIndex" |
|
||||
class="list_item_col"> |
|
||||
<img :src="colItem.dataIcon" |
|
||||
alt /> |
|
||||
<div class="item_content"> |
|
||||
<div class="item_label">{{colItem.label}}</div> |
|
||||
<div class="item_count">{{colItem.count}}</div> |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
</div> |
|
||||
<div :class="['item_line',{'last_line':index==(listDatashow.length-1)}]"></div> |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
</el-scrollbar> |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
|
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import 'ol/ol.css' |
|
||||
import { Map, View } from 'ol' |
|
||||
import TileLayer from 'ol/layer/Tile.js'; |
|
||||
import XYZ from 'ol/source/XYZ.js'; |
|
||||
import VectorLayer from 'ol/layer/Vector.js'; |
|
||||
import VectorSource from 'ol/source/Vector.js'; |
|
||||
import GeoJSON from 'ol/format/GeoJSON.js'; |
|
||||
import Point from "ol/geom/Point.js"; |
|
||||
import Feature from "ol/Feature.js"; |
|
||||
import Overlay from 'ol/Overlay'; |
|
||||
import { defaults as defaultInteractions, Select, DoubleClickZoom } from 'ol/interaction.js'; |
|
||||
import { getCenter, boundingExtent } from 'ol/extent.js'; |
|
||||
import { Circle as CircleStyle, Icon, Fill, Stroke, Style, Text } from 'ol/style.js'; |
|
||||
|
|
||||
import { mapGetters } from "vuex"; |
|
||||
import { Loading } from 'element-ui'; //引入Loading服务 |
|
||||
import { requestPost } from "@/js/dai/request"; |
|
||||
import BasicInfoCommunity from "./basicInfoCommunity"; |
|
||||
import PeopleSearch from "./peopleSearch"; |
|
||||
import People from "./people"; |
|
||||
import cptCard from "@/views/modules/visual/cpts/card"; |
|
||||
|
|
||||
|
|
||||
let loading;//加载动画 |
|
||||
|
|
||||
let map; |
|
||||
let mapView; |
|
||||
let gaodeMapLayer;//背景地图图层 |
|
||||
let polygonLayer;//变电站标注图层 |
|
||||
let iconLayer; // icon标注图层 |
|
||||
let iconSource; // icon |
|
||||
let polygonSource;//变电站标注多边形 |
|
||||
let select;//选中标注 |
|
||||
|
|
||||
|
|
||||
//url图标 |
|
||||
|
|
||||
let iconUrlArray = [ |
|
||||
'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211116/a219130b6bc74b0b80b5ddb0fce0892a.png', |
|
||||
'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211116/a775d15e62374350b80e5cdf1912a4eb.png', |
|
||||
'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211116/884efcf6d6b44224a7fda599dd1b14cb.png' |
|
||||
]; |
|
||||
let textColorArray = [ |
|
||||
'rgba(236, 69, 4, 0.66)', |
|
||||
'rgba(0, 146, 238, 0.75)', |
|
||||
'rgba(238, 151, 0, 0.8)' |
|
||||
]; |
|
||||
let polygonColorArray = [ |
|
||||
'rgba(210, 2, 2, 0.24)', |
|
||||
'rgba(43, 231, 253, 0.25)', |
|
||||
'rgba(183, 185, 0, 0.16)' |
|
||||
]; |
|
||||
//变电站标注的文字样式 |
|
||||
var createTextStyle = function (feature) { |
|
||||
return new Text({ |
|
||||
textAlign: undefined, |
|
||||
font: "18px Arial", |
|
||||
//fontFamily: "Courier New, monospace", |
|
||||
// fontWeight: "bold", |
|
||||
text: feature.values_.name, |
|
||||
backgroundFill: new Fill({ |
|
||||
// color: 'rgba(0, 146, 238, 0.75)' |
|
||||
color: textColorArray[feature.values_.index - 1] |
|
||||
}), |
|
||||
padding: [4, 10, 4, 10], |
|
||||
//text: "变电站名称", |
|
||||
fill: new Fill({ color: "#ffffff" }), |
|
||||
// stroke: new Stroke({ color: "#ffffff", width: 3 }), |
|
||||
offsetY: -30, |
|
||||
offsetX: -50, |
|
||||
overflow: true, |
|
||||
}); |
|
||||
}; |
|
||||
|
|
||||
//变电站标注样式 |
|
||||
|
|
||||
var polygonStyleFunction = (function () { |
|
||||
return function (feature) { |
|
||||
return new Style({ |
|
||||
fill: new Fill({ |
|
||||
// color: [255, 255, 255, 0.3] |
|
||||
color: polygonColorArray[feature.values_.index - 1] |
|
||||
}), |
|
||||
stroke: new Stroke({ |
|
||||
color: polygonColorArray[feature.values_.index - 1], |
|
||||
width: 3 |
|
||||
}), |
|
||||
|
|
||||
text: createTextStyle(feature) |
|
||||
});; |
|
||||
}; |
|
||||
})() |
|
||||
|
|
||||
const vueGis = { |
|
||||
name: 'HomeMap', |
|
||||
data () { |
|
||||
return { |
|
||||
centerPoint: [],//中心点位置 |
|
||||
zoom: 14,//缩放范围:区14 |
|
||||
minZoom: 1,//最小缩放 |
|
||||
|
|
||||
orgData: {},//当前组织对象 |
|
||||
orgId: '', |
|
||||
orgLevel: '', |
|
||||
|
|
||||
subAgencyArray: [],//下拉框数据 |
|
||||
iconCoordinators: [], |
|
||||
currentCoordinate: null, |
|
||||
overlay: null, |
|
||||
|
|
||||
//右侧搜索 |
|
||||
searchName: "", |
|
||||
|
|
||||
//右侧列表 |
|
||||
listData: [],//得到的数据 |
|
||||
listDatashow: [],//处理成一行两列的数据 |
|
||||
|
|
||||
//下钻层级记录 |
|
||||
runNum: 0, |
|
||||
runAgencyArray: [], |
|
||||
selUserId: '', |
|
||||
|
|
||||
|
|
||||
} |
|
||||
}, |
|
||||
async mounted () { |
|
||||
//加载组织数据 |
|
||||
await this.loadOrgData() |
|
||||
|
|
||||
//初始化地图 |
|
||||
this.initMap() |
|
||||
|
|
||||
//添加标注图层 |
|
||||
this.addPolygonLayer() |
|
||||
|
|
||||
//添加icontuceng |
|
||||
this.addIconLayer() |
|
||||
|
|
||||
//加载当前园区的标注 |
|
||||
this.loadPolygon(this.subAgencyArray) |
|
||||
|
|
||||
await this.loadList() |
|
||||
|
|
||||
}, |
|
||||
methods: { |
|
||||
|
|
||||
handleSearch () { |
|
||||
|
|
||||
this.toSubAgency('search') |
|
||||
}, |
|
||||
|
|
||||
//获取右侧infolist数据 |
|
||||
async loadList () { |
|
||||
const url = "/epmetuser/statsresiwarn/list" |
|
||||
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/statsresiwarn/list" |
|
||||
let params = { |
|
||||
id: this.orgId, |
|
||||
level: this.orgLevel |
|
||||
} |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, params) |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.listData = data |
|
||||
// this.listData = this.listData1 |
|
||||
this.listDatashow = [] |
|
||||
let itemArray = [] |
|
||||
this.listData.forEach((item, index) => { |
|
||||
if (!item.dataIcon) { |
|
||||
item.dataIcon = require('../../../../assets/img/modules/visual/dibao.png') |
|
||||
} |
|
||||
|
|
||||
if (index % 2 === 0) {//偶数 |
|
||||
itemArray.push(item) |
|
||||
} else { |
|
||||
itemArray.push(item) |
|
||||
this.listDatashow.push(itemArray) |
|
||||
itemArray = [] |
|
||||
} |
|
||||
|
|
||||
}); |
|
||||
|
|
||||
|
|
||||
} else { |
|
||||
this.$message.error(msg) |
|
||||
} |
|
||||
}, |
|
||||
|
|
||||
//子组件点击房间,刷新右侧list |
|
||||
refreshInfoList (selId, type) { |
|
||||
this.orgId = houselIdseId |
|
||||
this.level = '' |
|
||||
}, |
|
||||
|
|
||||
//下钻到下一级 type点击的类型:polygon 点击多边形(分为点击组织/小区) search 点击搜索 people 点击详情 |
|
||||
async toSubAgency (type, e, searchName) { |
|
||||
console.log(e) |
|
||||
this.runNum++ |
|
||||
this.runAgencyArray.push(this.orgData) |
|
||||
//点击小区neighborHood显示楼栋,点击非小区,进入下一级地图 |
|
||||
if (type === 'people') { |
|
||||
|
|
||||
this.orgLevel = 'people' |
|
||||
this.selUserId = e |
|
||||
this.orgId = '' |
|
||||
this.orgData = { |
|
||||
id: '', |
|
||||
level: 'people', |
|
||||
name: '人员档案' |
|
||||
} |
|
||||
this.searchName = searchName |
|
||||
|
|
||||
} else if (type === 'search') { |
|
||||
|
|
||||
|
|
||||
this.orgLevel = 'search' |
|
||||
this.orgId = '' |
|
||||
this.orgData = { |
|
||||
id: '', |
|
||||
level: 'search', |
|
||||
name: '搜索' |
|
||||
} |
|
||||
this.$nextTick(() => { |
|
||||
this.$refs.ref_search.reset(); |
|
||||
}); |
|
||||
|
|
||||
} else { |
|
||||
this.subAgencyArray.forEach(item => { |
|
||||
|
|
||||
if (item.id === e.selected[0].values_.id) { |
|
||||
this.orgId = item.id |
|
||||
this.orgLevel = item.level |
|
||||
this.orgData = item |
|
||||
} |
|
||||
}); |
|
||||
|
|
||||
if (this.orgLevel === 'neighborHood') { |
|
||||
this.loadList() |
|
||||
this.$nextTick(() => { |
|
||||
|
|
||||
// 小区id,小区名称 |
|
||||
this.$refs.ref_community.initData(this.orgData.id, this.orgData.name); |
|
||||
}); |
|
||||
|
|
||||
} else { |
|
||||
this.refreshMap(true) |
|
||||
} |
|
||||
|
|
||||
} |
|
||||
|
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//刷新地图 |
|
||||
async refreshMap (isRefreshView) { |
|
||||
|
|
||||
//加载组织数据 |
|
||||
await this.loadOrgData() |
|
||||
|
|
||||
//加载当前园区的标注 |
|
||||
await this.loadPolygon(this.subAgencyArray) |
|
||||
|
|
||||
//重置地图中心点 |
|
||||
if (isRefreshView) { |
|
||||
this.setMapLocation() |
|
||||
mapView.setCenter(this.centerPoint); |
|
||||
mapView.setZoom(this.zoom); |
|
||||
} |
|
||||
|
|
||||
await this.loadList() |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//返回所选组织 |
|
||||
handleClickAgency (index) { |
|
||||
const cutNum = this.runAgencyArray.length - index//要减去的长度 |
|
||||
this.runNum = this.runNum - cutNum |
|
||||
this.orgData = this.runAgencyArray[index] |
|
||||
|
|
||||
for (let i = 0; i < cutNum; i++) { |
|
||||
this.runAgencyArray.pop() |
|
||||
} |
|
||||
|
|
||||
this.orgId = this.orgData.id |
|
||||
this.orgLevel = this.orgData.level |
|
||||
|
|
||||
if (this.orgLevel === 'people') { |
|
||||
|
|
||||
} else if (this.orgLevel === 'search') { |
|
||||
this.$nextTick(() => { |
|
||||
this.$refs.ref_search.loadByName(this.searchName); |
|
||||
}); |
|
||||
|
|
||||
} else if (this.orgLevel === 'neighborHood') {//显示小区 |
|
||||
|
|
||||
} else { |
|
||||
|
|
||||
this.$nextTick(() => { |
|
||||
this.refreshMap(true) |
|
||||
this.$forceUpdate() |
|
||||
}); |
|
||||
|
|
||||
} |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//加载组织数据 |
|
||||
async loadOrgData () { |
|
||||
|
|
||||
const url = "/gov/org/agency/maporg" |
|
||||
let params = { |
|
||||
orgId: this.orgId, |
|
||||
level: this.orgLevel |
|
||||
} |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, params) |
|
||||
|
|
||||
if (code === 0) { |
|
||||
|
|
||||
this.orgData = data |
|
||||
this.orgId = this.orgData.id |
|
||||
this.orgLevel = this.orgData.level |
|
||||
|
|
||||
if (data.children && data.children.length > 0) { |
|
||||
this.subAgencyArray = data.children |
|
||||
} else { |
|
||||
this.subAgencyArray = [] |
|
||||
} |
|
||||
|
|
||||
} else { |
|
||||
this.$message.error(msg) |
|
||||
} |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//加载当前园区的标注 |
|
||||
loadPolygon (subAgencyArray) { |
|
||||
polygonSource.clear()//清空多边形标注 |
|
||||
iconSource.clear()//清空多边形标注 |
|
||||
|
|
||||
let featureData = []//标注数据 |
|
||||
if (subAgencyArray && subAgencyArray.length > 0) {//判断是否存在下级标注 |
|
||||
let oneData = {} |
|
||||
|
|
||||
subAgencyArray.forEach(agencyItem => { |
|
||||
|
|
||||
if (agencyItem.coordinates && agencyItem.coordinates !== '') {//如果有坐标 |
|
||||
let urlNum = this.getRndBetween(1, 3) |
|
||||
|
|
||||
oneData = { |
|
||||
type: 'Feature', |
|
||||
id: agencyItem.id, |
|
||||
properties: { |
|
||||
id: agencyItem.id, |
|
||||
level: agencyItem.level, |
|
||||
name: agencyItem.name, |
|
||||
index: urlNum//颜色随机的索引 |
|
||||
}, |
|
||||
geometry: { |
|
||||
type: 'Polygon', |
|
||||
coordinates: [], |
|
||||
}, |
|
||||
} |
|
||||
let coorArray = agencyItem.coordinates.split(',')//坐标数组 |
|
||||
|
|
||||
let itemArray = []//单个点位的[lon,lat],数组 |
|
||||
let polygonArray = []//整个多边形的[[lon,lat],[lon,lat],[lon,lat]]数组 |
|
||||
|
|
||||
coorArray.forEach((item, index) => { |
|
||||
itemArray.push(item) |
|
||||
if (index % 2 == 0) {//偶 |
|
||||
|
|
||||
} else {//奇 |
|
||||
polygonArray.push(itemArray) |
|
||||
itemArray = [] |
|
||||
} |
|
||||
|
|
||||
}); |
|
||||
oneData.geometry.coordinates.push(polygonArray) |
|
||||
featureData.push(oneData) |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
if (featureData && featureData.length > 0) { |
|
||||
var geojsonObject = { |
|
||||
'type': 'FeatureCollection', |
|
||||
'features': featureData |
|
||||
}; |
|
||||
let feature = (new GeoJSON()).readFeatures(geojsonObject) |
|
||||
|
|
||||
polygonSource.addFeatures(feature) |
|
||||
|
|
||||
let iconFeatures = []; |
|
||||
feature.forEach(oneIcon => { |
|
||||
|
|
||||
var extent = boundingExtent(oneIcon.getGeometry().getCoordinates()[0]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy] |
|
||||
// var center = getCenter(extent); //获取边界区域的中心位置 |
|
||||
//添加标注 |
|
||||
let x = (parseFloat(extent[0]) + parseFloat(extent[2])) / 2 |
|
||||
let y = (parseFloat(extent[1]) + parseFloat(extent[3])) / 2 |
|
||||
|
|
||||
let oneArray = [x, y] |
|
||||
this.iconCoordinators.push(oneArray) |
|
||||
// debugger |
|
||||
//视频监控样式 |
|
||||
let oneCctv = new Feature({ |
|
||||
geometry: new Point([x, y]), |
|
||||
id: oneIcon.id_, |
|
||||
properties: { |
|
||||
type: "icon", |
|
||||
id: oneIcon.id_ |
|
||||
} |
|
||||
}); |
|
||||
|
|
||||
let iconStyle = new Style({ |
|
||||
image: new Icon({ |
|
||||
// anchor: [0.5, 0.5], |
|
||||
// imgSize: [32, 32], |
|
||||
scale: 0.5, |
|
||||
// src: "/img/largeScreen/icon_camra.png" |
|
||||
// src: "https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211116/a219130b6bc74b0b80b5ddb0fce0892a.png" |
|
||||
src: iconUrlArray[oneIcon.values_.index - 1] |
|
||||
}) |
|
||||
}); |
|
||||
|
|
||||
oneCctv.setStyle(iconStyle); |
|
||||
iconFeatures.push(oneCctv); |
|
||||
|
|
||||
}); |
|
||||
|
|
||||
iconSource.addFeatures(iconFeatures); |
|
||||
} |
|
||||
|
|
||||
// this.addGif() |
|
||||
|
|
||||
}, |
|
||||
//设置地图定位的中心点和缩放级别 |
|
||||
setMapLocation () { |
|
||||
this.centerPoint = [] |
|
||||
|
|
||||
if (this.orgData.longitude && this.orgData.latitude) { |
|
||||
this.centerPoint.push(this.orgData.longitude) |
|
||||
this.centerPoint.push(this.orgData.latitude) |
|
||||
} |
|
||||
|
|
||||
this.setZoom(this.orgData.agencyLevel) |
|
||||
}, |
|
||||
|
|
||||
//根据组织层级设置缩放级别 |
|
||||
setZoom (agencyLevel) { |
|
||||
if (agencyLevel === 'district') { |
|
||||
this.zoom = 14 |
|
||||
} else if (agencyLevel === 'street') { |
|
||||
this.zoom = 15 |
|
||||
} else if (agencyLevel === 'community') { |
|
||||
this.zoom = 16 |
|
||||
} |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
initMap () { |
|
||||
this.setMapLocation() |
|
||||
|
|
||||
gaodeMapLayer = new TileLayer({ |
|
||||
title: "地图", |
|
||||
source: new XYZ({ |
|
||||
//指定url瓦片 |
|
||||
url: 'http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}', |
|
||||
wrapX: true//x方向平铺,也可以选择false |
|
||||
}), |
|
||||
zIndex: 20 |
|
||||
}); |
|
||||
|
|
||||
mapView = new View({ |
|
||||
//中心点坐标 |
|
||||
center: this.centerPoint, |
|
||||
// projection: 'EPSG:3857', |
|
||||
projection: 'EPSG:4326', |
|
||||
zoom: this.zoom, |
|
||||
minZoom: this.minZoom |
|
||||
}) |
|
||||
|
|
||||
//初始化map和地图底图 |
|
||||
//创建地图容器 |
|
||||
map = new Map({ |
|
||||
layers: [gaodeMapLayer], |
|
||||
//加载瓦片图层数据 |
|
||||
view: mapView, |
|
||||
target: 'map' |
|
||||
//目标加载到map中 |
|
||||
}) |
|
||||
|
|
||||
map.on('singleclick', function (e) { |
|
||||
// console.log(e.coordinate) |
|
||||
// console.log(transform(e.coordinate, 'EPSG:3857', 'EPSG:4326')); |
|
||||
}) |
|
||||
|
|
||||
//去除双击放大效果 |
|
||||
const dblClickInteraction = map |
|
||||
.getInteractions() |
|
||||
.getArray() |
|
||||
.find(interaction => { |
|
||||
return interaction instanceof DoubleClickZoom; |
|
||||
}); |
|
||||
map.removeInteraction(dblClickInteraction); |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//添加变电站标注图层 |
|
||||
addPolygonLayer () { |
|
||||
polygonSource = new VectorSource({ |
|
||||
//features: (new GeoJSON()).readFeatures(geojsonObject) |
|
||||
}); |
|
||||
|
|
||||
polygonLayer = new VectorLayer({ |
|
||||
source: polygonSource, |
|
||||
style: polygonStyleFunction, |
|
||||
zIndex: 50 |
|
||||
}); |
|
||||
|
|
||||
//选中多边形后的样式 |
|
||||
var overlayStyle = (function () { |
|
||||
|
|
||||
return function (feature) { |
|
||||
var styles = {}; |
|
||||
styles['Polygon'] = [ |
|
||||
new Style({ |
|
||||
stroke: new Stroke({ |
|
||||
color: '#ec9000', |
|
||||
width: 2 |
|
||||
}) |
|
||||
}), |
|
||||
|
|
||||
new Style({ |
|
||||
fill: new Fill({ |
|
||||
color: 'rgba(0, 0, 255, 0.1)' |
|
||||
}) |
|
||||
}), |
|
||||
new Style({ |
|
||||
text: createTextStyle(feature) |
|
||||
}) |
|
||||
]; |
|
||||
styles['MultiPolygon'] = styles['Polygon']; |
|
||||
return styles[feature.getGeometry().getType()]; |
|
||||
}; |
|
||||
})(); |
|
||||
|
|
||||
select = new Select({ |
|
||||
style: overlayStyle |
|
||||
}); |
|
||||
|
|
||||
|
|
||||
map.addLayer(polygonLayer) |
|
||||
map.addInteraction(select); |
|
||||
|
|
||||
select.on('select', e => { |
|
||||
this.toSubAgency('polygon', e) |
|
||||
}); |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
addIconLayer () { |
|
||||
iconSource = new VectorSource({ |
|
||||
//features: (new GeoJSON()).readFeatures(geojsonObject) |
|
||||
}); |
|
||||
|
|
||||
iconLayer = new VectorLayer({ |
|
||||
source: iconSource, |
|
||||
zIndex: 70 |
|
||||
}); |
|
||||
|
|
||||
map.addLayer(iconLayer); |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//取随机数 |
|
||||
getRndBetween (lowerLimit, upperLimit) { |
|
||||
return Math.floor(Math.random() * (upperLimit - lowerLimit + 1)) + lowerLimit; |
|
||||
}, |
|
||||
|
|
||||
//开启加载动画 |
|
||||
startLoading () { |
|
||||
loading = Loading.service({ |
|
||||
lock: true, //是否锁定 |
|
||||
text: '正在加载……', //加载中需要显示的文字 |
|
||||
background: 'rgba(0,0,0,.7)' //背景颜色 |
|
||||
}); |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
//结束加载动画 |
|
||||
endLoading () { |
|
||||
//clearTimeout(timer); |
|
||||
if (loading) { |
|
||||
loading.close(); |
|
||||
} |
|
||||
}, |
|
||||
}, |
|
||||
props: { |
|
||||
|
|
||||
// vueFlag: { |
|
||||
// type: String, |
|
||||
// default: "alarm" |
|
||||
// } |
|
||||
}, |
|
||||
computed: { |
|
||||
|
|
||||
mapHeight () { |
|
||||
|
|
||||
return this.clientHeight - 120; |
|
||||
|
|
||||
}, |
|
||||
// zoom: { |
|
||||
// get () { |
|
||||
// //根据不同屏幕分辨率,控制zoom大小 |
|
||||
// if (this.clientHeight < 900) { |
|
||||
// return 2.3 |
|
||||
// } else { |
|
||||
// return 2.8 |
|
||||
// } |
|
||||
// }, |
|
||||
// set (value) { |
|
||||
// } |
|
||||
// }, |
|
||||
...mapGetters(["clientHeight"]) |
|
||||
|
|
||||
}, |
|
||||
components: { BasicInfoCommunity, PeopleSearch, People, cptCard }, |
|
||||
} |
|
||||
export default vueGis; |
|
||||
</script> |
|
||||
|
|
||||
<style |
|
||||
lang="scss" |
|
||||
src="@/assets/scss/modules/visual/basicInfoMain.scss" |
|
||||
scoped |
|
||||
></style> |
|
||||
|
|
||||
<style lang="scss" > |
|
||||
.div_content { |
|
||||
.ol-viewport { |
|
||||
border-radius: 5px; |
|
||||
} |
|
||||
} |
|
||||
.ol-overlaycontainer-stopevent { |
|
||||
display: none; |
|
||||
} |
|
||||
|
|
||||
.el-scrollbar__wrap { |
|
||||
overflow-x: hidden !important; |
|
||||
} |
|
||||
</style> |
|
||||
@ -1,408 +0,0 @@ |
|||||
<template> |
|
||||
<div class="g-cpt"> |
|
||||
<div class="g-l"> |
|
||||
<div class="m-people"> |
|
||||
<cpt-card> |
|
||||
<div class="title"> |
|
||||
<img src="@/assets/img/shuju/title-tip.png" /> |
|
||||
<span>人员情况</span> |
|
||||
</div> |
|
||||
<div class="more" @click="showedMoreInfo = true">查看更多</div> |
|
||||
<div class="ren"> |
|
||||
<img class="pic-ren" src="@/assets/img/shuju/people/ren.png" /> |
|
||||
<div class="ren-name"> |
|
||||
<span>{{ info.name }}</span> |
|
||||
<img src="@/assets/img/shuju/people/arrow.png" /> |
|
||||
</div> |
|
||||
<div class="ren-prop z-1"> |
|
||||
<img src="@/assets/img/shuju/people/ren-prop-1.png" /> |
|
||||
<span>所属网格</span> |
|
||||
|
|
||||
<div class="ren-cnt"> |
|
||||
<h5>所属网格:</h5> |
|
||||
<p> |
|
||||
{{ info.gridName }} |
|
||||
</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="ren-prop z-2"> |
|
||||
<img src="@/assets/img/shuju/people/ren-prop-2.png" /> |
|
||||
<span>人员类别</span> |
|
||||
|
|
||||
<div class="ren-cnt"> |
|
||||
<h5>人员类别:</h5> |
|
||||
<p> |
|
||||
{{ |
|
||||
info.personCategory.length == 0 |
|
||||
? "--" |
|
||||
: info.personCategory.join("、") |
|
||||
}} |
|
||||
</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="ren-prop z-3"> |
|
||||
<img src="@/assets/img/shuju/people/ren-prop-3.png" /> |
|
||||
<span>工作单位</span> |
|
||||
|
|
||||
<div class="ren-cnt"> |
|
||||
<h5>工作单位:</h5> |
|
||||
<p> |
|
||||
{{ info.workUnit || "--" }} |
|
||||
</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="ren-prop z-4"> |
|
||||
<img src="@/assets/img/shuju/people/ren-prop-4.png" /> |
|
||||
<span>志愿者类别</span> |
|
||||
|
|
||||
<div class="ren-cnt"> |
|
||||
<h5>志愿者类别:</h5> |
|
||||
<p> |
|
||||
{{ |
|
||||
info.volunteerCategory.length == 0 |
|
||||
? "--" |
|
||||
: info.volunteerCategory.join("、") |
|
||||
}} |
|
||||
</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="ren-prop z-5"> |
|
||||
<img src="@/assets/img/shuju/people/ren-prop-5.png" /> |
|
||||
<span>房屋信息</span> |
|
||||
|
|
||||
<div class="ren-cnt"> |
|
||||
<h5>房屋信息:</h5> |
|
||||
<p> |
|
||||
{{ |
|
||||
info.houseInfo.length == 0 |
|
||||
? "--" |
|
||||
: info.houseInfo.join("、") |
|
||||
}} |
|
||||
</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="ren-prop z-6"> |
|
||||
<img src="@/assets/img/shuju/people/ren-prop-6.png" /> |
|
||||
<span>经济状况</span> |
|
||||
|
|
||||
<div class="ren-cnt"> |
|
||||
<h5>经济状况:</h5> |
|
||||
<p> |
|
||||
月薪: |
|
||||
{{ |
|
||||
info.financialSituation.monthlyIncome || "--" |
|
||||
}},退休金:{{ |
|
||||
info.financialSituation.retirementAmount || "--" |
|
||||
}} |
|
||||
</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</cpt-card> |
|
||||
</div> |
|
||||
|
|
||||
<people-more |
|
||||
v-show="showedMoreInfo" |
|
||||
v-if="userId" |
|
||||
:userId="userId" |
|
||||
:gridName="info.gridName" |
|
||||
@close="showedMoreInfo = false" |
|
||||
/> |
|
||||
|
|
||||
<div class="m-relation"> |
|
||||
<cpt-card> |
|
||||
<div class="title"> |
|
||||
<img src="@/assets/img/shuju/title-tip.png" /> |
|
||||
<span>家庭关系</span> |
|
||||
</div> |
|
||||
<div class="info"> |
|
||||
<div class="huzhu"> |
|
||||
<img class="huzhu-bg" src="@/assets/img/shuju/people/huzhu.png" /> |
|
||||
<img |
|
||||
class="huzhu-ico" |
|
||||
src="@/assets/img/shuju/people/huzhu-home.png" |
|
||||
/> |
|
||||
<div class="huzhu-name">{{ houseInfo.ownerName }}</div> |
|
||||
<p>(户主)</p> |
|
||||
</div> |
|
||||
|
|
||||
<div |
|
||||
class="rel z-zuo-2" |
|
||||
@click="userId = houseInfo.userList[0].userId" |
|
||||
v-if="houseInfo.userList[0]" |
|
||||
> |
|
||||
<img |
|
||||
class="rel-bg" |
|
||||
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" |
|
||||
/> |
|
||||
<img |
|
||||
class="rel-line" |
|
||||
src="@/assets/img/shuju/people/huzhu-line/zuo2.png" |
|
||||
/> |
|
||||
<div |
|
||||
class="rel-text" |
|
||||
:class="houseInfo.userList[0].isSelf == '1' ? 'z-on' : ''" |
|
||||
> |
|
||||
<span class="rel-call">{{ |
|
||||
houseInfo.userList[0].relation |
|
||||
}}</span> |
|
||||
<span class="rel-name" |
|
||||
>({{ houseInfo.userList[0].userName }})</span |
|
||||
> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div |
|
||||
class="rel z-you-2" |
|
||||
@click="userId = houseInfo.userList[1].userId" |
|
||||
v-if="houseInfo.userList[1]" |
|
||||
> |
|
||||
<img |
|
||||
class="rel-bg" |
|
||||
src="@/assets/img/shuju/people/huzhu-kuang-you.png" |
|
||||
/> |
|
||||
<img |
|
||||
class="rel-line" |
|
||||
src="@/assets/img/shuju/people/huzhu-line/you2.png" |
|
||||
/> |
|
||||
<div |
|
||||
class="rel-text" |
|
||||
:class="houseInfo.userList[1].isSelf == '1' ? 'z-on' : ''" |
|
||||
> |
|
||||
<span class="rel-call">{{ |
|
||||
houseInfo.userList[1].relation |
|
||||
}}</span> |
|
||||
<span class="rel-name" |
|
||||
>({{ houseInfo.userList[1].userName }})</span |
|
||||
> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div |
|
||||
class="rel z-zuo-1" |
|
||||
@click="userId = houseInfo.userList[2].userId" |
|
||||
v-if="houseInfo.userList[2]" |
|
||||
> |
|
||||
<img |
|
||||
class="rel-bg" |
|
||||
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" |
|
||||
/> |
|
||||
<img |
|
||||
class="rel-line" |
|
||||
src="@/assets/img/shuju/people/huzhu-line/zuo1.png" |
|
||||
/> |
|
||||
<div |
|
||||
class="rel-text" |
|
||||
:class="houseInfo.userList[2].isSelf == '1' ? 'z-on' : ''" |
|
||||
> |
|
||||
<span class="rel-call">{{ |
|
||||
houseInfo.userList[2].relation |
|
||||
}}</span> |
|
||||
<span class="rel-name" |
|
||||
>({{ houseInfo.userList[2].userName }})</span |
|
||||
> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div |
|
||||
class="rel z-you-1" |
|
||||
@click="userId = houseInfo.userList[3].userId" |
|
||||
v-if="houseInfo.userList[3]" |
|
||||
> |
|
||||
<img |
|
||||
class="rel-bg" |
|
||||
src="@/assets/img/shuju/people/huzhu-kuang-you.png" |
|
||||
/> |
|
||||
<img |
|
||||
class="rel-line" |
|
||||
src="@/assets/img/shuju/people/huzhu-line/you1.png" |
|
||||
/> |
|
||||
<div |
|
||||
class="rel-text" |
|
||||
:class="houseInfo.userList[3].isSelf == '1' ? 'z-on' : ''" |
|
||||
> |
|
||||
<span class="rel-call">{{ |
|
||||
houseInfo.userList[3].relation |
|
||||
}}</span> |
|
||||
<span class="rel-name" |
|
||||
>({{ houseInfo.userList[3].userName }})</span |
|
||||
> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div |
|
||||
class="rel z-zuo-3" |
|
||||
@click="userId = houseInfo.userList[4].userId" |
|
||||
v-if="houseInfo.userList[4]" |
|
||||
> |
|
||||
<img |
|
||||
class="rel-bg" |
|
||||
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" |
|
||||
/> |
|
||||
<img |
|
||||
class="rel-line" |
|
||||
src="@/assets/img/shuju/people/huzhu-line/zuo3.png" |
|
||||
/> |
|
||||
<div |
|
||||
class="rel-text" |
|
||||
:class="houseInfo.userList[4].isSelf == '1' ? 'z-on' : ''" |
|
||||
> |
|
||||
<span class="rel-call">{{ |
|
||||
houseInfo.userList[4].relation |
|
||||
}}</span> |
|
||||
<span class="rel-name" |
|
||||
>({{ houseInfo.userList[4].userName }})</span |
|
||||
> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div |
|
||||
class="rel z-you-3" |
|
||||
@click="userId = houseInfo.userList[5].userId" |
|
||||
v-if="houseInfo.userList[5]" |
|
||||
> |
|
||||
<img |
|
||||
class="rel-bg" |
|
||||
src="@/assets/img/shuju/people/huzhu-kuang-you.png" |
|
||||
/> |
|
||||
<img |
|
||||
class="rel-line" |
|
||||
src="@/assets/img/shuju/people/huzhu-line/you3.png" |
|
||||
/> |
|
||||
<div |
|
||||
class="rel-text" |
|
||||
:class="houseInfo.userList[5].isSelf == '1' ? 'z-on' : ''" |
|
||||
> |
|
||||
<span class="rel-call">{{ |
|
||||
houseInfo.userList[5].relation |
|
||||
}}</span> |
|
||||
<span class="rel-name" |
|
||||
>({{ houseInfo.userList[5].userName }})</span |
|
||||
> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</cpt-card> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="g-r"></div> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import { Loading } from "element-ui"; //引入Loading服务 |
|
||||
import { requestPost } from "@/js/dai/request"; |
|
||||
import cptCard from "@/views/modules/visual/cpts/card"; |
|
||||
import peopleMore from "@/views/modules/visual/basicinfo/cpts/people-more"; |
|
||||
|
|
||||
export default { |
|
||||
name: "HomeMap", |
|
||||
data() { |
|
||||
return { |
|
||||
showedMoreInfo: false, |
|
||||
|
|
||||
userId: "", |
|
||||
|
|
||||
info: { |
|
||||
financialSituation: { monthlyIncome: "", retirementAmount: "" }, |
|
||||
gridName: "", |
|
||||
houseInfo: [], |
|
||||
name: "", |
|
||||
personCategory: [], |
|
||||
volunteerCategory: [], |
|
||||
workUnit: "", |
|
||||
}, |
|
||||
|
|
||||
houseInfo: { |
|
||||
ownerName: "", |
|
||||
userList: [ |
|
||||
// { |
|
||||
// userId: "", |
|
||||
// userName: "", |
|
||||
// isSelf: "", |
|
||||
// relation: "", |
|
||||
// }, |
|
||||
], |
|
||||
}, |
|
||||
}; |
|
||||
}, |
|
||||
|
|
||||
props: { |
|
||||
uid: { |
|
||||
type: String, |
|
||||
default: "", |
|
||||
// default: "8ada68cb6f1e4b9a8333348a39ef3aee", |
|
||||
}, |
|
||||
}, |
|
||||
|
|
||||
computed: {}, |
|
||||
|
|
||||
components: { |
|
||||
cptCard, |
|
||||
peopleMore, |
|
||||
}, |
|
||||
|
|
||||
watch: { |
|
||||
uid(id) { |
|
||||
this.userId = id; |
|
||||
}, |
|
||||
userId() { |
|
||||
this.getApiData(); |
|
||||
window.scrollTo(0, 0); |
|
||||
}, |
|
||||
}, |
|
||||
|
|
||||
async mounted() { |
|
||||
this.userId = this.uid; |
|
||||
this.getApiData(); |
|
||||
}, |
|
||||
|
|
||||
methods: { |
|
||||
handleSearch() {}, |
|
||||
|
|
||||
getApiData() { |
|
||||
this.getInfo(); |
|
||||
this.getHouseInfo(); |
|
||||
}, |
|
||||
|
|
||||
//加载组织数据 |
|
||||
async getInfo() { |
|
||||
const url = "/epmetuser/icresiuser/persondata"; |
|
||||
let params = { |
|
||||
userId: this.userId, |
|
||||
}; |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, params); |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.info = { ...this.info, ...data }; |
|
||||
} else { |
|
||||
this.$message.error(msg); |
|
||||
} |
|
||||
}, |
|
||||
|
|
||||
//加载组织数据 |
|
||||
async getHouseInfo() { |
|
||||
const url = "/epmetuser/icresiuser/ownerrelation"; |
|
||||
let params = { |
|
||||
userId: this.userId, |
|
||||
}; |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, params); |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.houseInfo = { ...this.houseInfo, ...data }; |
|
||||
} else { |
|
||||
this.$message.error(msg); |
|
||||
} |
|
||||
}, |
|
||||
}, |
|
||||
}; |
|
||||
</script> |
|
||||
|
|
||||
<style lang="scss" src="@/assets/scss/modules/visual/people.scss" scoped></style> |
|
||||
@ -1,164 +0,0 @@ |
|||||
<template> |
|
||||
<div> |
|
||||
<div> |
|
||||
<div class="div_search_list"> |
|
||||
<el-input size="mini" |
|
||||
WarningColor='warning' |
|
||||
placeholder="请输入姓名" |
|
||||
v-model="searchName"> |
|
||||
<i slot="prefix" |
|
||||
class="icon"> |
|
||||
<img src="../../../../assets/img/modules/visual/sousuo.png" |
|
||||
alt /> |
|
||||
</i> |
|
||||
</el-input> |
|
||||
|
|
||||
<div class="btn" |
|
||||
@click="loadList">搜索</div> |
|
||||
|
|
||||
</div> |
|
||||
|
|
||||
<div class="list_box"> |
|
||||
<div class="info_tip"> |
|
||||
<img src="../../../../assets/img/shuju/title-tip.png" |
|
||||
alt /> |
|
||||
<div class="tip_title">查询列表</div> |
|
||||
</div> |
|
||||
<div class="warning-table"> |
|
||||
<div class="table"> |
|
||||
<div class="table-header"> |
|
||||
<div class="td td1">序号</div> |
|
||||
<div class="td td2">姓名</div> |
|
||||
<div class="td td3">所属网格</div> |
|
||||
<div class="td td3">所属小区</div> |
|
||||
<div class="td td3">所属楼栋</div> |
|
||||
<div class="td td2">操作</div> |
|
||||
|
|
||||
</div> |
|
||||
<div class="table-body"> |
|
||||
<div class="table-body-tr" |
|
||||
v-for="(item,index) in tableData" |
|
||||
:key='index'> |
|
||||
<div class="td td1">{{item.sort}} </div> |
|
||||
<div class="td td2">{{item.name}} </div> |
|
||||
<div class="td td3">{{item.gridName}} </div> |
|
||||
<div class="td td3">{{item.neighborHoodName}} </div> |
|
||||
<div class="td td3">{{item.buildNum}} </div> |
|
||||
<div @click="handelToPeople(index)" |
|
||||
class="td td2 btn_detail">{{'查看'}} </div> |
|
||||
|
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="pagination"> |
|
||||
<el-pagination background |
|
||||
layout="prev, pager, next" |
|
||||
:current-page="pageNo" |
|
||||
:page-size="pageSize" |
|
||||
:total="total" |
|
||||
@current-change="pageCurrentChangeHandle"> |
|
||||
</el-pagination> |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import { requestPost } from "@/js/dai/request"; |
|
||||
import People from "./people"; |
|
||||
|
|
||||
export default { |
|
||||
name: "people-list", |
|
||||
components: { |
|
||||
People |
|
||||
}, |
|
||||
data () { |
|
||||
return { |
|
||||
headerList: [], |
|
||||
tableData: [], |
|
||||
searchName: '', |
|
||||
pageSize: 4, |
|
||||
pageNo: 1, |
|
||||
total: 0 |
|
||||
}; |
|
||||
}, |
|
||||
methods: { |
|
||||
handleSearch () { |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
loadByName (searchName) { |
|
||||
this.searchName = searchName |
|
||||
if (this.searchName) { |
|
||||
this.loadList() |
|
||||
} |
|
||||
|
|
||||
}, |
|
||||
reset () { |
|
||||
this.searchName = '' |
|
||||
this.tableData = [] |
|
||||
}, |
|
||||
async loadList () { |
|
||||
if (this.searchName) { |
|
||||
const url = "/epmetuser/icresiuser/searchbyname" |
|
||||
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icresiuser/searchbyname" |
|
||||
let params = { |
|
||||
name: this.searchName, |
|
||||
pageSize: this.pageSize, |
|
||||
pageNo: this.pageNo |
|
||||
} |
|
||||
|
|
||||
const { data, code, msg } = await requestPost(url, params) |
|
||||
|
|
||||
if (code === 0) { |
|
||||
this.total = data.total |
|
||||
this.tableData = data.list |
|
||||
} else { |
|
||||
this.$message.error(msg) |
|
||||
} |
|
||||
} else { |
|
||||
|
|
||||
} |
|
||||
}, |
|
||||
|
|
||||
//点击查看 |
|
||||
handelToPeople (index) { |
|
||||
this.$emit('toSubAgency', 'people', this.tableData[index].userId, this.searchName) |
|
||||
}, |
|
||||
|
|
||||
pageCurrentChangeHandle (val) { |
|
||||
this.pageNo = val |
|
||||
this.loadList() |
|
||||
}, |
|
||||
}, |
|
||||
destroyed () { |
|
||||
console.log("我已经离开了!"); |
|
||||
|
|
||||
}, |
|
||||
}; |
|
||||
</script> |
|
||||
|
|
||||
<style |
|
||||
lang="scss" |
|
||||
src="@/assets/scss/modules/visual/searchPerson.scss" |
|
||||
scoped |
|
||||
></style> |
|
||||
|
|
||||
<style lang=scss> |
|
||||
.div_search_list { |
|
||||
.el-input__inner[WarningColor="warning"] { |
|
||||
border-radius: 8px 0 0 8px; |
|
||||
height: 53px; |
|
||||
background-color: #01106800; |
|
||||
border: 2px solid #0082fb; |
|
||||
padding-left: 70px; |
|
||||
font-size: 18px; |
|
||||
font-family: PingFang SC; |
|
||||
font-weight: 400; |
|
||||
color: #ffffff; |
|
||||
} |
|
||||
} |
|
||||
</style> |
|
||||
@ -0,0 +1,164 @@ |
|||||
|
|
||||
|
export function pieOption () { |
||||
|
const center= ['50%', '250px'] |
||||
|
return { |
||||
|
title: { |
||||
|
text: '0', |
||||
|
top: 220, |
||||
|
left: 'center', |
||||
|
textStyle: { |
||||
|
width: '100%', |
||||
|
fontSize: 32, |
||||
|
color: '#FFFFFF', |
||||
|
fontWeight: 400 |
||||
|
}, |
||||
|
itemGap: 5, |
||||
|
subtext: '总数', |
||||
|
subtextStyle: { |
||||
|
fontSize: 20, |
||||
|
color: '#fff', |
||||
|
fontWeight: 400 |
||||
|
} |
||||
|
}, |
||||
|
tooltip: { |
||||
|
show: false |
||||
|
}, |
||||
|
legend: { |
||||
|
top: 500, |
||||
|
bottom: 0, |
||||
|
itemWidth: 20, |
||||
|
itemHeight: 10, |
||||
|
textStyle: { |
||||
|
color: '#D2E7FF', |
||||
|
fontSize: 16, |
||||
|
lineHeight: 20, |
||||
|
}, |
||||
|
|
||||
|
}, |
||||
|
series: [ |
||||
|
// 外侧圆环
|
||||
|
{ |
||||
|
type: 'pie', |
||||
|
// 起始刻度的角度,默认为 90 度,即圆心的正上方。0 度为圆心的正右方。
|
||||
|
startAngle: 0, |
||||
|
hoverAnimation: false, |
||||
|
// tooltip: {
|
||||
|
// },
|
||||
|
center: center, |
||||
|
radius: ['55%', '55.3%'], |
||||
|
label: { |
||||
|
normal: { |
||||
|
show: false |
||||
|
} |
||||
|
}, |
||||
|
labelLine: { |
||||
|
normal: { |
||||
|
show: false |
||||
|
} |
||||
|
}, |
||||
|
data: [{ |
||||
|
value: 360, |
||||
|
itemStyle: { |
||||
|
normal: { |
||||
|
color: 'rgba(40, 101, 250, 0)', |
||||
|
width:0, |
||||
|
borderColor: 'rgba(40, 101, 250, 0.5)', |
||||
|
borderWidth: 1, |
||||
|
borderType: 'dotted' |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
|
||||
|
// 突出的
|
||||
|
{ |
||||
|
hoverAnimation: false, |
||||
|
// name: 'Access From',
|
||||
|
type: 'pie', |
||||
|
center: center, |
||||
|
radius: ['40%', '60%'], |
||||
|
avoidLabelOverlap: false, |
||||
|
// top: top + '%',
|
||||
|
// height: '80%',
|
||||
|
selectedMode: 'single', |
||||
|
left: 'center', |
||||
|
width: 400, |
||||
|
label: { |
||||
|
position: 'outer', |
||||
|
// alignTo: 'edge',
|
||||
|
formatter: '{a|{c}}\n\n{name|{b}}', |
||||
|
// minMargin: 100,
|
||||
|
// edgeDistance: 0,
|
||||
|
// lineHeight: 20,
|
||||
|
color: '#fff', |
||||
|
fontSize: 12, |
||||
|
distanceToLabelLine: -60, |
||||
|
rich: { |
||||
|
a: { |
||||
|
fontSize: '30px', |
||||
|
color: ' #00F5FE', |
||||
|
|
||||
|
}, |
||||
|
b: { |
||||
|
lineHeight: 0, |
||||
|
fontSize: '20px', |
||||
|
color: ' #FFFFFF' |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
labelLine: { |
||||
|
smooth: 0.2, |
||||
|
length: 30, |
||||
|
length2: 90 |
||||
|
}, |
||||
|
// itemStyle: {
|
||||
|
// normal:{
|
||||
|
// color:function(params) {
|
||||
|
// //自定义颜色
|
||||
|
// var colorList = [
|
||||
|
// '#00FFFF', '#00FF00', '#FFFF00', '#FF8C00', '#FF0000', '#FE8463',
|
||||
|
// ];
|
||||
|
// return colorList[params.dataIndex]
|
||||
|
// }
|
||||
|
// }
|
||||
|
// },
|
||||
|
data: [], |
||||
|
|
||||
|
}, |
||||
|
// 中间圆环
|
||||
|
{ |
||||
|
type: 'pie', |
||||
|
// 起始刻度的角度,默认为 90 度,即圆心的正上方。0 度为圆心的正右方。
|
||||
|
startAngle: 0, |
||||
|
hoverAnimation: false, |
||||
|
center: center, |
||||
|
// tooltip: {
|
||||
|
// },
|
||||
|
radius: ['0%', '25%'], |
||||
|
label: { |
||||
|
|
||||
|
show: false |
||||
|
|
||||
|
}, |
||||
|
labelLine: { |
||||
|
|
||||
|
show: false |
||||
|
|
||||
|
}, |
||||
|
data: [{ |
||||
|
value: 360, |
||||
|
itemStyle: { |
||||
|
normal: { |
||||
|
color: 'rgba(8, 37, 134, 1)', |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
] |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,289 @@ |
|||||
|
<template> |
||||
|
<cpt-card> |
||||
|
<div class="title"> |
||||
|
<img src="@/assets/img/shuju/title-tip.png" /> |
||||
|
<span>居民热议</span> |
||||
|
</div> |
||||
|
<div class="g-cpt-resi"> |
||||
|
<div class="g-l"> |
||||
|
<screen-echarts-frame class="echart-wr" |
||||
|
@myChartMethod="pieInitOk" |
||||
|
ref="pieChart"></screen-echarts-frame> |
||||
|
|
||||
|
<!-- <div class="echart-wr"> |
||||
|
<div class="echart-cicle"></div> |
||||
|
<div id="echartOrg" |
||||
|
class="echart-org"></div> |
||||
|
</div> --> |
||||
|
|
||||
|
</div> |
||||
|
<div class="g-r"> |
||||
|
<div class="m-tb"> |
||||
|
|
||||
|
<div class="tb"> |
||||
|
<cpt-tb :col-list="demand.colList" |
||||
|
:loading="demand.loading" |
||||
|
:header="demand.header" |
||||
|
:list="demand.list"></cpt-tb> |
||||
|
|
||||
|
<div class="m-pagination"> |
||||
|
<el-pagination :current-page="demand.pageNo" |
||||
|
:page-size="demand.pageSize" |
||||
|
:total="demand.total" |
||||
|
background |
||||
|
layout="prev, pager, next" |
||||
|
@current-change="handlePageNoChange_demand"> |
||||
|
</el-pagination> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
</cpt-card> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { Loading } from "element-ui"; //引入Loading服务 |
||||
|
import { requestPost } from "@/js/dai/request"; |
||||
|
import cptCard from "@/views/modules/visual/cpts/card"; |
||||
|
import cptTb from "@/views/modules/visual/cpts/tb"; |
||||
|
import screenEchartsFrame from "@/views/modules/visual/components/screen-echarts-frame"; |
||||
|
import nextTick from "dai-js/tools/nextTick"; |
||||
|
import { pieOption } from './resiPieOption.js' |
||||
|
|
||||
|
|
||||
|
export default { |
||||
|
name: "HomeMap", |
||||
|
data () { |
||||
|
return { |
||||
|
showNoData: false, |
||||
|
timer: null, |
||||
|
|
||||
|
pieChart: '', |
||||
|
pieOption: {}, |
||||
|
pieInitState: false, |
||||
|
pieTotal: 1000, |
||||
|
pieData: [ |
||||
|
{ value: 1048, name: '城市管理', color: '#1B51FF', selected: true }, |
||||
|
{ value: 735, name: '为民服务', color: '#00E5ED' }, |
||||
|
{ value: 580, name: '安全监管', color: '#7800FF' }, |
||||
|
{ value: 484, name: '民政', color: '#16D783' }, |
||||
|
{ value: 300, name: '环境保护', color: '#FF7800' }, |
||||
|
{ value: 1048, name: '建设管理', color: '#FFBA00' }, |
||||
|
{ value: 735, name: '街道吹哨部门报到', color: '#FFD685' }, |
||||
|
{ value: 580, name: '社会治安综合', color: '#2A00FF' }, |
||||
|
{ value: 484, name: '公安交通管理', color: '#C600FF' }, |
||||
|
{ value: 300, name: '卫生计生监管执法', color: '#FF2A00' }, |
||||
|
{ value: 484, name: '民生', color: '#3DDA83' }, |
||||
|
{ value: 300, name: '街道安全', color: '#FAC126' } |
||||
|
], |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
demand: { |
||||
|
loading: true, |
||||
|
colList: [ |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "10%", |
||||
|
}, |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "15%", |
||||
|
}, |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "15%", |
||||
|
}, |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "40%", |
||||
|
}, |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "10%", |
||||
|
}, |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "10%", |
||||
|
}, |
||||
|
], |
||||
|
header: ["序号", "服务时间", "需求类型", "需求内容", "状态", "操作"], |
||||
|
list: [], |
||||
|
pageSize: 10, |
||||
|
pageNo: 1, |
||||
|
total: 0, |
||||
|
}, |
||||
|
}; |
||||
|
}, |
||||
|
// mixins: [animate] |
||||
|
beforeDestroy () { |
||||
|
this.timer && clearInterval(this.timer) |
||||
|
}, |
||||
|
props: { |
||||
|
uid: { |
||||
|
type: String, |
||||
|
default: "", |
||||
|
// default: "8ada68cb6f1e4b9a8333348a39ef3aee", |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
computed: {}, |
||||
|
|
||||
|
components: { |
||||
|
cptCard, |
||||
|
cptTb, |
||||
|
screenEchartsFrame, |
||||
|
}, |
||||
|
|
||||
|
watch: { |
||||
|
uid (id) { |
||||
|
this.userId = id; |
||||
|
}, |
||||
|
userId () { |
||||
|
this.getApiData(); |
||||
|
window.scrollTo(0, 0); |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
async mounted () { |
||||
|
this.userId = this.uid; |
||||
|
this.getApiData(); |
||||
|
|
||||
|
await nextTick(100); |
||||
|
this.getPie() |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
methods: { |
||||
|
pieInitOk () { |
||||
|
console.log('pie准备好了') |
||||
|
this.pieInitState = true |
||||
|
|
||||
|
}, |
||||
|
getPie () { |
||||
|
if (this.pieInitState) { |
||||
|
this.getPieChart() |
||||
|
} else { |
||||
|
setTimeout(() => { |
||||
|
this.getPie() |
||||
|
}, 500) |
||||
|
} |
||||
|
}, |
||||
|
// 获取饼状图 |
||||
|
async getPieChart () { |
||||
|
this.$refs.pieChart.clear() |
||||
|
// this.$refs.pieChart.showLoading() |
||||
|
// const res = await getMonthPieChart(this.shibeiAId) |
||||
|
|
||||
|
// 获取pieChart配置 |
||||
|
this.pieOption = pieOption() |
||||
|
|
||||
|
this.clickPie(0) |
||||
|
|
||||
|
this.pieOption.title.text = this.pieTotal |
||||
|
this.pieOption.series[1].data = this.pieData |
||||
|
|
||||
|
this.$refs.pieChart.setOption(this.pieOption) |
||||
|
|
||||
|
const _that = this |
||||
|
let fun = function (params) { |
||||
|
_that.clickPie(params.dataIndex) |
||||
|
} |
||||
|
this.$refs.pieChart.handleClick(fun) |
||||
|
}, |
||||
|
|
||||
|
clickPie (seriesIndex) { |
||||
|
|
||||
|
this.pieData.forEach((element, index) => { |
||||
|
|
||||
|
if (index === seriesIndex) { |
||||
|
element.label = { |
||||
|
show: true, |
||||
|
|
||||
|
}; |
||||
|
element.labelLine = { |
||||
|
show: true, |
||||
|
lineStyle: { |
||||
|
opacity: 1, |
||||
|
} |
||||
|
|
||||
|
}; |
||||
|
|
||||
|
} else { |
||||
|
element.label = { |
||||
|
show: false, |
||||
|
|
||||
|
}; |
||||
|
element.labelLine = { |
||||
|
show: false, |
||||
|
lineStyle: { |
||||
|
opacity: 0, |
||||
|
color: 'rgba(255,255,255,0)' |
||||
|
} |
||||
|
|
||||
|
}; |
||||
|
|
||||
|
} |
||||
|
}); |
||||
|
this.pieOption.series[1].data = this.pieData |
||||
|
// this.$refs.pieChart.hideLoading() |
||||
|
this.$refs.pieChart.setOption(this.pieOption) |
||||
|
|
||||
|
}, |
||||
|
getApiData () { |
||||
|
|
||||
|
this.getDemandData(); |
||||
|
}, |
||||
|
|
||||
|
toUserInfo (uid) { |
||||
|
this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` }); |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
handlePageNoChange_demand (val) { |
||||
|
this.demand.pageNo = val; |
||||
|
this.getDemandData(); |
||||
|
}, |
||||
|
|
||||
|
//加载组织数据 |
||||
|
async getDemandData () { |
||||
|
const url = |
||||
|
"http://yapi.elinkservice.cn/mock/245/heart/userdemand/mydemand"; |
||||
|
let params = { |
||||
|
userId: this.userId, |
||||
|
pageNo: this.demand.pageNo, |
||||
|
pageSize: this.demand.pageSize, |
||||
|
}; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, params); |
||||
|
this.demand.loading = false; |
||||
|
|
||||
|
if (code === 0) { |
||||
|
this.demand.total = data.total; |
||||
|
this.demand.list = data.list.map((item) => { |
||||
|
return [ |
||||
|
{ type: "index" }, |
||||
|
item.wantServiceTime, |
||||
|
item.content, |
||||
|
item.categoryName, |
||||
|
item.statusName, |
||||
|
{ type: "operate", list: ["查看"] }, |
||||
|
]; |
||||
|
}); |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style |
||||
|
lang="scss" |
||||
|
src="@/assets/scss/modules/visual/resibuzz.scss" |
||||
|
scoped |
||||
|
></style> |
||||
@ -0,0 +1,476 @@ |
|||||
|
<template> |
||||
|
<div class="g-cpt"> |
||||
|
<div class="g-l"> |
||||
|
<div class="m-people"> |
||||
|
<cpt-card> |
||||
|
<div class="title"> |
||||
|
<img src="@/assets/img/shuju/title-tip.png" /> |
||||
|
<span>人员情况</span> |
||||
|
</div> |
||||
|
<div class="more" |
||||
|
@click="showedMoreInfo = true">查看更多</div> |
||||
|
<div class="ren"> |
||||
|
<img class="pic-ren" |
||||
|
src="@/assets/img/shuju/people/ren.png" /> |
||||
|
<div class="ren-name"> |
||||
|
<span>{{ info.name }}</span> |
||||
|
<img src="@/assets/img/shuju/people/arrow.png" /> |
||||
|
</div> |
||||
|
<div class="ren-prop z-1"> |
||||
|
<img src="@/assets/img/shuju/people/ren-prop-1.png" /> |
||||
|
<span>所属网格</span> |
||||
|
|
||||
|
<div class="ren-cnt"> |
||||
|
<h5>所属网格:</h5> |
||||
|
<p> |
||||
|
{{ info.gridName }} |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="ren-prop z-2"> |
||||
|
<img src="@/assets/img/shuju/people/ren-prop-2.png" /> |
||||
|
<span>人员类别</span> |
||||
|
|
||||
|
<div class="ren-cnt"> |
||||
|
<h5>人员类别:</h5> |
||||
|
<p> |
||||
|
{{ |
||||
|
info.personCategory.length == 0 |
||||
|
? "--" |
||||
|
: info.personCategory.join("、") |
||||
|
}} |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="ren-prop z-3"> |
||||
|
<img src="@/assets/img/shuju/people/ren-prop-3.png" /> |
||||
|
<span>工作单位</span> |
||||
|
|
||||
|
<div class="ren-cnt"> |
||||
|
<h5>工作单位:</h5> |
||||
|
<p> |
||||
|
{{ info.workUnit || "--" }} |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="ren-prop z-4"> |
||||
|
<img src="@/assets/img/shuju/people/ren-prop-4.png" /> |
||||
|
<span>志愿者类别</span> |
||||
|
|
||||
|
<div class="ren-cnt"> |
||||
|
<h5>志愿者类别:</h5> |
||||
|
<p> |
||||
|
{{ |
||||
|
info.volunteerCategory.length == 0 |
||||
|
? "--" |
||||
|
: info.volunteerCategory.join("、") |
||||
|
}} |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="ren-prop z-5"> |
||||
|
<img src="@/assets/img/shuju/people/ren-prop-5.png" /> |
||||
|
<span>房屋信息</span> |
||||
|
|
||||
|
<div class="ren-cnt"> |
||||
|
<h5>房屋信息:</h5> |
||||
|
<p> |
||||
|
{{ |
||||
|
info.houseInfo.length == 0 |
||||
|
? "--" |
||||
|
: info.houseInfo.join("、") |
||||
|
}} |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="ren-prop z-6"> |
||||
|
<img src="@/assets/img/shuju/people/ren-prop-6.png" /> |
||||
|
<span>经济状况</span> |
||||
|
|
||||
|
<div class="ren-cnt"> |
||||
|
<h5>经济状况:</h5> |
||||
|
<p> |
||||
|
月薪: |
||||
|
{{ |
||||
|
info.financialSituation.monthlyIncome || "--" |
||||
|
}},退休金:{{ |
||||
|
info.financialSituation.retirementAmount || "--" |
||||
|
}} |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</cpt-card> |
||||
|
</div> |
||||
|
|
||||
|
<people-more v-show="showedMoreInfo" |
||||
|
v-if="userId" |
||||
|
:userId="userId" |
||||
|
:gridName="info.gridName" |
||||
|
@close="showedMoreInfo = false" /> |
||||
|
|
||||
|
<div class="m-relation"> |
||||
|
<cpt-card> |
||||
|
<div class="title"> |
||||
|
<img src="@/assets/img/shuju/title-tip.png" /> |
||||
|
<span>家庭关系</span> |
||||
|
</div> |
||||
|
<div class="info"> |
||||
|
<div class="huzhu"> |
||||
|
<img class="huzhu-bg" |
||||
|
src="@/assets/img/shuju/people/huzhu.png" /> |
||||
|
<img class="huzhu-ico" |
||||
|
src="@/assets/img/shuju/people/huzhu-home.png" /> |
||||
|
<div class="huzhu-name">{{ houseInfo.ownerName }}</div> |
||||
|
<p>(户主)</p> |
||||
|
</div> |
||||
|
|
||||
|
<div class="rel z-zuo-2" |
||||
|
@click="toUserInfo(houseInfo.userList[0].userId)" |
||||
|
v-if="houseInfo.userList[0]"> |
||||
|
<img class="rel-bg" |
||||
|
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" /> |
||||
|
<img class="rel-line" |
||||
|
src="@/assets/img/shuju/people/huzhu-line/zuo2.png" /> |
||||
|
<div class="rel-text" |
||||
|
:class="houseInfo.userList[0].isSelf == '1' ? 'z-on' : ''"> |
||||
|
<span class="rel-call">{{ |
||||
|
houseInfo.userList[0].relation |
||||
|
}}</span> |
||||
|
<span class="rel-name">({{ houseInfo.userList[0].userName }})</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="rel z-you-2" |
||||
|
@click="toUserInfo(houseInfo.userList[1].userId)" |
||||
|
v-if="houseInfo.userList[1]"> |
||||
|
<img class="rel-bg" |
||||
|
src="@/assets/img/shuju/people/huzhu-kuang-you.png" /> |
||||
|
<img class="rel-line" |
||||
|
src="@/assets/img/shuju/people/huzhu-line/you2.png" /> |
||||
|
<div class="rel-text" |
||||
|
:class="houseInfo.userList[1].isSelf == '1' ? 'z-on' : ''"> |
||||
|
<span class="rel-call">{{ |
||||
|
houseInfo.userList[1].relation |
||||
|
}}</span> |
||||
|
<span class="rel-name">({{ houseInfo.userList[1].userName }})</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="rel z-zuo-1" |
||||
|
@click="toUserInfo(houseInfo.userList[2].userId)" |
||||
|
v-if="houseInfo.userList[2]"> |
||||
|
<img class="rel-bg" |
||||
|
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" /> |
||||
|
<img class="rel-line" |
||||
|
src="@/assets/img/shuju/people/huzhu-line/zuo1.png" /> |
||||
|
<div class="rel-text" |
||||
|
:class="houseInfo.userList[2].isSelf == '1' ? 'z-on' : ''"> |
||||
|
<span class="rel-call">{{ |
||||
|
houseInfo.userList[2].relation |
||||
|
}}</span> |
||||
|
<span class="rel-name">({{ houseInfo.userList[2].userName }})</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="rel z-you-1" |
||||
|
@click="toUserInfo(houseInfo.userList[3].userId)" |
||||
|
v-if="houseInfo.userList[3]"> |
||||
|
<img class="rel-bg" |
||||
|
src="@/assets/img/shuju/people/huzhu-kuang-you.png" /> |
||||
|
<img class="rel-line" |
||||
|
src="@/assets/img/shuju/people/huzhu-line/you1.png" /> |
||||
|
<div class="rel-text" |
||||
|
:class="houseInfo.userList[3].isSelf == '1' ? 'z-on' : ''"> |
||||
|
<span class="rel-call">{{ |
||||
|
houseInfo.userList[3].relation |
||||
|
}}</span> |
||||
|
<span class="rel-name">({{ houseInfo.userList[3].userName }})</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="rel z-zuo-3" |
||||
|
@click="toUserInfo(houseInfo.userList[4].userId)" |
||||
|
v-if="houseInfo.userList[4]"> |
||||
|
<img class="rel-bg" |
||||
|
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" /> |
||||
|
<img class="rel-line" |
||||
|
src="@/assets/img/shuju/people/huzhu-line/zuo3.png" /> |
||||
|
<div class="rel-text" |
||||
|
:class="houseInfo.userList[4].isSelf == '1' ? 'z-on' : ''"> |
||||
|
<span class="rel-call">{{ |
||||
|
houseInfo.userList[4].relation |
||||
|
}}</span> |
||||
|
<span class="rel-name">({{ houseInfo.userList[4].userName }})</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="rel z-you-3" |
||||
|
@click="toUserInfo(houseInfo.userList[5].userId)" |
||||
|
v-if="houseInfo.userList[5]"> |
||||
|
<img class="rel-bg" |
||||
|
src="@/assets/img/shuju/people/huzhu-kuang-you.png" /> |
||||
|
<img class="rel-line" |
||||
|
src="@/assets/img/shuju/people/huzhu-line/you3.png" /> |
||||
|
<div class="rel-text" |
||||
|
:class="houseInfo.userList[5].isSelf == '1' ? 'z-on' : ''"> |
||||
|
<span class="rel-call">{{ |
||||
|
houseInfo.userList[5].relation |
||||
|
}}</span> |
||||
|
<span class="rel-name">({{ houseInfo.userList[5].userName }})</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</cpt-card> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="g-r"> |
||||
|
<div class="m-tb"> |
||||
|
<cpt-card> |
||||
|
<div class="title"> |
||||
|
<img src="@/assets/img/shuju/title-tip.png" /> |
||||
|
<span>居民需求</span> |
||||
|
</div> |
||||
|
|
||||
|
<div class="tb"> |
||||
|
<cpt-tb :col-list="demand.colList" |
||||
|
:loading="demand.loading" |
||||
|
:header="demand.header" |
||||
|
:list="demand.list"></cpt-tb> |
||||
|
|
||||
|
<div class="m-pagination"> |
||||
|
<el-pagination :current-page="demand.pageNo" |
||||
|
:page-size="demand.pageSize" |
||||
|
:total="demand.total" |
||||
|
background |
||||
|
layout="prev, pager, next" |
||||
|
@current-change="handlePageNoChange_demand"> |
||||
|
</el-pagination> |
||||
|
</div> |
||||
|
</div> |
||||
|
</cpt-card> |
||||
|
</div> |
||||
|
|
||||
|
<div class="m-row"> |
||||
|
<div class="m-list"> |
||||
|
<cpt-card> |
||||
|
<div class="title"> |
||||
|
<img src="@/assets/img/shuju/title-tip.png" /> |
||||
|
<span>上报事件</span> |
||||
|
</div> |
||||
|
<div class="list"></div> |
||||
|
</cpt-card> |
||||
|
</div> |
||||
|
|
||||
|
<div class="m-list"> |
||||
|
<cpt-card> |
||||
|
<div class="title"> |
||||
|
<img src="@/assets/img/shuju/title-tip.png" /> |
||||
|
<span>积分记录</span> |
||||
|
</div> |
||||
|
<div class="list"></div> |
||||
|
</cpt-card> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { Loading } from "element-ui"; //引入Loading服务 |
||||
|
import { requestPost } from "@/js/dai/request"; |
||||
|
import cptCard from "@/views/modules/visual/cpts/card"; |
||||
|
import peopleMore from "@/views/modules/visual/basicinfo/cpts/people-more"; |
||||
|
import cptTb from "@/views/modules/visual/cpts/tb"; |
||||
|
|
||||
|
export default { |
||||
|
name: "HomeMap", |
||||
|
data () { |
||||
|
return { |
||||
|
showedMoreInfo: false, |
||||
|
|
||||
|
userId: "", |
||||
|
|
||||
|
info: { |
||||
|
financialSituation: { monthlyIncome: "", retirementAmount: "" }, |
||||
|
gridName: "", |
||||
|
houseInfo: [], |
||||
|
name: "", |
||||
|
personCategory: [], |
||||
|
volunteerCategory: [], |
||||
|
workUnit: "", |
||||
|
}, |
||||
|
|
||||
|
houseInfo: { |
||||
|
ownerName: "", |
||||
|
userList: [ |
||||
|
// { |
||||
|
// userId: "", |
||||
|
// userName: "", |
||||
|
// isSelf: "", |
||||
|
// relation: "", |
||||
|
// }, |
||||
|
], |
||||
|
}, |
||||
|
|
||||
|
demand: { |
||||
|
loading: true, |
||||
|
colList: [ |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "10%", |
||||
|
}, |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "15%", |
||||
|
}, |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "15%", |
||||
|
}, |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "40%", |
||||
|
}, |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "10%", |
||||
|
}, |
||||
|
{ |
||||
|
align: "center", |
||||
|
width: "10%", |
||||
|
}, |
||||
|
], |
||||
|
header: ["序号", "服务时间", "需求类型", "需求内容", "状态", "操作"], |
||||
|
list: [], |
||||
|
pageSize: 5, |
||||
|
pageNo: 1, |
||||
|
total: 0, |
||||
|
}, |
||||
|
}; |
||||
|
}, |
||||
|
|
||||
|
props: { |
||||
|
uid: { |
||||
|
type: String, |
||||
|
default: "", |
||||
|
// default: "8ada68cb6f1e4b9a8333348a39ef3aee", |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
computed: {}, |
||||
|
|
||||
|
components: { |
||||
|
cptCard, |
||||
|
peopleMore, |
||||
|
cptTb, |
||||
|
}, |
||||
|
|
||||
|
watch: { |
||||
|
uid (id) { |
||||
|
this.userId = id; |
||||
|
}, |
||||
|
userId () { |
||||
|
this.getApiData(); |
||||
|
window.scrollTo(0, 0); |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
async mounted () { |
||||
|
this.userId = this.uid; |
||||
|
this.getApiData(); |
||||
|
}, |
||||
|
|
||||
|
methods: { |
||||
|
handleSearch () { }, |
||||
|
|
||||
|
getApiData () { |
||||
|
this.getInfo(); |
||||
|
this.getHouseInfo(); |
||||
|
this.getDemandData(); |
||||
|
}, |
||||
|
|
||||
|
toUserInfo (uid) { |
||||
|
this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` }); |
||||
|
}, |
||||
|
|
||||
|
//加载组织数据 |
||||
|
async getInfo () { |
||||
|
const url = "/epmetuser/icresiuser/persondata"; |
||||
|
let params = { |
||||
|
userId: this.userId, |
||||
|
}; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, params); |
||||
|
|
||||
|
if (code === 0) { |
||||
|
this.info = { ...this.info, ...data }; |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
//加载组织数据 |
||||
|
async getHouseInfo () { |
||||
|
const url = "/epmetuser/icresiuser/ownerrelation"; |
||||
|
let params = { |
||||
|
userId: this.userId, |
||||
|
}; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, params); |
||||
|
|
||||
|
if (code === 0) { |
||||
|
this.houseInfo = { ...this.houseInfo, ...data }; |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
handlePageNoChange_demand (val) { |
||||
|
this.demand.pageNo = val; |
||||
|
this.getDemandData(); |
||||
|
}, |
||||
|
|
||||
|
//加载组织数据 |
||||
|
async getDemandData () { |
||||
|
const url = |
||||
|
"http://yapi.elinkservice.cn/mock/245/heart/userdemand/mydemand"; |
||||
|
let params = { |
||||
|
userId: this.userId, |
||||
|
pageNo: this.demand.pageNo, |
||||
|
pageSize: this.demand.pageSize, |
||||
|
}; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, params); |
||||
|
this.demand.loading = false; |
||||
|
|
||||
|
if (code === 0) { |
||||
|
this.demand.total = data.total; |
||||
|
this.demand.list = data.list.map((item) => { |
||||
|
return [ |
||||
|
{ type: "index" }, |
||||
|
item.wantServiceTime, |
||||
|
item.content, |
||||
|
item.categoryName, |
||||
|
item.statusName, |
||||
|
{ type: "operate", list: ["查看"] }, |
||||
|
]; |
||||
|
}); |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style |
||||
|
lang="scss" |
||||
|
src="@/assets/scss/modules/visual/resibuzz.scss" |
||||
|
scoped |
||||
|
></style> |
||||
@ -0,0 +1,401 @@ |
|||||
|
<template> |
||||
|
<div class="warning-box"> |
||||
|
<cpt-card class="card-wr"> |
||||
|
<div class="card-title"> |
||||
|
<img class="title-icon" src="../../../../assets/img/shuju/title-tip.png" /> |
||||
|
<div class="title-label"> |
||||
|
区域化党建 |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="second-title"> |
||||
|
<div class="second-title-label">党建单位分类统计</div> |
||||
|
<div class="second-select"> |
||||
|
<el-select v-model="value2" clearable placeholder="请选择"> |
||||
|
<el-option |
||||
|
v-for="item in headerList" |
||||
|
:key="item.coulmn" |
||||
|
:label="item.title" |
||||
|
:value="item.coulmn"> |
||||
|
</el-option> |
||||
|
</el-select> |
||||
|
</div> |
||||
|
<div class="second-select"> |
||||
|
<el-date-picker |
||||
|
v-model="value2" |
||||
|
type="date" |
||||
|
prefix-icon="el-icon-caret-bottom" |
||||
|
placeholder="选择日期" |
||||
|
value-format="yyyy-MM-dd"> |
||||
|
</el-date-picker> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="box-wr box-wr-400"> |
||||
|
<div class="box-left"> |
||||
|
<div class="box-left-item"> |
||||
|
<div class="box-label">组织单位</div> |
||||
|
<div class="box-num">1233</div> |
||||
|
</div> |
||||
|
<div class="box-left-item"> |
||||
|
<div class="box-label">组织活动</div> |
||||
|
<div class="box-num">1233</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="box-right"> |
||||
|
<div class="warning-box-bottom"> |
||||
|
<screen-table |
||||
|
:headerList="headerList" |
||||
|
:tableData="tableData" |
||||
|
:visibleLoading="visibleLoading" |
||||
|
:operate="false" |
||||
|
></screen-table> |
||||
|
<div class="pagination"> |
||||
|
<el-pagination |
||||
|
:current-page="pageNo" |
||||
|
:page-size="pageSize" |
||||
|
background |
||||
|
layout="prev, pager, next" |
||||
|
@size-change="pageSizeChangeHandleNew" |
||||
|
@current-change="pageCurrentChangeHandleNew" |
||||
|
:total="total" |
||||
|
> |
||||
|
</el-pagination> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="second-title"> |
||||
|
<div class="second-title-label">党建单位分类统计</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="box-wr"> |
||||
|
<div class="box-left box-left-w400"> |
||||
|
<div v-for="item in partyItem" :key="item.value" class="box-left-item"> |
||||
|
<div class="box-label">{{ item.name }}</div> |
||||
|
<div class="box-num" :style="'color:' + item.color">{{ item.value }}</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="box-right"> |
||||
|
<div class="box-map">这是地图容器</div> |
||||
|
<div class="map-tips"> |
||||
|
<div v-for="item in partyItem" :key="item.value" class="map-tips-item"> |
||||
|
<div class="map-tips-icon"> |
||||
|
<img :src="item.icon" /> |
||||
|
</div> |
||||
|
<div class="map-tips-label">{{ item.name }}</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</cpt-card> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { requestPost } from "@/js/dai/request"; |
||||
|
import screenTable from "../components/screen-table/index"; |
||||
|
import cptCard from "@/views/modules/visual/cpts/card"; |
||||
|
import nextTick from "dai-js/tools/nextTick"; |
||||
|
|
||||
|
export default { |
||||
|
name: "warning-box", |
||||
|
components: { |
||||
|
cptCard, |
||||
|
screenTable, |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
warningList: [], |
||||
|
headerList: [ |
||||
|
{ title: "序号", coulmn: 'index' }, |
||||
|
{ title: "需求类型", coulmn: 'gridName' }, |
||||
|
{ title: "具体内容", coulmn: 'buildingName' }, |
||||
|
{ title: "上报情况", coulmn: 'neighborhoodName' }, |
||||
|
{ title: "上报人", coulmn: 'residentNames' }, |
||||
|
{ title: "上报时间", coulmn: 'residentNames' }, |
||||
|
{ title: "是否认领", coulmn: 'residentNames' }, |
||||
|
{ title: "认领方", coulmn: 'residentNames' }, |
||||
|
{ title: "认领时间", coulmn: 'residentNames' } |
||||
|
], |
||||
|
tableData: [ |
||||
|
// [1,'商丘路社区第一网格','商丘路小区','2号楼','杨颖、王平、刘佳敏、丁辉、杨萍'], |
||||
|
], |
||||
|
value2: '', |
||||
|
visibleLoading: true, |
||||
|
pageNo: 1, |
||||
|
pageSize: 10, |
||||
|
total: 0, |
||||
|
activeIndex: 0, |
||||
|
activeLevel: "1", |
||||
|
partyItem: [ |
||||
|
{ |
||||
|
name: '楼宇党建', |
||||
|
value: 1, |
||||
|
color: 'rgba(250, 32, 10, 1)', |
||||
|
icon: require('../../../../assets/img/shuju/measure/ly@2x.png') |
||||
|
}, { |
||||
|
name: '机关直属部门', |
||||
|
value: 2, |
||||
|
color: 'rgba(65, 181, 104, 1)', |
||||
|
icon: require('../../../../assets/img/shuju/measure/jgzs@2x.png') |
||||
|
}, { |
||||
|
name: '两新党建', |
||||
|
value: 3, |
||||
|
color: 'rgba(251, 177, 4, 1)', |
||||
|
icon: require('../../../../assets/img/shuju/measure/lxdj@2x.png') |
||||
|
}, { |
||||
|
name: '辖区单位', |
||||
|
value: 4, |
||||
|
color: 'rgba(80, 194, 237, 1)', |
||||
|
icon: require('../../../../assets/img/shuju/measure/xq@2x.png') |
||||
|
}, { |
||||
|
name: '其他', |
||||
|
value: 5, |
||||
|
color: 'rgba(192, 21, 195, 1)', |
||||
|
icon: require('../../../../assets/img/shuju/measure/qita.png') |
||||
|
} |
||||
|
], |
||||
|
}; |
||||
|
}, |
||||
|
async mounted() { |
||||
|
await nextTick(100); |
||||
|
this.getBuildingwarnlist(); |
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
|
||||
|
onClickList(index, level) { |
||||
|
this.activeIndex = index; |
||||
|
this.activeLevel = level; |
||||
|
this.pageNo = 1; |
||||
|
this.getUserwarnlist(); |
||||
|
}, |
||||
|
//具体人员列表 |
||||
|
async getUserwarnlist() { |
||||
|
const { activeIndex, activeLevel, warningList } = this; |
||||
|
const reqItem = warningList[activeIndex]; |
||||
|
let tableData = []; |
||||
|
const url = "/epmetuser/statsresiwarn/userwarnlist"; |
||||
|
let params = { |
||||
|
configId: reqItem.configId, |
||||
|
buildingIdList: reqItem["buildingIdList" + activeLevel], |
||||
|
pageNo: this.pageNo, |
||||
|
pageSize: this.pageSize, |
||||
|
}; |
||||
|
const { data, code, msg } = await requestPost(url, params); |
||||
|
if (code === 0) { |
||||
|
tableData = data.list.map((item, index) => { |
||||
|
return { |
||||
|
...item, |
||||
|
index: index + 1, |
||||
|
residentNames: item.residentNames || "暂无" |
||||
|
} |
||||
|
}); |
||||
|
this.tableData = tableData; |
||||
|
this.total = data.total; |
||||
|
} else { |
||||
|
} |
||||
|
}, |
||||
|
// 【人员预警】 楼宇预警数量列表 |
||||
|
async getBuildingwarnlist() { |
||||
|
const url = "/epmetuser/statsresiwarn/buildingwarnlist"; |
||||
|
let params = { |
||||
|
agencyId: this.$store.state.user.agencyId, |
||||
|
}; |
||||
|
const { data, code, msg } = await requestPost(url, params); |
||||
|
if (code === 0) { |
||||
|
this.warningList = data; |
||||
|
this.visibleLoading = false; |
||||
|
this.getUserwarnlist(); |
||||
|
} else { |
||||
|
} |
||||
|
}, |
||||
|
pageSizeChangeHandleNew(val) { |
||||
|
this.pageNo = 1; |
||||
|
this.pageSize = val; |
||||
|
}, |
||||
|
pageCurrentChangeHandleNew(val) { |
||||
|
this.pageNo = val; |
||||
|
this.getUserwarnlist(); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style |
||||
|
lang="scss" |
||||
|
src="@/assets/scss/modules/visual/warning.scss" |
||||
|
scoped |
||||
|
></style> |
||||
|
<style lang="scss" scoped> |
||||
|
.warning-box { |
||||
|
display: flex; |
||||
|
.card-wr { |
||||
|
flex: 1; |
||||
|
} |
||||
|
.card-wr:last-child { |
||||
|
margin-left: 20px; |
||||
|
} |
||||
|
} |
||||
|
.card-title { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
cursor: pointer; |
||||
|
.title-icon { |
||||
|
display: block; |
||||
|
width: 46px; |
||||
|
height: 34px; |
||||
|
box-sizing: border-box; |
||||
|
margin-right: 6px; |
||||
|
} |
||||
|
.title-label { |
||||
|
font-size: 16px; |
||||
|
font-weight: 800; |
||||
|
} |
||||
|
::v-deep .el-dropdown { |
||||
|
font-size: 16px; |
||||
|
color: #fff; |
||||
|
font-weight: 800; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
.second-title { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
margin-top: 20px; |
||||
|
.second-title-label { |
||||
|
position: relative; |
||||
|
padding-left: 40px; |
||||
|
font-size: 16px; |
||||
|
font-weight: 500; |
||||
|
color: #fff; |
||||
|
} |
||||
|
.second-title-label::after { |
||||
|
content: ''; |
||||
|
position: absolute; |
||||
|
top: 50%; |
||||
|
left: 20px; |
||||
|
width: 12px; |
||||
|
height: 12px; |
||||
|
box-sizing: border-box; |
||||
|
margin-top: -6px; |
||||
|
background: #2865FA; |
||||
|
border-radius: 50%; |
||||
|
} |
||||
|
.second-select { |
||||
|
margin: 0 10px 0 40px; |
||||
|
::v-deep .el-input { |
||||
|
width: 120px; |
||||
|
height: 36px; |
||||
|
.el-input__inner { |
||||
|
height: 100%; |
||||
|
padding: 0 10px; |
||||
|
color: #fff; |
||||
|
line-height: 36px; |
||||
|
background: #06186D; |
||||
|
border: 1px solid #1A64CC; |
||||
|
} |
||||
|
|
||||
|
.el-icon-arrow-up:before { |
||||
|
content: "\e78f" |
||||
|
} |
||||
|
// .el-select__caret:before { |
||||
|
// content: '\E790' |
||||
|
// } |
||||
|
} |
||||
|
::v-deep .el-date-editor { |
||||
|
.el-input__prefix { |
||||
|
left: unset; |
||||
|
right: 5px; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
.second-select:last-child { |
||||
|
margin-left: 0; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.box-wr { |
||||
|
display: flex; |
||||
|
box-sizing: border-box; |
||||
|
.box-left { |
||||
|
flex-shrink: 0; |
||||
|
display: flex; |
||||
|
.box-left-item { |
||||
|
.box-label { |
||||
|
font-size: 16px; |
||||
|
color: rgba(255, 255, 255, .72); |
||||
|
} |
||||
|
.box-num { |
||||
|
font-size: 32px; |
||||
|
font-weight: bold; |
||||
|
color: #fff; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
.box-right { |
||||
|
flex: 1; |
||||
|
.box-map { |
||||
|
height: 400px; |
||||
|
border: 1px solid #2865FA; |
||||
|
} |
||||
|
} |
||||
|
.box-left-w400 { |
||||
|
flex-wrap: wrap; |
||||
|
width: 400px; |
||||
|
box-sizing: border-box; |
||||
|
padding-top: 60px; |
||||
|
padding-left: 100px; |
||||
|
.box-left-item { |
||||
|
width: 50%; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
.box-wr-400 { |
||||
|
height: 400px; |
||||
|
.box-left { |
||||
|
width: 300px; |
||||
|
flex-direction: column; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
.box-left-item:last-child { |
||||
|
margin-top: 100px; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
.map-tips { |
||||
|
width: 100%; |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
flex-wrap: wrap; |
||||
|
padding-top: 10px; |
||||
|
padding-bottom: 20px; |
||||
|
.map-tips-item { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
margin-top: 20px; |
||||
|
margin-right: 40px; |
||||
|
.map-tips-icon { |
||||
|
width: 32px; |
||||
|
height: 32px; |
||||
|
box-sizing: border-box; |
||||
|
margin-right: 10px; |
||||
|
// background: #DD2719; |
||||
|
// border-radius: 2px; |
||||
|
img { |
||||
|
display: block; |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
} |
||||
|
} |
||||
|
.map-tips-label { |
||||
|
font-size: 16px; |
||||
|
color: #fff; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,744 @@ |
|||||
|
<template> |
||||
|
<div class="warning-box"> |
||||
|
<cpt-card> |
||||
|
<div class="card-title"> |
||||
|
<img class="title-icon" src="../../../../assets/img/shuju/title-tip.png" /> |
||||
|
<div class="title-label"> |
||||
|
<el-dropdown trigger="click"> |
||||
|
<span class="el-dropdown-link"> |
||||
|
全部网格<i class="el-icon-caret-bottom el-icon--right"></i> |
||||
|
</span> |
||||
|
<el-dropdown-menu slot="dropdown"> |
||||
|
<el-dropdown-item>黄金糕</el-dropdown-item> |
||||
|
<el-dropdown-item>狮子头</el-dropdown-item> |
||||
|
<el-dropdown-item>螺蛳粉</el-dropdown-item> |
||||
|
<el-dropdown-item>双皮奶</el-dropdown-item> |
||||
|
<el-dropdown-item>蚵仔煎</el-dropdown-item> |
||||
|
</el-dropdown-menu> |
||||
|
</el-dropdown> |
||||
|
</div> |
||||
|
<!-- <div class="title-time"> |
||||
|
<div class="title-time-label">选择时间</div> |
||||
|
<div class=""> |
||||
|
<el-date-picker |
||||
|
v-model="value2" |
||||
|
type="month" |
||||
|
placeholder="选择月"> |
||||
|
</el-date-picker> |
||||
|
</div> |
||||
|
</div> --> |
||||
|
</div> |
||||
|
<div class="card-echart"> |
||||
|
<div class="card-left"> |
||||
|
<div class="card-left-title">党员年龄统计</div> |
||||
|
<div class="card-flex"> |
||||
|
<div class="echart-wr"> |
||||
|
<div class="echart-cicle"></div> |
||||
|
<div id="echartOrg" class="echart-org"></div> |
||||
|
</div> |
||||
|
<div class="echarts-tips echarts-tips-wd50"> |
||||
|
<div class="tips-lists"> |
||||
|
<div v-for="item in ageItem" :key="item.value" class="tips-items"> |
||||
|
<div class="tips-items-title" :class="'tips-items-title' + item.value"> |
||||
|
{{ item.name }} |
||||
|
</div> |
||||
|
<div class="tips-items-num"> |
||||
|
<div class="tips-item-count">{{item.value}}</div> |
||||
|
<div class="tips-item-has">25%</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="warning-box-bottom"> |
||||
|
<screen-table |
||||
|
:headerList="headerList" |
||||
|
:tableData="tableData" |
||||
|
:visibleLoading="visibleLoading" |
||||
|
:operate="false" |
||||
|
></screen-table> |
||||
|
<div class="pagination"> |
||||
|
<el-pagination |
||||
|
:current-page="pageNo" |
||||
|
:page-size="pageSize" |
||||
|
background |
||||
|
layout="prev, pager, next" |
||||
|
@size-change="pageSizeChangeHandleNew" |
||||
|
@current-change="pageCurrentChangeHandleNew" |
||||
|
:total="total" |
||||
|
> |
||||
|
</el-pagination> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="card-left"> |
||||
|
<div class="card-left-title">党员学历统计</div> |
||||
|
<div class="card-flex"> |
||||
|
<div class="echart-wr echart-wr100"> |
||||
|
<div class="echart-cicle echart-cicle0"></div> |
||||
|
<div id="echartType" class="echart-org"></div> |
||||
|
</div> |
||||
|
<div v-if="false" class="echarts-tips"> |
||||
|
<div class="tips-list"> |
||||
|
<div v-for="item in eduItem" :key="item.value" class="tips-item"> |
||||
|
<div class="tips-item-icon" :style="'background:' + item.color"></div> |
||||
|
<div class="tips-item-text">{{item.name}}</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="warning-box-bottom"> |
||||
|
<screen-table |
||||
|
:headerList="headerList" |
||||
|
:tableData="tableData" |
||||
|
:visibleLoading="visibleLoading" |
||||
|
:operate="false" |
||||
|
></screen-table> |
||||
|
<div class="pagination"> |
||||
|
<el-pagination |
||||
|
:current-page="pageNo" |
||||
|
:page-size="pageSize" |
||||
|
background |
||||
|
layout="prev, pager, next" |
||||
|
@size-change="pageSizeChangeHandleNew" |
||||
|
@current-change="pageCurrentChangeHandleNew" |
||||
|
:total="total" |
||||
|
> |
||||
|
</el-pagination> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
</cpt-card> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { requestPost } from "@/js/dai/request"; |
||||
|
import screenTable from "../components/screen-table/index"; |
||||
|
import cptCard from "@/views/modules/visual/cpts/card"; |
||||
|
import nextTick from "dai-js/tools/nextTick"; |
||||
|
|
||||
|
import * as echarts from 'echarts'; |
||||
|
export default { |
||||
|
name: "warning-box", |
||||
|
components: { |
||||
|
cptCard, |
||||
|
screenTable, |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
warningList: [], |
||||
|
headerList: [ |
||||
|
{ title: "序号", coulmn: 'index' }, |
||||
|
{ title: "姓名", coulmn: 'gridName' }, |
||||
|
{ title: "年龄", coulmn: 'buildingName' }, |
||||
|
{ title: "手机号码", coulmn: 'neighborhoodName' } |
||||
|
], |
||||
|
tableData: [ |
||||
|
// [1,'商丘路社区第一网格','商丘路小区','2号楼','杨颖、王平、刘佳敏、丁辉、杨萍'], |
||||
|
], |
||||
|
value2: '', |
||||
|
visibleLoading: true, |
||||
|
pageNo: 1, |
||||
|
pageSize: 10, |
||||
|
total: 0, |
||||
|
activeIndex: 0, |
||||
|
activeLevel: "1", |
||||
|
eduItem: [ |
||||
|
{ |
||||
|
name: '小学', |
||||
|
value: 0, |
||||
|
color: 'rgba(27, 81, 255, 1)' |
||||
|
}, { |
||||
|
name: '初中', |
||||
|
value: 1, |
||||
|
color: 'rgba(0, 229, 237, 1)' |
||||
|
}, { |
||||
|
name: '高中', |
||||
|
value: 2, |
||||
|
color: 'rgba(120, 0, 255, 1)' |
||||
|
}, { |
||||
|
name: '中专', |
||||
|
value: 3, |
||||
|
color: 'rgba(255, 120, 0, 1)' |
||||
|
}, { |
||||
|
name: '大专', |
||||
|
value: 4, |
||||
|
color: 'rgba(255, 186, 0, 1)' |
||||
|
}, { |
||||
|
name: '本科', |
||||
|
value: 5, |
||||
|
color: 'rgba(22, 215, 131, 1)' |
||||
|
}, { |
||||
|
name: '硕士', |
||||
|
value: 6, |
||||
|
color: 'rgba(42, 0, 255, 1)' |
||||
|
}, { |
||||
|
name: '博士', |
||||
|
value: 7, |
||||
|
color: 'rgba(198, 0, 255, 1)' |
||||
|
}, { |
||||
|
name: '其他', |
||||
|
value: 8, |
||||
|
color: 'rgba(255, 42, 0, 1)' |
||||
|
} |
||||
|
], |
||||
|
ageItem: [ |
||||
|
{ |
||||
|
name: '50岁以下', |
||||
|
value: 1, |
||||
|
color: 'rgba(27, 81, 255, 1)' |
||||
|
}, { |
||||
|
name: '50-59岁', |
||||
|
value: 2, |
||||
|
color: 'rgba(0, 229, 237, 1)' |
||||
|
}, { |
||||
|
name: '60-69岁', |
||||
|
value: 3, |
||||
|
color: 'rgba(120, 0, 255, 1)' |
||||
|
}, { |
||||
|
name: '70-79岁', |
||||
|
value: 4, |
||||
|
color: 'rgba(255, 120, 0, 1)' |
||||
|
}, { |
||||
|
name: '80岁以上', |
||||
|
value: 5, |
||||
|
color: 'rgba(255, 186, 0, 1)' |
||||
|
} |
||||
|
], |
||||
|
|
||||
|
}; |
||||
|
}, |
||||
|
async mounted() { |
||||
|
await nextTick(100); |
||||
|
this.initCharts() |
||||
|
this.initChartType() |
||||
|
this.getBuildingwarnlist(); |
||||
|
}, |
||||
|
methods: { |
||||
|
initCharts() { |
||||
|
const eId = document.getElementById('echartOrg') |
||||
|
let _charts = echarts.init(eId) |
||||
|
let option = { |
||||
|
tooltip: { |
||||
|
show: false, |
||||
|
trigger: 'item' |
||||
|
}, |
||||
|
legend: { |
||||
|
show: false, |
||||
|
orient: 'vertical', |
||||
|
top: '40%', |
||||
|
left: 'right', |
||||
|
textStyle: { |
||||
|
color: '#fff' |
||||
|
} |
||||
|
}, |
||||
|
title: { |
||||
|
text: '12000', //图形标题,配置在中间对应效果图的80% |
||||
|
subtext: '总数', |
||||
|
left: "center", |
||||
|
top: "center", |
||||
|
textStyle: { |
||||
|
color: "#fff", |
||||
|
fontSize: 28, |
||||
|
align: "center" |
||||
|
}, |
||||
|
subtextStyle: { |
||||
|
fontSize: 16, |
||||
|
color: '#fff' |
||||
|
} |
||||
|
}, |
||||
|
series: [ |
||||
|
{ |
||||
|
// name: 'Access From', |
||||
|
type: 'pie', |
||||
|
// center: ['10%', '50%'], |
||||
|
radius: ['40%', '60%'], |
||||
|
avoidLabelOverlap: true, |
||||
|
// top: top + '%', |
||||
|
// height: '80%', |
||||
|
left: 'center', |
||||
|
width: 400, |
||||
|
label: { |
||||
|
show: true, |
||||
|
position: 'outer', |
||||
|
alignTo: 'edge', |
||||
|
formatter: '{a|{c}}\n{r|}\n{name|{b}}', |
||||
|
minMargin: 5, |
||||
|
edgeDistance: 20, |
||||
|
lineHeight: 15, |
||||
|
color: '#fff', |
||||
|
fontSize: 12, |
||||
|
// padding: [5], |
||||
|
distanceToLabelLine: 10, |
||||
|
rich: { |
||||
|
name: { |
||||
|
padding: [0, 6, 0, 6] |
||||
|
}, |
||||
|
a: { |
||||
|
fontSize: 15, |
||||
|
color: '#fff', |
||||
|
padding: [0, 6, 0, 6] |
||||
|
}, |
||||
|
r: { |
||||
|
backgroundColor: 'auto', |
||||
|
borderRadius: 6, |
||||
|
width: 6, |
||||
|
height: 6, |
||||
|
// padding: [3, 3, 0, -12] |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
emphasis: { |
||||
|
label: { |
||||
|
show: true, |
||||
|
fontSize: '14', |
||||
|
fontWeight: 'bold' |
||||
|
} |
||||
|
}, |
||||
|
labelLine: { |
||||
|
show: true, |
||||
|
length: 20, |
||||
|
length2: 0, |
||||
|
maxSurfaceAngle: 80, |
||||
|
lineStyle: { |
||||
|
cap: 'round' |
||||
|
} |
||||
|
}, |
||||
|
labelLayout: function (params) { |
||||
|
const isLeft = params.labelRect.x < _charts.getWidth() / 2; |
||||
|
const points = params.labelLinePoints; |
||||
|
// Update the end point. |
||||
|
points[2][0] = isLeft |
||||
|
? params.labelRect.x |
||||
|
: params.labelRect.x + params.labelRect.width; |
||||
|
return { |
||||
|
labelLinePoints: points |
||||
|
}; |
||||
|
}, |
||||
|
data: this.ageItem |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
option && _charts.setOption(option); |
||||
|
|
||||
|
}, |
||||
|
initChartType() { |
||||
|
const eId = document.getElementById('echartType') |
||||
|
let _charts = echarts.init(eId) |
||||
|
let option = { |
||||
|
tooltip: { |
||||
|
trigger: 'item' |
||||
|
}, |
||||
|
legend: { |
||||
|
show: true, |
||||
|
orient: 'vertical', |
||||
|
top: '20%', |
||||
|
right: 0, |
||||
|
textStyle: { |
||||
|
width: 90, |
||||
|
color: '#fff', |
||||
|
rich: { |
||||
|
a: { |
||||
|
width: 90 |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
formatter: name => { |
||||
|
for (let a = 0; a < this.eduItem.length; a++) { |
||||
|
// this.data 这个数据中有名称和次数 |
||||
|
if (this.eduItem[a].name === name) { |
||||
|
//两个名称进行对比,取出对应的次数 |
||||
|
let params1 = name + "\n"; //然后return你需要的legend格式即可 |
||||
|
console.log(params1); |
||||
|
let tmp = params1.split("\n"); |
||||
|
let res = "" + params1; |
||||
|
for (let i in tmp) { |
||||
|
res = res.replace(tmp[i], ""); |
||||
|
} |
||||
|
return res + params1; |
||||
|
} |
||||
|
} |
||||
|
// var target; |
||||
|
// for(var i = 0; i < this.eduItem.length; i++){ |
||||
|
// if(i == this.eduItem.length && parseFloat(this.eduItem[i].value * 100).toFixed(2) < parseFloat(0.01)){ |
||||
|
// target = " (<0.01" |
||||
|
// break; |
||||
|
// } |
||||
|
// if(name == this.eduItem[i].name){ |
||||
|
// target = " (" + (this.eduItem[i].value * 100).toFixed(2) + "" |
||||
|
// break; |
||||
|
// } |
||||
|
// } |
||||
|
// var arr = [ |
||||
|
// '{a|' + name + target + '%)}', |
||||
|
// ] |
||||
|
// return arr.join('\n'); |
||||
|
} |
||||
|
}, |
||||
|
title: { |
||||
|
text: '12000', //图形标题,配置在中间对应效果图的80% |
||||
|
subtext: '总数', |
||||
|
left: 196, |
||||
|
top: "center", |
||||
|
textAlign: 'center', |
||||
|
textStyle: { |
||||
|
color: "#fff", |
||||
|
fontSize: 28, |
||||
|
align: "center" |
||||
|
}, |
||||
|
subtextStyle: { |
||||
|
fontSize: 16, |
||||
|
color: '#fff', |
||||
|
align: 'center' |
||||
|
} |
||||
|
}, |
||||
|
series: [ |
||||
|
{ |
||||
|
// name: 'Access From', |
||||
|
type: 'pie', |
||||
|
// center: ['50%', '50%'], |
||||
|
radius: ['40%', '60%'], |
||||
|
avoidLabelOverlap: true, |
||||
|
// top: top + '%', |
||||
|
// height: '80%', |
||||
|
// left: 0, |
||||
|
width: 400, |
||||
|
label: { |
||||
|
position: 'outside', |
||||
|
alignTo: 'edge', |
||||
|
formatter: '{a|{c}}\n{r|}\n{name|{b}}', |
||||
|
minMargin: 5, |
||||
|
edgeDistance: 20, |
||||
|
lineHeight: 15, |
||||
|
color: '#fff', |
||||
|
fontSize: 15, |
||||
|
rich: { |
||||
|
name: { |
||||
|
padding: [0, 6, 0, 6] |
||||
|
}, |
||||
|
a: { |
||||
|
fontSize: 15, |
||||
|
color: '#fff', |
||||
|
padding: [0, 6, 0, 6] |
||||
|
}, |
||||
|
r: { |
||||
|
backgroundColor: 'auto', |
||||
|
borderRadius: 6, |
||||
|
width: 6, |
||||
|
height: 6, |
||||
|
// padding: [3, 3, 0, -12] |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
emphasis: { |
||||
|
label: { |
||||
|
show: true, |
||||
|
fontSize: '14', |
||||
|
fontWeight: 'bold' |
||||
|
} |
||||
|
}, |
||||
|
labelLine: { |
||||
|
show: true, |
||||
|
length: 20, |
||||
|
length2: 0, |
||||
|
maxSurfaceAngle: 80 |
||||
|
}, |
||||
|
labelLayout: function (params) { |
||||
|
const isLeft = params.labelRect.x < _charts.getWidth() / 2; |
||||
|
const points = params.labelLinePoints; |
||||
|
// Update the end point. |
||||
|
points[2][0] = isLeft |
||||
|
? params.labelRect.x |
||||
|
: params.labelRect.x + params.labelRect.width; |
||||
|
return { |
||||
|
labelLinePoints: points |
||||
|
}; |
||||
|
}, |
||||
|
data: this.eduItem |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
option && _charts.setOption(option); |
||||
|
|
||||
|
}, |
||||
|
onClickList(index, level) { |
||||
|
this.activeIndex = index; |
||||
|
this.activeLevel = level; |
||||
|
this.pageNo = 1; |
||||
|
this.getUserwarnlist(); |
||||
|
}, |
||||
|
//具体人员列表 |
||||
|
async getUserwarnlist() { |
||||
|
const { activeIndex, activeLevel, warningList } = this; |
||||
|
const reqItem = warningList[activeIndex]; |
||||
|
let tableData = []; |
||||
|
const url = "/epmetuser/statsresiwarn/userwarnlist"; |
||||
|
let params = { |
||||
|
configId: reqItem.configId, |
||||
|
buildingIdList: reqItem["buildingIdList" + activeLevel], |
||||
|
pageNo: this.pageNo, |
||||
|
pageSize: this.pageSize, |
||||
|
}; |
||||
|
const { data, code, msg } = await requestPost(url, params); |
||||
|
if (code === 0) { |
||||
|
tableData = data.list.map((item, index) => { |
||||
|
return { |
||||
|
...item, |
||||
|
index: index + 1, |
||||
|
residentNames: item.residentNames || "暂无" |
||||
|
} |
||||
|
}); |
||||
|
this.tableData = tableData; |
||||
|
this.total = data.total; |
||||
|
} else { |
||||
|
} |
||||
|
}, |
||||
|
// 【人员预警】 楼宇预警数量列表 |
||||
|
async getBuildingwarnlist() { |
||||
|
const url = "/epmetuser/statsresiwarn/buildingwarnlist"; |
||||
|
let params = { |
||||
|
agencyId: this.$store.state.user.agencyId, |
||||
|
}; |
||||
|
const { data, code, msg } = await requestPost(url, params); |
||||
|
if (code === 0) { |
||||
|
this.warningList = data; |
||||
|
this.visibleLoading = false; |
||||
|
this.getUserwarnlist(); |
||||
|
} else { |
||||
|
} |
||||
|
}, |
||||
|
pageSizeChangeHandleNew(val) { |
||||
|
this.pageNo = 1; |
||||
|
this.pageSize = val; |
||||
|
}, |
||||
|
pageCurrentChangeHandleNew(val) { |
||||
|
this.pageNo = val; |
||||
|
this.getUserwarnlist(); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style |
||||
|
lang="scss" |
||||
|
src="@/assets/scss/modules/visual/warning.scss" |
||||
|
scoped |
||||
|
></style> |
||||
|
<style lang="scss" scoped> |
||||
|
.card-title { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
cursor: pointer; |
||||
|
.title-icon { |
||||
|
display: block; |
||||
|
width: 46px; |
||||
|
height: 34px; |
||||
|
box-sizing: border-box; |
||||
|
margin-right: 6px; |
||||
|
} |
||||
|
::v-deep .el-dropdown { |
||||
|
font-size: 18px; |
||||
|
color: #fff; |
||||
|
font-weight: 800; |
||||
|
} |
||||
|
.title-time { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
box-sizing: border-box; |
||||
|
margin-left: 30px; |
||||
|
font-size: 14px; |
||||
|
color: #fff; |
||||
|
.title-time-label { |
||||
|
margin-right: 10px; |
||||
|
} |
||||
|
::v-deep .el-date-editor--month { |
||||
|
width: 100px; |
||||
|
.el-input__inner { |
||||
|
width: 100px; |
||||
|
height: 24px; |
||||
|
box-sizing: border-box; |
||||
|
padding: 0; |
||||
|
font-size: 14px; |
||||
|
color: #fff; |
||||
|
line-height: 24px; |
||||
|
text-align: center; |
||||
|
background: #06186D; |
||||
|
border: 1px solid #1A64CC; |
||||
|
border-radius: 2px; |
||||
|
} |
||||
|
.el-input__prefix { |
||||
|
display: none; |
||||
|
} |
||||
|
.el-input__suffix { |
||||
|
right: 0; |
||||
|
.el-input__icon { |
||||
|
line-height: 24px; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
.card-echart { |
||||
|
display: flex; |
||||
|
margin-top: 40px; |
||||
|
height: 100%; |
||||
|
.card-left { |
||||
|
position: relative; |
||||
|
flex: 1; |
||||
|
// display: flex; |
||||
|
height: 100%; |
||||
|
.card-flex { |
||||
|
width: 100%; |
||||
|
display: flex; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
.card-left-title { |
||||
|
position: relative; |
||||
|
padding-left: 40px; |
||||
|
font-size: 16px; |
||||
|
font-weight: 500; |
||||
|
color: #fff; |
||||
|
} |
||||
|
.card-left-title::after { |
||||
|
content: ''; |
||||
|
position: absolute; |
||||
|
top: 50%; |
||||
|
left: 20px; |
||||
|
width: 12px; |
||||
|
height: 12px; |
||||
|
box-sizing: border-box; |
||||
|
margin-top: -6px; |
||||
|
background: #2865FA; |
||||
|
border-radius: 50%; |
||||
|
} |
||||
|
.echart-wr { |
||||
|
position: relative; |
||||
|
flex-shrink: 0; |
||||
|
width: 50%; |
||||
|
height: 320px; |
||||
|
box-sizing: border-box; |
||||
|
.echart-org { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
} |
||||
|
.echart-cicle { |
||||
|
position: absolute; |
||||
|
top: 50%; |
||||
|
left: 50%; |
||||
|
width: 240px; |
||||
|
height: 240px; |
||||
|
box-sizing: border-box; |
||||
|
margin-top: -120px; |
||||
|
margin-left: -120px; |
||||
|
border: 1px dashed rgba(0, 96, 240, 1); |
||||
|
border-radius: 50%; |
||||
|
} |
||||
|
.echart-cicle0 { |
||||
|
left: 80px; |
||||
|
margin-left: 0; |
||||
|
} |
||||
|
} |
||||
|
.echart-wr100 { |
||||
|
width: 70%; |
||||
|
} |
||||
|
.echarts-tips { |
||||
|
width: 40%; |
||||
|
// flex: 1; |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
} |
||||
|
.echarts-tips-wd50 { |
||||
|
width: 320px; |
||||
|
} |
||||
|
.tips-list, .tips-item, .tips-lists, .tips-items-num { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
} |
||||
|
.tips-list { |
||||
|
// width: 100%; |
||||
|
// height: 100%; |
||||
|
flex-wrap: wrap; |
||||
|
// justify-content: center; |
||||
|
.tips-item { |
||||
|
// flex: 1; |
||||
|
width: 50%; |
||||
|
margin-top: 20px; |
||||
|
// margin-right: 40px; |
||||
|
cursor: pointer; |
||||
|
.tips-item-icon { |
||||
|
width: 20px; |
||||
|
height: 10px; |
||||
|
box-sizing: border-box; |
||||
|
margin-right: 8px; |
||||
|
background: #1B51FF; |
||||
|
border-radius: 2px; |
||||
|
} |
||||
|
.tips-item-text { |
||||
|
font-size: 16px; |
||||
|
color: #D2E7FF; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
.tips-lists { |
||||
|
width: 100%; |
||||
|
box-sizing: border-box; |
||||
|
padding: 30px 0 0 30px; |
||||
|
flex-wrap: wrap; |
||||
|
.tips-items { |
||||
|
margin-bottom: 30px; |
||||
|
margin-right: 40px; |
||||
|
// width: 50%; |
||||
|
cursor: pointer; |
||||
|
.tips-items-title { |
||||
|
position: relative; |
||||
|
width: 100px; |
||||
|
height: 26px; |
||||
|
box-sizing: border-box; |
||||
|
padding-left: 6px; |
||||
|
font-size: 16px; |
||||
|
color: #EFF0F1; |
||||
|
background: url('../../../../assets/img/shuju/measure/zi@2x.png') no-repeat left bottom; |
||||
|
&1 { |
||||
|
background: url('../../../../assets/img/shuju/measure/huang@2x.png') no-repeat left bottom; |
||||
|
} |
||||
|
&2 { |
||||
|
background: url('../../../../assets/img/shuju/measure/lan@2x.png') no-repeat left bottom; |
||||
|
} |
||||
|
&3 { |
||||
|
background: url('../../../../assets/img/shuju/measure/lanlv@2x.png') no-repeat left bottom; |
||||
|
} |
||||
|
&4 { |
||||
|
background: url('../../../../assets/img/shuju/measure/lv@2x.png') no-repeat left bottom; |
||||
|
} |
||||
|
} |
||||
|
.tips-items-num { |
||||
|
justify-content: space-between; |
||||
|
box-sizing: border-box; |
||||
|
margin-top: 10px; |
||||
|
// padding-right: 30px; |
||||
|
font-size: 20px; |
||||
|
.tips-item-has { |
||||
|
font-size: 14px; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.warning-box-bottom { |
||||
|
height: calc(100% - 500px); |
||||
|
box-sizing: border-box; |
||||
|
margin: 0; |
||||
|
padding: 0 30px; |
||||
|
// overflow-y: scroll; |
||||
|
} |
||||
|
</style> |
||||
@ -0,0 +1,177 @@ |
|||||
|
<template> |
||||
|
<div class="screenEchartsFrame" |
||||
|
ref="screenEchartsFrame"></div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import * as echarts from 'echarts'; |
||||
|
export default { |
||||
|
name: 'screen-echarts-frame', |
||||
|
data () { |
||||
|
return { |
||||
|
myChart: '' |
||||
|
} |
||||
|
}, |
||||
|
props: { |
||||
|
chartMethod: { |
||||
|
type: Function |
||||
|
} |
||||
|
}, |
||||
|
mounted () { |
||||
|
this.initChart() |
||||
|
window.onresize = () => { |
||||
|
this.myChart.resize() |
||||
|
} |
||||
|
}, |
||||
|
beforeDestroy () { |
||||
|
// 销毁echarts实例对象 |
||||
|
if (this.myChart) this.myChart.dispose() |
||||
|
}, |
||||
|
watch: {}, |
||||
|
methods: { |
||||
|
initChart () { |
||||
|
|
||||
|
this.$nextTick(() => { |
||||
|
const dom = this.$refs.screenEchartsFrame |
||||
|
this.myChart = echarts.init(dom) |
||||
|
|
||||
|
// this.myChart.setOption(this.chartMethod()); |
||||
|
this.$emit('myChartMethod', this.myChart) |
||||
|
}) |
||||
|
}, |
||||
|
//点击pie事件 |
||||
|
handleClick (fun) { |
||||
|
this.myChart.on('click', fun); |
||||
|
}, |
||||
|
|
||||
|
//高亮 |
||||
|
highLight (index) { |
||||
|
this.myChart.dispatchAction({ |
||||
|
type: 'highlight', |
||||
|
seriesIndex: 1, |
||||
|
dataIndex: index |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
// 配置option |
||||
|
setOption (option) { |
||||
|
this.myChart.setOption(option) |
||||
|
}, |
||||
|
// 获取option |
||||
|
getOption () { |
||||
|
if (this.myChart) { |
||||
|
return this.myChart.getOption() |
||||
|
} else { |
||||
|
return null |
||||
|
} |
||||
|
}, |
||||
|
// |
||||
|
resize () { |
||||
|
if (this.myChart) { |
||||
|
this.myChart.resize() |
||||
|
} |
||||
|
}, |
||||
|
clear () { |
||||
|
if (this.myChart) { |
||||
|
this.myChart.clear() |
||||
|
} |
||||
|
}, |
||||
|
showLoading () { |
||||
|
if (this.myChart) { |
||||
|
this.$nextTick(() => { |
||||
|
this.myChart.showLoading({ |
||||
|
text: '', |
||||
|
color: '#29cdff', |
||||
|
textColor: '#29cdff', |
||||
|
maskColor: 'rgba(255, 255, 255, 0)', |
||||
|
zlevel: 0 |
||||
|
|
||||
|
}) |
||||
|
}) |
||||
|
} |
||||
|
}, |
||||
|
hideLoading () { |
||||
|
|
||||
|
if (this.myChart) { |
||||
|
this.myChart.hideLoading() |
||||
|
} |
||||
|
}, |
||||
|
// 启动动画时使用 |
||||
|
tooltipAnimate (chart, length) { |
||||
|
// 清除上一次动画 |
||||
|
this.timeTicket && clearInterval(this.timeTicket) |
||||
|
const count = 0 |
||||
|
// 启动动画 |
||||
|
this._action(chart, count, length) |
||||
|
chart && // 移除动画 |
||||
|
chart.on('mouseover', params => { |
||||
|
this._cleanAction(chart, params) |
||||
|
}) |
||||
|
// 重写启动动画 |
||||
|
chart && |
||||
|
chart.on('mouseout', () => { |
||||
|
this._action(chart, count, length) |
||||
|
}) |
||||
|
}, |
||||
|
// tooltip动画action |
||||
|
_action (chart, count, length) { |
||||
|
this.timeTicket && clearInterval(this.timeTicket) |
||||
|
this.timeTicket = setInterval(() => { |
||||
|
if (!chart) { |
||||
|
clearInterval(this.timeTicket) |
||||
|
return |
||||
|
} |
||||
|
chart && |
||||
|
chart.dispatchAction({ |
||||
|
type: 'downplay', |
||||
|
seriesIndex: 0 |
||||
|
}) |
||||
|
chart && |
||||
|
chart.dispatchAction({ |
||||
|
type: 'highlight', |
||||
|
seriesIndex: 0, |
||||
|
dataIndex: count % length |
||||
|
}) |
||||
|
chart && |
||||
|
chart.dispatchAction({ |
||||
|
type: 'showTip', |
||||
|
seriesIndex: 0, |
||||
|
dataIndex: count % length |
||||
|
}) |
||||
|
count++ |
||||
|
}, 1000 * 3) |
||||
|
}, |
||||
|
_cleanAction (chart, params) { |
||||
|
this.timeTicket && clearInterval(this.timeTicket) |
||||
|
if (!chart) { |
||||
|
clearInterval(this.timeTicket) |
||||
|
return |
||||
|
} |
||||
|
chart && |
||||
|
chart.dispatchAction({ |
||||
|
type: 'downplay', |
||||
|
seriesIndex: 0 |
||||
|
}) |
||||
|
chart && |
||||
|
chart.dispatchAction({ |
||||
|
type: 'highlight', |
||||
|
seriesIndex: 0, |
||||
|
dataIndex: params.dataIndex |
||||
|
}) |
||||
|
chart && |
||||
|
chart.dispatchAction({ |
||||
|
type: 'showTip', |
||||
|
seriesIndex: 0, |
||||
|
dataIndex: params.dataIndex |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.screenEchartsFrame { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
} |
||||
|
</style> |
||||
@ -0,0 +1,495 @@ |
|||||
|
<template> |
||||
|
<div class="warning-box"> |
||||
|
<cpt-card class="card-wr"> |
||||
|
<div class="card-title"> |
||||
|
<img class="title-icon" src="../../../../assets/img/shuju/title-tip.png" /> |
||||
|
<div class="title-label"> |
||||
|
志愿者服务情况 |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="card-echart"> |
||||
|
<div class="card-left"> |
||||
|
<div class="card-count"> |
||||
|
<div class="card-count-item"> |
||||
|
<div class="card-count-content"> |
||||
|
<div class="card-count-num">6500</div> |
||||
|
<div class="card-count-label">党员数量</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="card-count-item"> |
||||
|
<div class="card-count-content"> |
||||
|
<div class="card-count-num">6500</div> |
||||
|
<div class="card-count-label">居民数量</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="echart-wr"> |
||||
|
<!-- <div class="echart-cicle"></div> --> |
||||
|
<div id="echartService" class="echart-org"></div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<div class="card-echart"> |
||||
|
<div class="card-left"> |
||||
|
<div class="card-count"> |
||||
|
<div class="card-count-item"> |
||||
|
<div class="card-count-content"> |
||||
|
<div class="card-count-num">6500</div> |
||||
|
<div class="card-count-label">党员数量</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="card-count-item"> |
||||
|
<div class="card-count-content"> |
||||
|
<div class="card-count-num">6500</div> |
||||
|
<div class="card-count-label">居民数量</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="echart-wr"> |
||||
|
<!-- <div class="echart-cicle"></div> --> |
||||
|
<div id="echartCount" class="echart-org"></div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
</cpt-card> |
||||
|
<cpt-card class="card-wr"> |
||||
|
<div class="card-title"> |
||||
|
<img class="title-icon" src="../../../../assets/img/shuju/title-tip.png" /> |
||||
|
<div class="title-label"> |
||||
|
多元化治理平面图 |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="map-tips"> |
||||
|
<div class="map-tips-item"> |
||||
|
<div class="map-tips-icon"></div> |
||||
|
<div class="map-tips-label">调解员</div> |
||||
|
</div> |
||||
|
<div class="map-tips-item"> |
||||
|
<div class="map-tips-icon"></div> |
||||
|
<div class="map-tips-label">调解员</div> |
||||
|
</div> |
||||
|
<div class="map-tips-item"> |
||||
|
<div class="map-tips-icon"></div> |
||||
|
<div class="map-tips-label">能人达人</div> |
||||
|
</div> |
||||
|
<div class="map-tips-item"> |
||||
|
<div class="map-tips-icon"></div> |
||||
|
<div class="map-tips-label">治安巡逻</div> |
||||
|
</div> |
||||
|
<div class="map-tips-item"> |
||||
|
<div class="map-tips-icon"></div> |
||||
|
<div class="map-tips-label">代办员</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="card-map"> |
||||
|
这里是地图容器 |
||||
|
</div> |
||||
|
|
||||
|
</cpt-card> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { requestPost } from "@/js/dai/request"; |
||||
|
import screenTable from "../components/screen-table/index"; |
||||
|
import cptCard from "@/views/modules/visual/cpts/card"; |
||||
|
import nextTick from "dai-js/tools/nextTick"; |
||||
|
|
||||
|
import * as echarts from 'echarts'; |
||||
|
export default { |
||||
|
name: "warning-box", |
||||
|
components: { |
||||
|
cptCard, |
||||
|
screenTable, |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
warningList: [], |
||||
|
headerList: [ |
||||
|
{ title: "序号", coulmn: 'index' }, |
||||
|
{ title: "需求类型", coulmn: 'gridName' }, |
||||
|
{ title: "具体内容", coulmn: 'buildingName' }, |
||||
|
{ title: "上报情况", coulmn: 'neighborhoodName' }, |
||||
|
{ title: "上报人", coulmn: 'residentNames' }, |
||||
|
{ title: "上报时间", coulmn: 'residentNames' }, |
||||
|
{ title: "是否认领", coulmn: 'residentNames' }, |
||||
|
{ title: "认领方", coulmn: 'residentNames' }, |
||||
|
{ title: "认领时间", coulmn: 'residentNames' } |
||||
|
], |
||||
|
tableData: [ |
||||
|
// [1,'商丘路社区第一网格','商丘路小区','2号楼','杨颖、王平、刘佳敏、丁辉、杨萍'], |
||||
|
], |
||||
|
value2: '', |
||||
|
visibleLoading: true, |
||||
|
pageNo: 1, |
||||
|
pageSize: 10, |
||||
|
total: 0, |
||||
|
activeIndex: 0, |
||||
|
activeLevel: "1", |
||||
|
}; |
||||
|
}, |
||||
|
async mounted() { |
||||
|
await nextTick(100); |
||||
|
this.initCharts() |
||||
|
this.initCount() |
||||
|
this.getBuildingwarnlist(); |
||||
|
}, |
||||
|
methods: { |
||||
|
initCharts() { |
||||
|
const eId = document.getElementById('echartService') |
||||
|
let _charts = echarts.init(eId) |
||||
|
let option = { |
||||
|
tooltip: { |
||||
|
trigger: 'item' |
||||
|
}, |
||||
|
legend: { |
||||
|
show: true, |
||||
|
top: 'bottom', |
||||
|
left: 'center', |
||||
|
textStyle: { |
||||
|
color: '#fff' |
||||
|
} |
||||
|
}, |
||||
|
title: { |
||||
|
text: '12000', //图形标题,配置在中间对应效果图的80% |
||||
|
subtext: '志愿者总数', |
||||
|
left: "center", |
||||
|
top: "center", |
||||
|
textStyle: { |
||||
|
color: "#fff", |
||||
|
fontSize: 28, |
||||
|
align: "center" |
||||
|
}, |
||||
|
subtextStyle: { |
||||
|
fontSize: 16, |
||||
|
color: '#fff' |
||||
|
} |
||||
|
}, |
||||
|
series: [ |
||||
|
{ |
||||
|
// name: 'Access From', |
||||
|
type: 'pie', |
||||
|
radius: ['50%', '60%'], |
||||
|
avoidLabelOverlap: false, |
||||
|
left: 'center', |
||||
|
width: 400, |
||||
|
label: { |
||||
|
show: false, |
||||
|
}, |
||||
|
emphasis: { |
||||
|
label: { |
||||
|
show: false, |
||||
|
fontSize: '14', |
||||
|
fontWeight: 'bold' |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
data: [ |
||||
|
{ |
||||
|
value: 104, |
||||
|
name: '党员', |
||||
|
itemStyle: { |
||||
|
color: 'rgba(26, 178, 255, 1)' |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
value: 735, |
||||
|
name: '居民', |
||||
|
itemStyle: { |
||||
|
color: 'rgba(250, 193, 38, 1)' |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
option && _charts.setOption(option); |
||||
|
|
||||
|
}, |
||||
|
initCount() { |
||||
|
const eId = document.getElementById('echartCount') |
||||
|
let _charts = echarts.init(eId) |
||||
|
let option = { |
||||
|
tooltip: { |
||||
|
trigger: 'item' |
||||
|
}, |
||||
|
legend: { |
||||
|
show: true, |
||||
|
top: 'bottom', |
||||
|
left: 'center', |
||||
|
textStyle: { |
||||
|
color: '#fff' |
||||
|
} |
||||
|
}, |
||||
|
title: { |
||||
|
text: '12000', //图形标题,配置在中间对应效果图的80% |
||||
|
subtext: '志愿者服务总数', |
||||
|
left: "center", |
||||
|
top: "center", |
||||
|
textStyle: { |
||||
|
color: "#fff", |
||||
|
fontSize: 28, |
||||
|
align: "center" |
||||
|
}, |
||||
|
subtextStyle: { |
||||
|
fontSize: 16, |
||||
|
color: '#fff' |
||||
|
} |
||||
|
}, |
||||
|
series: [ |
||||
|
{ |
||||
|
// name: 'Access From', |
||||
|
type: 'pie', |
||||
|
// center: ['10%', '50%'], |
||||
|
radius: ['50%', '60%'], |
||||
|
avoidLabelOverlap: false, |
||||
|
// top: top + '%', |
||||
|
// height: '80%', |
||||
|
left: 'center', |
||||
|
width: 400, |
||||
|
label: { |
||||
|
show: false, |
||||
|
}, |
||||
|
emphasis: { |
||||
|
label: { |
||||
|
show: false, |
||||
|
fontSize: '14', |
||||
|
fontWeight: 'bold' |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
data: [ |
||||
|
{ |
||||
|
value: 1048, |
||||
|
name: '党员', |
||||
|
itemStyle: { |
||||
|
color: 'rgba(26, 178, 255, 1)' |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
value: 735, |
||||
|
name: '居民', |
||||
|
itemStyle: { |
||||
|
color: 'rgba(250, 193, 38, 1)' |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
option && _charts.setOption(option); |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
onClickList(index, level) { |
||||
|
this.activeIndex = index; |
||||
|
this.activeLevel = level; |
||||
|
this.pageNo = 1; |
||||
|
this.getUserwarnlist(); |
||||
|
}, |
||||
|
//具体人员列表 |
||||
|
async getUserwarnlist() { |
||||
|
const { activeIndex, activeLevel, warningList } = this; |
||||
|
const reqItem = warningList[activeIndex]; |
||||
|
let tableData = []; |
||||
|
const url = "/epmetuser/statsresiwarn/userwarnlist"; |
||||
|
let params = { |
||||
|
configId: reqItem.configId, |
||||
|
buildingIdList: reqItem["buildingIdList" + activeLevel], |
||||
|
pageNo: this.pageNo, |
||||
|
pageSize: this.pageSize, |
||||
|
}; |
||||
|
const { data, code, msg } = await requestPost(url, params); |
||||
|
if (code === 0) { |
||||
|
tableData = data.list.map((item, index) => { |
||||
|
return { |
||||
|
...item, |
||||
|
index: index + 1, |
||||
|
residentNames: item.residentNames || "暂无" |
||||
|
} |
||||
|
}); |
||||
|
this.tableData = tableData; |
||||
|
this.total = data.total; |
||||
|
} else { |
||||
|
} |
||||
|
}, |
||||
|
// 【人员预警】 楼宇预警数量列表 |
||||
|
async getBuildingwarnlist() { |
||||
|
const url = "/epmetuser/statsresiwarn/buildingwarnlist"; |
||||
|
let params = { |
||||
|
agencyId: this.$store.state.user.agencyId, |
||||
|
}; |
||||
|
const { data, code, msg } = await requestPost(url, params); |
||||
|
if (code === 0) { |
||||
|
this.warningList = data; |
||||
|
this.visibleLoading = false; |
||||
|
this.getUserwarnlist(); |
||||
|
} else { |
||||
|
} |
||||
|
}, |
||||
|
pageSizeChangeHandleNew(val) { |
||||
|
this.pageNo = 1; |
||||
|
this.pageSize = val; |
||||
|
}, |
||||
|
pageCurrentChangeHandleNew(val) { |
||||
|
this.pageNo = val; |
||||
|
this.getUserwarnlist(); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style |
||||
|
lang="scss" |
||||
|
src="@/assets/scss/modules/visual/warning.scss" |
||||
|
scoped |
||||
|
></style> |
||||
|
<style lang="scss" scoped> |
||||
|
.warning-box { |
||||
|
display: flex; |
||||
|
.card-wr { |
||||
|
flex: 1; |
||||
|
} |
||||
|
.card-wr:last-child { |
||||
|
margin-left: 20px; |
||||
|
} |
||||
|
} |
||||
|
.card-title { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
cursor: pointer; |
||||
|
.title-icon { |
||||
|
display: block; |
||||
|
width: 46px; |
||||
|
height: 34px; |
||||
|
box-sizing: border-box; |
||||
|
margin-right: 6px; |
||||
|
} |
||||
|
.title-label { |
||||
|
font-size: 16px; |
||||
|
font-weight: 800; |
||||
|
} |
||||
|
::v-deep .el-dropdown { |
||||
|
font-size: 16px; |
||||
|
color: #fff; |
||||
|
font-weight: 800; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
.card-echart { |
||||
|
display: flex; |
||||
|
margin-top: 40px; |
||||
|
|
||||
|
.card-left { |
||||
|
position: relative; |
||||
|
flex: 1; |
||||
|
display: flex; |
||||
|
} |
||||
|
} |
||||
|
.card-echart:last-child { |
||||
|
padding-bottom: 40px; |
||||
|
} |
||||
|
.echart-wr { |
||||
|
position: relative; |
||||
|
flex-shrink: 0; |
||||
|
width: 50%; |
||||
|
height: 320px; |
||||
|
box-sizing: border-box; |
||||
|
.echart-org { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
} |
||||
|
.echart-cicle { |
||||
|
position: absolute; |
||||
|
top: 50%; |
||||
|
left: 50%; |
||||
|
width: 240px; |
||||
|
height: 240px; |
||||
|
box-sizing: border-box; |
||||
|
margin-top: -120px; |
||||
|
margin-left: -120px; |
||||
|
border: 1px dashed rgba(0, 96, 240, 1); |
||||
|
border-radius: 50%; |
||||
|
} |
||||
|
} |
||||
|
.card-count { |
||||
|
flex: 1; |
||||
|
.card-count-item { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
width: 418px; |
||||
|
height: 124px; |
||||
|
box-sizing: border-box; |
||||
|
margin-top: 20px; |
||||
|
// padding-left: 192px; |
||||
|
background: url('../../../../assets/img/shuju/measure/dangyuan.png') center no-repeat; |
||||
|
background-size: cover; |
||||
|
.card-count-content { |
||||
|
position: relative; |
||||
|
box-sizing: border-box; |
||||
|
padding-left: 30px; |
||||
|
color: #fff; |
||||
|
cursor: pointer; |
||||
|
.card-count-num { |
||||
|
font-size: 32px; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
.card-count-label { |
||||
|
margin-top: 6px; |
||||
|
font-size: 16px; |
||||
|
color: rgba(255, 255, 255, .72); |
||||
|
} |
||||
|
} |
||||
|
.card-count-content::after { |
||||
|
position: absolute; |
||||
|
top: 50%; |
||||
|
left: 0; |
||||
|
content: ''; |
||||
|
width: 1px; |
||||
|
height: 50px; |
||||
|
margin-top: -25px; |
||||
|
background: rgba(98, 162, 205, 1); |
||||
|
} |
||||
|
} |
||||
|
.card-count-item:last-child { |
||||
|
background: url('../../../../assets/img/shuju/measure/jumin.png') center no-repeat; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.map-tips { |
||||
|
width: 100%; |
||||
|
display: flex; |
||||
|
flex-wrap: wrap; |
||||
|
padding-top: 10px; |
||||
|
padding-bottom: 20px; |
||||
|
.map-tips-item { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
margin-top: 20px; |
||||
|
margin-right: 40px; |
||||
|
.map-tips-icon { |
||||
|
width: 20px; |
||||
|
height: 10px; |
||||
|
box-sizing: border-box; |
||||
|
margin-right: 10px; |
||||
|
background: #DD2719; |
||||
|
border-radius: 2px; |
||||
|
} |
||||
|
.map-tips-label { |
||||
|
font-size: 16px; |
||||
|
color: #fff; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
</style> |
||||