61 lines
1.9 KiB
TypeScript
61 lines
1.9 KiB
TypeScript
import { get, post } from '/@/api/request.ts';
|
|
|
|
enum Api {
|
|
server = '/health-emergency/emergency/tblUserHelp/statistics',
|
|
getDetail = '/health-medical/medical/hospital/getMedicalHospitalNew',
|
|
getMonitorList = '/health-watch/watch/watchMonitorData/getMonitorList',
|
|
statisticsNew = '/health-emergency/emergency/LargeScreenNew/statisticsNew',
|
|
phoneListNew = '/health-emergency/emergency/LargeScreenNew/phoneListNew',
|
|
medicalCenterNew = '/health-emergency/emergency/LargeScreenNew/medicalCenterNew',
|
|
userHealthCenterNew = '/health-emergency/emergency/LargeScreenNew/userHealthCenterNew',
|
|
getAllList = '/health-emergency/emergency/LargeScreenNew/getAllListNew',
|
|
}
|
|
|
|
/**
|
|
* @description: 服务详情数据
|
|
* @param params
|
|
*/
|
|
export const statisticsNewApi = (params: any) => post(Api.statisticsNew, params);
|
|
|
|
/**
|
|
* @description 一线医疗点每日工作动态
|
|
* @param params
|
|
*/
|
|
export const medicalCenterNew = (params: any) => post(Api.medicalCenterNew, params);
|
|
/**
|
|
* @description 员工队伍健康状况
|
|
* @param params
|
|
*/
|
|
|
|
export const userHealthCenterNew = (params: any) => {
|
|
return post(Api.userHealthCenterNew, params);
|
|
};
|
|
/**
|
|
* @description 获取体检数据
|
|
* @param params
|
|
*/
|
|
export const getPhysicalData = (params: any) => {
|
|
let { centerId, ...other } = params;
|
|
return post(Api.getDetail, other);
|
|
};
|
|
/**
|
|
* @description 呼入电话、受理电话
|
|
* @param params
|
|
*/
|
|
export const getPhoneList = (params: any) => post(Api.phoneListNew, params);
|
|
|
|
/**
|
|
* @description 健康终端报警
|
|
* @param params
|
|
*/
|
|
export const getMonitorList = (params: any) => {
|
|
let { orgCodeList, ...otherParams } = params;
|
|
return get(Api.getMonitorList + '?orgCodeList=' + orgCodeList, otherParams);
|
|
};
|
|
|
|
/**
|
|
* @description 获取地图所有资源
|
|
* @param params
|
|
*/
|
|
export const getMapListApi = (params: any) => post(Api.getAllList, params);
|