| | |
| | | }) |
| | | } |
| | | |
| | | export const getDeviceRegionCount = params => { |
| | | return request({ |
| | | url: '/drone-device-core/manage/api/v1/devices/getDeviceRegionCount', |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | | |
| | | // 获取区域全部 |
| | | export const getRegionTreeAll = params => { |
| | | return request({ |
| | |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | | } |
| | | |
| | | // 更新图斑数据 |
| | | export const sdfwUpdate = params => { |
| | | return request({ |
| | | url: `/drone-device-core/patches/api/v1/Patches/sdfwUpdate`, |
| | | method: 'put', |
| | | data: params, |
| | | }) |
| | | } |
| | |
| | | import * as Cesium from 'cesium' |
| | | import { PolyGradientMaterial } from '@/utils/cesium/Material' |
| | | import { useStore } from 'vuex' |
| | | import { getDeviceRegion, getDeviceRegionCount } from '@/api/home/aggregation' |
| | | import { getDeviceRegion, getDeviceRegionCount } from '@/api/job/task' |
| | | import userStore from '@/store/modules/user' |
| | | import { areaCodeToArr, getContourByCode, getDockPolyLine, getLnglatAltitude } from '@/utils/cesium/mapUtil' |
| | | import getBaseConfig from '@/buildConfig/config' |
| | |
| | | import * as Cesium from 'cesium'; |
| | | |
| | | import { ElMessage } from 'element-plus'; |
| | | import { sdfwUpdate } from '@/api/home/territory'; |
| | | import { sdfwUpdate } from '@/api/patchManagement'; |
| | | |
| | | let curPolygonPosition = []; |
| | | let savePolygonPosition = []; |