地图更改

This commit is contained in:
wangxk 2025-05-08 19:10:30 +08:00
parent a3f1191e7d
commit e93b3527dd
2 changed files with 24 additions and 21 deletions

View File

@ -1482,7 +1482,10 @@ function getSSELink() {
const data = JSON.parse(e.data)
console.log('SSE消息:', data)
if (data) {
dynamicCoordinates.value.push([data.lat, data.lon])
dynamicCoordinates.value.push([data.lon, data.lat])
if (dynamicCoordinates.value.length > 2) {
dynamicCoordinates.value.shift()
}
lineData.value.push({ x: data.UtcTime, y: data.alt })
}
} catch (err) {
@ -1916,7 +1919,7 @@ function texexceltClose() {
<div @click="tabbas = '2'" :class="tabbas == '2' ? 'mapbox_border' : 'mapbox_border1'">高程变化动态图</div>
</div>
<div v-show="tabbas == '1'" style="width:800px;height:600px;overflow: hidden;margin-top: 20px;">
<MapChart :points="dynamicCoordinates" />
<MapChart :coordinates="dynamicCoordinates" />
</div>
<div v-show="tabbas == '2'" style="width: 800px;height:600px;overflow: hidden;">
<Echart :chart-data="lineData" />

View File

@ -9,7 +9,7 @@ import { ref, onMounted, nextTick, defineAsyncComponent, onBeforeUnmount } from
import { Search } from '@element-plus/icons-vue'
import { ElMessageBox, ElMessage } from "element-plus";
import { tstaskList, getTsNodesTree, tsFilesPage, deleteTsFilesByIds } from "@/api/datamanagement";
import { listLocalAndBackup, compare, compareLocalList,automaticFileBackupByIds, compareMd5List, compareMinioList, compareLocal, compareMd5, compareMinio, uploadToBackup, downloadToLocal, deleteTsFilesById, automaticFileBackup, obtainUrl, listBackupTree, listLocalTree } from "@/api/fileSynchronization";
import { listLocalAndBackup, compare, compareLocalList, automaticFileBackupByIds, compareMd5List, compareMinioList, compareLocal, compareMd5, compareMinio, uploadToBackup, downloadToLocal, deleteTsFilesById, automaticFileBackup, obtainUrl, listBackupTree, listLocalTree } from "@/api/fileSynchronization";
import { debounce } from 'lodash-es';
import Page from '@/components/Pagination/page.vue';
//text
@ -115,26 +115,26 @@ function backups() {
params.nodeId = pathid.value
params.taskId = projectId.value
}
if(ids.length > 0){
automaticFileBackupByIds(params).then((res: any) => {
if (res.code == 0) {
ElMessage.success(res.msg)
getlocaltree()
getminiotree()
}
})
}else{
automaticFileBackup(params).then((res: any) => {
if (res.code == 0) {
ElMessage.success(res.msg)
getlocaltree()
getminiotree()
}
})
if (ids.length > 0) {
automaticFileBackupByIds(params).then((res: any) => {
if (res.code == 0) {
ElMessage.success(res.msg)
getlocaltree()
getminiotree()
}
})
} else {
automaticFileBackup(params).then((res: any) => {
if (res.code == 0) {
ElMessage.success(res.msg)
getlocaltree()
getminiotree()
}
})
}
})
}