| | |
| | | v-for="item in filteredOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | :value="item" |
| | | /> |
| | | </el-select> |
| | | </div> |
| | |
| | | import PredictiveSimulation from "./KGSimOption/PredictiveSimulation.vue"; |
| | | import RealTimeSimulation from "./KGSimOption/RealTimeSimulation.vue"; |
| | | import { getRegionData } from "@/api/trApi"; |
| | | import { EventBus } from "@/eventBus"; // 引入事件总线 |
| | | |
| | | const selectedSimulation = ref("历史模拟"); |
| | | const selectedArea = ref(); // 选中的区域 |
| | |
| | | 0, |
| | | importGOptions.length, |
| | | ...res.data.map((item) => ({ |
| | | id:item.id, |
| | | id: item.id, |
| | | value: item.geom, |
| | | label: item.name |
| | | label: item.name, |
| | | })) |
| | | ); |
| | | }); |
| | |
| | | |
| | | // 处理选项选择事件 |
| | | const handleSelectChange = (value) => { |
| | | EventBus.emit("select-geom", { geom: value.value, flyHeight: 8000 }); |
| | | console.log("选中的值:", value); // 打印选中的值 |
| | | console.log("当前选中的完整数据:", importGOptions.find((item) => item.value === value)); // 打印完整的选中数据 |
| | | console.log( |
| | | "当前选中的完整数据:", |
| | | importGOptions.find((item) => item.value === value) |
| | | ); // 打印完整的选中数据 |
| | | }; |
| | | |
| | | const handleStart = () => { |
| | |
| | | :deep(.el-input__inner) { |
| | | color: #fff; /* 让文字颜色跟随父级 */ |
| | | } |
| | | </style> |
| | | </style> |