|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div class="create-model-modal" v-if="winVisible"> |
|
|
|
<Window :title="title" @cancel="cancel" @ok="ok" :width="width" :minWidth="600" :height="height" :left="left" |
|
|
|
:top="top" :floatright="false" :footervisible="true" v-show="!creating"> |
|
|
|
:top="top" :floatright="false" :footervisible="true" v-show="!creating" :expand="expand"> |
|
|
|
<div style="display: flex" class="custom-item" v-if="!isUpdateModel"> |
|
|
|
<label class="custom-label">模型类型:</label> |
|
|
|
<div class="custom-item-box"> |
|
|
@ -283,10 +283,11 @@ export default defineComponent({ |
|
|
|
const { createMessage } = useMessage(); |
|
|
|
// const $mitt = mitt(); |
|
|
|
const userStore = useUserStore(); |
|
|
|
|
|
|
|
let expand = ref(true); //是否展开 |
|
|
|
let radarColor = ref({ rgba: { r: 0, g: 255, b: 0, a: 0.5 } }); |
|
|
|
let radarRange = ref(0); |
|
|
|
let radarRadius = ref(0); |
|
|
|
|
|
|
|
//法线偏移角度 |
|
|
|
let radarShifting = ref(0); |
|
|
|
//雷达扫描编辑、取消使用 |
|
|
@ -461,14 +462,16 @@ export default defineComponent({ |
|
|
|
try { |
|
|
|
if (selectModel.value.value === 'jkd') { |
|
|
|
// console.log("jkd"); |
|
|
|
expand.value = true;// 折叠面板 |
|
|
|
currentModel.value = addModel(); |
|
|
|
// console.log(" currentModel.value", currentModel.value); |
|
|
|
} else if (selectModel.value.value === 'qy') { |
|
|
|
|
|
|
|
expand.value = false;// 折叠面板 |
|
|
|
currentModel.value = addArea(); |
|
|
|
// currentModel.value = addPolyline(); |
|
|
|
// console.log(" currentModel.value", currentModel.value); |
|
|
|
} else { |
|
|
|
expand.value = true;// 折叠面板 |
|
|
|
currentModel.value = addPin(); |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
@ -659,7 +662,7 @@ export default defineComponent({ |
|
|
|
bindModelProps(model); |
|
|
|
minimumPixelSize.value = 80; |
|
|
|
// 切换为创建状态 |
|
|
|
modelState('creating'); |
|
|
|
// modelState('creating'); |
|
|
|
// model.flyTo() |
|
|
|
return model; |
|
|
|
} |
|
|
@ -1520,6 +1523,7 @@ export default defineComponent({ |
|
|
|
getRadarScan, |
|
|
|
pinIconUpload, |
|
|
|
uploadFileCount, |
|
|
|
expand, |
|
|
|
}; |
|
|
|
}, |
|
|
|
}); |
|
|
|