guonan
2025-06-19 d3e7a1953618d73ffb1a480cb7c6afda42246460
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 { getDeviceInfo } from "@/api/hpApi";
import { getDeviceInfo, getYLJData } from "@/api/hpApi";
// 获取 Store 实例
const simStore = SimAPIStore();
@@ -116,8 +116,8 @@
// 获取所有雨量计数据(来自接口)
const getRainListAll = () => {
  // 雨量计类型id
  const ids = "1874719366287368194";
  getDeviceInfo(ids).then((res) => {
  const ids = "1437295810";
  getDeviceInfo(ids, "110116110000").then((res) => {
    rainListNoFilter.value = res.data.pageData;
    // 根据当前选择的区域自动过滤
    updateShgListByArea();
@@ -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);