-
+
这是弹窗
-
+
diff --git a/src/views/stationOperation/components/MapPane.vue b/src/views/stationOperation/components/MapPane.vue
index 5390315..97c8e39 100644
--- a/src/views/stationOperation/components/MapPane.vue
+++ b/src/views/stationOperation/components/MapPane.vue
@@ -54,7 +54,11 @@
-
+
@@ -67,8 +71,8 @@
Radius
@@ -79,6 +83,7 @@
:data-source="dataSource"
rowKey="id"
:pagination="false"
+ :loading="isGettingInfomationList"
>
@@ -105,14 +110,14 @@
-
-
-
+
+
+
{{ stateItem.title }}
-
+
@@ -141,7 +146,11 @@
-
+
@@ -211,6 +220,7 @@ import CustomModal from '@/components/CustomModal/index.vue'
import FilterImage from './filterImage'
import CustomTree from '@/components/CustomTree/index.vue'
import RealTimeDataChart from './RealTimeDataChart.vue'
+import { postAction } from '../../../api/manage'
// Filter中的筛选列表
const filterList = [
@@ -246,8 +256,8 @@ const filterList = [
}
]
-// Filter中的状态列表
-const stateList = [
+// Filter中的数据质量列表
+const dataQualityList = [
{
title: 'Excellent data quality',
icon: FilterImage.State1
@@ -284,75 +294,6 @@ const columns = [
}
]
-const dataSource = [
- {
- id: 1,
- nuclearfaclity: 'Cooper',
- station: 'USX74',
- distance: 504.366
- },
- {
- id: 11,
- nuclearfaclity: 'Davis Besse-1',
- station: 'USX74',
- distance: 504.366
- },
- {
- id: 2,
- nuclearfaclity: 'Cooper',
- station: 'USX74',
- distance: 504.366
- },
- {
- id: 3,
- nuclearfaclity: 'Davis Besse-1',
- station: 'USX74',
- distance: 504.366
- },
- {
- id: 4,
- nuclearfaclity: 'Cooper',
- station: 'USX74',
- distance: 504.366
- },
- {
- id: 5,
- nuclearfaclity: 'Davis Besse-1',
- station: 'USX74',
- distance: 504.366
- },
- {
- id: 6,
- nuclearfaclity: 'Cooper',
- station: 'USX74',
- distance: 504.366
- },
- {
- id: 7,
- nuclearfaclity: 'Davis Besse-1',
- station: 'USX74',
- distance: 504.366
- },
- {
- id: 8,
- nuclearfaclity: 'Cooper',
- station: 'USX74',
- distance: 504.366
- },
- {
- id: 9,
- nuclearfaclity: 'Davis Besse-1',
- station: 'USX74',
- distance: 504.366
- },
- {
- id: 10,
- nuclearfaclity: 'Cooper',
- station: 'USX74',
- distance: 504.366
- }
-]
-
const legendList = [
{
title: 'SPHDPREL',
@@ -380,12 +321,14 @@ const legendList = [
}
]
-const statusList = [{
- title: 'JPX38 23803',
-
-}, {
- title: 'JPX38 23804'
-}]
+const statusList = [
+ {
+ title: 'JPX38 23803'
+ },
+ {
+ title: 'JPX38 23804'
+ }
+]
export default {
props: {
@@ -394,7 +337,7 @@ export default {
default: 500
},
- stationList: {
+ treeData: {
type: Array
}
},
@@ -412,11 +355,13 @@ export default {
checkedKeys: [], // 选中的树节点
filterList, // 筛选类型列表
- stateList, // 状态类型列表
+ dataQualityList, // 数据质量列表
- dataSource: dataSource, // Infomation Radius 表格数据源
+ radius: 0, // 距离
+ dataSource: [], // Infomation Radius 表格数据源
+ isGettingInfomationList: false,
- dataStatusModalVisible: true, // 分析弹窗是否可见
+ dataStatusModalVisible: false, // 分析弹窗是否可见
dataStatusCheckedKeys: [], // 分析弹窗-左侧树选中的
leftPaneShow: true, // 左侧抽屉
@@ -428,6 +373,10 @@ export default {
},
created() {
this.initParentMapProps()
+ document.addEventListener('fullscreenchange', this.onFullScreenChange)
+ },
+ destroyed() {
+ document.removeEventListener('fullscreenchange', this.onFullScreenChange)
},
methods: {
initParentMapProps() {
@@ -439,11 +388,16 @@ export default {
},
handleFullScreen() {
- this.isFullScreen = true
+ const ele = document.querySelector('.station-operation')
+ ele.requestFullscreen()
},
handleExitFullScreen() {
- this.isFullScreen = false
+ document.exitFullscreen()
+ },
+
+ onFullScreenChange() {
+ this.isFullScreen = !!document.fullscreenElement
},
// 选中全部
@@ -460,6 +414,26 @@ export default {
this.checkedKeys = []
},
+ // 根据半径查询台站列表
+ async handleSearchByRadius() {
+ if (this.radius == null || this.radius == undefined) {
+ this.$message.warn('Please Input Radius To Search')
+ return
+ }
+ try {
+ this.isGettingInfomationList = true
+ const res = await postAction('/jeecg-station-operation/stationOperation/getHitEquList', {
+ radius: this.radius,
+ stationIds: []
+ })
+ console.log('%c [ ]-486', 'font-size:13px; background:pink; color:#bf2c9f;', res)
+ } catch (error) {
+ console.error(error)
+ } finally {
+ this.isGettingInfomationList = false
+ }
+ },
+
// 打开分析弹窗
handleOpenAnalyzeModal() {
this.dataStatusModalVisible = true
@@ -481,26 +455,13 @@ export default {
}
},
+ // 弹窗最大化
onModalFullScreen() {
this.showChart = false
this.$nextTick(() => {
this.showChart = true
})
}
- },
- computed: {
- treeData() {
- const set = new Set(this.stationList.map(item => item.countryCode))
- return Array.from(set).map((countryCode, index) => {
- return {
- title: countryCode,
- key: index.toString(),
- children: this.stationList
- .filter(item => item.countryCode == countryCode)
- .map(item => ({ title: item.stationCode, key: item.stationId.toString(), children: [] }))
- }
- })
- }
}
}
@@ -723,7 +684,7 @@ export default {
}
}
- .station-state-list {
+ .station-data-quality-list {
&-item {
margin-left: 9px;
height: 32px;
diff --git a/src/views/stationOperation/index.vue b/src/views/stationOperation/index.vue
index f2a0f43..e739849 100644
--- a/src/views/stationOperation/index.vue
+++ b/src/views/stationOperation/index.vue
@@ -79,29 +79,36 @@
-
+
-
-
+
+
- {{ item.stationCode }}
+ {{ item.stationName }}
- {{ item.type }}
+ {{ item.stationType }}
- {{ item.elevation }}m
+ {{ item.altitude }}
- {{ item.lon.toFixed(6) }} {{ item.lat.toFixed(6) }}
+ {{ Number(item.lon).toFixed(6) }} {{ Number(item.lat).toFixed(6) }}
@@ -111,12 +118,12 @@
- Normally
+ {{ item.signal }}
-
+
@@ -139,30 +146,30 @@
-