2023-05-10 08:40:05 +08:00
|
|
|
<template>
|
2023-06-08 19:31:07 +08:00
|
|
|
<div class="station-operation">
|
|
|
|
<!-- 左侧列表 -->
|
2023-06-20 15:17:32 +08:00
|
|
|
<div :class="'data-container' + (!leftPaneShow ? ' hide' : '')">
|
2023-06-08 19:31:07 +08:00
|
|
|
<a-collapse v-model="activeKey" expandIconPosition="right" accordion>
|
|
|
|
<template slot="expandIcon">
|
2023-06-26 15:59:03 +08:00
|
|
|
<img src="@/assets/images/station-operation/toggle.png" alt="" />
|
2023-06-08 19:31:07 +08:00
|
|
|
</template>
|
2023-06-15 19:43:58 +08:00
|
|
|
<!-- All Data -->
|
2023-06-08 19:31:07 +08:00
|
|
|
<a-collapse-panel key="1">
|
|
|
|
<template slot="header">
|
|
|
|
<div class="title">
|
2023-06-15 19:43:58 +08:00
|
|
|
<div class="title-text">All Data</div>
|
2023-06-08 19:31:07 +08:00
|
|
|
<div class="title-rect">
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
</div>
|
2023-06-09 18:50:47 +08:00
|
|
|
|
|
|
|
<!-- 头部操作栏 -->
|
2023-06-08 19:31:07 +08:00
|
|
|
<div class="title-operator">
|
2023-06-12 20:34:21 +08:00
|
|
|
<div @click.stop="handleShowSearch">
|
|
|
|
<img src="@/assets/images/station-operation/search.png" alt="" />
|
|
|
|
</div>
|
|
|
|
<div @click.stop="handleShowFilter">
|
|
|
|
<img src="@/assets/images/station-operation/filter.png" alt="" />
|
|
|
|
</div>
|
2023-06-08 19:31:07 +08:00
|
|
|
</div>
|
2023-06-09 18:50:47 +08:00
|
|
|
<!-- 头部操作栏结束 -->
|
2023-06-08 19:31:07 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
2023-06-12 20:34:21 +08:00
|
|
|
<ScrollContainer
|
|
|
|
ref="scrollContainerRef"
|
|
|
|
direction="verticle"
|
|
|
|
:scrollContainer="getScrollContainer"
|
2023-06-15 19:43:58 +08:00
|
|
|
class="data-list has-search"
|
2023-06-12 20:34:21 +08:00
|
|
|
:class="{
|
|
|
|
'show-search': searchPlacementVisible
|
|
|
|
}"
|
|
|
|
>
|
|
|
|
<div class="search-filter-placement">
|
|
|
|
<!-- 搜索 -->
|
|
|
|
<a-input-search
|
|
|
|
v-if="searchVisible"
|
|
|
|
placeholder="Input Search Text"
|
|
|
|
v-model="filter.searchText"
|
|
|
|
allow-clear
|
|
|
|
@search="onFilterChange"
|
|
|
|
>
|
|
|
|
<img slot="enterButton" src="@/assets/images/station-operation/search.png" alt="" />
|
|
|
|
</a-input-search>
|
|
|
|
<!-- 搜索结束 -->
|
|
|
|
|
|
|
|
<!-- 筛选 -->
|
|
|
|
<a-row v-if="filterVisible" :gutter="10" style="width: 100%">
|
|
|
|
<a-col :span="12">
|
|
|
|
<j-dict-select-tag
|
|
|
|
v-model="filter.status"
|
|
|
|
:getPopupContainer="getDictSelectTagContainer"
|
|
|
|
placeholder="Select Status"
|
|
|
|
dictCode="STATION_STATUS"
|
|
|
|
style="width: 100%"
|
|
|
|
@change="onFilterChange"
|
|
|
|
></j-dict-select-tag>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<custom-select
|
|
|
|
v-model="filter.type"
|
|
|
|
:options="stationTypeList"
|
|
|
|
allow-clear
|
|
|
|
show-search
|
|
|
|
@change="onFilterChange"
|
|
|
|
placeholder="Select Type"
|
|
|
|
></custom-select>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
<!-- 筛选结束 -->
|
|
|
|
</div>
|
2023-06-15 19:43:58 +08:00
|
|
|
<div class="data-list-content">
|
|
|
|
<a-spin v-if="isGettingDataList"></a-spin>
|
2023-06-20 15:17:32 +08:00
|
|
|
<custom-empty v-if="!isGettingDataList && !dataList.length" style="margin-top: 40px"></custom-empty>
|
|
|
|
<RecycleScroller
|
|
|
|
ref="customScrollContainerRef"
|
|
|
|
class="scroller"
|
|
|
|
:items="dataList"
|
|
|
|
:item-size="129"
|
|
|
|
key-field="stationId"
|
|
|
|
v-slot="{ item }"
|
|
|
|
>
|
|
|
|
<DataListItem :item="item" @click.native="locateFacility(item)"></DataListItem>
|
|
|
|
</RecycleScroller>
|
2023-06-08 19:31:07 +08:00
|
|
|
</div>
|
|
|
|
<div class="shadow"></div>
|
|
|
|
</ScrollContainer>
|
|
|
|
</a-collapse-panel>
|
2023-06-15 19:43:58 +08:00
|
|
|
<!-- All Data 结束 -->
|
|
|
|
<!-- Focus Data -->
|
2023-06-08 19:31:07 +08:00
|
|
|
<a-collapse-panel key="2">
|
|
|
|
<template slot="header">
|
|
|
|
<div class="title">
|
2023-06-15 19:43:58 +08:00
|
|
|
<div class="title-text" style="width: 180px">Focus Data</div>
|
2023-06-08 19:31:07 +08:00
|
|
|
<div class="title-rect">
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
<span></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
2023-06-15 19:43:58 +08:00
|
|
|
<ScrollContainer ref="scrollContainer2Ref" direction="verticle" class="data-list">
|
|
|
|
<div class="data-list-content">
|
|
|
|
<a-spin v-if="isGettingFollowedDataList"></a-spin>
|
2023-06-09 18:50:47 +08:00
|
|
|
<template v-else>
|
2023-06-15 19:43:58 +08:00
|
|
|
<DataListItem
|
|
|
|
v-for="item of followedDataList"
|
|
|
|
:key="item.id"
|
|
|
|
:item="item"
|
|
|
|
@click.native="locateFacility(item)"
|
|
|
|
></DataListItem>
|
|
|
|
<custom-empty v-if="!followedDataList.length" style="margin-top: 40px"></custom-empty>
|
2023-06-09 18:50:47 +08:00
|
|
|
</template>
|
2023-06-08 19:31:07 +08:00
|
|
|
</div>
|
|
|
|
<div class="shadow"></div>
|
|
|
|
</ScrollContainer>
|
|
|
|
</a-collapse-panel>
|
2023-06-15 19:43:58 +08:00
|
|
|
<!-- Focus Data 结束 -->
|
2023-06-08 19:31:07 +08:00
|
|
|
</a-collapse>
|
2023-06-20 15:17:32 +08:00
|
|
|
|
|
|
|
<!-- 展开左侧配置栏按钮开始 -->
|
2023-06-26 15:59:03 +08:00
|
|
|
<div class="toggle-show-btn" @click="leftPaneShow = !leftPaneShow">
|
|
|
|
<a-icon v-if="leftPaneShow" type="menu-fold" />
|
|
|
|
<a-icon v-else type="menu-unfold" />
|
2023-06-20 15:17:32 +08:00
|
|
|
</div>
|
|
|
|
<!-- 展开左侧配置栏按钮结束 -->
|
2023-06-08 19:31:07 +08:00
|
|
|
</div>
|
|
|
|
<!-- 右侧地图 -->
|
|
|
|
<div class="station-operation-map">
|
2023-06-15 19:43:58 +08:00
|
|
|
<Map
|
2023-06-25 18:39:04 +08:00
|
|
|
ref="mapRef"
|
2023-06-15 19:43:58 +08:00
|
|
|
token="AAPK2b935e8bbf564ef581ca3c6fcaa5f2a71ZH84cPqqFvyz3KplFRHP8HyAwJJkh6cnpcQ-qkWh5aiyDQsGJbsXglGx0QM2cPm"
|
|
|
|
>
|
2023-06-26 17:43:04 +08:00
|
|
|
<MapMarker :list="markerList" :marker-type="markerType" :radius="circleRadius" @markerClick="onMarkerClick" />
|
|
|
|
<MapPane
|
|
|
|
ref="mapPane"
|
|
|
|
:treeData="treeData"
|
|
|
|
@changeMarker="onChangeMarker"
|
|
|
|
@filterMarker="onFilterMarker"
|
|
|
|
@drawCircle="onDrawCircle"
|
|
|
|
/>
|
2023-06-09 18:50:47 +08:00
|
|
|
</Map>
|
2023-06-08 19:31:07 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import Map from './components/Map.vue'
|
2023-06-09 18:50:47 +08:00
|
|
|
import MapMarker from './components/MapMarker.vue'
|
|
|
|
import MapPane from './components/MapPane.vue'
|
2023-06-15 19:43:58 +08:00
|
|
|
import DataListItem from './components/DataListItem.vue'
|
2023-06-08 19:31:07 +08:00
|
|
|
import ScrollContainer from '@/components/ScrollContainer/index.vue'
|
2023-06-09 18:50:47 +08:00
|
|
|
import { getAction } from '../../api/manage'
|
2023-06-12 20:34:21 +08:00
|
|
|
import { cloneDeep } from 'lodash'
|
2023-06-08 19:31:07 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Map,
|
2023-06-09 18:50:47 +08:00
|
|
|
MapMarker,
|
|
|
|
MapPane,
|
2023-06-15 19:43:58 +08:00
|
|
|
ScrollContainer,
|
|
|
|
DataListItem
|
2023-06-08 19:31:07 +08:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
activeKey: '1',
|
2023-06-12 20:34:21 +08:00
|
|
|
|
2023-06-15 19:43:58 +08:00
|
|
|
isGettingDataList: false,
|
|
|
|
isGettingFollowedDataList: false,
|
2023-06-14 20:05:12 +08:00
|
|
|
|
2023-06-15 19:43:58 +08:00
|
|
|
dataList: [], // 左侧All Data 列表
|
|
|
|
followedDataList: [], // 关注
|
|
|
|
markerList: [], // 地图上标记点列表
|
2023-06-26 17:43:04 +08:00
|
|
|
markerType: 1, // 是否绘制地图上的圆
|
|
|
|
circleRadius: 0,
|
2023-06-12 20:34:21 +08:00
|
|
|
|
|
|
|
searchPlacementVisible: false, // 搜索栏占位是否显示
|
|
|
|
|
|
|
|
searchVisible: false, // 搜索组件是否显示
|
|
|
|
|
|
|
|
filter: {
|
|
|
|
searchText: undefined,
|
|
|
|
status: undefined,
|
|
|
|
type: undefined
|
|
|
|
},
|
|
|
|
|
|
|
|
filterVisible: false, // 筛选组件是否显示
|
2023-06-20 15:17:32 +08:00
|
|
|
leftPaneShow: true, // 左侧面板是否展示
|
2023-06-12 20:34:21 +08:00
|
|
|
|
2023-06-14 20:05:12 +08:00
|
|
|
stationTypeList: [],
|
|
|
|
|
|
|
|
treeData: [] // 台站树列表
|
2023-06-08 19:31:07 +08:00
|
|
|
}
|
|
|
|
},
|
2023-06-09 18:50:47 +08:00
|
|
|
created() {
|
|
|
|
this.getStationList()
|
2023-06-14 20:05:12 +08:00
|
|
|
this.getFollowedStationList()
|
2023-06-12 20:34:21 +08:00
|
|
|
this.getStationTypeList()
|
2023-06-14 20:05:12 +08:00
|
|
|
this.getStationTree()
|
2023-06-09 18:50:47 +08:00
|
|
|
},
|
2023-06-08 19:31:07 +08:00
|
|
|
methods: {
|
2023-06-09 18:50:47 +08:00
|
|
|
// 获取站点列表
|
|
|
|
async getStationList() {
|
|
|
|
try {
|
2023-06-15 19:43:58 +08:00
|
|
|
this.isGettingDataList = true
|
2023-06-14 20:05:12 +08:00
|
|
|
const res = await getAction('/jeecg-station-operation/stationOperation/findList')
|
2023-06-15 19:43:58 +08:00
|
|
|
this.originalDataList = res // 保留初始版本
|
|
|
|
this.dataList = cloneDeep(res)
|
|
|
|
this.markerList = cloneDeep(res)
|
2023-06-14 20:05:12 +08:00
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$refs.scrollContainerRef.checkScrollEnd()
|
|
|
|
})
|
2023-06-09 18:50:47 +08:00
|
|
|
} catch (error) {
|
|
|
|
console.error(error)
|
|
|
|
} finally {
|
2023-06-15 19:43:58 +08:00
|
|
|
this.isGettingDataList = false
|
2023-06-09 18:50:47 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2023-06-14 20:05:12 +08:00
|
|
|
// 获取已关注站点列表
|
|
|
|
async getFollowedStationList() {
|
|
|
|
try {
|
2023-06-15 19:43:58 +08:00
|
|
|
this.isGettingFollowedDataList = true
|
2023-06-14 20:05:12 +08:00
|
|
|
const res = await getAction('/jeecg-station-operation/sysUserFocusStation/findList')
|
2023-06-15 19:43:58 +08:00
|
|
|
this.followedDataList = res
|
2023-06-14 20:05:12 +08:00
|
|
|
|
|
|
|
const scrollContainer2Ref = this.$refs.scrollContainer2Ref
|
|
|
|
if (scrollContainer2Ref) {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
scrollContainer2Ref.checkScrollEnd()
|
|
|
|
})
|
|
|
|
}
|
|
|
|
} catch (error) {
|
|
|
|
console.error(error)
|
|
|
|
} finally {
|
2023-06-15 19:43:58 +08:00
|
|
|
this.isGettingFollowedDataList = false
|
2023-06-14 20:05:12 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2023-06-12 20:34:21 +08:00
|
|
|
// 获取站点类型
|
|
|
|
async getStationTypeList() {
|
|
|
|
try {
|
2023-06-26 18:09:24 +08:00
|
|
|
const res = await getAction('/jeecg-station-operation/stationOperation/findStationType')
|
2023-06-12 20:34:21 +08:00
|
|
|
this.stationTypeList = res.filter(item => item).map(item => ({ label: item, value: item }))
|
|
|
|
} catch (error) {
|
|
|
|
console.error(error)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2023-06-15 19:43:58 +08:00
|
|
|
// 获取 台站树列表
|
2023-06-14 20:05:12 +08:00
|
|
|
async getStationTree() {
|
|
|
|
try {
|
|
|
|
const { success, result, message } = await getAction('/stationOperation/findTree')
|
2023-06-15 19:43:58 +08:00
|
|
|
if (success) {
|
2023-06-19 19:52:28 +08:00
|
|
|
result.forEach(item => {
|
|
|
|
item.stationCode = item.code
|
|
|
|
item.stationId = `root_${item.stationId}`
|
|
|
|
item.children.forEach(child => {
|
|
|
|
child.stationCode = child.code
|
|
|
|
child.stationId = `${item.stationId}_parent_${child.stationId}`
|
|
|
|
})
|
|
|
|
})
|
2023-06-14 20:05:12 +08:00
|
|
|
this.treeData = result
|
2023-06-15 19:43:58 +08:00
|
|
|
} else {
|
2023-06-14 20:05:12 +08:00
|
|
|
this.$message.error(message)
|
|
|
|
}
|
|
|
|
} catch (error) {
|
2023-06-15 19:43:58 +08:00
|
|
|
console.error(error)
|
2023-06-14 20:05:12 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2023-06-15 19:43:58 +08:00
|
|
|
// 显示搜索栏
|
2023-06-12 20:34:21 +08:00
|
|
|
handleShowSearch() {
|
2023-06-26 15:59:03 +08:00
|
|
|
this.activeKey = 1
|
2023-06-12 20:34:21 +08:00
|
|
|
if (this.filterVisible) {
|
|
|
|
this.searchVisible = true
|
|
|
|
this.filterVisible = false
|
|
|
|
this.searchPlacementVisible = true
|
|
|
|
} else {
|
|
|
|
this.searchPlacementVisible = !this.searchPlacementVisible
|
|
|
|
if (this.searchPlacementVisible) {
|
|
|
|
this.searchVisible = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
// 显示筛选栏
|
|
|
|
handleShowFilter() {
|
2023-06-26 15:59:03 +08:00
|
|
|
this.activeKey = 1
|
2023-06-12 20:34:21 +08:00
|
|
|
if (this.searchVisible) {
|
|
|
|
this.searchVisible = false
|
|
|
|
this.filterVisible = true
|
|
|
|
this.searchPlacementVisible = true
|
|
|
|
} else {
|
|
|
|
this.searchPlacementVisible = !this.searchPlacementVisible
|
|
|
|
if (this.searchPlacementVisible) {
|
|
|
|
this.filterVisible = true
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 19:31:07 +08:00
|
|
|
},
|
|
|
|
|
2023-06-15 19:43:58 +08:00
|
|
|
// 左侧 All Data 筛选
|
2023-06-12 20:34:21 +08:00
|
|
|
onFilterChange() {
|
2023-06-15 19:43:58 +08:00
|
|
|
this.dataList = this.originalDataList.filter(dataItem => {
|
2023-06-12 20:34:21 +08:00
|
|
|
const filterSearchText =
|
|
|
|
!this.filter.searchText ||
|
2023-06-15 19:43:58 +08:00
|
|
|
-1 !== dataItem.stationName.toLowerCase().indexOf(this.filter.searchText.toLowerCase())
|
|
|
|
const filterStatus = !this.filter.status || this.filter.status == dataItem.status
|
2023-06-26 18:09:24 +08:00
|
|
|
const filterType = !this.filter.type || this.filter.type == dataItem.stationType
|
2023-06-12 20:34:21 +08:00
|
|
|
return filterSearchText && filterStatus && filterType
|
|
|
|
})
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$refs.scrollContainerRef.checkScrollEnd()
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
2023-06-15 19:43:58 +08:00
|
|
|
// 定位台站
|
|
|
|
locateFacility(stationItem) {
|
|
|
|
const find = this.markerList.find(
|
|
|
|
markerItem => markerItem.stationId == stationItem.stationId && markerItem.stationType == stationItem.stationType
|
|
|
|
)
|
|
|
|
if (!find) {
|
|
|
|
// 如果未显示,则不定位
|
|
|
|
return
|
|
|
|
}
|
2023-06-25 18:39:04 +08:00
|
|
|
const { lon, lat, stationType, stationId } = stationItem
|
|
|
|
this.$refs.mapRef.panTo([lon, lat])
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
// 在panTo结束后执行动画
|
|
|
|
const overlays = this.$refs.mapRef.map.getOverlays()
|
2023-06-26 18:26:38 +08:00
|
|
|
const currOverlay = overlays.getArray().find(item => item.id == `marker_${stationType}_${stationId}`)
|
2023-06-25 18:39:04 +08:00
|
|
|
const innerEle = currOverlay.getElement()
|
|
|
|
innerEle.classList.add('ani-bounding')
|
|
|
|
|
|
|
|
function listener() {
|
|
|
|
this.classList.remove('ani-bounding')
|
|
|
|
this.removeEventListener('animationend', listener)
|
|
|
|
}
|
|
|
|
|
|
|
|
// 执行动画完毕,移除动画类
|
|
|
|
innerEle.addEventListener('animationend', listener)
|
|
|
|
}, 1000)
|
2023-06-15 19:43:58 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
// 修改地图上的marker列表
|
|
|
|
onChangeMarker(markerList) {
|
|
|
|
this.markerList = markerList
|
|
|
|
},
|
|
|
|
|
2023-06-26 17:43:04 +08:00
|
|
|
// 是否绘制圆圈
|
|
|
|
onDrawCircle({ markerType, radius }) {
|
|
|
|
this.markerType = markerType
|
|
|
|
this.circleRadius = radius
|
|
|
|
},
|
|
|
|
|
2023-06-15 19:43:58 +08:00
|
|
|
/**
|
|
|
|
* 根据类型筛选地图上的marker列表
|
|
|
|
*/
|
2023-06-19 19:52:28 +08:00
|
|
|
onFilterMarker({ filterType, filterDataQuality }) {
|
2023-06-20 15:17:32 +08:00
|
|
|
console.log(
|
|
|
|
'%c [ filterType, filterDataQuality ]-343',
|
|
|
|
'font-size:13px; background:pink; color:#bf2c9f;',
|
|
|
|
filterType,
|
|
|
|
filterDataQuality
|
|
|
|
)
|
2023-06-19 19:52:28 +08:00
|
|
|
this.markerList = this.originalDataList.filter(item => filterType.includes(item.stationType))
|
2023-06-15 19:43:58 +08:00
|
|
|
},
|
|
|
|
|
2023-06-16 18:58:31 +08:00
|
|
|
// 地图图标点击
|
|
|
|
onMarkerClick() {
|
|
|
|
this.$refs.mapPane.handleOpenAnalyzeModal()
|
|
|
|
},
|
|
|
|
|
2023-06-12 20:34:21 +08:00
|
|
|
getScrollContainer() {
|
2023-06-14 20:05:12 +08:00
|
|
|
return this.$refs.customScrollContainerRef.$el
|
2023-06-12 20:34:21 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
getDictSelectTagContainer() {
|
|
|
|
return document.body
|
|
|
|
}
|
2023-06-08 19:31:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
.station-operation {
|
|
|
|
position: relative;
|
|
|
|
height: 100%;
|
2023-06-15 19:43:58 +08:00
|
|
|
.data-container {
|
2023-06-08 19:31:07 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 348px;
|
|
|
|
height: 100%;
|
|
|
|
background-color: rgba(2, 26, 29, 0.9);
|
|
|
|
padding-left: 5px;
|
|
|
|
z-index: 1;
|
2023-06-20 15:17:32 +08:00
|
|
|
transition: transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
|
|
|
|
|
|
&.hide {
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-show-btn {
|
|
|
|
position: absolute;
|
2023-06-26 15:59:03 +08:00
|
|
|
right: -40px;
|
|
|
|
top: 10px;
|
2023-06-20 15:17:32 +08:00
|
|
|
cursor: pointer;
|
2023-06-26 15:59:03 +08:00
|
|
|
font-size: 20px;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
line-height: 30px;
|
|
|
|
text-align: center;
|
2023-06-26 17:43:04 +08:00
|
|
|
color: #00e9fe;
|
2023-06-26 15:59:03 +08:00
|
|
|
background-color: #021a1d;
|
2023-06-20 15:17:32 +08:00
|
|
|
}
|
2023-06-08 19:31:07 +08:00
|
|
|
|
|
|
|
::v-deep {
|
|
|
|
.ant-collapse {
|
|
|
|
height: 100%;
|
2023-06-26 15:59:03 +08:00
|
|
|
padding-top: 10px;
|
2023-06-08 19:31:07 +08:00
|
|
|
padding-bottom: 11px;
|
|
|
|
|
|
|
|
@titleHeight: 45px;
|
|
|
|
&-item {
|
|
|
|
max-height: calc(100% - @titleHeight);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-06-26 15:59:03 +08:00
|
|
|
|
|
|
|
&-active {
|
|
|
|
.ant-collapse-arrow {
|
2023-06-26 17:43:04 +08:00
|
|
|
transform: translateY(-50%) rotate(-90deg);
|
2023-06-26 15:59:03 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 19:31:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-header {
|
|
|
|
min-height: @titleHeight;
|
|
|
|
border-top: 1px solid rgba(12, 235, 201, 0.3);
|
|
|
|
border-bottom: 4px solid rgba(12, 235, 201, 0.2);
|
|
|
|
height: auto;
|
2023-06-12 20:34:21 +08:00
|
|
|
background-color: rgba(1, 18, 20, 0.6);
|
2023-06-26 15:59:03 +08:00
|
|
|
padding-right: 25px;
|
2023-06-12 20:34:21 +08:00
|
|
|
|
2023-06-08 19:31:07 +08:00
|
|
|
.ant-collapse-arrow {
|
|
|
|
right: 9px;
|
|
|
|
transition: transform 0.24s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
display: flex;
|
|
|
|
&-box {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
&.ant-motion-collapse-legacy {
|
2023-06-15 19:43:58 +08:00
|
|
|
.data-list {
|
2023-06-08 19:31:07 +08:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 左侧大标题
|
|
|
|
.title {
|
|
|
|
line-height: 40px;
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
font-family: MicrogrammaD-MediExte;
|
|
|
|
font-size: 18px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #0cebc9;
|
|
|
|
|
|
|
|
&-text {
|
|
|
|
padding-left: 20px;
|
|
|
|
width: 134px;
|
|
|
|
background-color: rgba(12, 235, 201, 0.05);
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-rect {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
span {
|
|
|
|
background-color: rgba(12, 235, 201, 0.2);
|
|
|
|
vertical-align: middle;
|
|
|
|
&:first-child {
|
|
|
|
width: 4px;
|
|
|
|
height: 4px;
|
|
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
|
|
width: 6px;
|
|
|
|
height: 6px;
|
|
|
|
margin-right: 6px;
|
|
|
|
}
|
|
|
|
&:nth-child(3) {
|
|
|
|
width: 4px;
|
|
|
|
height: 4px;
|
|
|
|
margin-right: 9px;
|
|
|
|
}
|
|
|
|
&:nth-child(4) {
|
|
|
|
width: 1px;
|
|
|
|
height: 16px;
|
|
|
|
margin-right: 23px;
|
|
|
|
}
|
|
|
|
&:nth-child(5) {
|
|
|
|
width: 2px;
|
|
|
|
height: 2px;
|
|
|
|
margin-right: 24px;
|
|
|
|
}
|
|
|
|
&:nth-child(6) {
|
|
|
|
width: 4px;
|
|
|
|
height: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-operator {
|
|
|
|
position: absolute;
|
|
|
|
right: 5px;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 6px;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
div {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
line-height: 18px;
|
|
|
|
text-align: center;
|
|
|
|
border: 1px solid #166464;
|
|
|
|
background-color: #053842;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 左侧列表内容
|
2023-06-15 19:43:58 +08:00
|
|
|
.data-list {
|
2023-06-08 19:31:07 +08:00
|
|
|
width: 100%;
|
|
|
|
margin-right: 2px;
|
|
|
|
padding: 2px 0 10px 7px;
|
|
|
|
overflow: auto;
|
|
|
|
|
2023-06-12 20:34:21 +08:00
|
|
|
@searchHeight: 45px;
|
|
|
|
.search-filter-placement {
|
|
|
|
height: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
transition: height 0.3s ease-in-out;
|
|
|
|
overflow: hidden;
|
2023-06-19 19:52:28 +08:00
|
|
|
|
|
|
|
.ant-input-search {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2023-06-12 20:34:21 +08:00
|
|
|
}
|
|
|
|
|
2023-06-09 18:50:47 +08:00
|
|
|
&-content {
|
|
|
|
.ant-spin {
|
|
|
|
width: 100%;
|
|
|
|
height: 100px;
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 90px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-12 20:34:21 +08:00
|
|
|
&.has-search {
|
2023-06-15 19:43:58 +08:00
|
|
|
.data-list-content {
|
2023-06-12 20:34:21 +08:00
|
|
|
transition: height 0.3s ease-in-out;
|
|
|
|
height: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.show-search {
|
|
|
|
.search-filter-placement {
|
|
|
|
height: @searchHeight;
|
|
|
|
}
|
|
|
|
|
2023-06-15 19:43:58 +08:00
|
|
|
.data-list-content {
|
2023-06-12 20:34:21 +08:00
|
|
|
height: calc(100% - @searchHeight);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-08 19:31:07 +08:00
|
|
|
.shadow {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
width: calc(100% - 15px);
|
|
|
|
height: 50px;
|
|
|
|
background: linear-gradient(to top, #021c21 0, transparent 100%);
|
|
|
|
transition: opacity 0.24s linear;
|
2023-06-26 15:59:03 +08:00
|
|
|
pointer-events: none;
|
2023-06-08 19:31:07 +08:00
|
|
|
}
|
|
|
|
&.scroll-end {
|
|
|
|
.shadow {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 地图
|
|
|
|
&-map {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2023-06-25 14:18:45 +08:00
|
|
|
overflow: hidden;
|
2023-06-08 19:31:07 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-14 20:05:12 +08:00
|
|
|
|
|
|
|
.scroller {
|
|
|
|
height: 100%;
|
|
|
|
}
|
2023-06-08 19:31:07 +08:00
|
|
|
</style>
|
2023-06-25 18:39:04 +08:00
|
|
|
<style>
|
|
|
|
.ani-bounding {
|
|
|
|
animation: bounding 1s cubic-bezier(0.075, 0.82, 0.165, 1) 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes bounding {
|
|
|
|
0% {
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
transform: translateY(-10px);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|