|
@@ -429,14 +429,12 @@ const handleClusterInit = (clusterer: any) => {
|
|
|
:controls="mapControls"
|
|
:controls="mapControls"
|
|
|
:min-zoom="3"
|
|
:min-zoom="3"
|
|
|
@init="handleMapInit"
|
|
@init="handleMapInit"
|
|
|
- @zoomend="syncCurrentZoom"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ @zoomend="syncCurrentZoom">
|
|
|
<tdt-marker-clusterer
|
|
<tdt-marker-clusterer
|
|
|
:markers="clusterMarkers"
|
|
:markers="clusterMarkers"
|
|
|
:styles="clusterStyles"
|
|
:styles="clusterStyles"
|
|
|
@click="handleMarkerClick"
|
|
@click="handleMarkerClick"
|
|
|
- @init="handleClusterInit"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ @init="handleClusterInit" />
|
|
|
|
|
|
|
|
<tdt-infowindow
|
|
<tdt-infowindow
|
|
|
:target="infoWindowTarget"
|
|
:target="infoWindowTarget"
|
|
@@ -445,8 +443,7 @@ const handleClusterInit = (clusterer: any) => {
|
|
|
:offset="[0, -30]"
|
|
:offset="[0, -30]"
|
|
|
:auto-pan="true"
|
|
:auto-pan="true"
|
|
|
:close-on-click="true"
|
|
:close-on-click="true"
|
|
|
- @update:target="handleInfoWindowTargetChange"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ @update:target="handleInfoWindowTargetChange">
|
|
|
<div v-if="activeDevice" class="device-infowindow">
|
|
<div v-if="activeDevice" class="device-infowindow">
|
|
|
<div class="device-infowindow__list">
|
|
<div class="device-infowindow__list">
|
|
|
<div class="device-infowindow__row">
|
|
<div class="device-infowindow__row">
|
|
@@ -501,8 +498,7 @@ const handleClusterInit = (clusterer: any) => {
|
|
|
@touchstart.stop
|
|
@touchstart.stop
|
|
|
@touchmove.stop
|
|
@touchmove.stop
|
|
|
@touchend.stop
|
|
@touchend.stop
|
|
|
- @wheel.stop
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ @wheel.stop>
|
|
|
<div class="hero-panel__head">
|
|
<div class="hero-panel__head">
|
|
|
<div>
|
|
<div>
|
|
|
<div class="hero-panel__kicker">PMS · TianDiTu</div>
|
|
<div class="hero-panel__kicker">PMS · TianDiTu</div>
|
|
@@ -513,22 +509,19 @@ const handleClusterInit = (clusterer: any) => {
|
|
|
</div>
|
|
</div>
|
|
|
<div
|
|
<div
|
|
|
class="hero-panel__map-mode -translate-y-1"
|
|
class="hero-panel__map-mode -translate-y-1"
|
|
|
- :class="mapMode === 'TMAP_SATELLITE_MAP' ? 'is-satellite' : 'is-map'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ :class="mapMode === 'TMAP_SATELLITE_MAP' ? 'is-satellite' : 'is-map'">
|
|
|
<button
|
|
<button
|
|
|
type="button"
|
|
type="button"
|
|
|
class="mode-chip text-gray-6"
|
|
class="mode-chip text-gray-6"
|
|
|
:class="{ 'is-active': mapMode === 'TMAP_NORMAL_MAP' }"
|
|
:class="{ 'is-active': mapMode === 'TMAP_NORMAL_MAP' }"
|
|
|
- @click="switchMapMode('TMAP_NORMAL_MAP')"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ @click="switchMapMode('TMAP_NORMAL_MAP')">
|
|
|
地图
|
|
地图
|
|
|
</button>
|
|
</button>
|
|
|
<button
|
|
<button
|
|
|
type="button"
|
|
type="button"
|
|
|
class="mode-chip text-gray-6"
|
|
class="mode-chip text-gray-6"
|
|
|
:class="{ 'is-active': mapMode === 'TMAP_SATELLITE_MAP' }"
|
|
:class="{ 'is-active': mapMode === 'TMAP_SATELLITE_MAP' }"
|
|
|
- @click="switchMapMode('TMAP_SATELLITE_MAP')"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ @click="switchMapMode('TMAP_SATELLITE_MAP')">
|
|
|
卫星
|
|
卫星
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
@@ -569,8 +562,7 @@ const handleClusterInit = (clusterer: any) => {
|
|
|
@touchstart.stop
|
|
@touchstart.stop
|
|
|
@touchmove.stop
|
|
@touchmove.stop
|
|
|
@touchend.stop
|
|
@touchend.stop
|
|
|
- @wheel.stop
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ @wheel.stop>
|
|
|
<el-form size="default" label-position="top">
|
|
<el-form size="default" label-position="top">
|
|
|
<el-form-item label="关键词">
|
|
<el-form-item label="关键词">
|
|
|
<el-input v-model="keyword" clearable placeholder="设备名称 / 编码 / 位置">
|
|
<el-input v-model="keyword" clearable placeholder="设备名称 / 编码 / 位置">
|
|
@@ -590,8 +582,7 @@ const handleClusterInit = (clusterer: any) => {
|
|
|
filterable
|
|
filterable
|
|
|
clearable
|
|
clearable
|
|
|
:placeholder="t('deviceForm.deptHolder')"
|
|
:placeholder="t('deviceForm.deptHolder')"
|
|
|
- @change="handleDeptChange"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ @change="handleDeptChange" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="设备状态">
|
|
<el-form-item label="设备状态">
|
|
@@ -602,8 +593,7 @@ const handleClusterInit = (clusterer: any) => {
|
|
|
type="button"
|
|
type="button"
|
|
|
class="status-tab"
|
|
class="status-tab"
|
|
|
:class="{ 'is-active': statusFilter === item.value }"
|
|
:class="{ 'is-active': statusFilter === item.value }"
|
|
|
- @click="statusFilter = item.value"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ @click="statusFilter = item.value">
|
|
|
{{ item.label }}
|
|
{{ item.label }}
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
@@ -663,8 +653,7 @@ const handleClusterInit = (clusterer: any) => {
|
|
|
:ifLine="ifLine"
|
|
:ifLine="ifLine"
|
|
|
:dept="dept"
|
|
:dept="dept"
|
|
|
:deviceCode="deviceCode"
|
|
:deviceCode="deviceCode"
|
|
|
- ref="showDrawer"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ ref="showDrawer" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -683,8 +672,10 @@ const handleClusterInit = (clusterer: any) => {
|
|
|
--slate: #334155;
|
|
--slate: #334155;
|
|
|
|
|
|
|
|
position: relative;
|
|
position: relative;
|
|
|
|
|
+ z-index: 0;
|
|
|
height: var(--page-height);
|
|
height: var(--page-height);
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
|
|
+ isolation: isolate;
|
|
|
border: 1px solid rgb(203 213 225 / 70%);
|
|
border: 1px solid rgb(203 213 225 / 70%);
|
|
|
border-radius: 20px;
|
|
border-radius: 20px;
|
|
|
box-shadow: 0 24px 60px rgb(15 23 42 / 12%);
|
|
box-shadow: 0 24px 60px rgb(15 23 42 / 12%);
|