bug
This commit is contained in:
@@ -247,11 +247,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
changeZoom(isAdd) {
|
|
||||||
const zoom = isAdd ? this.map.getZoom() + 1 : this.map.getZoom() - 1
|
|
||||||
this.map.setZoom(zoom, false, 600)
|
|
||||||
},
|
|
||||||
|
|
||||||
formatName (str) {
|
formatName (str) {
|
||||||
if (!str) return ''
|
if (!str) return ''
|
||||||
|
|
||||||
|
|||||||
@@ -83,11 +83,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
changeZoom(isAdd) {
|
|
||||||
const zoom = isAdd ? this.map.getZoom() + 1 : this.map.getZoom() - 1
|
|
||||||
this.map.setZoom(zoom, false, 600)
|
|
||||||
},
|
|
||||||
|
|
||||||
getInfo (id) {
|
getInfo (id) {
|
||||||
this.instance.post(`/app/appresourceinfo/queryDetailById?id=${id}`).then(res => {
|
this.instance.post(`/app/appresourceinfo/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
@@ -97,10 +92,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
toCenter() {
|
|
||||||
this.map.setZoomAndCenter(this.zoom, this.center, false, 600)
|
|
||||||
},
|
|
||||||
|
|
||||||
renderClusterMarker(context) {
|
renderClusterMarker(context) {
|
||||||
let el = `<div class="polymeric">
|
let el = `<div class="polymeric">
|
||||||
<div class="polymeric-container">
|
<div class="polymeric-container">
|
||||||
@@ -119,10 +110,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
renderMarker(context) {
|
renderMarker(context) {
|
||||||
console.log(context)
|
|
||||||
const buildId = context.data[0].id
|
const buildId = context.data[0].id
|
||||||
|
|
||||||
let el = `<div class="mark" id="buildId-${buildId}">
|
let el = `<div id="buildId-${buildId}" class="mark ${buildId === this.choosedId ? 'mark-active' : ''}">
|
||||||
<img src="${context.data[0].categoryIcon || 'https://cdn.cunwuyun.cn/dvcp/ply/icon.png'}">
|
<img src="${context.data[0].categoryIcon || 'https://cdn.cunwuyun.cn/dvcp/ply/icon.png'}">
|
||||||
</div>`
|
</div>`
|
||||||
|
|
||||||
@@ -139,8 +129,7 @@ export default {
|
|||||||
document.querySelectorAll('.mark').forEach(el => {
|
document.querySelectorAll('.mark').forEach(el => {
|
||||||
el.classList.remove('mark-active')
|
el.classList.remove('mark-active')
|
||||||
})
|
})
|
||||||
document.querySelector(`#buildId-${e.target.id}`).add('mark-active')
|
document.querySelector(`#buildId-${e.target.id}`).classList.add('mark-active')
|
||||||
this.map.setZoomAndCenter(this.map.getZoom() + 0.000000001, e.target.lnglat, false, 300)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -469,6 +458,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .mark{
|
::v-deep .mark{
|
||||||
|
position: relative;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
@@ -484,6 +474,10 @@ export default {
|
|||||||
&:hover {
|
&:hover {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.mark-active {
|
||||||
|
transform: scale(1.2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@-webkit-keyframes warn {
|
@-webkit-keyframes warn {
|
||||||
|
|||||||
@@ -28,17 +28,17 @@
|
|||||||
<ai-search-bar bottomBorder>
|
<ai-search-bar bottomBorder>
|
||||||
<template #left>
|
<template #left>
|
||||||
<ai-select
|
<ai-select
|
||||||
v-model="search.gatewayId"
|
v-model="search.riskStatus"
|
||||||
clearable
|
clearable
|
||||||
placeholder="请选择风险状态"
|
placeholder="请选择风险状态"
|
||||||
:selectList="dict.getDict('EP_registerInfoType')"
|
:selectList="dict.getDict('EP_riskStatus')"
|
||||||
@change="search.current = 1, getList()">
|
@change="search.current = 1, getList()">
|
||||||
</ai-select>
|
</ai-select>
|
||||||
<ai-select
|
<ai-select
|
||||||
v-model="search.gatewayId"
|
v-model="search.source"
|
||||||
clearable
|
clearable
|
||||||
placeholder="请选择数据来源"
|
placeholder="请选择数据来源"
|
||||||
:selectList="dict.getDict('EP_registerInfoType')"
|
:selectList="dict.getDict('EP_source')"
|
||||||
@change="search.current = 1, getList()">
|
@change="search.current = 1, getList()">
|
||||||
</ai-select>
|
</ai-select>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
@@ -114,10 +114,12 @@
|
|||||||
name: '',
|
name: '',
|
||||||
gatewayId: '',
|
gatewayId: '',
|
||||||
status: '',
|
status: '',
|
||||||
|
riskStatus: '',
|
||||||
arriveAreaId: '',
|
arriveAreaId: '',
|
||||||
queryBeginTime: '',
|
queryBeginTime: '',
|
||||||
queryEndTime: '',
|
queryEndTime: '',
|
||||||
infoType: 1
|
infoType: 1,
|
||||||
|
source: ''
|
||||||
},
|
},
|
||||||
info: {},
|
info: {},
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
@@ -135,12 +137,15 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
label: '到达地区'
|
label: '到达地区'
|
||||||
},
|
},
|
||||||
{ prop: 'companionCount', align: 'center', label: '数据来源' },
|
{ prop: 'source',
|
||||||
|
align: 'center',
|
||||||
|
label: '数据来源',
|
||||||
|
formart: v => this.dict.getLabel('EP_riskStatus', v) },
|
||||||
{
|
{
|
||||||
prop: 'riskLevel',
|
prop: 'riskStatus',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
label: '风险状态',
|
label: '风险状态',
|
||||||
formart: v => this.dict.getLabel('EP_riskLevel', v)
|
formart: v => this.dict.getLabel('EP_riskStatus', v)
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
ids: [],
|
ids: [],
|
||||||
@@ -163,7 +168,7 @@
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.search.arriveAreaId = res.data
|
this.search.arriveAreaId = res.data
|
||||||
this.getTotalInfo()
|
this.getTotalInfo()
|
||||||
this.dict.load(['EP_riskLevel', 'EP_handleType', 'modeType']).then(() => {
|
this.dict.load(['EP_riskLevel', 'EP_handleType', 'modeType', 'EP_riskStatus', 'EP_source']).then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user