| | |
| | | <span>仿真推演方案</span> |
| | | </div> |
| | | <div class="left-content"> |
| | | <div style=" |
| | | <div |
| | | style=" |
| | | display: flex; |
| | | justify-content: space-evenly; |
| | | padding: 8px 8px 8px 0px; |
| | | " |
| | | v-if="btnShow"> |
| | | <el-button style="width: 45%;" @click="handleClick">新建仿真方案</el-button> |
| | | <el-button style="width: 45%;" @click="deleteSelectedScheme">删除仿真方案</el-button> |
| | | v-if="btnShow" |
| | | > |
| | | <el-button style="width: 45%" @click="handleClick" |
| | | >新建仿真方案</el-button |
| | | > |
| | | <el-button style="width: 45%" @click="deleteSelectedScheme" |
| | | >删除仿真方案</el-button |
| | | > |
| | | </div> |
| | | <!-- <schemeCard ref="schemeCardRef" @start="start" @end="end" @reset="reset" @closeBtn="handleBackFromParent" /> --> |
| | | <schemeCard |
| | |
| | | @end="end" |
| | | @reset="reset" |
| | | :deleteSim="deleteSim" |
| | | :showAddIns="showAddIns" |
| | | @closeBtn="handleBackFromParent" |
| | | /> |
| | | </div> |
| | |
| | | import { createPoint, removeEntities } from "@/utils/map"; |
| | | // import { deviceDictList, getDictName } from "@/constant/dict.js"; |
| | | |
| | | import { getDeviceData } from "@/api/index"; |
| | | const emits = defineEmits(["start", "end"]); |
| | | |
| | | const list = [ |
| | |
| | | } |
| | | function handleBackFromParent(value) { |
| | | if (value === false) { |
| | | btnShow.value = false |
| | | } else btnShow.value = true |
| | | btnShow.value = false; |
| | | } else btnShow.value = true; |
| | | } |
| | | function initDevicePoint() { |
| | | list.forEach((item) => { |
| | |
| | | // createPoint(item) |
| | | }); |
| | | } |
| | | function getData() { |
| | | getDeviceData().then((res) => { |
| | | devicetList.value = res.data; |
| | | }); |
| | | } |
| | | |
| | | function createLabel(item) { |
| | | const { name, x, y, showBillboard = false } = item; |
| | | let position = Cesium.Cartesian3.for(x, y); |
| | |
| | | emits("end"); |
| | | } |
| | | onMounted(() => { |
| | | // getData() |
| | | // initDevicePoint() |
| | | }); |
| | | |