| | |
| | | import { showDeviceDetail } from "@/store"; |
| | | import { setupTokenRefresh, getDangerPoint } from "@/api/hpApi.js"; |
| | | import { convertToWKT } from "@/utils/wktUtils"; |
| | | import { getDeviceInfoShg } from "@/api/hpApi"; |
| | | import { deviceDictList, getDictName } from "@/constant/dict.js"; |
| | | |
| | | const route = useRoute(); |
| | | const simStore = useSimStore(); |
| | |
| | | getDangerPoint("110116110000").then((res) => { |
| | | simStore.DangerPoint = res.data.pageData; |
| | | }); |
| | | |
| | | getDeviceInfoShg().then((res) => { |
| | | simStore.devices = res.data.pageData; |
| | | }); |
| | | try { |
| | | const wktResult = convertToWKT(multiPolygonCoordinates); |
| | | // console.log(wktResult,'a'); |