Files
fe_service_ebtp_frontend/src/pages/ElecEvaluation/Monitor/service.ts
2023-06-20 10:33:32 +08:00

432 lines
11 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request';
/**
* 首页-今日开标
* @param data
*/
export async function getTodayOpeningAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/opening/getTodayOpening', {
method: 'POST',
data: { ...data },
});
}
/**
* 首页-地图
* @param data
*/
export async function getReviewDistributionAPI() {
return request('/api/biz-service-ebtp-statistics/opening/getProvincesList', {
method: 'GET',
});
}
/**
* 首页-开标大厅资源
* @param data
*/
export async function getOpeningListAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/opening/openList', {
method: 'POST',
data: { ...data },
});
}
/**
* 首页-上面前三个指标和招标代理实施项目统计
* @param data
*/
export async function getAnnualAndTenderAgentAPI(year: any) {
return request(`/api/biz-service-ebtp-statistics/indexMonitor/getProjectData/${year}`, {
method: 'GET',
});
}
/**
* 首页-活跃供应商
* @param data
*/
export async function getActiveSupplierAPI(params: any) {
return request(`/api/biz-service-ebtp-statistics/indexMonitor/indexQuerySupplier/${params}`, {
method: 'GET',
});
}
/**
* 首页-参与供应商数
*/
export async function getSupplierCountAPI(params: any) {
return request(`/api/biz-service-ebtp-statistics/v1/tenderMonitor/supplierCount`, {
method: 'GET',
params: params
});
}
/**
* 首页-公告公示数量
*/
export async function getAnnoCountAPI(params: any) {
return request(`/api/biz-service-ebtp-statistics/indexMonitor/annoCount/${params}`, {
method: 'GET',
});
}
/**
* 首页-评审专家数量
*/
export async function getExpertNumberAPI(params: any) {
return request(`/api/biz-service-ebtp-statistics/api/evaluation/monitor/expertNumber/${params}`, {
method: 'GET',
});
}
/**
* 异常监控-超过1小时未开标数量
* @param data
*/
export async function getNoOpenNumberAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/opening/noOpenNumber', {
method: 'POST',
data: { ...data },
});
}
/**
* 异常监控-开启评审后3日未结束评标
*/
export async function getThreeDayNoEndAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/api/evaluation/exception/threedaynoend', {
method: 'POST',
data: { ...data },
});
}
/**
* 异常监控-开启评审后3日未结束评标-数量
*/
export async function getThreeDayNoEndCountAPI() {
return request('/api/biz-service-ebtp-statistics/api/evaluation/exception/threedaynoend/count', {
method: 'GET',
});
}
/**
* 异常监控-超过1小时未开标数量-列表
* @param data
*/
export async function getNoOpenListAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/opening/noOpenList', {
method: 'POST',
data: { ...data },
});
}
/**
* 异常监控-开标后超过6小时未开启评审室-列表
* @param data
*/
export async function getNoOpenAssessListAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/opening/noOpenAssessList', {
method: 'POST',
data: { ...data },
});
}
/**
* 异常监控-开标后超过6小时未开启评审室-数量
* @param data
*/
export async function getNoOpenAssessNumberAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/opening/noOpenAssessNumber', {
method: 'POST',
data: { ...data },
});
}
/**
* 异常监控-解密异常列表、解密异常数量
*/
export async function getDecryptExceptionListAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/exceptionMonitor/getDecryptExceptionList', {
method: 'POST',
data: { ...data }
});
}
/**
* 异常监控-mac地址相同列表mac地址相同数量
*/
export async function getMacSameListAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/exceptionMonitor/getMacSameList', {
method: 'POST',
data: { ...data }
});
}
/**
* 异常监控-评审室关闭3日内未发布公示数
*/
export async function getThreeDaysUnSendAnnoCountAPI() {
return request('/api/biz-service-ebtp-statistics/exceptionMonitor/threeDaysUnSendAnnoCount', {
method: 'GET',
});
}
/**
* 异常监控-评审室关闭3日内未发布公示列表
*/
export async function getThreeDaysUnSendAnnoListAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/exceptionMonitor/threeDaysUnSendAnnoList', {
method: 'POST',
data: { ...data }
});
}
/**
* 今日开标-评标阶段,评标及时率
*/
export async function getTodayInfoAPI() {
return request('/api/biz-service-ebtp-statistics/api/evaluation/today/info', {
method: 'GET',
});
}
/**
* 今日开标-评标阶段10小时未评标
*/
export async function getUnopenTenAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/api/evaluation/today/unopen/ten', {
method: 'POST',
data: { ...data },
});
}
/**
* 今日开标-评标阶段6小时未评标
*/
export async function getUnopenSixAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/api/evaluation/today/unopen/six', {
method: 'POST',
data: { ...data },
});
}
/**
* 今日开标-解密成功率
*/
export async function getDecryptSuccessRateTodayAPI(data: any) {
return request('/api/biz-service-ebtp-statistics/exceptionMonitor/getDecryptSuccessRateToday', {
method: 'POST',
data: { ...data }
});
}
/**
* 供应商概况-上面六个指标
*/
export async function getSupplierInfoAPI(params: any) {
return request(`/api/biz-service-ebtp-statistics/v1/tenderMonitor/supplierInfo/${params}`, {
method: 'GET',
});
}
/**
* 供应商概况-全国活跃供应商排名
*/
export async function getActiveSupplierRankAPI(params: any) {
return request(`/api/biz-service-ebtp-statistics/v1/tenderMonitor/activeSupplierRank/${params}`, {
method: 'GET',
});
}
/**
* 供应商概况-省份活跃供应商
*/
export async function getProvinceActiveSupplierInfoAPI(params: any) {
return request(`/api/biz-service-ebtp-statistics/v1/tenderMonitor/provinceActiveSupplierInfo/${params}`, {
method: 'GET',
});
}
/**
* 招标代理机构概况-相关统计数据
*/
export async function getTenderAgentDataAPI(year: string) {
return request('/api/biz-service-ebtp-statistics/tenderAgent/getTenderAgentData/' + year, {
method: 'GET',
});
}
/**
* 招标代理机构概况-代理分布省分
*/
export async function getProvinceByAgencyAPI(agencyId: any, year: any) {
return request(`/api/biz-service-ebtp-statistics/tenderAgent/getProvinceByAgency/${agencyId}/${year}`, {
method: 'GET',
});
}
/**
* 首页-获取评标室监控列表
* @param data
* @returns
*/
export async function getMonitorListAPI(data: any) {
return request('/api/biz-service-ebtp-evaluation/v1/screen/getReviewRoomList', {
method: 'POST',
data: data,
});
}
/**
* 评标室监控列表-获取评标室监控列表
* @param data
* @returns
*/
export async function getMonitorList(data: any) {
return request('/api/biz-service-ebtp-evaluation/v1/screen/getReviewRoomList', {
method: 'POST',
data: data,
});
}
/**
* 评标室监控详情-获取评标室内容数据
* @param id
* @returns
*/
export async function getBidRoomData(id: any) {
return request('/api/biz-service-ebtp-evaluation/v1/screen/getReviewRoom/' + id, {
method: 'GET',
});
}
/**
* 评标室监控详情-设备列表
* @param params
* @returns
*/
export async function getCameraList(params: any) {
return request('/api/biz-service-ebtp-evaluation/v1/screen/queryAreaCamera', {
method: 'GET',
params: params,
});
}
/**
* 评标室监控详情-设备列表 new
* @param data
* @returns
*/
export async function getCameraListNew(data: any) {
return request('/api/biz-service-ebtp-evaluation/v1/eval/room/jovision/getDevicePage', {
method: 'POST',
data: data,
});
}
/**
* 评标室监控详情-获取视频流
* @param data
* @returns
*/
export async function getLiveStream(data: any) {
console.log(data);
return request('/api/biz-service-ebtp-evaluation/v1/eval/room/jovision/getLiveStream', {
method: 'POST',
data: data,
});
}
/**
* 评标室监控详情-设备回放地址查询(通过时间方式)
* @param data
* @returns
*/
export async function getRecordPlaybackTime(data: any) {
console.log(data);
return request('/api/biz-service-ebtp-evaluation/v1/eval/room/jovision/getRecordPlaybackTime', {
method: 'POST',
data: data,
});
}
/**
* 查询事件告警信息-陌生人
* @param data
* @returns
*/
export async function getAlarmMetadata1(data: any) {
data["sourceCode"]="strangerAlarm";
return getAlarmMetadata(data);
}
/**
* 查询事件告警信息-人员密度过高报警
* @param data
* @returns
*/
export async function getAlarmMetadata2(data: any) {
data["sourceCode"]="HighPersonDensityAlarm";
return getAlarmMetadata(data);
}
/**
* 查询事件告警信息
* @param data
* @returns
*/
export async function getAlarmMetadata(data: any) {
console.log(data);
data["pageNum"]="1";
data["pageSize"]="6";
return request('/api/biz-service-ebtp-evaluation/v1/eval/room/jovision/getAlarmMetadata', {
method: 'POST',
data: data,
});
}
/**
* 评标室监控详情-专家报道列表
* @param data
* @returns
*/
export async function getExpertReports(data: any) {
return request('/api/biz-service-ebtp-evaluation/v1/screen/queryReportUser', {
method: 'POST',
data: data,
});
}
/**
* 评标室监控详情-回看列表
* @param params
* @returns
*/
export async function getLookBackList(params: any) {
return request('/api/biz-service-ebtp-evaluation/v1/eval/room/alarm/screamOfAlarm/back', {
method: 'POST',
params: params
});
}
// /**
// * 评标室监控详情-设备列表(回看)
// * @param id
// * @returns
// */
// export async function getCaremaBackList(id: any) {
// return request('/api/biz-service-ebtp-evaluation/v1/eval/room/reserve/' + id, {
// method: 'GET',
// });
// }
/**
* 评标室监控详情-陌生人预警-查询全部
* @param params
* @returns
*/
export async function getAllStranger(params: any) {
return request('/api/biz-service-ebtp-evaluation/v1/eval/room/alarm/screamOfAlarm/strangerImg', {
method: 'GET',
params: params
});
}
/**
* 评标室监控详情-异常预警
* @param params
* @returns
*/
export async function getWarnData(params?: any) {
return request('/api/biz-service-ebtp-evaluation/v1/eval/room/alarm/screamOfAlarm', {
method: 'GET',
params: { ...params },
});
}