guonan
2025-06-10 f0a0f01ca70e852caf0300fd47d1840799c4d65d
src/views/left/KGSimOption/RealTimeSimulation.vue
@@ -78,7 +78,7 @@
import { initeWaterPrimitiveView } from "@/utils/water";
import { SimAPIStore } from "@/store/simAPI";
import { EventBus } from "@/eventBus"; // 引入事件总线
import { getDeviceInfoShg } from "@/api/hpApi";
import { getDeviceInfoShg, getYLJData } from "@/api/hpApi";
// 获取 Store 实例
const simStore = SimAPIStore();
@@ -139,6 +139,8 @@
      ...device,
      selected: true, // 默认选中
    }));
  console.log(shgList.value, "shgList.valueshgList.value");
};
// 下拉框选中值的表格数据变化
@@ -198,6 +200,9 @@
// 保存方案
const saveSim = async () => {
  try {
    getYLJData("1101160300070101").then((res) => {
      console.log(res, "resres");
    });
    updateSelectedGauges();
    formData.geom = props.selectedArea;
    await simStore.addSimCheme(formData);