| | |
| | | throw error; |
| | | } |
| | | } |
| | | |
| | | // 实时模拟的结果 |
| | | export async function getSimresult(ids) { |
| | | try { |
| | | const res = await instance.get(`/simu/results?id=${ids}`); |
| | | return res.data; |
| | | } catch (error) { |
| | | console.error("Error deleting simulation data:", error); |
| | | throw error; |
| | | } |
| | | } |
| | | |
| | | // 结束实时模拟 |
| | | export async function stopSim(ids) { |
| | | try { |
| | | const res = await instance.get(`/simu/stop?id=${ids}`); |
| | | return res.data; |
| | | } catch (error) { |
| | | console.error("Error deleting simulation data:", error); |
| | | throw error; |
| | | } |
| | | } |
| | | // ************************************************************************************************************** |
| | | // 解析json获取泥石流参数 |
| | | export function parseWaterSimulationData(jsonData) { |