{{ t('systemSetting.latitude') }}:
@@ -353,6 +413,10 @@ const { cusUpdateNode } = useTreeNode()
const { t } = useI18n()
+const isHotGroupOpen: any = ref(false)
+const isHotGroupOpen2: any = ref(false)
+const showPosiType: any = ref(false)
+
const systemSetting = ref({
showFangliNet: false, // 方里网
showLatitudeLongitudeNetwork: false, //经纬网
@@ -366,7 +430,8 @@ const systemSetting = ref({
sheetIndexStatusSwitch: false, //标准图幅
skinInfo: 'yingguangse', //主题色
language: '', //语言
- coordinate: 'EPSG:4326' //坐标系
+ coordinate: 'EPSG:4326', //坐标系
+ positionType: '度'
})
const options = ref([
{ id: 'zh', label: '中文简体' },
@@ -403,6 +468,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 +491,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 () => {
const obj = {
@@ -430,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)
@@ -486,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'))
+ 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()
})
@@ -586,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/leftSideSecond.vue b/src/renderer/src/views/components/leftSide/leftSideSecond.vue
index c655424..b500813 100644
--- a/src/renderer/src/views/components/leftSide/leftSideSecond.vue
+++ b/src/renderer/src/views/components/leftSide/leftSideSecond.vue
@@ -3,12 +3,15 @@
@@ -86,8 +89,6 @@ const handleKeyDown = (e) => {
if (clickChange.videoRecord) {
methodMap['videoRecord']()
}
-
- console.log('全局ESC监听')
}
}
window.addEventListener('keydown', handleKeyDown)
@@ -176,7 +177,6 @@ const methodMap = {
diffuseScan: () => {
let draw = new YJ.Draw.DrawCircle(window.earth)
draw.start((err, options) => {
- console.log('options', options)
if (options) {
let id = new YJ.Tools().randomString()
let name = '扩散光波'
@@ -204,7 +204,6 @@ const methodMap = {
radarScan: () => {
let draw = new YJ.Draw.DrawCircle(window.earth)
draw.start((err, options) => {
- console.log('options', options)
if (options) {
let id = new YJ.Tools().randomString()
let name = '雷达光波'
@@ -598,7 +597,7 @@ const methodMap = {
filters: [{ name: '保存图片', extensions: ['jpg'] }]
})
$recvElectronChanel('selectedFileItem', (e, path) => {
- fs.writeFile(path, dataBuffer, (res) => { })
+ fs.writeFile(path, dataBuffer, (res) => {})
})
}
@@ -687,7 +686,6 @@ const methodMap = {
if (selectedNode) {
let isTileset = ['bim', 'tileset'].includes(selectedNode.sourceType)
if (!isTileset) {
- console.log('aaaaaa')
ElMessage({
message: '请在图层指挥舱选中对应模型进行操作',
type: 'warning'
@@ -732,18 +730,17 @@ const methodMap = {
TreeApi.addOtherSource(paramsData)
paramsData.isShow = true
paramsData.params = JSON.stringify(paramsData.params)
- ; (window as any).pressModelMap.set(id + '_' + selectedNode.id, paramsData)
- ; (window as any).pressModelEntities.set(id, flat)
+ ;(window as any).pressModelMap.set(id + '_' + selectedNode.id, paramsData)
+ ;(window as any).pressModelEntities.set(id, flat)
cusAddNodes(window.treeObj, paramsData.parentId, [paramsData])
// //鼠标右键点击事件
- flat.onRightClick = () => { }
+ flat.onRightClick = () => {}
// _entityMap.set(node.source_id, flat)
} else {
// this.$message.warning('至少三个点')
}
})
} else {
- console.log('bbbbb')
ElMessage({
message: '请在图层指挥舱选中对应模型进行操作',
type: 'warning'
@@ -864,8 +861,8 @@ const methodMap = {
DbOption.isShow = true
DbOption.params = JSON.stringify(DbOption.params)
cusAddNodes(window.treeObj, DbOption.parentId, [DbOption])
- let entityObject = renderVector(DbOption, true);
- (window as any)._entityMap.set(id, entityObject)
+ let entityObject = renderVector(DbOption, true)
+ ;(window as any)._entityMap.set(id, entityObject)
// }
// })
}
@@ -896,7 +893,6 @@ const methodMap = {
}
const handleClick = (value = 'projectionDistanceMeasure') => {
- console.log('点击了', value)
methodMap[value]()
}
defineExpose({
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 35f97c5..7f6e926 100644
--- a/src/renderer/src/views/components/propertyBox/addGroundText.vue
+++ b/src/renderer/src/views/components/propertyBox/addGroundText.vue
@@ -29,6 +29,7 @@ const open = () => {
baseDialog.value?.open()
}
const confirm = () => {
+ console.log('121212121', baseDialog.value)
baseDialog.value?.close()
let name = text.value
text.value = ''
@@ -38,11 +39,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()
@@ -51,8 +56,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 8bc36e9..7425b7b 100644
--- a/src/renderer/src/views/home/index.vue
+++ b/src/renderer/src/views/home/index.vue
@@ -50,6 +50,7 @@
+