隐患点风险点添加颜色字段(未完成)

This commit is contained in:
wzy-warehouse
2026-06-17 14:50:56 +08:00
parent 0f590ef960
commit a018957454
9 changed files with 34 additions and 12 deletions
+8 -1
View File
@@ -24,6 +24,13 @@ export const useHiddenPoint = () => {
riskGrade: '风险等级',
};
/**
* 颜色
*/
const color = {
probability: 'red',
};
/**
* 根据灾害类型获取对应图标
* @param disasterType - 灾害类型(支持中英文)
@@ -52,5 +59,5 @@ export const useHiddenPoint = () => {
}
}
return { field, getDisasterIcon };
return { field, color, getDisasterIcon };
};
+8 -1
View File
@@ -28,6 +28,13 @@ export const useRiskPoint = () => {
lat: '纬度',
};
/**
* 颜色
*/
const color = {
probability: 'red',
};
/**
* 获取风险点图标
* @returns 图标路径
@@ -36,5 +43,5 @@ export const useRiskPoint = () => {
return riskAreaIcon;
}
return { informationBoxTitle, field, getDisasterIcon };
return { informationBoxTitle, field, color, getDisasterIcon };
};