|
|
|
|
@ -21,7 +21,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="left">
|
|
|
|
|
<Ruler :box-pos="locationData"/>
|
|
|
|
|
<Ruler ref="rulerRef" :box-pos="locationData" :index="2"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right">
|
|
|
|
|
<div v-if="itemsId === 1" class="tabsItem">
|
|
|
|
|
@ -99,10 +99,11 @@
|
|
|
|
|
<el-table :data="tableData1" style="width: 100%">
|
|
|
|
|
<el-table-column type="selection" width="55"/>
|
|
|
|
|
<el-table-column label="序号" type="index" width="60"/>
|
|
|
|
|
<el-table-column property="coordinate" label="目标坐标" width="120"/>
|
|
|
|
|
<el-table-column property="Lon" label="目标经度" width="120"/>
|
|
|
|
|
<el-table-column property="Lat" label="目标纬度" width="120"/>
|
|
|
|
|
<el-table-column label="告警等级" width="160">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-rate v-model="scope.row.rate" disabled/>
|
|
|
|
|
<el-rate :model-value="scope.row.rate ||3" disabled/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
@ -387,7 +388,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script setup>
|
|
|
|
|
import Ruler from "@/components/ruler.vue";
|
|
|
|
|
import {onMounted, ref} from "vue";
|
|
|
|
|
import {nextTick, onMounted, ref} from "vue";
|
|
|
|
|
import {
|
|
|
|
|
getParasPos,
|
|
|
|
|
getParasSignalpro,
|
|
|
|
|
@ -513,6 +514,7 @@ const list = ref([
|
|
|
|
|
value2: '经纬度:(528,11)'
|
|
|
|
|
},
|
|
|
|
|
])
|
|
|
|
|
const rulerRef = ref()
|
|
|
|
|
const itemsId = ref(1)
|
|
|
|
|
const form1 = ref({})
|
|
|
|
|
const form2 = ref({})
|
|
|
|
|
@ -569,7 +571,7 @@ const date1 = ref([])
|
|
|
|
|
const setItemsId = (e) => {
|
|
|
|
|
itemsId.value = e
|
|
|
|
|
}
|
|
|
|
|
const locationData = ref({})
|
|
|
|
|
const locationData = ref({x: 200, y: 300, rotate: -45})
|
|
|
|
|
const currentPosition = ref({})
|
|
|
|
|
|
|
|
|
|
const processData = (data) => {
|
|
|
|
|
@ -579,9 +581,10 @@ const processData = (data) => {
|
|
|
|
|
console.log(data.radar_work_state)
|
|
|
|
|
radarWorkState.value = data.radar_work_state
|
|
|
|
|
}
|
|
|
|
|
if (data.ty === 1) {
|
|
|
|
|
if (data.FodName === '图像数据') {
|
|
|
|
|
}
|
|
|
|
|
if (data.ty === 2) {
|
|
|
|
|
if (data.FodName === 'fod信息') {
|
|
|
|
|
setDot(data)
|
|
|
|
|
}
|
|
|
|
|
if (data.ty === 3) {
|
|
|
|
|
}
|
|
|
|
|
@ -631,27 +634,56 @@ onMounted(() => {
|
|
|
|
|
getShildTableList()
|
|
|
|
|
points.value = localStorage.getItem('points') ? JSON.parse(localStorage.getItem('points')) : [
|
|
|
|
|
{
|
|
|
|
|
lon: 120.38532472236,
|
|
|
|
|
lat: 36.14505053622,
|
|
|
|
|
lon: 117.213524,
|
|
|
|
|
lat: 36.837967,
|
|
|
|
|
name: '点位1',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
lon: 120.38532472236,
|
|
|
|
|
lat: 36.15302618219,
|
|
|
|
|
lon: 117.213524,
|
|
|
|
|
lat: 36.847967,
|
|
|
|
|
name: '点位2',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
lon: 120.39109582218,
|
|
|
|
|
lat: 36.15302618219,
|
|
|
|
|
lon: 117.223524,
|
|
|
|
|
lat: 36.847967,
|
|
|
|
|
name: '点位3',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
lon: 120.39109582218,
|
|
|
|
|
lat: 36.14505053622,
|
|
|
|
|
lon: 117.223524,
|
|
|
|
|
lat: 36.837967,
|
|
|
|
|
name: '点位4',
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
getArea()
|
|
|
|
|
|
|
|
|
|
// setDot({
|
|
|
|
|
// "DarDatas": [{"Lon": 117.213524, "Lat": 36.837967}, {"Lon": 0.0, "Lat": 0.0}, {
|
|
|
|
|
// "Lon": 0.0,
|
|
|
|
|
// "Lat": 0.0
|
|
|
|
|
// }, {"Lon": 0.0, "Lat": 0.0}, {"Lon": 117.2134, "Lat": 36.837967}, {"Lon": 0.0, "Lat": 0.0}, {
|
|
|
|
|
// "Lon": 0.0,
|
|
|
|
|
// "Lat": 0.0
|
|
|
|
|
// }, {"Lon": 0.0, "Lat": 0.0}, {"Lon": 117.21341, "Lat": 36.837986}, {"Lon": 0.0, "Lat": 0.0}, {
|
|
|
|
|
// "Lon": 0.0,
|
|
|
|
|
// "Lat": 0.0
|
|
|
|
|
// }, {"Lon": 0.0, "Lat": 0.0}, {"Lon": 117.21337, "Lat": 36.838}, {"Lon": 0.0, "Lat": 0.0}],
|
|
|
|
|
// "Seq": 0,
|
|
|
|
|
// "MD5": "038fb0493c415f58c703ab205f9f2c94",
|
|
|
|
|
// "TimeStamp": 1757556826,
|
|
|
|
|
// "MissionID": 1757556826,
|
|
|
|
|
// "RngRes": 0.075,
|
|
|
|
|
// "RngNum": 0,
|
|
|
|
|
// "RngMin": 10.0,
|
|
|
|
|
// "AziRes": 0.1,
|
|
|
|
|
// "AziNum": 0,
|
|
|
|
|
// "AziMin": 0.03593219,
|
|
|
|
|
// "DataType": 20,
|
|
|
|
|
// "LonMin": 117.213844,
|
|
|
|
|
// "LatMin": 36.83799,
|
|
|
|
|
// "TarNum": 14,
|
|
|
|
|
// "ty": 0,
|
|
|
|
|
// "FodName": "fod信息"
|
|
|
|
|
// })
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const getOption = () => {
|
|
|
|
|
@ -797,6 +829,21 @@ const savePoint = () => {
|
|
|
|
|
localStorage.setItem('points', JSON.stringify(points.value))
|
|
|
|
|
getArea()
|
|
|
|
|
}
|
|
|
|
|
const setDot = (e) => {
|
|
|
|
|
let dots = e.DarDatas.map((v, k) => {
|
|
|
|
|
if (v.Lon == 0 && v.Lat == 0) return null
|
|
|
|
|
console.log(v)
|
|
|
|
|
console.log(area)
|
|
|
|
|
return {
|
|
|
|
|
x: 300 - (area.LonMax - v.Lon) / ((area.LonMax - area.LonMin) / 300),
|
|
|
|
|
y: 1800 - (area.LatMax - v.Lat) / ((area.LatMax - area.LatMin) / 1800),
|
|
|
|
|
index: k
|
|
|
|
|
}
|
|
|
|
|
}).filter(v => v)
|
|
|
|
|
tableData1.value = e.DarDatas
|
|
|
|
|
console.log(dots)
|
|
|
|
|
rulerRef.value.setDot(dots)
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style>
|
|
|
|
|
.app-container {
|
|
|
|
|
|