Browse Source

//SenceInfo 增加特殊使用,用于识别新增

master
DIAMOND 12 months ago
parent
commit
09a399a532
  1. 3
      src/views/military/modules/earthMap/scene/model/Modal.vue
  2. 10
      src/views/military/modules/earthMap/scene/model/sceneInfo/SenceInfo.vue

3
src/views/military/modules/earthMap/scene/model/Modal.vue

@ -103,7 +103,8 @@
lon: 0,
lat: 0,
altitude: 0,
cameraLon: 0,
//使
cameraLon: undefined,
cameraLat: 0,
cameraAltitude: 0,
rotationX: 0,

10
src/views/military/modules/earthMap/scene/model/sceneInfo/SenceInfo.vue

@ -10,7 +10,7 @@
</a-col>
<a-col :span="11" :offset="1">
<div>区域名称:</div>
<a-input class="inputWidthCss1" v-model:value="subObject.sceneName" placeholder="请输入区域编号名称"
<a-input class="inputWidthCss1" v-model:value="subObject.sceneName" placeholder="请输入区域名称"
:disabled="disable"></a-input>
</a-col>
<a-col :span="11" :offset="1">
@ -62,7 +62,7 @@
</a-col>
<a-col :span="11" :offset="1">
<div>
<div>相机经度:</div><a-input-number class="inputWidthCss1" v-model:value="subObject.cameraLon"
<div>相机经度:</div><a-input-number class="inputWidthCss1" v-model:value="subObject.cameraLon" :min="0"
:disabled="disable" />
</div>
<div>
@ -234,7 +234,7 @@ onMounted(async () => {
//
const moveChinaPosition = function () {
// console.log('movePosition', subObject.value);
if (subObject.value.id) {
if (subObject.value.id || subObject.value.cameraLon ) {
window.$earth.camera.fov = subObject.value.viewDistance;
//
window.$earth.camera.position = [subObject.value.cameraLon, subObject.value.cameraLat, subObject.value.cameraAltitude];
@ -251,6 +251,10 @@ const moveChinaPosition = function () {
//
const mapVisible = ref(false);
const mapShow = function () {
// if(!subObject.value.sceneName){
// message.warning("")
// return
// }
mapVisible.value = true;
};
//

Loading…
Cancel
Save