diff --git a/src/views/floodSys/floodYP/riskAsses.vue b/src/views/floodSys/floodYP/riskAsses.vue index 2a0ef65..7db418e 100644 --- a/src/views/floodSys/floodYP/riskAsses.vue +++ b/src/views/floodSys/floodYP/riskAsses.vue @@ -218,10 +218,10 @@ } // 不同模拟方案选择 function changeObject(val) { - !!newfiberMap_risk.map.getLayer('riskAssesImage') && newfiberMap_risk.map.removeLayer('riskAssesImage'); - !!newfiberMap_risk.map.getSource('riskAssesImage') && newfiberMap_risk.map.removeSource('riskAssesImage'); - //停止播放 - stopImitate(); + // !!newfiberMap_risk.map.getLayer('riskAssesImage') && newfiberMap_risk.map.removeLayer('riskAssesImage'); + // !!newfiberMap_risk.map.getSource('riskAssesImage') && newfiberMap_risk.map.removeSource('riskAssesImage'); + // //停止播放 + // stopImitate(); allData.queryParams.scenario = ''; allData.queryParams.duration = ''; if (val == 'duration-depth') { @@ -245,6 +245,8 @@ paramsCase.value.moduleTypeEnum = val; // 模型数据加载 processVal.value = 0; + stopImitate(); + gisModuleData(); } const timer = ref(null); const ifStart = ref(true);