update
1.新需求2025.9.19新需求: 去掉"健康监测"副屏, 修改后健康终端报警点击查看详情弹出告警记录分页列表; 去掉【体检人数统计】【体检数据】【健康打卡数据】,增加【心血管监测】模块功能,【心血管监测】功能将原心血管监测大屏上的内容整理并移动到急救服务平台大屏中; 员工求助时,地图中推荐两个医院、两个健康小屋、两个AED坐标信息,并按距离排序,体现距离远近顺序; 地图中油田医院、健康小屋等各个图例,显示总数信息; 救护车坐标信息维护,并在大屏上标记; 右上角"增加【救助信息】板块, 当出现应急弹窗后或从今日应急选中应急事件 , 该板块需展示应急事件的相关信息(开发中);
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { mapIcon1, mapIcon11, mapIcon4, mapIcon41, mapIcon5, mapIcon51, watchIconR } from '/@/components/chinaMap/chinaHooks.ts';
|
||||
import { mapIcon1, mapIcon11, mapIcon3, mapIcon4, mapIcon41, mapIcon5, mapIcon51, watchIconR } from '/@/components/chinaMap/chinaHooks.ts';
|
||||
import * as turf from '@turf/turf';
|
||||
|
||||
/**
|
||||
@@ -20,22 +20,27 @@ export function createIcon({ icon, iconSize, imageSize }) {
|
||||
* @type 1:油田医院,2:健康小屋,4:AED
|
||||
*/
|
||||
export function typeToIcon(type: string) {
|
||||
const iconSize = [28, 49];
|
||||
const imageSize = [28, 49];
|
||||
// const iconSize = [28, 49];
|
||||
// const imageSize = [28, 49];
|
||||
if (type == '1') {
|
||||
return createIcon({ icon: mapIcon1, iconSize, imageSize });
|
||||
}
|
||||
if (type == '2') {
|
||||
return createIcon({ icon: mapIcon5, iconSize, imageSize });
|
||||
// return createIcon({ icon: mapIcon1, iconSize, imageSize });
|
||||
return mapIcon1;
|
||||
}
|
||||
if (type == '3') {
|
||||
return createIcon({ icon: mapIcon5, iconSize, imageSize });
|
||||
// return createIcon({ icon: mapIcon5, iconSize, imageSize });
|
||||
return mapIcon5;
|
||||
}
|
||||
if (type == '4') {
|
||||
return createIcon({ icon: mapIcon4, iconSize, imageSize });
|
||||
// return createIcon({ icon: mapIcon4, iconSize, imageSize });
|
||||
return mapIcon4;
|
||||
}
|
||||
if (type == '5') {
|
||||
// return createIcon({ icon: mapIcon3, iconSize, imageSize });
|
||||
return mapIcon3;
|
||||
}
|
||||
if (type === 'user') {
|
||||
return createIcon({ icon: watchIconR, iconSize, imageSize });
|
||||
// return createIcon({ icon: watchIconR, iconSize, imageSize });
|
||||
return watchIconR;
|
||||
}
|
||||
}
|
||||
export function typeToIcon1(type: string) {
|
||||
@@ -44,15 +49,15 @@ export function typeToIcon1(type: string) {
|
||||
if (type == '1') {
|
||||
return createIcon({ icon: mapIcon11, iconSize, imageSize });
|
||||
}
|
||||
if (type == '2') {
|
||||
return createIcon({ icon: mapIcon51, iconSize, imageSize });
|
||||
}
|
||||
if (type == '3') {
|
||||
return createIcon({ icon: mapIcon51, iconSize, imageSize });
|
||||
}
|
||||
if (type == '4') {
|
||||
return createIcon({ icon: mapIcon41, iconSize, imageSize });
|
||||
}
|
||||
if (type == '5') {
|
||||
return createIcon({ icon: mapIcon3, iconSize, imageSize });
|
||||
}
|
||||
if (type === 'user') {
|
||||
const iconS = [36, 88];
|
||||
const imageS = [36, 88];
|
||||
|
||||
Reference in New Issue
Block a user