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