guonan
2025-05-16 a9c4f7775e82d93638e607fa6c5fafe22f5310b4
src/views/left/Left.vue
@@ -4,14 +4,20 @@
      <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
@@ -20,6 +26,7 @@
        @end="end"
        @reset="reset"
        :deleteSim="deleteSim"
        :showAddIns="showAddIns"
        @closeBtn="handleBackFromParent"
      />
    </div>
@@ -40,7 +47,6 @@
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 = [
@@ -296,8 +302,8 @@
}
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) => {
@@ -342,11 +348,7 @@
    // 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);
@@ -431,7 +433,6 @@
  emits("end");
}
onMounted(() => {
  // getData()
  // initDevicePoint()
});