diff --git a/src/renderer/src/I18n/zh-CN.ts b/src/renderer/src/I18n/zh-CN.ts index b662712..ef217f1 100644 --- a/src/renderer/src/I18n/zh-CN.ts +++ b/src/renderer/src/I18n/zh-CN.ts @@ -149,6 +149,7 @@ export default { curve: '曲线标注', panel: '面标注', roam: '漫游路径', + untitled: '未命名对象' }, system: { systemTitle: '系统面板', diff --git a/src/renderer/src/I18n/zh-EN.ts b/src/renderer/src/I18n/zh-EN.ts index 77314f8..f174fa1 100644 --- a/src/renderer/src/I18n/zh-EN.ts +++ b/src/renderer/src/I18n/zh-EN.ts @@ -149,6 +149,7 @@ export default { curve: 'Curve', panel: 'Panel', roam: 'roam', + untitled: 'untitled' }, system: { systemTitle: 'Settings', diff --git a/src/renderer/src/I18n/zh-TW.ts b/src/renderer/src/I18n/zh-TW.ts index 340e21b..78b4d3d 100644 --- a/src/renderer/src/I18n/zh-TW.ts +++ b/src/renderer/src/I18n/zh-TW.ts @@ -148,6 +148,7 @@ export default { curve: '曲線標注', panel: '面標注', roam: '漫遊路徑', + untitled: '未命名對象' }, system: { systemTitle: '系統面板', diff --git a/src/renderer/src/common/initMapData.ts b/src/renderer/src/common/initMapData.ts index 6a5cc65..1e2f3c1 100644 --- a/src/renderer/src/common/initMapData.ts +++ b/src/renderer/src/common/initMapData.ts @@ -47,7 +47,6 @@ export const initMapData = async (type, data, cd) => { entityObject = new YJ.Obj.SectorObject(window.earth, data) break case 'model': - console.log('model', data) entityObject = new YJ.Obj.Model(window.earth, data) break case 'military': diff --git a/src/renderer/src/utils/index.ts b/src/renderer/src/utils/index.ts index d2081d5..8fb54fa 100644 --- a/src/renderer/src/utils/index.ts +++ b/src/renderer/src/utils/index.ts @@ -67,14 +67,19 @@ export function getNamefromPath(path) { } export function handleInputLimit(e) { - const minValue = parseFloat(e.target.min); - const maxValue = parseFloat(e.target.max); - if (!isNaN(maxValue) && e.target.value > maxValue) { - e.target.value = maxValue - e.target.dispatchEvent(new Event('input')) + if (e.data === '-') { } - else if (!isNaN(minValue) && e.target.value < minValue) { - e.target.value = minValue - e.target.dispatchEvent(new Event('input')) + else { + e.target.value = e.target.value || 0 + const minValue = parseFloat(e.target.min); + const maxValue = parseFloat(e.target.max); + if (!isNaN(maxValue) && e.target.value > maxValue) { + e.target.value = maxValue + e.target.dispatchEvent(new Event('input')) + } + else if (!isNaN(minValue) && e.target.value < minValue) { + e.target.value = minValue + e.target.dispatchEvent(new Event('input')) + } } } diff --git a/src/renderer/src/views/components/propertyBox/CircleObject.vue b/src/renderer/src/views/components/propertyBox/CircleObject.vue index 31e6238..4dbea88 100644 --- a/src/renderer/src/views/components/propertyBox/CircleObject.vue +++ b/src/renderer/src/views/components/propertyBox/CircleObject.vue @@ -43,7 +43,7 @@
Z值统一增加
- + m
@@ -66,18 +66,18 @@
圆心坐标
+ v-model="entityOptions.center.lng" min="-180" max="180" v-if="activeTd.index == 1 && activeTd.name == 'lng'" @input="$handleInputLimit"> {{ entityOptions.center.lng.toFixed(8) }}
+ v-model="entityOptions.center.lat" min="-180" max="180" v-if="activeTd.index == 1 && activeTd.name == 'lat'" @input="$handleInputLimit"> {{ entityOptions.center.lat.toFixed(8) }}
+ v-if="activeTd.index == 1 && activeTd.name == 'alt'" @input="$handleInputLimit"> {{ entityOptions.height.toFixed(2) }}
@@ -98,7 +98,7 @@
描边宽度
- + px
@@ -132,6 +132,7 @@