{{ t('systemSetting.latitude') }}:
@@ -345,13 +405,15 @@ import { useI18n } from 'vue-i18n'
import { ElMessage } from 'element-plus'
import { inject, onMounted } from 'vue'
import { TreeApi } from '@/api/tree'
-import { useTreeNode } from '../../../../tree/hooks/treeNode'
import { $sendElectronChanel } from '@/utils/communication'
const eventBus: any = inject('bus')
-const { cusUpdateNode } = useTreeNode()
-const { t, locale, global } = useI18n()
+const { t, locale } = useI18n()
+
+const isHotGroupOpen: any = ref(false)
+const isHotGroupOpen2: any = ref(false)
+const showPosiType: any = ref(false)
const systemSetting = ref({
showFangliNet: false, // 方里网
@@ -366,7 +428,8 @@ const systemSetting = ref({
sheetIndexStatusSwitch: false, //标准图幅
skinInfo: 'yingguangse', //主题色
language: '', //语言
- coordinate: 'EPSG:4326' //坐标系
+ coordinate: 'EPSG:4326', //坐标系
+ positionType: '度'
})
const options = ref([
{ id: 'zh-CN', label: '中文简体' },
@@ -403,6 +466,21 @@ const concurrentWorkloadList = ref([
}
])
const name_map: any = ref([])
+const name_map1: any = ref([])
+const position_map: any = ref([
+ {
+ name: '度',
+ value: '度'
+ },
+ {
+ name: '度分',
+ value: '度分'
+ },
+ {
+ name: '度分秒',
+ value: '度分秒'
+ }
+])
const searchWay = ref()
const concurrentcode = ref()
const showBattery = ref()
@@ -411,6 +489,7 @@ concurrentcode.value = localStorage.getItem('concurrentcode') || 10
//系统坐标系
let tool = new YJ.Tools(window.earth)
name_map.value = Array.from(tool.name_map.values())
+name_map1.value = name_map.value.splice(0, 2)
const sysChange = async () => {
locale.value = systemSetting.value.language
@@ -432,8 +511,15 @@ const sysChange = async () => {
//地形遮挡
YJ.Global.setGroundCover(window.earth, systemSetting.value.occlusion)
//系统
+ if (systemSetting.value.coordinate) {
+ let data = name_map1.value.filter((item) => item.epsg === systemSetting.value.coordinate)
+ showPosiType.value = data.length
+ }
+
let coor = systemSetting.value.coordinate ? systemSetting.value.coordinate : 'EPSG:4326'
YJ.Global.setCoordinateSystem(window.earth, coor)
+ //设置坐标格式
+ YJ.Global.setDMS(window.earth, systemSetting.value.positionType)
//比例尺
await YJ.Global.SheetIndexStatusSwitch(window.earth, systemSetting.value.sheetIndexStatusSwitch)
@@ -488,10 +574,23 @@ const setData = () => {
}
})
}
+const toggleGroup = (type: string) => {
+ if (type === 'hot') isHotGroupOpen.value = !isHotGroupOpen.value
+ if (type === 'ty') isHotGroupOpen2.value = !isHotGroupOpen2.value
+}
const management = () => {}
const batteryChange = () => {}
onMounted(() => {
- systemSetting.value = JSON.parse(localStorage.getItem('systemSetting')||'{}')
+ systemSetting.value = JSON.parse(localStorage.getItem('systemSetting') || '{}')
+ if (systemSetting.value.coordinate) {
+ let data = name_map1.value.filter((item) => item.epsg === systemSetting.value.coordinate)
+ showPosiType.value = data.length
+ if (data.length) {
+ isHotGroupOpen.value = true
+ } else {
+ isHotGroupOpen2.value = true
+ }
+ }
// sysChange()
})
@@ -588,4 +687,17 @@ onMounted(() => {
margin-left: 5px;
font-size: 0.8rem;
}
+.group-header {
+ width: 100%;
+ height: 30px;
+ padding: 8px 20px;
+ cursor: pointer;
+ font-weight: bold;
+ color: rgba(255, 255, 255, 1);
+ font-size: 12px;
+ font-weight: 400;
+}
+.arrowActive {
+ color: rgba(0, 255, 255, 1);
+}
diff --git a/src/renderer/src/views/components/leftSide/leftSideFirst.vue b/src/renderer/src/views/components/leftSide/leftSideFirst.vue
index 3043c9f..987fe9a 100644
--- a/src/renderer/src/views/components/leftSide/leftSideFirst.vue
+++ b/src/renderer/src/views/components/leftSide/leftSideFirst.vue
@@ -33,13 +33,16 @@
diff --git a/src/renderer/src/views/components/propertyBox/Contour.vue b/src/renderer/src/views/components/propertyBox/Contour.vue
index ec872bc..0db87c3 100644
--- a/src/renderer/src/views/components/propertyBox/Contour.vue
+++ b/src/renderer/src/views/components/propertyBox/Contour.vue
@@ -152,7 +152,7 @@
diff --git a/src/renderer/src/views/components/propertyBox/CoorLocation.vue b/src/renderer/src/views/components/propertyBox/CoorLocation.vue
index 5da8a26..551b6a0 100644
--- a/src/renderer/src/views/components/propertyBox/CoorLocation.vue
+++ b/src/renderer/src/views/components/propertyBox/CoorLocation.vue
@@ -124,7 +124,7 @@
diff --git a/src/renderer/src/views/components/propertyBox/FlyRoam.vue b/src/renderer/src/views/components/propertyBox/FlyRoam.vue
index 9560000..6c41951 100644
--- a/src/renderer/src/views/components/propertyBox/FlyRoam.vue
+++ b/src/renderer/src/views/components/propertyBox/FlyRoam.vue
@@ -172,7 +172,7 @@
diff --git a/src/renderer/src/views/components/propertyBox/GoodsSearchPolgon.vue b/src/renderer/src/views/components/propertyBox/GoodsSearchPolgon.vue
index 4403267..573a6a3 100644
--- a/src/renderer/src/views/components/propertyBox/GoodsSearchPolgon.vue
+++ b/src/renderer/src/views/components/propertyBox/GoodsSearchPolgon.vue
@@ -17,7 +17,7 @@
diff --git a/src/renderer/src/views/components/propertyBox/Graffiti.vue b/src/renderer/src/views/components/propertyBox/Graffiti.vue
index 744cdeb..39b1e4f 100644
--- a/src/renderer/src/views/components/propertyBox/Graffiti.vue
+++ b/src/renderer/src/views/components/propertyBox/Graffiti.vue
@@ -44,7 +44,7 @@
diff --git a/src/renderer/src/views/components/propertyBox/Profile.vue b/src/renderer/src/views/components/propertyBox/Profile.vue
index 9b23c37..59fc204 100644
--- a/src/renderer/src/views/components/propertyBox/Profile.vue
+++ b/src/renderer/src/views/components/propertyBox/Profile.vue
@@ -21,7 +21,7 @@
diff --git a/src/renderer/src/views/components/propertyBox/ProjConvert.vue b/src/renderer/src/views/components/propertyBox/ProjConvert.vue
index edfc050..c550371 100644
--- a/src/renderer/src/views/components/propertyBox/ProjConvert.vue
+++ b/src/renderer/src/views/components/propertyBox/ProjConvert.vue
@@ -228,7 +228,7 @@
diff --git a/src/renderer/src/views/components/propertyBox/ViewShed.vue b/src/renderer/src/views/components/propertyBox/ViewShed.vue
index fe26da4..1142131 100644
--- a/src/renderer/src/views/components/propertyBox/ViewShed.vue
+++ b/src/renderer/src/views/components/propertyBox/ViewShed.vue
@@ -83,7 +83,7 @@
diff --git a/src/renderer/src/views/components/propertyBox/Visibility.vue b/src/renderer/src/views/components/propertyBox/Visibility.vue
index 4bb8fbb..731ec8e 100644
--- a/src/renderer/src/views/components/propertyBox/Visibility.vue
+++ b/src/renderer/src/views/components/propertyBox/Visibility.vue
@@ -51,6 +51,10 @@ eventBus.on('analysisDialog', () => {
baseDialog.value?.open()
})
+const open = () => {
+ baseDialog.value?.open()
+}
+
const clangeViewPointHeight = () => {}
const viewPointHeightInput = () => {
let dom: any = document.getElementById('viewPointHeight')
@@ -61,18 +65,24 @@ const viewPointHeightInput = () => {
}
}
const closeCallBack = (e) => {
- viewPointHeight.value = 1.8;
- (window as any).YJ.Measure.SetMeasureStatus(false)
+ viewPointHeight.value = 1.8
+ ;(window as any).YJ.Measure.SetMeasureStatus(false)
// visibility && visibility.end()
}
+onBeforeUnmount(() => {
+ closeCallBack('')
+})
const draw = (e) => {
visibility && visibility.end && visibility.end()
visibility = new YJ.Analysis.Visibility(window.earth, { viewPointHeight: viewPointHeight.value })
// visibility.create(this)
- !(window as any).analysisArr && ((window as any).analysisArr = []);
- (window as any).analysisArr.push(visibility);
+ !(window as any).analysisArr && ((window as any).analysisArr = [])
+ ;(window as any).analysisArr.push(visibility)
baseDialog.value?.close()
}
+defineExpose({
+ open
+})
diff --git a/src/renderer/src/views/components/propertyBox/addDevice.vue b/src/renderer/src/views/components/propertyBox/addDevice.vue
new file mode 100644
index 0000000..afca06e
--- /dev/null
+++ b/src/renderer/src/views/components/propertyBox/addDevice.vue
@@ -0,0 +1,196 @@
+
+
+
+
+
+
+
+
diff --git a/src/renderer/src/views/components/propertyBox/addGroundText.vue b/src/renderer/src/views/components/propertyBox/addGroundText.vue
index 0e97c27..a20952b 100644
--- a/src/renderer/src/views/components/propertyBox/addGroundText.vue
+++ b/src/renderer/src/views/components/propertyBox/addGroundText.vue
@@ -31,6 +31,7 @@ const open = () => {
baseDialog.value?.open()
}
const confirm = () => {
+ console.log('121212121', baseDialog.value)
baseDialog.value?.close()
let name = text.value
text.value = ''
@@ -40,11 +41,15 @@ const confirm = () => {
return
}
let id = new YJ.Tools().randomString()
- let options: any = await initMapData('groundText', {
- id: id,
- text: name,
- positions: positions
- }, null)
+ let options: any = await initMapData(
+ 'groundText',
+ {
+ id: id,
+ text: name,
+ positions: positions
+ },
+ null
+ )
delete options.host
delete options.positions
let selectedNodes = window.treeObj.getSelectedNodes()
@@ -53,8 +58,7 @@ const confirm = () => {
if (node) {
if (node.sourceType === 'directory') {
parentId = node.id
- }
- else {
+ } else {
parentId = node.parentId
}
}
diff --git a/src/renderer/src/views/home/index.vue b/src/renderer/src/views/home/index.vue
index 216f277..ead28f2 100644
--- a/src/renderer/src/views/home/index.vue
+++ b/src/renderer/src/views/home/index.vue
@@ -21,23 +21,23 @@
/>
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -50,6 +50,7 @@
+