| | |
| | | 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(); |
| | |
| | | ...device, |
| | | selected: true, // 默认选中 |
| | | })); |
| | | |
| | | console.log(shgList.value, "shgList.valueshgList.value"); |
| | | }; |
| | | |
| | | // 下拉框选中值的表格数据变化 |
| | |
| | | // 保存方案 |
| | | const saveSim = async () => { |
| | | try { |
| | | getYLJData("1101160300070101").then((res) => { |
| | | console.log(res, "resres"); |
| | | }); |
| | | updateSelectedGauges(); |
| | | formData.geom = props.selectedArea; |
| | | await simStore.addSimCheme(formData); |