细化隐患点显示逻辑
This commit is contained in:
@@ -18,16 +18,6 @@ export const useLoadingInformationStore = defineStore(
|
||||
|
||||
// ============================ 隐患点加载状态 ================================
|
||||
|
||||
/**
|
||||
* 隐患点加载信息状态
|
||||
*/
|
||||
const hiddenPoint = reactive({
|
||||
/** 加载状态 */
|
||||
loading: false,
|
||||
/** 隐患点ID */
|
||||
id: -1,
|
||||
});
|
||||
|
||||
// ============================ 风险点加载状态 ================================
|
||||
|
||||
/**
|
||||
@@ -116,6 +106,38 @@ export const useLoadingInformationStore = defineStore(
|
||||
id: -1,
|
||||
});
|
||||
|
||||
// ============================== 滑坡隐患点状态 ================================
|
||||
const landslideHiddenPoint = reactive({
|
||||
/** 加载状态 */
|
||||
loading: false,
|
||||
/** 滑坡隐患点ID */
|
||||
id: -1,
|
||||
});
|
||||
|
||||
// ============================== 泥石流隐患点状态 ================================
|
||||
const debrisFlowHiddenPoint = reactive({
|
||||
/** 加载状态 */
|
||||
loading: false,
|
||||
/** 泥石流隐患点ID */
|
||||
id: -1,
|
||||
});
|
||||
|
||||
// ============================== 内涝隐患点状态 ================================
|
||||
const waterLoggingHiddenPoint = reactive({
|
||||
/** 加载状态 */
|
||||
loading: false,
|
||||
/** 内涝隐患点ID */
|
||||
id: -1,
|
||||
});
|
||||
|
||||
// ============================== 山洪隐患点状态 ================================
|
||||
const flashFloodHiddenPoint = reactive({
|
||||
/** 加载状态 */
|
||||
loading: false,
|
||||
/** 山洪隐患点ID */
|
||||
id: -1,
|
||||
});
|
||||
|
||||
/**
|
||||
* 重置所有状态
|
||||
*/
|
||||
@@ -124,10 +146,6 @@ export const useLoadingInformationStore = defineStore(
|
||||
clickObject.id = '';
|
||||
clickObject.primitive = null;
|
||||
|
||||
// 隐患点状态重置
|
||||
hiddenPoint.loading = false;
|
||||
hiddenPoint.id = -1;
|
||||
|
||||
// 风险点状态重置
|
||||
riskPoint.loading = false;
|
||||
riskPoint.id = -1;
|
||||
@@ -167,11 +185,26 @@ export const useLoadingInformationStore = defineStore(
|
||||
// 地铁站点状态重置
|
||||
subwayStation.loading = false;
|
||||
subwayStation.id = -1;
|
||||
|
||||
// 滑坡隐患点状态重置
|
||||
landslideHiddenPoint.loading = false;
|
||||
landslideHiddenPoint.id = -1;
|
||||
|
||||
// 泥石流隐患点状态重置
|
||||
debrisFlowHiddenPoint.loading = false;
|
||||
debrisFlowHiddenPoint.id = -1;
|
||||
|
||||
// 内涝隐患点状态重置
|
||||
waterLoggingHiddenPoint.loading = false;
|
||||
waterLoggingHiddenPoint.id = -1;
|
||||
|
||||
// 山洪隐患点状态重置
|
||||
flashFloodHiddenPoint.loading = false;
|
||||
flashFloodHiddenPoint.id = -1;
|
||||
};
|
||||
|
||||
return {
|
||||
clickObject,
|
||||
hiddenPoint,
|
||||
riskPoint,
|
||||
hospital,
|
||||
dangerousSource,
|
||||
@@ -182,6 +215,10 @@ export const useLoadingInformationStore = defineStore(
|
||||
bridge,
|
||||
reservoir,
|
||||
subwayStation,
|
||||
landslideHiddenPoint,
|
||||
debrisFlowHiddenPoint,
|
||||
waterLoggingHiddenPoint,
|
||||
flashFloodHiddenPoint,
|
||||
resetStatue,
|
||||
|
||||
};
|
||||
|
||||
@@ -54,11 +54,6 @@ export const useStatusStore = defineStore('status', () => {
|
||||
show: true,
|
||||
loading: true,
|
||||
},
|
||||
/** 隐患点显示状态 */
|
||||
hiddenDangerPointShow: {
|
||||
show: true,
|
||||
loading: true,
|
||||
},
|
||||
/** 风险点显示状态 */
|
||||
riskPointShow: {
|
||||
show: true,
|
||||
@@ -115,6 +110,26 @@ export const useStatusStore = defineStore('status', () => {
|
||||
show: false,
|
||||
loading: false,
|
||||
},
|
||||
/** 显示滑坡隐患点 */
|
||||
showLandslideHiddenPoint: {
|
||||
show: true,
|
||||
loading: true,
|
||||
},
|
||||
/** 显示泥石流隐患点 */
|
||||
showDebrisFlowHiddenPoint: {
|
||||
show: true,
|
||||
loading: true,
|
||||
},
|
||||
/** 显示内涝隐患点 */
|
||||
showWaterLoggingHiddenPoint: {
|
||||
show: true,
|
||||
loading: true,
|
||||
},
|
||||
/** 显示山洪隐患点 */
|
||||
showFlashFloodHiddenPoint: {
|
||||
show: true,
|
||||
loading: true,
|
||||
},
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -207,10 +222,6 @@ export const useStatusStore = defineStore('status', () => {
|
||||
show: true,
|
||||
loading: true,
|
||||
};
|
||||
mapLayers.hiddenDangerPointShow = {
|
||||
show: true,
|
||||
loading: true,
|
||||
};
|
||||
mapLayers.riskPointShow = {
|
||||
show: true,
|
||||
loading: true,
|
||||
@@ -249,6 +260,22 @@ export const useStatusStore = defineStore('status', () => {
|
||||
show: false,
|
||||
loading: false,
|
||||
};
|
||||
poiLayers.showLandslideHiddenPoint = {
|
||||
show: true,
|
||||
loading: true,
|
||||
};
|
||||
poiLayers.showDebrisFlowHiddenPoint = {
|
||||
show: true,
|
||||
loading: true,
|
||||
};
|
||||
poiLayers.showWaterLoggingHiddenPoint = {
|
||||
show: true,
|
||||
loading: true,
|
||||
};
|
||||
poiLayers.showFlashFloodHiddenPoint = {
|
||||
show: true,
|
||||
loading: true,
|
||||
};
|
||||
|
||||
// 基础设施图层显示状态重置
|
||||
infrastructureLayers.showNetworkSystem = {
|
||||
|
||||
Reference in New Issue
Block a user