|
@@ -569,7 +569,7 @@ import {
|
|
|
ThunderboltOutlined, SignalFilled, GlobalOutlined, HistoryOutlined, CloudUploadOutlined, RocketOutlined,
|
|
ThunderboltOutlined, SignalFilled, GlobalOutlined, HistoryOutlined, CloudUploadOutlined, RocketOutlined,
|
|
|
FieldTimeOutlined, CloudOutlined, CloudFilled, FolderOpenOutlined, RobotFilled, ArrowUpOutlined, CarryOutOutlined
|
|
FieldTimeOutlined, CloudOutlined, CloudFilled, FolderOpenOutlined, RobotFilled, ArrowUpOutlined, CarryOutOutlined
|
|
|
} from '@ant-design/icons-vue'
|
|
} from '@ant-design/icons-vue'
|
|
|
-import { EDeviceTypeName } from '../types'
|
|
|
|
|
|
|
+import { EDeviceTypeName, ELocalStorageKey } from '../types'
|
|
|
import DockControlPanel from './g-map/DockControlPanel.vue'
|
|
import DockControlPanel from './g-map/DockControlPanel.vue'
|
|
|
import { useDockControl } from './g-map/use-dock-control'
|
|
import { useDockControl } from './g-map/use-dock-control'
|
|
|
import DroneControlPanel from './g-map/DroneControlPanel.vue'
|
|
import DroneControlPanel from './g-map/DroneControlPanel.vue'
|
|
@@ -840,6 +840,9 @@ export default defineComponent({
|
|
|
}
|
|
}
|
|
|
async function postPinPositionResource(obj: any) {
|
|
async function postPinPositionResource(obj: any) {
|
|
|
const req: any = getPinPositionResource(obj)
|
|
const req: any = getPinPositionResource(obj)
|
|
|
|
|
+ const userName = localStorage.getItem(ELocalStorageKey.Username) || ''
|
|
|
|
|
+ req.element_from = 1
|
|
|
|
|
+ req.resource.user_name = userName
|
|
|
setLayers(req)
|
|
setLayers(req)
|
|
|
const coordinates = req.resource.content.geometry.coordinates
|
|
const coordinates = req.resource.content.geometry.coordinates
|
|
|
updateCoordinates('gcj02-wgs84', req);
|
|
updateCoordinates('gcj02-wgs84', req);
|
|
@@ -869,6 +872,9 @@ export default defineComponent({
|
|
|
}
|
|
}
|
|
|
async function postPolylineResource(obj: any) {
|
|
async function postPolylineResource(obj: any) {
|
|
|
const req: any = getPolylineResource(obj)
|
|
const req: any = getPolylineResource(obj)
|
|
|
|
|
+ const userName = localStorage.getItem(ELocalStorageKey.Username) || ''
|
|
|
|
|
+ req.element_from = 1
|
|
|
|
|
+ req.resource.user_name = userName
|
|
|
setLayers(req)
|
|
setLayers(req)
|
|
|
const coordinatesList = req.resource.content.geometry.coordinates
|
|
const coordinatesList = req.resource.content.geometry.coordinates
|
|
|
updateCoordinates('gcj02-wgs84', req)
|
|
updateCoordinates('gcj02-wgs84', req)
|
|
@@ -901,6 +907,9 @@ export default defineComponent({
|
|
|
}
|
|
}
|
|
|
async function postPolygonResource(obj: any) {
|
|
async function postPolygonResource(obj: any) {
|
|
|
const req: any = getPoygonResource(obj)
|
|
const req: any = getPoygonResource(obj)
|
|
|
|
|
+ const userName = localStorage.getItem(ELocalStorageKey.Username) || ''
|
|
|
|
|
+ req.element_from = 1
|
|
|
|
|
+ req.resource.user_name = userName
|
|
|
setLayers(req)
|
|
setLayers(req)
|
|
|
const coordinatesList = req.resource.content.geometry.coordinates[0]
|
|
const coordinatesList = req.resource.content.geometry.coordinates[0]
|
|
|
updateCoordinates('gcj02-wgs84', req)
|
|
updateCoordinates('gcj02-wgs84', req)
|