@ -1,5 +1,5 @@ |
|||
NODE_ENV=production |
|||
# VUE_APP_API_SERVER = http://118.190.150.119:41080/api |
|||
VUE_APP_API_SERVER = http://192.168.1.140/api |
|||
VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api |
|||
# VUE_APP_API_SERVER = http://192.168.1.140/api |
|||
VUE_APP_NODE_ENV=prod:sit |
|||
VUE_APP_PUBLIC_PATH=epmet-oper |
|||
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 540 B |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
@ -0,0 +1,193 @@ |
|||
@import '../../c/config'; |
|||
@import '../../c/function'; |
|||
@import './c/common'; |
|||
|
|||
.title { |
|||
padding: 10px; |
|||
font-size: 22px; |
|||
font-family: PingFang SC; |
|||
font-weight: 800; |
|||
color: #ffffff; |
|||
|
|||
position: relative; |
|||
|
|||
.card-title { |
|||
display: flex; |
|||
align-items: center; |
|||
|
|||
img { |
|||
display: block; |
|||
margin-right: 5px; |
|||
} |
|||
span { |
|||
display: block; |
|||
} |
|||
} |
|||
|
|||
.second-title { |
|||
display: block; |
|||
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: 180px; |
|||
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 { |
|||
width: 360px; |
|||
position: relative; |
|||
background: #06186d; |
|||
border: 1px solid #1a64cc; |
|||
.el-range-input { |
|||
color: #fff; |
|||
background: #06186d; |
|||
} |
|||
.el-range-separator { |
|||
color: #fff; |
|||
} |
|||
.el-range__icon { |
|||
position: absolute; |
|||
right: 5px; |
|||
// float: right; |
|||
} |
|||
.el-input__prefix { |
|||
left: unset; |
|||
right: 5px; |
|||
} |
|||
} |
|||
} |
|||
.second-select:last-child { |
|||
margin-left: 0; |
|||
} |
|||
} |
|||
.cascader { |
|||
::v-deep .el-input { |
|||
width: 220px; |
|||
} |
|||
} |
|||
.status-select { |
|||
position: absolute; |
|||
top: 20px; |
|||
right: 10px; |
|||
} |
|||
.second-select:last-child { |
|||
margin-left: 0; |
|||
} |
|||
} |
|||
|
|||
.g-cpt-resi { |
|||
display: flex; |
|||
flex-direction: row; |
|||
// flex-wrap: wrap; |
|||
// justify-content: center; |
|||
height: calc(100vh - 230px); |
|||
|
|||
.g-l { |
|||
width: 40%; |
|||
height: calc(100vh - 290px); |
|||
|
|||
.echart-line { |
|||
margin-left: 30px; |
|||
// margin-top: 100px; |
|||
text-align: center; |
|||
position: relative; |
|||
width: 100%; |
|||
height: 100%; |
|||
box-sizing: border-box; |
|||
.echart-org { |
|||
width: 100%; |
|||
height: 90%; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.g-r { |
|||
width: 60%; |
|||
height: calc(100vh - 250px); |
|||
|
|||
.r-map { |
|||
position: relative; |
|||
height: calc(100vh - 250px - 50px); |
|||
width: 100%; |
|||
|
|||
.map { |
|||
height: 100%; |
|||
width: 100%; |
|||
} |
|||
} |
|||
|
|||
.r-legend { |
|||
display: flex; |
|||
justify-content: center; |
|||
margin-top: 24px; |
|||
align-items: center; |
|||
|
|||
.legend_item { |
|||
margin-left: 40px; |
|||
display: flex; |
|||
align-items: center; |
|||
|
|||
> span { |
|||
margin-left: 11px; |
|||
font-size: 16px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #d2e7ff; |
|||
} |
|||
|
|||
.color { |
|||
width: 20px; |
|||
height: 10px; |
|||
|
|||
border-radius: 4px; |
|||
} |
|||
|
|||
.color0 { |
|||
background: #dd2719; |
|||
} |
|||
.color1 { |
|||
background: #edbe00; |
|||
} |
|||
.color2 { |
|||
background: #00e5ed; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,295 @@ |
|||
@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; |
|||
position: relative; |
|||
|
|||
img { |
|||
display: block; |
|||
margin-right: 5px; |
|||
} |
|||
span { |
|||
display: block; |
|||
} |
|||
|
|||
.second-title { |
|||
display: flex; |
|||
align-items: center; |
|||
|
|||
.second-select { |
|||
margin: 0 10px 0 40px; |
|||
|
|||
::v-deep .el-input { |
|||
width: 140px; |
|||
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'; |
|||
} |
|||
} |
|||
::v-deep .el-date-editor { |
|||
.el-input__prefix { |
|||
left: unset; |
|||
right: 5px; |
|||
} |
|||
} |
|||
} |
|||
.cascader { |
|||
::v-deep .el-input { |
|||
width: 220px; |
|||
} |
|||
} |
|||
.second-select:last-child { |
|||
margin-left: 0; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.g-cpt-resi { |
|||
display: flex; |
|||
flex-direction: row; |
|||
height: calc(100vh - 180px); |
|||
|
|||
.g-l { |
|||
flex-shrink: 0; |
|||
width: 700px; |
|||
height: calc(100vh - 230px); |
|||
|
|||
.l_top { |
|||
height: 385px; |
|||
display: flex; |
|||
.g-count { |
|||
width: 100px; |
|||
} |
|||
.g-pie { |
|||
position: relative; |
|||
} |
|||
} |
|||
.l_bottom { |
|||
height: calc(100vh - 230px - 385px); |
|||
margin-top: 20px; |
|||
} |
|||
} |
|||
|
|||
.g-r { |
|||
text-align: center; |
|||
margin: 20px 10px 20px; |
|||
width: calc(100vw - 700px); |
|||
height: calc(100vh - 180px - 20px); |
|||
} |
|||
} |
|||
|
|||
.l_bottom { |
|||
.bottom_label { |
|||
position: relative; |
|||
padding-left: 40px; |
|||
font-size: 16px; |
|||
font-weight: 500; |
|||
color: #fff; |
|||
} |
|||
.bottom_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%; |
|||
} |
|||
> span { |
|||
font-size: 18px; |
|||
font-family: PingFang SC; |
|||
font-weight: 800; |
|||
color: #ffffff; |
|||
} |
|||
.echart-line { |
|||
margin-top: 10px; |
|||
} |
|||
} |
|||
.g-count { |
|||
margin-top: 104px; |
|||
margin-left: 52px; |
|||
.t_count { |
|||
font-size: 16px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #ffffff; |
|||
opacity: 0.76; |
|||
} |
|||
.c_count { |
|||
font-size: 48px; |
|||
font-family: PingFang SC; |
|||
font-weight: bold; |
|||
color: #ffffff; |
|||
} |
|||
.t_yestoday { |
|||
margin-top: 59px; |
|||
font-size: 14px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #ffffff; |
|||
opacity: 0.76; |
|||
> span { |
|||
margin-left: 18px; |
|||
font-size: 16px; |
|||
font-family: PingFang SC; |
|||
font-weight: 500; |
|||
color: #f42800; |
|||
} |
|||
} |
|||
.t_today { |
|||
margin-top: 12px; |
|||
font-size: 14px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #ffffff; |
|||
opacity: 0.76; |
|||
> span { |
|||
margin-left: 18px; |
|||
font-size: 16px; |
|||
font-family: PingFang SC; |
|||
font-weight: 500; |
|||
color: #3edd7f; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.g-r { |
|||
.r-map { |
|||
position: relative; |
|||
height: calc(100vh - 180px - 20px - 70px); |
|||
width: 100%; |
|||
|
|||
.map { |
|||
height: 100%; |
|||
width: 100%; |
|||
} |
|||
|
|||
.r-status { |
|||
position: absolute; |
|||
bottom: 0; |
|||
right: 0; |
|||
display: flex; |
|||
|
|||
.status { |
|||
height: 30px; |
|||
width: 70px; |
|||
line-height: 30px; |
|||
font-size: 12px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #d2e7ff; |
|||
background-color: #1146c2; |
|||
} |
|||
|
|||
.status-closed { |
|||
} |
|||
|
|||
.status-pending { |
|||
border-radius: 5px 0 0 0; |
|||
} |
|||
.sel-status { |
|||
background-color: #082586; |
|||
} |
|||
} |
|||
|
|||
.r-status:hover { |
|||
cursor: pointer; |
|||
} |
|||
} |
|||
|
|||
.r-legend { |
|||
display: flex; |
|||
justify-content: center; |
|||
margin-top: 14px; |
|||
align-items: center; |
|||
|
|||
> img { |
|||
margin-left: 58px; |
|||
height: 35px; |
|||
width: 40px; |
|||
} |
|||
|
|||
> span { |
|||
margin-left: 3px; |
|||
font-size: 16px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #d2e7ff; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.echart-wr { |
|||
margin-left: 30px; |
|||
// margin-top: 100px; |
|||
text-align: center; |
|||
position: relative; |
|||
width: 500px; |
|||
// height: 100%; |
|||
box-sizing: border-box; |
|||
} |
|||
|
|||
.g-pie { |
|||
position: relative; |
|||
.pie-legend { |
|||
margin-left: 30px; |
|||
margin-top: -40px; |
|||
display: flex; |
|||
justify-content: center; |
|||
|
|||
.legend_item { |
|||
.item_name { |
|||
margin-left: 5px; |
|||
font-size: 10px; |
|||
font-family: PingFang SC; |
|||
font-weight: 500; |
|||
color: #eff0f1; |
|||
} |
|||
> img { |
|||
margin-top: -10px; |
|||
width: 80px; |
|||
height: 10px; |
|||
} |
|||
.item_num { |
|||
.item_count { |
|||
font-size: 17px; |
|||
font-family: PingFang SC; |
|||
font-weight: 500; |
|||
color: #ffffff; |
|||
} |
|||
|
|||
.item_percent { |
|||
margin-left: 12px; |
|||
font-size: 8px; |
|||
font-family: PingFang SC; |
|||
font-weight: 300; |
|||
color: #ffffff; |
|||
line-height: 18px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.item_last { |
|||
margin-left: 50px; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,135 @@ |
|||
@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; |
|||
position: relative; |
|||
|
|||
img { |
|||
display: block; |
|||
margin-right: 5px; |
|||
} |
|||
span { |
|||
display: block; |
|||
} |
|||
|
|||
.second-select { |
|||
margin: 0 10px 0 40px; |
|||
|
|||
::v-deep .el-input { |
|||
width: 140px; |
|||
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'; |
|||
} |
|||
} |
|||
::v-deep .el-date-editor { |
|||
.el-input__prefix { |
|||
left: unset; |
|||
right: 5px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.cascader { |
|||
::v-deep .el-input { |
|||
width: 220px; |
|||
} |
|||
} |
|||
.status-select { |
|||
position: absolute; |
|||
top: 20px; |
|||
right: 10px; |
|||
} |
|||
.second-select:last-child { |
|||
margin-left: 0; |
|||
} |
|||
} |
|||
|
|||
.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%; |
|||
} |
|||
} |
|||
@ -0,0 +1,573 @@ |
|||
<template> |
|||
<cpt-card> |
|||
<div class="title"> |
|||
<div class="card-title"> |
|||
<img src="@/assets/img/shuju/title-tip.png" /> |
|||
<span>项目分布分析</span> |
|||
</div> |
|||
<div class="second-title"> |
|||
<div class="second-title-label">不同事件类别在不同时间段的变化和分布</div> |
|||
<div class="second-select cascader"> |
|||
|
|||
<el-cascader class="customer_cascader" |
|||
ref="myCascader" |
|||
v-model="agencyIdArray" |
|||
:key="iscascaderShow" |
|||
:options="casOptions" |
|||
:props="optionProps" |
|||
@change="handleChangeAgency" |
|||
clearable></el-cascader> |
|||
</div> |
|||
<div class="second-select"> |
|||
<el-date-picker v-model="timeRange" |
|||
type="daterange" |
|||
range-separator="至" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
prefix-icon="el-icon-caret-bottom" |
|||
value-format="yyyy-MM-dd" |
|||
@change="handleSelectChange"> |
|||
</el-date-picker> |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
<div class="g-cpt-resi"> |
|||
<div class="g-l"> |
|||
<screen-echarts-frame class="echart-line" |
|||
@myChartMethod="lineInitOk" |
|||
ref="lineChart"></screen-echarts-frame> |
|||
|
|||
</div> |
|||
<div class="g-r"> |
|||
<div class="r-map"> |
|||
<screen-map class="map" |
|||
ref="map" |
|||
:showPolygonLayer="true"></screen-map> |
|||
|
|||
<div class="r-legend"> |
|||
<div class="legend_item" |
|||
v-for="(item,index) in legendArray" |
|||
:key="index"> |
|||
<div :class="['color','color'+index]"></div> |
|||
<span>{{item.name}}</span> |
|||
</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 screenMap from "@/views/modules/visual/components/screen-map"; |
|||
import { lineOption } from './distributionLineOption.js' |
|||
import * as echarts from 'echarts' |
|||
|
|||
|
|||
export default { |
|||
name: "HomeMap", |
|||
data () { |
|||
return { |
|||
showNoData: false, |
|||
timer: null, |
|||
|
|||
casOptions: [], |
|||
agencyIdArray: [], |
|||
customerList: [], |
|||
iscascaderShow: 0, |
|||
|
|||
optionProps: { |
|||
multiple: false, |
|||
value: 'agencyId', |
|||
label: 'agencyName', |
|||
children: 'subAgencyList', |
|||
checkStrictly: true |
|||
}, |
|||
|
|||
lineChart: '', |
|||
lineOption: {}, |
|||
lineInitState: false, |
|||
lineColorArray: [], |
|||
xaxis: [], |
|||
series: [], |
|||
legend: [], |
|||
lineData: [820, 932, 901, 934, 1290, 1330, 1320], |
|||
lineList: [ |
|||
{ |
|||
time: '4:00', |
|||
categoryList: [ |
|||
{ |
|||
categoryCode: '001', |
|||
count: 100, |
|||
color: '#1B51FF', |
|||
name: '分类1' |
|||
}, |
|||
{ |
|||
categoryCode: '002', |
|||
count: 200, |
|||
color: '#00E5ED', |
|||
name: '分类2' |
|||
} |
|||
] |
|||
}, |
|||
{ |
|||
time: '5:00', |
|||
categoryList: [ |
|||
{ |
|||
categoryCode: '001', |
|||
count: 20, |
|||
color: '#1B51FF', |
|||
name: '分类1' |
|||
}, |
|||
{ |
|||
categoryCode: '002', |
|||
count: 400, |
|||
color: '#00E5ED', |
|||
name: '分类2' |
|||
} |
|||
] |
|||
}, |
|||
{ |
|||
time: '6:00', |
|||
categoryList: [ |
|||
{ |
|||
categoryCode: '001', |
|||
count: 50, |
|||
color: '#1B51FF', |
|||
name: '分类1' |
|||
}, |
|||
{ |
|||
categoryCode: '002', |
|||
count: 10, |
|||
color: '#00E5ED', |
|||
name: '分类2' |
|||
} |
|||
] |
|||
} |
|||
], |
|||
|
|||
timeRange: [], |
|||
orgId: '', |
|||
|
|||
isfirstInit: true, |
|||
mapList: [ |
|||
{ |
|||
orgId: '3115fc83f1db431008a73c553eef1eb5', |
|||
count: 169 |
|||
}, |
|||
{ |
|||
orgId: '7e57419e6afcdc910d08124c0a1b4eb9', |
|||
count: 149 |
|||
}, |
|||
{ |
|||
orgId: 'e56ac695b01d9eed8723bde718071df5', |
|||
count: 219 |
|||
} |
|||
], |
|||
agencyInfo: {}, |
|||
subAgencyArray: [], |
|||
colorArray: ['#DD2719', '#EDBE00', '#00E5ED'], |
|||
colorFillArray: ['rgba(221, 39, 25, 0.24)', 'rgba(237, 190, 0, 0.25)', 'rgba(0, 229, 237, 0.16)'], |
|||
legendArray: [], |
|||
under: null, |
|||
above: null |
|||
|
|||
}; |
|||
}, |
|||
// mixins: [animate] |
|||
beforeDestroy () { |
|||
this.timer && clearInterval(this.timer) |
|||
}, |
|||
|
|||
async mounted () { |
|||
this.userId = this.uid; |
|||
this.initData() |
|||
await this.getAgencylist()//获取组织级别 |
|||
await this.loadOrgData() |
|||
this.getApiData(); |
|||
}, |
|||
|
|||
methods: { |
|||
initData () { |
|||
let yesterday = new Date((new Date).getTime() - 24 * 60 * 60 * 1000) |
|||
|
|||
let year = yesterday.getFullYear() |
|||
let month = yesterday.getMonth() + 1 //月 |
|||
let day = yesterday.getDate() //日 |
|||
|
|||
var days = new Date(year, month, 0); |
|||
days = days.getDate(); //获取当前月的天数 |
|||
var year2 = year; |
|||
var month2 = parseInt(month) - 1; |
|||
if (month2 == 0) { |
|||
year2 = parseInt(year2) - 1; |
|||
month2 = 12; |
|||
} |
|||
var day2 = day; |
|||
var days2 = new Date(year2, month2, 0); |
|||
days2 = days2.getDate(); |
|||
if (day2 > days2) { |
|||
day2 = days2; |
|||
} |
|||
if (month2 < 10) { |
|||
month2 = '0' + month2; |
|||
} |
|||
var t2 = year2 + '-' + month2 + '-' + day2; |
|||
var t1 = year + '-' + month + '-' + day; |
|||
// let t3 = formate(t2, style); |
|||
|
|||
this.timeRange = [t2, t1] |
|||
|
|||
}, |
|||
|
|||
handleSelectChange () { |
|||
this.getApiData(); |
|||
}, |
|||
|
|||
async getApiData () { |
|||
|
|||
await this.getLine() |
|||
await this.loadMapData(); |
|||
}, |
|||
|
|||
async getAgencylist () { |
|||
const url = '/gov/org/customeragency/agencylist' |
|||
// const url = 'http://yapi.elinkservice.cn/mock/102/gov/org/agency/agencylist' |
|||
|
|||
const params = { |
|||
// customerId: '613cc61a6b8ce4c70d21bd413dac72cc' |
|||
customerId: '0c41b272ee9ee95ac6f184ad548a30eb' |
|||
} |
|||
const { data, code, msg } = await requestPost(url, params) |
|||
if (code === 0) { |
|||
++this.iscascaderShow |
|||
this.casOptions = [] |
|||
this.agencyIdArray.length = [] |
|||
|
|||
if (data) { |
|||
this.casOptions.push(data) |
|||
} |
|||
|
|||
} else { |
|||
this.$message.error(msg) |
|||
} |
|||
}, |
|||
|
|||
handleChangeDate (value) { |
|||
|
|||
this.dateId = value |
|||
this.getApiData() |
|||
}, |
|||
|
|||
//加载组织数据 |
|||
async loadOrgData () { |
|||
const url = "/gov/org/agency/maporg" |
|||
// const url = "http://yapi.elinkservice.cn/mock/245/gov/org/agency/maporg" |
|||
let params = { |
|||
orgId: this.orgId, |
|||
level: 'agency' |
|||
} |
|||
|
|||
const { data, code, msg } = await requestPost(url, params) |
|||
|
|||
if (code === 0) { |
|||
|
|||
this.agencyInfo = data |
|||
if (!data.latitude) { |
|||
this.agencyInfo.latitude = 36.072227 |
|||
} |
|||
if (!data.longitude) { |
|||
this.agencyInfo.longitude = 120.389455 |
|||
} |
|||
if (!data.level) { |
|||
this.agencyInfo.level = 'street' |
|||
} |
|||
this.subAgencyArray = [] |
|||
if (data.children && data.children.length > 0) { |
|||
this.subAgencyArray = data.children |
|||
} else { |
|||
this.subAgencyArray = [] |
|||
} |
|||
|
|||
} else { |
|||
this.$message.error(msg) |
|||
} |
|||
|
|||
}, |
|||
|
|||
async loadMapData () { |
|||
this.$refs.lineChart.clear() |
|||
|
|||
const _that = this |
|||
// this.$refs.lineChart.showLoading() |
|||
// const url ="/gov/project/project/projectdistributionanalysisright"; |
|||
const url = "http://yapi.elinkservice.cn/mock/245/gov/project/project/projectdistributionanalysisright"; |
|||
let params = { |
|||
orgId: this.orgId, |
|||
startDate: this.timeRange.length > 0 && this.timeRange[0] || '', |
|||
endDate: this.timeRange.length > 0 && this.timeRange[1] || '' |
|||
}; |
|||
|
|||
const { data, code, msg } = await requestPost(url, params); |
|||
|
|||
if (code === 0) { |
|||
this.legendArray = [] |
|||
if (data.above) { |
|||
this.under = data.under |
|||
this.legendArray.push( |
|||
{ |
|||
color: this.colorArray[0], |
|||
name: data.under + '以下' |
|||
} |
|||
) |
|||
} |
|||
|
|||
if (data.above) { |
|||
this.above = data.above |
|||
this.legendArray.push( |
|||
{ |
|||
color: this.colorArray[1], |
|||
name: data.under + '-' + data.above |
|||
} |
|||
) |
|||
this.legendArray.push( |
|||
{ |
|||
color: this.colorArray[2], |
|||
name: data.above + '以上' |
|||
} |
|||
) |
|||
} |
|||
if (data.list && data.list.length > 0) { |
|||
// this.mapList = data.list |
|||
|
|||
|
|||
} else { |
|||
this.mapList = [] |
|||
} |
|||
|
|||
this.mapList.forEach(item => { |
|||
// debugger |
|||
for (let i = 0; i < this.subAgencyArray.length; i++) { |
|||
let agencyItem = this.subAgencyArray[i] |
|||
if (item.orgId === agencyItem.id) { |
|||
item.longitude = agencyItem.longitude |
|||
item.latitude = agencyItem.latitude |
|||
item.coordinates = agencyItem.coordinates |
|||
|
|||
if (this.under) { |
|||
if (item.count < this.under || item.count === this.under) { |
|||
item.color = this.colorArray[0] |
|||
item.fillColor = this.colorFillArray[0] |
|||
} |
|||
|
|||
if (this.above) { |
|||
if (item.count > this.under && item.count < this.above) { |
|||
item.color = this.colorArray[1] |
|||
item.fillColor = this.colorFillArray[1] |
|||
} else { |
|||
item.color = this.colorArray[2] |
|||
item.fillColor = this.colorFillArray[2] |
|||
} |
|||
} |
|||
} |
|||
break |
|||
} |
|||
|
|||
} |
|||
|
|||
}); |
|||
|
|||
console.log(this.mapList) |
|||
this.loadMap() |
|||
this.isfirstInit = false |
|||
|
|||
} else { |
|||
this.$message.error(msg); |
|||
} |
|||
}, |
|||
|
|||
loadMap () { |
|||
|
|||
if (this.isfirstInit) { |
|||
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray |
|||
this.$refs.map.loadMap(this.agencyInfo, this.mapList, null, null, null, null,) |
|||
} else { |
|||
this.$refs.map.refreshMap(this.mapList, null) |
|||
|
|||
|
|||
} |
|||
}, |
|||
|
|||
|
|||
lineInitOk (dom) { |
|||
|
|||
|
|||
this.lineInitState = true |
|||
|
|||
}, |
|||
getLine () { |
|||
if (this.lineInitState) { |
|||
this.getLineChart() |
|||
} else { |
|||
setTimeout(() => { |
|||
this.getLine() |
|||
}, 500) |
|||
} |
|||
}, |
|||
// 获取折线图 |
|||
async getLineChart () { |
|||
this.$refs.lineChart.clear() |
|||
|
|||
const _that = this |
|||
// this.$refs.lineChart.showLoading() |
|||
// const url ="/gov/project/project/projectdistributionanalysisleft"; |
|||
const url = "http://yapi.elinkservice.cn/mock/245/gov/project/project/projectdistributionanalysisleft"; |
|||
let params = { |
|||
orgId: this.orgId, |
|||
startDate: this.timeRange.length > 0 && this.timeRange[0] || '', |
|||
endDate: this.timeRange.length > 0 && this.timeRange[1] || '' |
|||
}; |
|||
|
|||
const { data, code, msg } = await requestPost(url, params); |
|||
|
|||
if (code === 0) { |
|||
// 获取pieChart配置 |
|||
this.lineOption = lineOption() |
|||
|
|||
if (data && data.length > 0) { |
|||
|
|||
this.loadCategoryData() |
|||
|
|||
} else { |
|||
|
|||
} |
|||
this.$refs.lineChart.setOption(this.lineOption, true) |
|||
this.$refs.lineChart.setOption({ |
|||
xAxis: { data: this.xaxis }, |
|||
legend: { data: this.legend }, |
|||
series: this.series |
|||
}, true) |
|||
|
|||
|
|||
} else { |
|||
this.$message.error(msg); |
|||
} |
|||
|
|||
}, |
|||
|
|||
//解析折线图数据 |
|||
loadCategoryData () { |
|||
|
|||
this.xaxis = [] |
|||
this.series = [] |
|||
this.legend = [] |
|||
let num = this.lineList[0].categoryList.length |
|||
|
|||
let dataArray = new Array(num) |
|||
//遍历每个分类 |
|||
this.lineList[0].categoryList.forEach((categoryItem, index) => { |
|||
this.legend.push(categoryItem.name) |
|||
dataArray[index] = [] |
|||
|
|||
}); |
|||
|
|||
//遍历每个时间 |
|||
this.lineList.forEach(item => { |
|||
this.xaxis.push(item.time) |
|||
|
|||
//遍历每个分类 |
|||
item.categoryList.forEach((categoryItem, index) => { |
|||
dataArray[index].push(categoryItem.count) |
|||
}); |
|||
|
|||
}); |
|||
|
|||
//遍历第一组的分类 |
|||
this.lineList[0].categoryList.forEach((categoryItem, index) => { |
|||
|
|||
let object = { |
|||
name: categoryItem.name, |
|||
type: 'line', |
|||
barWidth: 15, |
|||
areaStyle: {}, |
|||
itemStyle: { |
|||
color: new echarts.graphic.LinearGradient( |
|||
0, 1, 0, 0, |
|||
[ |
|||
{ offset: 0, color: 'rgba(121, 55, 255, 0)' }, |
|||
{ offset: 1, color: categoryItem.color } |
|||
] |
|||
) |
|||
}, |
|||
data: dataArray[index] |
|||
} |
|||
|
|||
this.series.push(object) |
|||
|
|||
|
|||
}); |
|||
|
|||
}, |
|||
|
|||
handleChangeAgency (value) { |
|||
this.agencyName = this.$refs["myCascader"].getCheckedNodes()[0].label |
|||
this.orgId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '' |
|||
this.getApiData() |
|||
|
|||
}, |
|||
|
|||
|
|||
toUserInfo (uid) { |
|||
this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` }); |
|||
}, |
|||
}, |
|||
props: { |
|||
uid: { |
|||
type: String, |
|||
default: "", |
|||
// default: "8ada68cb6f1e4b9a8333348a39ef3aee", |
|||
}, |
|||
}, |
|||
|
|||
computed: { |
|||
|
|||
}, |
|||
|
|||
components: { |
|||
cptCard, |
|||
cptTb, |
|||
screenEchartsFrame, |
|||
screenMap |
|||
}, |
|||
|
|||
watch: { |
|||
uid (id) { |
|||
this.userId = id; |
|||
}, |
|||
userId () { |
|||
this.getApiData(); |
|||
window.scrollTo(0, 0); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style |
|||
lang="scss" |
|||
src="@/assets/scss/modules/visual/distributionAnalyze.scss" |
|||
scoped |
|||
></style> |
|||
|
|||
<style lang=scss scoped> |
|||
</style> |
|||
@ -0,0 +1,89 @@ |
|||
import * as echarts from 'echarts' |
|||
export function lineOption () { |
|||
|
|||
return { |
|||
legend: { |
|||
textStyle: { |
|||
color: '#D2E7FF', |
|||
fontSize: 16, |
|||
|
|||
}, |
|||
itemWidth: 20, |
|||
itemHeight: 10, |
|||
// top: 350,
|
|||
bottom: 0, |
|||
data: [] |
|||
}, |
|||
xAxis: { |
|||
type: 'category', |
|||
// boundaryGap: false,
|
|||
axisLabel: { |
|||
color: '#8ec7dc', |
|||
fontSize: 16 |
|||
}, |
|||
axisTick: { |
|||
show: false |
|||
}, |
|||
axisLine: { |
|||
lineStyle: { |
|||
color: '#0c4b59' |
|||
} |
|||
} |
|||
}, |
|||
yAxis: { |
|||
nameTextStyle: { |
|||
color: '#8ec7dc', |
|||
fontSize: 18 |
|||
}, |
|||
splitNumber: 4, |
|||
minInterval: 1, |
|||
show: true, |
|||
type: 'value', |
|||
axisLabel: { |
|||
color: '#8ec7dc', |
|||
fontSize: 18 |
|||
}, |
|||
axisTick: { |
|||
show: false |
|||
}, |
|||
splitLine: { |
|||
lineStyle: { |
|||
color: ['#145968'], |
|||
type: 'dotted' |
|||
} |
|||
}, |
|||
axisLine: { |
|||
show: true, |
|||
symbol: ['none', 'arrow'], |
|||
symbolOffset: [0, 15], |
|||
lineStyle: { |
|||
color: '#0c4b59' |
|||
} |
|||
} |
|||
}, |
|||
series: [ |
|||
// {
|
|||
// name: '项目数',
|
|||
// type: 'line',
|
|||
// barWidth: 15,
|
|||
// areaStyle: {},
|
|||
// itemStyle: {
|
|||
// color: new echarts.graphic.LinearGradient(
|
|||
// 0, 1, 0, 0,
|
|||
// [
|
|||
// { offset: 0, color: 'rgba(121, 55, 255, 0)' },
|
|||
// { offset: 1, color: '#6339FF' }
|
|||
// ]
|
|||
// )
|
|||
// },
|
|||
// data: [120, 132, 101, 134, 90, 230, 210]
|
|||
// },
|
|||
// {
|
|||
// data: [820, 932, 901, 934, 1290, 1330, 1320],
|
|||
// type: 'line',
|
|||
// areaStyle: {}
|
|||
// }
|
|||
] |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,695 @@ |
|||
<template> |
|||
<cpt-card> |
|||
<div class="title"> |
|||
<img src="@/assets/img/shuju/title-tip.png" /> |
|||
<span>项目处理分析</span> |
|||
|
|||
<div class="second-title"> |
|||
<div class="second-select cascader"> |
|||
<el-cascader class="customer_cascader" |
|||
ref="myCascader" |
|||
v-model="agencyIdArray" |
|||
:key="iscascaderShow" |
|||
:options="casOptions" |
|||
:props="optionProps" |
|||
@change="handleChangeAgency" |
|||
clearable></el-cascader> |
|||
</div> |
|||
<div class="second-select"> |
|||
<el-date-picker v-model="dateId" |
|||
type="date" |
|||
:clearable="false" |
|||
@change="handleChangeDate" |
|||
prefix-icon="el-icon-caret-bottom" |
|||
placeholder="选择日期" |
|||
value-format="yyyyMMdd"> |
|||
</el-date-picker> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
<div class="g-cpt-resi"> |
|||
<div class="g-l"> |
|||
<div class="l_top"> |
|||
<div class="g-count"> |
|||
<div class="t_count">项目总数</div> |
|||
<div class="c_count">{{projectTotal}}</div> |
|||
<div class="t_yestoday">昨日 |
|||
<span class="c_yestoday">{{dateIncr}}</span> |
|||
</div> |
|||
<div class="t_today">上月 |
|||
<span class="c_today">{{monthIncr}}</span> |
|||
</div> |
|||
</div> |
|||
<div class="g-pie"> |
|||
<screen-echarts-frame class="echart-wr" |
|||
@myChartMethod="pieInitOk" |
|||
ref="pieChart"></screen-echarts-frame> |
|||
|
|||
<div class="pie-legend"> |
|||
<div :class="['legend_item',{'item_last':index===legendArray.length-1}]" |
|||
v-for="(item,index) in legendArray" |
|||
:key="index"> |
|||
<div class="item_name">{{item.name}}</div> |
|||
<img :src="item.url" /> |
|||
<div class="item_num"> |
|||
<span class="item_count">{{item.count}}</span> |
|||
<span class="item_percent">{{item.percent}}</span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="l_bottom"> |
|||
<div class="bottom_label">近12月新增项目数</div> |
|||
<screen-echarts-frame class="echart-line" |
|||
@myChartMethod="lineInitOk" |
|||
ref="lineChart"></screen-echarts-frame> |
|||
</div> |
|||
</div> |
|||
<div class="g-r"> |
|||
<div class="r-map"> |
|||
<screen-map class="map" |
|||
ref="map" |
|||
@clickFeature="clickProject" |
|||
:showIconLayer="true"></screen-map> |
|||
<div class="r-status"> |
|||
<div :class="['status', 'status-pending', {'sel-status':status==='pending'}]" |
|||
@click="handleChangeStatus('pending')">未结案</div> |
|||
<div :class="['status', 'status-closed', {'sel-status':status==='closed'}]" |
|||
@click="handleChangeStatus('closed')">已结案</div> |
|||
|
|||
</div> |
|||
<div class="r-legend"> |
|||
<img src="@/assets/img/shuju/weiwanjie.png" |
|||
mode="aspectFill" /> |
|||
<span>未结案</span> |
|||
<img src="@/assets/img/shuju/yiwanjie.png" |
|||
mode="aspectFill" /> |
|||
<span>已结案</span> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
</div> |
|||
</cpt-card> |
|||
</template> |
|||
|
|||
<script> |
|||
import { Loading } from "element-ui"; //引入Loading服务 |
|||
import { Circle as CircleStyle, Icon, Fill, Stroke, Style, Text } from 'ol/style.js'; |
|||
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 screenMap from "@/views/modules/visual/components/screen-map"; |
|||
|
|||
import { pieOption } from './processPieOption.js' |
|||
import { lineOption } from './processLineOption.js' |
|||
|
|||
|
|||
export default { |
|||
name: "HomeMap", |
|||
data () { |
|||
return { |
|||
showNoData: false, |
|||
timer: null, |
|||
isfirstInit: true, |
|||
|
|||
projectTotal: 0, |
|||
dateIncr: 0, |
|||
monthIncr: 0, |
|||
|
|||
lineChart: '', |
|||
lineOption: {}, |
|||
lineInitState: false, |
|||
lineColorArray: [], |
|||
lineData: [820, 932, 901, 934, 1290, 1330, 1320], |
|||
|
|||
pieChartS: null, |
|||
pieChart: '', |
|||
pieOption: {}, |
|||
pieInitState: false, |
|||
pieTotal: 0, |
|||
colorArray: [], |
|||
pieData: [ |
|||
{ value: 1048, name: '未结案', color: '#FAC126', selected: true }, |
|||
{ value: 735, name: '已结案', color: '#3DDA83' }, |
|||
|
|||
], |
|||
|
|||
legendArray: [ |
|||
{ |
|||
name: '未结案', |
|||
count: 120, |
|||
percent: '25.0%', |
|||
url: require('../../../../assets/img/shuju/measure/huang@2x.png') |
|||
}, |
|||
{ |
|||
name: '已结案', |
|||
count: 351, |
|||
percent: '50.0%', |
|||
url: require('../../../../assets/img/shuju/measure/lv@2x.png') |
|||
} |
|||
], |
|||
|
|||
dateId: '', |
|||
agencyId: '', |
|||
status: 'pending',//状态:待处理 pending,结案closed |
|||
agencyInfo: {}, |
|||
projectList: [], |
|||
projectList1: [ |
|||
{ |
|||
agencyId: '', |
|||
projectId: '', |
|||
origin: '', |
|||
status: 'pending', |
|||
title: '南宁第二网格南宁第二网格', |
|||
latitude: 36.062227, |
|||
longitude: 120.389455, |
|||
}, |
|||
{ |
|||
agencyId: '', |
|||
projectId: '', |
|||
origin: '', |
|||
status: 'closed', |
|||
latitude: 36.082227, |
|||
longitude: 120.389455, |
|||
title: "南宁第二网格", |
|||
} |
|||
], |
|||
projectList2: [ |
|||
{ |
|||
agencyId: '', |
|||
projectId: '', |
|||
origin: '', |
|||
status: 'pending', |
|||
title: '山东路山东路', |
|||
latitude: 36.062227, |
|||
longitude: 120.379455, |
|||
}, |
|||
{ |
|||
agencyId: '', |
|||
projectId: '', |
|||
origin: '', |
|||
status: 'closed', |
|||
latitude: 36.082227, |
|||
longitude: 120.379455, |
|||
title: "山东路", |
|||
} |
|||
], |
|||
iconUrlArray: [], |
|||
iconTextStyle: {}, |
|||
|
|||
casOptions: [], |
|||
agencyIdArray: [], |
|||
customerList: [], |
|||
iscascaderShow: 0, |
|||
|
|||
optionProps: { |
|||
multiple: false, |
|||
value: 'agencyId', |
|||
label: 'agencyName', |
|||
children: 'subAgencyList', |
|||
checkStrictly: true |
|||
}, |
|||
|
|||
}; |
|||
}, |
|||
// mixins: [animate] |
|||
beforeDestroy () { |
|||
this.timer && clearInterval(this.timer) |
|||
}, |
|||
|
|||
async mounted () { |
|||
this.userId = this.uid; |
|||
this.initData() |
|||
await this.getWorkUserInfo() |
|||
await this.getAgencylist()//获取组织级别 |
|||
this.getApiData(); |
|||
}, |
|||
|
|||
methods: { |
|||
initData () { |
|||
var time = (new Date).getTime() - 24 * 60 * 60 * 1000; |
|||
this.dateId = new Date(time); // 获取的是前一天日期 |
|||
|
|||
}, |
|||
async getApiData () { |
|||
await this.getProjectTotal() |
|||
await this.loadProjectlist() |
|||
await this.getLine() |
|||
|
|||
}, |
|||
|
|||
handleChangeDate (value) { |
|||
this.dateId = value |
|||
this.getApiData() |
|||
}, |
|||
|
|||
// 获取当前管理员信息 |
|||
getWorkUserInfo () { |
|||
const url = '/epmetuser/customerstaff/staffbasicinfo' |
|||
let params = {} |
|||
window.app.ajax.post( |
|||
url, |
|||
params, |
|||
(data, rspMsg) => { |
|||
this.agencyInfo = data |
|||
if (!data.latitude) { |
|||
this.agencyInfo.latitude = 36.072227 |
|||
} |
|||
if (!data.longitude) { |
|||
this.agencyInfo.longitude = 120.389455 |
|||
} |
|||
if (!data.level) { |
|||
this.agencyInfo.level = 'street' |
|||
} |
|||
|
|||
}, |
|||
(rspMsg, data) => { |
|||
this.$message.error(rspMsg) |
|||
} |
|||
) |
|||
|
|||
}, |
|||
|
|||
async getAgencylist () { |
|||
const url = '/gov/org/customeragency/agencylist' |
|||
// const url = 'http://yapi.elinkservice.cn/mock/102/gov/org/agency/agencylist' |
|||
|
|||
const params = { |
|||
// customerId: '613cc61a6b8ce4c70d21bd413dac72cc' |
|||
customerId: '0c41b272ee9ee95ac6f184ad548a30eb' |
|||
} |
|||
const { data, code, msg } = await requestPost(url, params) |
|||
if (code === 0) { |
|||
++this.iscascaderShow |
|||
this.casOptions = [] |
|||
this.agencyIdArray.length = [] |
|||
|
|||
if (data) { |
|||
this.casOptions.push(data) |
|||
} |
|||
|
|||
} else { |
|||
this.$message.error(msg) |
|||
} |
|||
}, |
|||
|
|||
//加载项目 |
|||
async getProjectTotal () { |
|||
// const url = "/data/aggregator/project/projecttotal"; |
|||
const url = "http://yapi.elinkservice.cn/mock/245/data/aggregator/project/projecttotal"; |
|||
let params = { |
|||
agencyId: '', |
|||
dateId: this.dateId, |
|||
}; |
|||
|
|||
const { data, code, msg } = await requestPost(url, params); |
|||
|
|||
|
|||
if (code === 0) { |
|||
this.projectTotal = data.projectTotal |
|||
this.dateIncr = data.dateIncr |
|||
this.monthIncr = data.monthIncr |
|||
|
|||
this.pieData = [ |
|||
{ |
|||
name: "未结案", |
|||
value: data.pendingTotal, |
|||
selected: true, |
|||
|
|||
}, |
|||
{ |
|||
name: "已结案", |
|||
value: data.pendingTotal |
|||
} |
|||
] |
|||
|
|||
this.getPie() |
|||
|
|||
|
|||
} else { |
|||
this.$message.error(msg); |
|||
} |
|||
}, |
|||
|
|||
//加载项目 |
|||
async loadProjectlist () { |
|||
// const url = "/data/aggregator/project/projectstatuslist"; |
|||
const url = "http://yapi.elinkservice.cn/mock/245/data/aggregator/project/projectstatuslist"; |
|||
let params = { |
|||
agencyId: '', |
|||
dateId: this.dateId, |
|||
status: this.status |
|||
}; |
|||
|
|||
const { data, code, msg } = await requestPost(url, params); |
|||
|
|||
|
|||
if (code === 0) { |
|||
|
|||
// this.projectList = [...data] |
|||
if (this.status === 'closed') { |
|||
this.projectList = this.projectList1 |
|||
} else { |
|||
this.projectList = this.projectList2 |
|||
|
|||
} |
|||
this.projectList.forEach(item => { |
|||
item.values_ = { |
|||
name: item.title |
|||
} |
|||
if (item.title.length > 10) { |
|||
item.values_.name = item.title.substring(0, 9) + '...' |
|||
} |
|||
if (item.status === 'pending') { |
|||
item.urlIndex = 0 |
|||
} else { |
|||
item.urlIndex = 1 |
|||
} |
|||
}); |
|||
|
|||
this.iconUrlArray = [ |
|||
'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211209/0994757e8962405ca1cdf9792bf325e4.png',//未处理 |
|||
'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211209/2a80f800b04442448c41a6ed4592cd95.png'//已处理 |
|||
] |
|||
|
|||
this.iconTextStyle = { |
|||
textAlign: undefined, |
|||
font: "15px Arial", |
|||
//fontFamily: "Courier New, monospace", |
|||
// fontWeight: "bold", |
|||
text: '', |
|||
backgroundFill: new Fill({ |
|||
color: "#194160", |
|||
}), |
|||
backgroundStroke: new Stroke({ color: "#2865FA", width: 2 }), |
|||
padding: [5, 10, 4, 10], |
|||
fill: new Fill({ color: "#ffffff" }), |
|||
// stroke: new Stroke({ color: "#2865FA", width: 3 }), |
|||
offsetY: -30, |
|||
offsetX: 50, |
|||
overflow: true, |
|||
} |
|||
|
|||
//第一次加载完置为false |
|||
this.loadMap() |
|||
|
|||
this.isfirstInit = false |
|||
|
|||
} else { |
|||
this.$message.error(msg); |
|||
} |
|||
}, |
|||
|
|||
loadMap () { |
|||
|
|||
if (this.isfirstInit) { |
|||
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray |
|||
this.$refs.map.loadMap(this.agencyInfo, null, null, this.projectList, this.iconUrlArray, this.iconTextStyle) |
|||
} else { |
|||
this.$refs.map.refreshMap(null, this.projectList) |
|||
|
|||
|
|||
} |
|||
}, |
|||
|
|||
//点击项目 |
|||
clickProject (feature) { |
|||
console.log('项目信息', feature.values_.properties) |
|||
}, |
|||
|
|||
pieInitOk (dom) { |
|||
|
|||
this.pieChartS = dom |
|||
this.pieInitState = true |
|||
|
|||
}, |
|||
lineInitOk () { |
|||
|
|||
this.lineInitState = true |
|||
|
|||
}, |
|||
getLine () { |
|||
if (this.lineInitState) { |
|||
this.getLineChart() |
|||
} else { |
|||
setTimeout(() => { |
|||
this.getLine() |
|||
}, 500) |
|||
} |
|||
}, |
|||
// 获取折线图 |
|||
async getLineChart () { |
|||
this.$refs.lineChart.clear() |
|||
|
|||
const _that = this |
|||
// this.$refs.pieChart.showLoading() |
|||
// const url ="/data/aggregator/project/projectmonthincr"; |
|||
const url = "http://yapi.elinkservice.cn/mock/245/data/aggregator/project/projectmonthincr"; |
|||
let params = { |
|||
agencyId: this.agencyId, |
|||
dateId: this.dateId, |
|||
}; |
|||
|
|||
const { data, code, msg } = await requestPost(url, params); |
|||
|
|||
if (code === 0) { |
|||
// 获取pieChart配置 |
|||
this.lineOption = lineOption() |
|||
let xaxis = [] |
|||
let totalIndexData = [] |
|||
if (data && data.length > 0) { |
|||
data.forEach(item => { |
|||
xaxis.push(item.type) |
|||
totalIndexData.push(item.value) |
|||
}); |
|||
// this.lineData = data |
|||
|
|||
} else { |
|||
|
|||
} |
|||
this.$refs.lineChart.setOption(this.lineOption, true) |
|||
this.$refs.lineChart.setOption({ |
|||
xAxis: { data: xaxis }, |
|||
series: [ |
|||
{ data: totalIndexData }, |
|||
|
|||
] |
|||
}, true) |
|||
|
|||
|
|||
} else { |
|||
this.$message.error(msg); |
|||
} |
|||
|
|||
|
|||
}, |
|||
|
|||
getPie () { |
|||
if (this.pieInitState) { |
|||
this.getPieChart() |
|||
} else { |
|||
setTimeout(() => { |
|||
this.getPie() |
|||
}, 500) |
|||
} |
|||
}, |
|||
// 获取饼状图 |
|||
async getPieChart () { |
|||
this.$refs.pieChart.clear() |
|||
this.pieTotal = 0 |
|||
const _that = this |
|||
// this.$refs.pieChart.showLoading() |
|||
|
|||
// 获取pieChart配置 |
|||
this.pieOption = pieOption(this.pieChartS) |
|||
|
|||
this.pieData.forEach(item => { |
|||
this.pieTotal = this.pieTotal + item.value |
|||
|
|||
}); |
|||
|
|||
this.pieOption.title.text = this.pieTotal |
|||
|
|||
this.clickPie(0) |
|||
|
|||
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) |
|||
}, |
|||
|
|||
handleChangeStatus (status) { |
|||
this.status = status |
|||
this.loadProjectlist() |
|||
}, |
|||
|
|||
handleChangeAgency (value) { |
|||
|
|||
this.agencyName = this.$refs["myCascader"].getCheckedNodes()[0].label |
|||
this.agencyId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '' |
|||
this.getApiData() |
|||
console.log(this.agencyIdArray) |
|||
}, |
|||
|
|||
|
|||
|
|||
toUserInfo (uid) { |
|||
this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` }); |
|||
}, |
|||
}, |
|||
props: { |
|||
uid: { |
|||
type: String, |
|||
default: "", |
|||
// default: "8ada68cb6f1e4b9a8333348a39ef3aee", |
|||
}, |
|||
}, |
|||
|
|||
computed: {}, |
|||
|
|||
components: { |
|||
cptCard, |
|||
cptTb, |
|||
screenEchartsFrame, |
|||
screenMap, |
|||
}, |
|||
|
|||
watch: { |
|||
uid (id) { |
|||
this.userId = id; |
|||
}, |
|||
userId () { |
|||
this.getApiData(); |
|||
window.scrollTo(0, 0); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style |
|||
lang="scss" |
|||
src="@/assets/scss/modules/visual/processAnalyze.scss" |
|||
scoped |
|||
></style> |
|||
|
|||
<style lang=scss > |
|||
.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; |
|||
} |
|||
} |
|||
@ -0,0 +1,77 @@ |
|||
import * as echarts from 'echarts' |
|||
export function lineOption () { |
|||
|
|||
return { |
|||
|
|||
xAxis: { |
|||
type: 'category', |
|||
// boundaryGap: false,
|
|||
axisLabel: { |
|||
color: '#8ec7dc', |
|||
fontSize: 16 |
|||
}, |
|||
axisTick: { |
|||
show: false |
|||
}, |
|||
axisLine: { |
|||
lineStyle: { |
|||
color: '#0c4b59' |
|||
} |
|||
} |
|||
}, |
|||
yAxis: { |
|||
nameTextStyle: { |
|||
color: '#8ec7dc', |
|||
fontSize: 18 |
|||
}, |
|||
splitNumber: 4, |
|||
minInterval: 1, |
|||
show: true, |
|||
type: 'value', |
|||
axisLabel: { |
|||
color: '#8ec7dc', |
|||
fontSize: 18 |
|||
}, |
|||
axisTick: { |
|||
show: false |
|||
}, |
|||
splitLine: { |
|||
lineStyle: { |
|||
color: ['#145968'], |
|||
type: 'dotted' |
|||
} |
|||
}, |
|||
axisLine: { |
|||
show: true, |
|||
symbol: ['none', 'arrow'], |
|||
symbolOffset: [0, 15], |
|||
lineStyle: { |
|||
color: '#0c4b59' |
|||
} |
|||
} |
|||
}, |
|||
series: [ |
|||
{ |
|||
name: '项目数', |
|||
type: 'line', |
|||
barWidth: 15, |
|||
areaStyle: {}, |
|||
itemStyle: { |
|||
color: new echarts.graphic.LinearGradient( |
|||
0, 1, 0, 0, |
|||
[ |
|||
{ offset: 0, color: 'rgba(121, 55, 255, 0)' }, |
|||
{ offset: 1, color: '#6339FF' } |
|||
] |
|||
) |
|||
} |
|||
}, |
|||
// {
|
|||
// data: [820, 932, 901, 934, 1290, 1330, 1320],
|
|||
// type: 'line',
|
|||
// areaStyle: {}
|
|||
// }
|
|||
] |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,183 @@ |
|||
|
|||
export function pieOption (_charts) { |
|||
const center= ['50%', '200px'] |
|||
return { |
|||
title: { |
|||
text: '0', |
|||
top: 170, |
|||
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: 350,
|
|||
// 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: ['58%', '58.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: ['35%', '48%'], |
|||
avoidLabelOverlap: false, |
|||
// top: top + '%',
|
|||
// height: '80%',
|
|||
// selectedMode: 'single',
|
|||
left: 'center', |
|||
width: 400, |
|||
label: { |
|||
// show: false,
|
|||
position: 'outside', |
|||
alignTo: 'edge', |
|||
// formatter: '{a|{c}}\n\n{name|{b}}',
|
|||
formatter: '{a|{c}}\n{r|}\n{name|{b}}', |
|||
minMargin: 5, |
|||
edgeDistance: 1, |
|||
lineHeight: 15, |
|||
color: '#fff', |
|||
fontSize: 12, |
|||
// distanceToLabelLine: -60,
|
|||
rich: { |
|||
name: { |
|||
padding: [0, 6, 0, 6] |
|||
}, |
|||
a: { |
|||
fontSize: 30, |
|||
color: '#fff', |
|||
padding: [0, 6, 6, 6] |
|||
}, |
|||
r: { |
|||
backgroundColor: 'auto', |
|||
borderRadius: 6, |
|||
width: 6, |
|||
height: 6, |
|||
// padding: [3, 3, 0, -12]
|
|||
} |
|||
} |
|||
}, |
|||
labelLine: { |
|||
show: false, |
|||
smooth: 0.2, |
|||
length: 30, |
|||
length2: 0, |
|||
maxSurfaceAngle: 80 |
|||
}, |
|||
labelLayout: function (params) { |
|||
|
|||
const isLeft = params.labelRect.x < _charts.getWidth() / 2; |
|||
const points = params.labelLinePoints; |
|||
// Update the end point.
|
|||
if (points) { |
|||
points[2][0] = isLeft |
|||
? params.labelRect.x |
|||
: params.labelRect.x + params.labelRect.width; |
|||
} |
|||
|
|||
return { |
|||
labelLinePoints: points |
|||
}; |
|||
}, |
|||
itemStyle: { |
|||
color:function(params) { |
|||
//自定义颜色
|
|||
var colorList = [ '#FAC126', '#3DDA83']; |
|||
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,179 @@ |
|||
|
|||
export function pieOption (_charts) { |
|||
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: { |
|||
show: false |
|||
}, |
|||
labelLine: { |
|||
show: false |
|||
}, |
|||
data: [{ |
|||
value: 360, |
|||
itemStyle: { |
|||
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: { |
|||
// show: false,
|
|||
position: 'outside', |
|||
alignTo: 'edge', |
|||
// formatter: '{a|{c}}\n\n{name|{b}}',
|
|||
formatter: '{a|{c}}\n{r|}\n{name|{b}}', |
|||
minMargin: 5, |
|||
edgeDistance: 1, |
|||
lineHeight: 15, |
|||
color: '#fff', |
|||
fontSize: 12, |
|||
// distanceToLabelLine: -60,
|
|||
rich: { |
|||
name: { |
|||
padding: [0, 6, 0, 6] |
|||
}, |
|||
a: { |
|||
fontSize: 30, |
|||
color: '#fff', |
|||
padding: [0, 6, 6, 6] |
|||
}, |
|||
r: { |
|||
backgroundColor: 'auto', |
|||
borderRadius: 6, |
|||
width: 6, |
|||
height: 6, |
|||
// padding: [3, 3, 0, -12]
|
|||
} |
|||
} |
|||
}, |
|||
labelLine: { |
|||
show: false, |
|||
smooth: 0.2, |
|||
length: 30, |
|||
length2: 0, |
|||
maxSurfaceAngle: 80 |
|||
}, |
|||
labelLayout: function (params) { |
|||
|
|||
const isLeft = params.labelRect.x < _charts.getWidth() / 2; |
|||
const points = params.labelLinePoints; |
|||
// Update the end point.
|
|||
if (points) { |
|||
points[2][0] = isLeft |
|||
? params.labelRect.x |
|||
: params.labelRect.x + params.labelRect.width; |
|||
} |
|||
|
|||
return { |
|||
labelLinePoints: points |
|||
}; |
|||
}, |
|||
itemStyle: { |
|||
// 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,395 @@ |
|||
<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 class="list-title">需求内容</div> |
|||
<div class="list-wr"> |
|||
<div class="list"> |
|||
|
|||
<div class="item-desc"> |
|||
<!-- <span class="item-field">所属网格:</span> --> |
|||
<span>市北区同德花园小区物业管理服务,公司的同志每天对该小区 公共部位,喷洒消毒液进行消毒。为杀灭新型冠状病毒,近几 天以来,市北区</span> |
|||
</div> |
|||
<div class="item"> |
|||
<span class="item-field">所属网格:</span> |
|||
<span>哈哈哈</span> |
|||
</div> |
|||
<div class="item"> |
|||
<span class="item-field">需求类型:</span> |
|||
<span>的是法撒旦法</span> |
|||
</div> |
|||
<div class="item"> |
|||
<span class="item-field">需求状态:</span> |
|||
<span>第三方士大夫</span> |
|||
</div> |
|||
<div class="item"> |
|||
<span class="item-field">上报类型:</span> |
|||
<span>撒打发斯蒂芬</span> |
|||
</div> |
|||
<div class="item"> |
|||
<span class="item-field">上 报 人:</span> |
|||
<span>撒打发斯蒂芬</span> |
|||
</div> |
|||
<div class="item"> |
|||
<span class="item-field">上报人联系方式:</span> |
|||
<span>撒打发斯蒂芬</span> |
|||
</div> |
|||
<div class="item"> |
|||
<span class="item-field">上报时间:</span> |
|||
<span>2021-09-17 12:52</span> |
|||
</div> |
|||
<div class="item"> |
|||
<span class="item-field">服务时间:</span> |
|||
<span>2021-09-17 12:52</span> |
|||
</div> |
|||
</div> |
|||
<div class="list"> |
|||
<div class="item"> |
|||
<span class="item-field">服务方:</span> |
|||
<span>哈哈哈</span> |
|||
</div> |
|||
<div class="item"> |
|||
<span class="item-field">实际服务时间:</span> |
|||
<span>2021-09-17 12:52 至 <br/> |
|||
2021-09-17 17:52</span> |
|||
</div> |
|||
<div class="item"> |
|||
<span class="item-field">完成情况:</span> |
|||
<span>第三方士大夫</span> |
|||
</div> |
|||
<div class="item"> |
|||
<span class="item-field">评价:</span> |
|||
<span> |
|||
<el-rate :value="4" disabled></el-rate> |
|||
</span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="tabs"> |
|||
<div |
|||
class="tab-btn" |
|||
> |
|||
<img src="@/assets/img/shuju/people/arrow-double-left.png" /> |
|||
</div> |
|||
<div |
|||
class="tab z-on" |
|||
> |
|||
研判分析 |
|||
</div> |
|||
<div |
|||
class="tab-btn" |
|||
> |
|||
<img src="@/assets/img/shuju/people/arrow-double-right.png" /> |
|||
</div> |
|||
</div> |
|||
|
|||
<div style="padding: 30px 0;"> |
|||
<analyse :single-list="demandList" :single-title="'需求上报'" :more-title="'事件上报'" :user-list="userLists" |
|||
:user-name="userName" :has-event="false" :more-list="eventList" /> |
|||
</div> |
|||
|
|||
|
|||
</cpt-card> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import cptCard from "@/views/modules/visual/cpts/card"; |
|||
import analyse from '../cpts/analyse.vue' |
|||
import { requestPost } from "@/js/dai/request"; |
|||
|
|||
export default { |
|||
name: "dialogInfo", |
|||
props: { |
|||
userId: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
gridName: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
}, |
|||
|
|||
components: { |
|||
cptCard, |
|||
analyse |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
fieldList: [], |
|||
groupList: [], |
|||
groupIndex: 0, |
|||
startGroupIndex: 0, |
|||
info: {}, |
|||
allInfo: {}, |
|||
|
|||
xiaoquList: [], |
|||
louList: [], |
|||
danyuanList: [], |
|||
homeList: [], |
|||
demandList: [ |
|||
{ |
|||
categoryName: '辨明服务', |
|||
categoryCode: '1', |
|||
showItem: false, |
|||
projectList: [ |
|||
{ |
|||
title: '不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1' |
|||
}, |
|||
{ |
|||
title: '罗里吧嗦写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '2' |
|||
}, |
|||
{ |
|||
title: '胡说八道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1=3' |
|||
}, |
|||
{ |
|||
title: '费眼飞鱼不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1=4' |
|||
}, |
|||
{ |
|||
title: '狗屁不通不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '5' |
|||
}, |
|||
{ |
|||
title: '啦啦啦不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '6' |
|||
} |
|||
] |
|||
}, |
|||
{ |
|||
categoryName: '辨明服务', |
|||
categoryCode: '1', |
|||
showItem: false, |
|||
projectList: [ |
|||
{ |
|||
title: '不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1' |
|||
}, |
|||
{ |
|||
title: '罗里吧嗦写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '2' |
|||
}, |
|||
{ |
|||
title: '胡说八道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1=3' |
|||
}, |
|||
{ |
|||
title: '费眼飞鱼不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1=4' |
|||
}, |
|||
{ |
|||
title: '狗屁不通不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '5' |
|||
}, |
|||
{ |
|||
title: '啦啦啦不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '6' |
|||
} |
|||
] |
|||
}, |
|||
{ |
|||
categoryName: '辨明服务', |
|||
categoryCode: '1', |
|||
showItem: false, |
|||
projectList: [ |
|||
{ |
|||
title: '不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1' |
|||
}, |
|||
{ |
|||
title: '罗里吧嗦写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '2' |
|||
}, |
|||
{ |
|||
title: '胡说八道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1=3' |
|||
}, |
|||
{ |
|||
title: '费眼飞鱼不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1=4' |
|||
}, |
|||
{ |
|||
title: '狗屁不通不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '5' |
|||
}, |
|||
{ |
|||
title: '啦啦啦不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '6' |
|||
} |
|||
] |
|||
} |
|||
], |
|||
userLists: [ |
|||
{ |
|||
homeId: '1', |
|||
icUserId: '1', |
|||
icUserName: '沾上干' |
|||
}, |
|||
{ |
|||
homeId: '2', |
|||
icUserId: '2', |
|||
icUserName: '李四' |
|||
}, |
|||
{ |
|||
homeId: '3', |
|||
icUserId: '3', |
|||
icUserName: '王五哈哈' |
|||
} |
|||
], |
|||
userName: '王亚男哈', |
|||
eventList: [ |
|||
{ |
|||
categoryName: '辨明服务', |
|||
categoryCode: '1', |
|||
projectList: [ |
|||
{ |
|||
title: '不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1' |
|||
}, |
|||
{ |
|||
title: '罗里吧嗦写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '2' |
|||
}, |
|||
{ |
|||
title: '胡说八道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1=3' |
|||
}, |
|||
{ |
|||
title: '费眼飞鱼不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1=4' |
|||
}, |
|||
{ |
|||
title: '狗屁不通不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '5' |
|||
}, |
|||
{ |
|||
title: '啦啦啦不知道写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '6' |
|||
} |
|||
] |
|||
}, |
|||
{ |
|||
categoryName: '水煮鱼辨明服务辨明服务', |
|||
categoryCode: '4', |
|||
projectList: [ |
|||
{ |
|||
title: '熟煮雨不知道写了什么哈哈哈', |
|||
status: 'pending', |
|||
projectId: '4' |
|||
} |
|||
] |
|||
}, |
|||
{ |
|||
categoryName: '开心麻花', |
|||
categoryCode: '2', |
|||
projectList: [ |
|||
{ |
|||
title: '不知道开心麻花写了什么哈哈哈', |
|||
status: 'closed', |
|||
projectId: '1' |
|||
} |
|||
] |
|||
}, |
|||
{ |
|||
categoryName: '酸菜鱼', |
|||
categoryCode: '3', |
|||
projectList: [ |
|||
{ |
|||
title: '不知道酸菜鱼写了什么哈哈哈', |
|||
status: 'pending', |
|||
projectId: '3' |
|||
} |
|||
] |
|||
} |
|||
], |
|||
}; |
|||
}, |
|||
|
|||
|
|||
mounted() { |
|||
}, |
|||
|
|||
methods: { |
|||
handleClose() { |
|||
this.$emit("close"); |
|||
}, |
|||
} |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="scss" src="@/assets/scss/modules/visual/people.scss" scoped></style> |
|||
<style lang="scss" scoped> |
|||
.m-pop { |
|||
.wrap { |
|||
.list { |
|||
display: block; |
|||
width: 50%; |
|||
.item { |
|||
display: flex; |
|||
width: 100%; |
|||
box-sizing: border-box; |
|||
margin-top: 0; |
|||
margin-bottom: 15px; |
|||
font-size: 16px; |
|||
cursor: pointer; |
|||
} |
|||
.item-desc { |
|||
font-size: 16px; |
|||
margin-bottom: 10px; |
|||
line-height: 24px; |
|||
} |
|||
} |
|||
} |
|||
.list-title { |
|||
width: 100%; |
|||
box-sizing: border-box; |
|||
padding: 20px 0 10px 62px; |
|||
font-size: 20px; |
|||
cursor: pointer; |
|||
} |
|||
} |
|||
.list-wr { |
|||
display: flex; |
|||
padding: 0 32px; |
|||
|
|||
} |
|||
</style> |
|||
@ -0,0 +1,176 @@ |
|||
|
|||
export function pieOption (_charts) { |
|||
const center= ['50%', '50%'] |
|||
return { |
|||
title: { |
|||
text: '0', |
|||
top: 125, |
|||
left: 196, |
|||
textAlign: 'center', |
|||
textStyle: { |
|||
width: '100%', |
|||
fontSize: 32, |
|||
color: '#FFFFFF', |
|||
fontWeight: 400, |
|||
align: 'center' |
|||
}, |
|||
itemGap: 5, |
|||
subtext: '总数', |
|||
subtextStyle: { |
|||
fontSize: 16, |
|||
color: '#fff', |
|||
fontWeight: 400, |
|||
align: 'center' |
|||
} |
|||
}, |
|||
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: 90, |
|||
hoverAnimation: false, |
|||
// tooltip: {
|
|||
// },
|
|||
center: center, |
|||
left: 'left', |
|||
radius: ['60%', '70%'], |
|||
width: 400, |
|||
label: { |
|||
show: false |
|||
}, |
|||
labelLine: { |
|||
show: false |
|||
}, |
|||
data: [{ |
|||
value: 480, |
|||
itemStyle: { |
|||
color: 'rgba(40, 101, 250, 0)', |
|||
width:0, |
|||
borderColor: 'rgba(40, 101, 250, 0.5)', |
|||
borderWidth: 1, |
|||
borderType: 'dotted' |
|||
} |
|||
} |
|||
] |
|||
}, |
|||
|
|||
// 突出的
|
|||
{ |
|||
hoverAnimation: false, |
|||
type: 'pie', |
|||
center: center, |
|||
radius: ['40%', '60%'], |
|||
avoidLabelOverlap: false, |
|||
selectedMode: 'single', |
|||
left: 'left', |
|||
width: 400, |
|||
startAngle: 90, |
|||
label: { |
|||
// show: false,
|
|||
position: 'outside', |
|||
alignTo: 'edge', |
|||
// formatter: '{a|{c}}\n\n{name|{b}}',
|
|||
formatter: '{a|{c}}\n{r|}\n{name|{b}}', |
|||
minMargin: 5, |
|||
edgeDistance: 1, |
|||
lineHeight: 15, |
|||
color: '#fff', |
|||
fontSize: 12, |
|||
// distanceToLabelLine: -60,
|
|||
rich: { |
|||
name: { |
|||
padding: [0, 6, 0, 6] |
|||
}, |
|||
a: { |
|||
fontSize: 30, |
|||
color: '#fff', |
|||
padding: [0, 6, 6, 6] |
|||
}, |
|||
r: { |
|||
backgroundColor: 'auto', |
|||
borderRadius: 6, |
|||
width: 6, |
|||
height: 6, |
|||
// padding: [3, 3, 0, -12]
|
|||
} |
|||
} |
|||
}, |
|||
labelLine: { |
|||
show: false, |
|||
smooth: 0.2, |
|||
length: 30, |
|||
length2: 0, |
|||
maxSurfaceAngle: 80 |
|||
}, |
|||
labelLayout: function (params) { |
|||
|
|||
const isLeft = params.labelRect.x < _charts.getWidth() / 2; |
|||
const points = params.labelLinePoints; |
|||
// Update the end point.
|
|||
if (points) { |
|||
points[2][0] = isLeft |
|||
? params.labelRect.x |
|||
: params.labelRect.x + params.labelRect.width; |
|||
} |
|||
|
|||
return { |
|||
labelLinePoints: points |
|||
}; |
|||
}, |
|||
itemStyle: { |
|||
|
|||
}, |
|||
data: [], |
|||
|
|||
}, |
|||
// 中间圆环
|
|||
{ |
|||
type: 'pie', |
|||
// 起始刻度的角度,默认为 90 度,即圆心的正上方。0 度为圆心的正右方。
|
|||
startAngle: 90, |
|||
hoverAnimation: false, |
|||
center: center, |
|||
left: 'left', |
|||
width: 400, |
|||
// tooltip: {
|
|||
// },
|
|||
radius: ['0%', '25%'], |
|||
label: { |
|||
|
|||
show: false |
|||
|
|||
}, |
|||
labelLine: { |
|||
show: false |
|||
|
|||
}, |
|||
data: [ |
|||
{ |
|||
value: 360, |
|||
itemStyle: { |
|||
color: 'rgba(8, 37, 134, 1)', |
|||
} |
|||
} |
|||
] |
|||
}, |
|||
] |
|||
|
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,602 @@ |
|||
<template> |
|||
<div class="div_content_map"> |
|||
<div class="div_map" |
|||
id="map" |
|||
ref="map"> |
|||
<!-- <div id="map" |
|||
class="map"></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 { altKeyOnly, click, pointerMove } from 'ol/events/condition'; |
|||
|
|||
import { mapGetters } from "vuex"; |
|||
import { Loading } from 'element-ui'; //引入Loading服务 |
|||
import { requestPost } from "@/js/dai/request"; |
|||
|
|||
|
|||
|
|||
let loading;//加载动画 |
|||
|
|||
let map; |
|||
let mapView; |
|||
let gaodeMapLayer;//背景地图图层 |
|||
let polygonLayer;//区域多边形标注图层 |
|||
let polygonSource;//标注多边形 |
|||
|
|||
let polIconLayer; // 区域icon标注图层 |
|||
let polIconSource; // icon |
|||
|
|||
let iconLayer; // icon图层 |
|||
let iconSource; // icon |
|||
|
|||
let select;//选中标注 |
|||
|
|||
|
|||
//url图标 |
|||
|
|||
|
|||
|
|||
let polygonColorArray = [ |
|||
'rgba(210, 2, 2, 0.24)', |
|||
'rgba(43, 231, 253, 0.25)', |
|||
'rgba(183, 185, 0, 0.16)' |
|||
]; |
|||
|
|||
|
|||
//变电站标注样式 |
|||
|
|||
var polygonStyleFunction = (function () { |
|||
return function (feature) { |
|||
return new Style({ |
|||
fill: new Fill({ |
|||
// color: [255, 255, 255, 0.3] |
|||
color: feature.values_.fillColor |
|||
}), |
|||
stroke: new Stroke({ |
|||
color: feature.values_.color, |
|||
width: 2 |
|||
}), |
|||
|
|||
// text: createTextStyle(feature) |
|||
});; |
|||
}; |
|||
})() |
|||
|
|||
const vueGis = { |
|||
name: 'HomeMap', |
|||
data () { |
|||
return { |
|||
centerPoint: [],//中心点位置 |
|||
zoom: 14,//缩放范围:区14 |
|||
minZoom: 1,//最小缩放 |
|||
|
|||
mapInfo: { |
|||
|
|||
}, |
|||
|
|||
polygonArray: [ |
|||
{ |
|||
agencyLevel: "grid", |
|||
coordinates: "120.37421528296863,36.085017737014525,120.37551227771064,36.08181339174796,120.38108173804676,36.08303409283569,120.3852397566111,36.08318668276358,120.38539234391965,36.090816077003794,120.37410084117755,36.09096866431234,120.37421528296863,36.085017737014525", |
|||
id: "2a278c0ceb863359d263fda7aabf6752", |
|||
latitude: 36.072227, |
|||
level: "grid", |
|||
longitude: 120.389455, |
|||
name: "第三网格", |
|||
}, |
|||
{ |
|||
agencyLevel: "grid", |
|||
coordinates: "120.38577111171519,36.095762169637716,120.38544318588274,36.08317796726519,120.39339541546589,36.08080049372144,120.40122467708379,36.08026761565102,120.40188052874869,36.08276805856732,120.39929810296697,36.086990119140545,120.39757648953199,36.08981849070392,120.39901116927089,36.0943274884915,120.3977404524482,36.096418022709926,120.38577111171519,36.095762169637716", |
|||
id: "94227891bc4ad5f40cb95081761592d9", |
|||
latitude: 36.072227, |
|||
level: "grid", |
|||
longitude: 120.389455, |
|||
name: "南宁第二网格", |
|||
}, |
|||
{ |
|||
agencyLevel: "grid", |
|||
coordinates: "120.3736430792519,36.09505039184175,120.373948253869,36.09119754789451,120.38543049205646,36.09115940106737,120.38577381481036,36.0960803587938,120.3736430792519,36.09505039184175", |
|||
id: "a772a325e022484ef53e4a7d679726f1", |
|||
latitude: 36.072227, |
|||
level: "grid", |
|||
longitude: 120.389455, |
|||
name: "南宁第一网格", |
|||
}, |
|||
], |
|||
|
|||
iconArrays: [ |
|||
|
|||
], |
|||
iconTextStyle: {}, |
|||
|
|||
//policon图标样式 |
|||
polIconUrlArray: [ |
|||
'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' |
|||
], |
|||
//icon图标样式 |
|||
iconUrlArray: [], |
|||
iconTextColor: '#ffffff', |
|||
|
|||
} |
|||
}, |
|||
async mounted () { |
|||
|
|||
|
|||
}, |
|||
methods: { |
|||
//加载地图:地图基本信息,多边形区域信息,多边形icon |
|||
loadMap (mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray, iconTextStyle) { |
|||
this.mapInfo = mapInfo |
|||
this.polygonArray = polygonArray |
|||
this.polIconUrlArray = polIconUrlArray |
|||
this.iconArrays = iconArrays |
|||
this.iconUrlArray = iconUrlArray |
|||
this.iconTextStyle = iconTextStyle |
|||
|
|||
//初始化地图 |
|||
this.initMap() |
|||
|
|||
if (this.showPolygonLayer) { |
|||
//初始化多边形标注图层 |
|||
this.initPolygonLayer() |
|||
//加载当前园区的标注 |
|||
this.loadPolygon() |
|||
} |
|||
if (this.showPolIconLayer) { |
|||
|
|||
//初始化多边形标注图层 |
|||
this.initPolygonLayer() |
|||
//加载当前园区的标注 |
|||
this.loadPolIcon() |
|||
} |
|||
|
|||
if (this.showIconLayer) { |
|||
//初始化icon图层 |
|||
this.initIconLayer() |
|||
this.loadIcon() |
|||
} |
|||
|
|||
|
|||
}, |
|||
|
|||
//刷新地图 |
|||
async refreshMap (polygonArray, iconArrays) { |
|||
this.polygonArray = polygonArray |
|||
this.iconArrays = iconArrays |
|||
|
|||
if (this.showPolygonLayer) { |
|||
|
|||
//加载当前园区的标注 |
|||
this.loadPolygon() |
|||
} |
|||
if (this.showPolIconLayer) { |
|||
|
|||
//加载当前园区的标注 |
|||
this.loadPolIcon() |
|||
} |
|||
|
|||
if (this.showIconLayer) { |
|||
|
|||
this.loadIcon() |
|||
} |
|||
|
|||
|
|||
}, |
|||
|
|||
//加载多边形 |
|||
loadPolygon () { |
|||
|
|||
polygonSource.clear()//清空多边形标注 |
|||
|
|||
let featureData = []//多边形数据数据 |
|||
|
|||
if (this.polygonArray && this.polygonArray.length > 0) {//判断是否存在下级标注 |
|||
let oneData = {} |
|||
|
|||
this.polygonArray.forEach(polygonItem => { |
|||
|
|||
if (polygonItem.coordinates && polygonItem.coordinates !== '') {//如果有坐标 |
|||
|
|||
oneData = { |
|||
type: 'Feature', |
|||
|
|||
properties: { ...polygonItem }, |
|||
geometry: { |
|||
type: 'Polygon', |
|||
coordinates: [], |
|||
}, |
|||
} |
|||
let coorArray = polygonItem.coordinates.split(',')//坐标数组 |
|||
|
|||
let itemArray = []//单个点位的[lon,lat],数组 |
|||
let tempPolygonArray = []//整个多边形的[[lon,lat],[lon,lat],[lon,lat]]数组 |
|||
|
|||
coorArray.forEach((item, index) => { |
|||
itemArray.push(item) |
|||
if (index % 2 == 0) {//偶 |
|||
|
|||
} else {//奇 |
|||
tempPolygonArray.push(itemArray) |
|||
itemArray = [] |
|||
} |
|||
|
|||
}); |
|||
oneData.geometry.coordinates.push(tempPolygonArray) |
|||
featureData.push(oneData) |
|||
} |
|||
}); |
|||
} |
|||
|
|||
if (featureData && featureData.length > 0) { |
|||
var geojsonObject = { |
|||
'type': 'FeatureCollection', |
|||
'features': featureData |
|||
}; |
|||
let feature = (new GeoJSON()).readFeatures(geojsonObject) |
|||
|
|||
polygonSource.addFeatures(feature) |
|||
|
|||
if (this.showPolIconLayer) { |
|||
this.loadPolIcon(feature) |
|||
} |
|||
|
|||
} |
|||
|
|||
}, |
|||
|
|||
//加载多边形的icon |
|||
loadPolIcon (feature) { |
|||
let polyIconFeatures = []; |
|||
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 polyIcon = new Feature({ |
|||
geometry: new Point([x, y]), |
|||
id: oneIcon.id_, |
|||
properties: { |
|||
type: "icon", |
|||
id: oneIcon.id_ |
|||
} |
|||
}); |
|||
|
|||
let polyIconStyle = new Style({ |
|||
image: new Icon({ |
|||
// anchor: [0.5, 0.5], |
|||
// imgSize: [32, 32], |
|||
scale: 0.5, |
|||
src: polIconUrlArray[oneIcon.values_.index - 1] |
|||
}) |
|||
}); |
|||
|
|||
polyIcon.setStyle(polyIconStyle); |
|||
polyIconFeatures.push(polyIcon); |
|||
|
|||
}); |
|||
|
|||
polIconSource.addFeatures(polyIconFeatures); |
|||
}, |
|||
|
|||
//加载icon图标 |
|||
loadIcon () { |
|||
iconSource.clear()//清空多边形标注 |
|||
if (this.iconArrays && this.iconArrays.length > 0) { |
|||
|
|||
let iconFeatures = []; |
|||
this.iconArrays.forEach((oneIcon, index) => { |
|||
let urlNum = this.getRndBetween(1, 3) |
|||
//添加标注 |
|||
let iconItem = new Feature({ |
|||
geometry: new Point([oneIcon.longitude, oneIcon.latitude]), |
|||
id: oneIcon.id, |
|||
properties: { |
|||
type: "icon", |
|||
info: { ...oneIcon } |
|||
} |
|||
}); |
|||
|
|||
let iconStyle = new Style({ |
|||
image: new Icon({ |
|||
// anchor: [0.5, 0.5], |
|||
// imgSize: [32, 32], |
|||
// scale: 0.5, |
|||
src: this.iconUrlArray[oneIcon.urlIndex] |
|||
}), |
|||
text: this.createTextStyle(oneIcon) |
|||
}); |
|||
|
|||
iconItem.setStyle(iconStyle); |
|||
iconFeatures.push(iconItem); |
|||
|
|||
}); |
|||
|
|||
iconSource.addFeatures(iconFeatures); |
|||
} |
|||
}, |
|||
|
|||
//icon文字样式 |
|||
createTextStyle (feature) { |
|||
if (this.iconTextStyle) { |
|||
let iconTextStyle = { ...this.iconTextStyle } |
|||
iconTextStyle.text = feature.values_.name |
|||
return new Text({ ...iconTextStyle }) |
|||
} else { |
|||
return null |
|||
} |
|||
|
|||
|
|||
}, |
|||
|
|||
//初始化地图 |
|||
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中 |
|||
}) |
|||
|
|||
let that = this |
|||
map.on('singleclick', function (e) { |
|||
const feature = map.forEachFeatureAtPixel(e.pixel, function (feature) { |
|||
return feature; |
|||
}); |
|||
if (feature) { |
|||
console.log(feature) |
|||
that.$emit('clickFeature', feature) |
|||
|
|||
} |
|||
|
|||
|
|||
|
|||
}) |
|||
|
|||
//去除双击放大效果 |
|||
const dblClickInteraction = map |
|||
.getInteractions() |
|||
.getArray() |
|||
.find(interaction => { |
|||
return interaction instanceof DoubleClickZoom; |
|||
}); |
|||
map.removeInteraction(dblClickInteraction); |
|||
|
|||
}, |
|||
//设置地图定位的中心点和缩放级别 |
|||
setMapLocation () { |
|||
this.centerPoint = [] |
|||
|
|||
if (this.mapInfo.longitude && this.mapInfo.latitude) { |
|||
this.centerPoint.push(this.mapInfo.longitude) |
|||
this.centerPoint.push(this.mapInfo.latitude) |
|||
} |
|||
|
|||
this.setZoom(this.mapInfo.level) |
|||
}, |
|||
|
|||
//根据组织层级设置缩放级别 |
|||
setZoom (level) { |
|||
if (level === 'district') { |
|||
this.zoom = 14 |
|||
} else if (level === 'street') { |
|||
this.zoom = 15 |
|||
} else if (level === 'community') { |
|||
this.zoom = 16 |
|||
} |
|||
|
|||
}, |
|||
|
|||
|
|||
//初始化多边形标注图层 |
|||
initPolygonLayer () { |
|||
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); |
|||
|
|||
|
|||
}, |
|||
|
|||
//初始化多边形icon图层 |
|||
initPolIconLayer () { |
|||
polIconSource = new VectorSource({ |
|||
//features: (new GeoJSON()).readFeatures(geojsonObject) |
|||
}); |
|||
|
|||
polIconLayer = new VectorLayer({ |
|||
source: polIconSource, |
|||
zIndex: 70 |
|||
}); |
|||
|
|||
map.addLayer(polIconLayer); |
|||
|
|||
}, |
|||
|
|||
//初始化icon图层 |
|||
initIconLayer () { |
|||
|
|||
iconSource = new VectorSource({ |
|||
//features: (new GeoJSON()).readFeatures(geojsonObject) |
|||
}); |
|||
|
|||
iconLayer = new VectorLayer({ |
|||
source: iconSource, |
|||
zIndex: 90 |
|||
}); |
|||
|
|||
map.addLayer(iconLayer); |
|||
// select = new Select({ condition: click, }); |
|||
|
|||
// map.addInteraction(select); |
|||
|
|||
// select.on('select', e => { |
|||
// this.$emit('clickFeature', e) |
|||
// }); |
|||
}, |
|||
|
|||
|
|||
//取随机数 |
|||
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: { |
|||
//是否显示多边形图层 |
|||
showPolygonLayer: { |
|||
type: Boolean, |
|||
default: false |
|||
}, |
|||
//是否显示多边形icon图层 |
|||
showPolIconLayer: { |
|||
type: Boolean, |
|||
default: false |
|||
}, |
|||
|
|||
//是否显示标注 |
|||
showIconLayer: { |
|||
type: Boolean, |
|||
default: false |
|||
} |
|||
|
|||
}, |
|||
computed: { |
|||
|
|||
mapHeight () { |
|||
return this.clientHeight - 120; |
|||
|
|||
}, |
|||
|
|||
...mapGetters(["clientHeight"]) |
|||
|
|||
}, |
|||
components: {}, |
|||
} |
|||
export default vueGis; |
|||
</script> |
|||
|
|||
<style |
|||
lang="scss" |
|||
src="@/assets/scss/modules/visual/basicInfoMain.scss" |
|||
scoped |
|||
></style> |
|||
|
|||
<style lang="scss" > |
|||
.div_content_map { |
|||
.ol-viewport { |
|||
border-radius: 5px; |
|||
} |
|||
.div_map { |
|||
box-sizing: border-box; |
|||
width: 100%; |
|||
// padding: 10px 5px 13px; |
|||
// margin-top: 8px; |
|||
height: 100%; |
|||
color: #fff; |
|||
} |
|||
} |
|||
.ol-overlaycontainer-stopevent { |
|||
display: none; |
|||
} |
|||
</style> |
|||
@ -0,0 +1,524 @@ |
|||
<template> |
|||
<div class="analyse-container"> |
|||
<div class="analyse-wr list-wr"> |
|||
|
|||
<div class="analys-col"> |
|||
<div class="analys-family"> |
|||
<div class="family-title">(家属)</div> |
|||
<div v-for="(item, index) in userList" :key="index" class="family-item" @click="handleUser(item)">{{item.icUserName}}</div> |
|||
<!-- <div class="family-item">王亚男哈</div> |
|||
<div class="family-item">王亚男</div> |
|||
<div class="family-item">王亚男哈</div> |
|||
<div class="family-item">王亚</div> --> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="analys-col"> |
|||
<img class="analys-arrow" src="../../../../assets/img/shuju/measure/zuo@2x.png" /> |
|||
</div> |
|||
|
|||
<div class="analys-col"> |
|||
<div class="analys-person"> |
|||
<div class="personal-name">{{userName}}</div> |
|||
<div class="personal-tips">(案件居民)</div> |
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
<template v-if="hasEvent"> |
|||
<div class="analys-col analys-col-posi"> |
|||
<img class="analys-up" src="../../../../assets/img/shuju/measure/up-right.png" /> |
|||
<img class="analys-up analys-down" src="../../../../assets/img/shuju/measure/down-right.png" /> |
|||
</div> |
|||
<div class="analys-col"> |
|||
<div class="cate-list cate-list-more"> |
|||
<div class="cate-row"> |
|||
|
|||
<div class="analys-col"> |
|||
<div class="analys-cate" @click="handleTabs('group')"> |
|||
<div class="label">{{ singleTitle }}</div> |
|||
<div class="tips">(反应渠道)</div> |
|||
<div class="icon"> |
|||
<img src="../../../../assets/img/shuju/measure/gantanhao.png" /> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div v-if="sourceTab === 'group'" class="analys-col"> |
|||
<img class="analys-arrow" src="../../../../assets/img/shuju/measure/you@2x.png" /> |
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
<div class="cate-row"> |
|||
|
|||
<div class="analys-col"> |
|||
<div class="analys-cate" @click="handleTabs('event')"> |
|||
<div class="label">{{ moreTitle }}</div> |
|||
<div class="tips">(反应渠道)</div> |
|||
<div class="icon"> |
|||
<img src="../../../../assets/img/shuju/measure/gantanhao.png" /> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div v-if="sourceTab === 'event'" class="analys-col"> |
|||
<img class="analys-arrow" src="../../../../assets/img/shuju/measure/you@2x.png" /> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
<div class="analys-col analys-col-wr analys-col-more list-wr" id="scroll-wr"> |
|||
<div class="cate-list cate-list-child"> |
|||
<div v-for="(item, index) in tempList" :key="index" class="cate-row"> |
|||
|
|||
<div class="cate-col"> |
|||
<div class="analys-cate"> |
|||
<div class="label">{{item.categoryName}}</div> |
|||
<div class="tips">(同类案件)</div> |
|||
<div class="icon" @click="handleShow(item)"> |
|||
<img src="../../../../assets/img/shuju/measure/gantanhao.png" /> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="cate-col cate-col-arrow"> |
|||
<img v-show="item.showItem" class="analys-arrow" src="../../../../assets/img/shuju/measure/you@2x.png" /> |
|||
</div> |
|||
|
|||
<div class="cate-col cate-col-w100"> |
|||
<div class="cate-list-w0" :class="item.showItem && 'cate-list-w100'"> |
|||
<div class="list list-wr"> |
|||
<div v-for="(n, i) in item.projectList" :key="i" class="item" @click="handleProject(n)"> |
|||
<div class="item-status" :class="'item-status-'+n.status">{{filterStatus(n.status)}}</div> |
|||
<div class="item-content">{{n.title}}</div> |
|||
</div> |
|||
<!-- <div class="item"> |
|||
<div class="item-status">已结案</div> |
|||
<div class="item-content">合肥路与安宁路交合肥路与安宁路交</div> |
|||
</div> --> |
|||
|
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
</template> |
|||
<template v-else> |
|||
<div class="analys-col"> |
|||
<img class="analys-arrow" src="../../../../assets/img/shuju/measure/you@2x.png" /> |
|||
</div> |
|||
|
|||
|
|||
|
|||
<div class="analys-col"> |
|||
<div class="analys-cate"> |
|||
<div class="label">{{ singleTitle }}</div> |
|||
<div class="tips">(反应渠道)</div> |
|||
<!-- <div class="icon"> |
|||
<img src="../../../../assets/img/shuju/measure/gantanhao.png" /> |
|||
</div> --> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="analys-col"> |
|||
<img v-if="tempList.length > 1" class="analys-up" src="../../../../assets/img/shuju/measure/up-right.png" /> |
|||
<img v-if="tempList.length != 2" class="analys-arrow" src="../../../../assets/img/shuju/measure/you@2x.png" /> |
|||
<img v-if="tempList.length > 1" |
|||
class="analys-up analys-down" src="../../../../assets/img/shuju/measure/down-right.png" /> |
|||
</div> |
|||
|
|||
<div class="analys-col list-wr" :class="tempList.length > 2 && 'analys-col-wr' || 'analys-single'"> |
|||
<div class="cate-list"> |
|||
<div v-for="(item, index) in tempList" :key="index" class="cate-row"> |
|||
|
|||
<div class="cate-col"> |
|||
<div class="analys-cate"> |
|||
<div class="label">{{item.categoryName}}</div> |
|||
<div class="tips">(同类案件)</div> |
|||
<div class="icon" @click="handleShow(item)"> |
|||
<img src="../../../../assets/img/shuju/measure/gantanhao.png" /> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="cate-col cate-col-arrow"> |
|||
<img v-show="item.showItem" class="analys-arrow" src="../../../../assets/img/shuju/measure/you@2x.png" /> |
|||
</div> |
|||
|
|||
<div class="cate-col cate-col-w100"> |
|||
<div class="cate-list-w0" :class="item.showItem && 'cate-list-w100'"> |
|||
<div class="list list-wr"> |
|||
<div v-for="(n, i) in item.projectList" :key="i" class="item" @click="handleProject(n)"> |
|||
<div class="item-status" :class="'item-status-'+n.status"> |
|||
{{ n.statusName || filterStatus(n.status)}} |
|||
</div> |
|||
<div class="item-content">{{n.title}}</div> |
|||
</div> |
|||
<!-- <div class="item"> |
|||
<div class="item-status">已结案</div> |
|||
<div class="item-content">合肥路与安宁路交合肥路与安宁路交</div> |
|||
</div> --> |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
// singleList: [ |
|||
// { |
|||
// categoryName: '辨明服务', |
|||
// categoryCode: '1', |
|||
// showItem: true, |
|||
// projectList: [ |
|||
// { |
|||
// title: '不知道写了什么哈哈哈', |
|||
// status: 'closed', |
|||
// statusName: '', |
|||
// projectId: '1' |
|||
// } |
|||
// ] |
|||
// } |
|||
// ] |
|||
export default { |
|||
name: 'Analyse', |
|||
props: { |
|||
hasEvent: { |
|||
type: Boolean, // 楼院小组和事件上报同时存在时 为 true |
|||
default: false |
|||
}, |
|||
moreTitle: String, // hasEvent 为true 时 传入 |
|||
moreList: Array, // hasEvent 为true 时 传入 |
|||
singleTitle: { // 默认,必传 |
|||
type: String, |
|||
default: '楼院小组' |
|||
}, |
|||
userList: Array, // 默认,必传 |
|||
userName: String, // 默认,必传 |
|||
singleList: Array, // 默认,必传 |
|||
|
|||
}, |
|||
data () { |
|||
return { |
|||
sourceTab: 'group', |
|||
tempList: [] |
|||
} |
|||
}, |
|||
created() { |
|||
this.tempList = [...this.singleList] |
|||
}, |
|||
methods: { |
|||
filterStatus(status) { |
|||
const statusObj = { |
|||
pending: '待处理', |
|||
closed: '已结案' |
|||
} |
|||
return statusObj[status] |
|||
}, |
|||
handleTabs(type) { |
|||
if (type === 'group') this.tempList = [ ...this.singleList ] |
|||
else if (type === 'event') this.tempList = [ ...this.moreList ] |
|||
this.sourceTab = type |
|||
const _dom = document.getElementById('scroll-wr') |
|||
_dom.scrollTop = 0 |
|||
}, |
|||
handleProject(item) { |
|||
this.$emit('project', item) |
|||
}, |
|||
handleUser(item) { |
|||
this.$emit('user', item) |
|||
}, |
|||
handleShow(item) { |
|||
item.showItem = !item.showItem |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.analyse-container { |
|||
.analyse-wr { |
|||
display: flex; |
|||
align-items: center; |
|||
width: 100%; |
|||
max-height: 560px; |
|||
box-sizing: border-box; |
|||
overflow: auto; |
|||
|
|||
.analys-col { |
|||
position: relative; |
|||
cursor: pointer; |
|||
.analys-family { |
|||
text-align: center; |
|||
.family-title { |
|||
margin-bottom: 8px; |
|||
} |
|||
.family-item { |
|||
width: 76px; |
|||
box-sizing: border-box; |
|||
margin-bottom: 28px; |
|||
padding: 8px 0; |
|||
font-size: 14px; |
|||
color: #fff; |
|||
text-align: center; |
|||
background: rgba(255, 255, 255, 0); |
|||
border: 1px solid #1257C9; |
|||
border-radius: 2px; |
|||
box-shadow: 0 0 5px 2px rgba(18, 87, 201, 1) inset; |
|||
} |
|||
} |
|||
.analys-up { |
|||
display: block; |
|||
width: 64px; |
|||
height: 99px; |
|||
box-sizing: border-box; |
|||
margin-bottom: 85px; |
|||
} |
|||
.analys-down { |
|||
margin-top: 85px; |
|||
margin-bottom: 0; |
|||
} |
|||
.analys-arrow { |
|||
display: block; |
|||
width: 32px; |
|||
height: 18px; |
|||
box-sizing: border-box; |
|||
margin: 0 6px; |
|||
} |
|||
|
|||
.analys-person { |
|||
width: 154px; |
|||
height: 152px; |
|||
box-sizing: border-box; |
|||
padding-top: 60px; |
|||
color: #fff; |
|||
text-align: center; |
|||
background: url('../../../../assets/img/shuju/measure/zhuhu@2x.png') no-repeat center; |
|||
background-size: cover; |
|||
.personal-name { |
|||
font-size: 18px; |
|||
font-weight: 500; |
|||
} |
|||
.personal-tips { |
|||
margin-top: 6px; |
|||
font-size: 14px; |
|||
} |
|||
} |
|||
|
|||
.analys-cate { |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: center; |
|||
align-items: center; |
|||
position: relative; |
|||
width: 120px; |
|||
min-height: 64px; |
|||
box-sizing: border-box; |
|||
padding: 14px 20px; |
|||
text-align: center; |
|||
color: #fff; |
|||
cursor: pointer; |
|||
background: rgba(255, 255, 255, 0); |
|||
border: 1px solid #1257C9; |
|||
border-radius: 4px; |
|||
box-shadow: 1px 1px 10px 5px rgba(18, 87, 201, 1) inset; |
|||
.label { |
|||
font-size: 18px; |
|||
font-weight: 500; |
|||
} |
|||
.tips { |
|||
margin-top: 6px; |
|||
font-size: 14px; |
|||
} |
|||
.icon { |
|||
position: absolute; |
|||
right: 4px; |
|||
bottom: 4px; |
|||
width: 12px; |
|||
height: 12px; |
|||
img { |
|||
display: block; |
|||
width: 100%; |
|||
height: 100%; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.cate-list { |
|||
// padding-top: 200px; |
|||
// display: flex; |
|||
// flex-direction: column; |
|||
// justify-content: space-between; |
|||
.cate-row { |
|||
display: flex; |
|||
align-items: center; |
|||
margin-bottom: 20px; |
|||
// margin-top: 0; |
|||
.cate-col-arrow { |
|||
width: 32px; |
|||
height: 18px; |
|||
// box-sizing: border-box; |
|||
margin: 0 6px; |
|||
.analys-arrow { |
|||
display: block; |
|||
width: 32px; |
|||
height: 100%; |
|||
box-sizing: border-box; |
|||
margin: 0 auto; |
|||
} |
|||
} |
|||
.cate-col-w100 { |
|||
width: 230px; |
|||
.cate-list-w0 { |
|||
width: 0; |
|||
transition: width .2s; |
|||
overflow: hidden; |
|||
// border: 0; |
|||
// padding: 0; |
|||
} |
|||
.cate-list-w100 { |
|||
width: 230px; |
|||
// padding: 4px 14px 10px; |
|||
// // background: rgba(255, 255, 255, 0); |
|||
// border: 1px solid #1257C9; |
|||
// overflow: auto; |
|||
transition: width .2s; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
.cate-list-more { |
|||
// padding-top: 300px; |
|||
.cate-row { |
|||
margin-bottom: 200px; |
|||
// margin-top: 0; |
|||
} |
|||
.cate-row:last-child { |
|||
margin-bottom: 0; |
|||
} |
|||
} |
|||
.cate-list-child { |
|||
padding-top: 60px; |
|||
} |
|||
|
|||
.list { |
|||
width: 230px; |
|||
height: 165px; |
|||
box-sizing: border-box; |
|||
padding: 4px 14px 10px; |
|||
background: rgba(255, 255, 255, 0); |
|||
border: 1px solid #1257C9; |
|||
overflow: auto; |
|||
border-radius: 4px; |
|||
box-shadow: 1px 1px 10px 5px rgba(18, 87, 201, 1) inset; |
|||
.item { |
|||
display: flex; |
|||
align-items: center; |
|||
width: 100%; |
|||
box-sizing: border-box; |
|||
padding: 8px 0; |
|||
border-bottom: 1px dashed rgba(131, 152, 217, 1); |
|||
.item-status { |
|||
min-width: 50px; |
|||
// height: 15px; |
|||
box-sizing: border-box; |
|||
margin-right: 8px; |
|||
padding: 4px 0 2px; |
|||
font-size: 10px; |
|||
text-align: center; |
|||
// line-height: 15px; |
|||
background: #0C5CFE; |
|||
border-radius: 2px; |
|||
&-pending { |
|||
background: rgba(224, 84, 0, 1); |
|||
} |
|||
} |
|||
.item-content { |
|||
font-size: 14px; |
|||
text-overflow: ellipsis; |
|||
white-space: nowrap; |
|||
overflow: hidden; |
|||
} |
|||
} |
|||
} |
|||
|
|||
|
|||
} |
|||
.analys-col-wr { |
|||
height: 100%; |
|||
box-sizing: border-box; |
|||
padding-right: 30px; |
|||
overflow: auto; |
|||
} |
|||
.analys-col-more { |
|||
height: 560px; |
|||
} |
|||
.analys-single { |
|||
.list { |
|||
height: 235px; |
|||
} |
|||
} |
|||
.analys-col-posi { |
|||
// .analys-up, .analys-down { |
|||
// position: absolute; |
|||
// } |
|||
.analys-up { |
|||
// top: -200px; |
|||
// left: -30px; |
|||
// margin-bottom: 160px; |
|||
} |
|||
.analys-down { |
|||
// margin-top: 160px; |
|||
// margin-bottom: 0; |
|||
// top: unset; |
|||
// bottom: -200px; |
|||
// left: -30px; |
|||
} |
|||
} |
|||
|
|||
} |
|||
} |
|||
.pad10 { |
|||
padding-top: 10px; |
|||
} |
|||
.list-wr::-webkit-scrollbar { |
|||
width: 8px; |
|||
// background: linear-gradient(270deg, #0063FE, #0095FF); |
|||
} |
|||
|
|||
.list-wr::-webkit-scrollbar-corner, |
|||
/* 滚动条角落 */ |
|||
.list::-webkit-scrollbar-thumb, |
|||
.scroll-container::-webkit-scrollbar-track { /*滚动条的轨道*/ |
|||
border-radius: 4px; |
|||
} |
|||
|
|||
.list-wr::-webkit-scrollbar-corner, |
|||
.list-wr::-webkit-scrollbar-track { |
|||
/* 滚动条轨道 */ |
|||
|
|||
background: rgba(12, 129, 254, .24); |
|||
// box-shadow: inset 0 0 1px rgba(180, 160, 120, 0.5); |
|||
} |
|||
|
|||
.list-wr::-webkit-scrollbar-thumb { |
|||
/* 滚动条手柄 */ |
|||
background: linear-gradient(270deg, #0063FE, #0095FF); |
|||
} |
|||
</style> |
|||