fix:总览修改,病害修改,

This commit is contained in:
2024-11-13 15:37:25 +08:00
parent b029559c73
commit 912137cf0c
27 changed files with 1523 additions and 441 deletions
+74 -33
View File
@@ -11,49 +11,90 @@ export function roadRankList(query) {
// 病害趋势柱状图接口
export function roadTrends(query) {
return request({
url: "/bigscreen/getHistoryDefect",
method: "get",
params: query,
});
}
return request({
url: "/bigscreen/getHistoryDefect",
method: "get",
params: query,
});
}
// v1
// 今日巡查数据
export function roadToday(query) {
return request({
url: "/bigscreen/getInspectionInfo",
method: "get",
params: query,
});
}
// export function roadToday(query) {
// return request({
// url: "/bigscreen/getInspectionInfo",
// method: "get",
// params: query,
// });
// }
export function roadToday(query) {
return request({
url: "/bigscreen/v2/getInspectionInfo",
method: "get",
params: query,
});
}
// 今日巡查弹窗
export function roadTodayDetail(query) {
return request({
url: "/bigscreen/v2/getInspectionDetailInfo",
method: "get",
params: query,
});
}
// pci排名数据
export function roadPic(query) {
return request({
url: "/bigscreen/pciRanking",
method: "get",
params: query,
});
}
// pci排名数据
export function roadPic(query) {
return request({
url: "/bigscreen/pciRanking",
method: "get",
params: query,
});
}
// v2
// // 病害趋势3维饼图
// export function roadCurrent(query) {
// return request({
// url: "/bigscreen/roadStatus",
// method: "get",
// params: query,
// });
// }
// 病害趋势3维饼图
export function roadCurrent(query) {
return request({
url: "/bigscreen/roadStatus",
method: "get",
params: query,
});
}
return request({
url: "/bigscreen/v2/roadStatus",
method: "get",
params: query,
});
}
// 数据栏内右上角下拉框
export function getDropList(query) {
return request({
url: "/bigscreen/getDropdownList",
method: "get",
params: query,
});
}
return request({
url: "/bigscreen/getDropdownList",
method: "get",
params: query,
});
}
// 获取巡查里程数据
export function getMileage(query) {
return request({
url: "/bigscreen/v2/getTaskInfo",
method: "get",
params: query,
});
}
// 获取巡检车辆数据
export function getCarList(query) {
return request({
url: "/bigscreen/v2/getCarList",
method: "get",
params: query,
});
}
+20 -2
View File
@@ -43,19 +43,37 @@ export function comppanyImg() {
});
}
// v1
// 获取病害筛选弹窗列表数据
// export function defeaseList(data) {
// return request({
// url: "/bigscreen/getCurrentDefectPage",
// method: "post",
// data,
// });
// }
// 获取病害筛选弹窗列表数据
export function defeaseList(data) {
return request({
url: "/bigscreen/getCurrentDefectPage",
url: "/bigscreen/v2/getCurrentDefectPage",
method: "post",
data,
});
}
// 获取病害筛选弹窗路段下拉数据
// export function getSegment(data) {
// return request({
// url: "/bigscreen/selectIdList",
// method: "post",
// data,
// });
// }
export function getSegment(data) {
return request({
url: "/bigscreen/selectIdList",
url: "/bigscreen/v2/selectIdList",
method: "post",
data,
});
+70 -20
View File
@@ -1,27 +1,59 @@
/*
* @Author: SunTao 328867980@qq.com
* @Date: 2024-10-28 11:33:51
* @LastEditors: SunTao 328867980@qq.com
* @LastEditTime: 2024-11-13 14:18:33
* @FilePath: \znxjxt-ui\src\api\xj\screen\traffic-screen.js
* @Description: 大屏病害巡检接口
*/
import request from "@/utils/request";
// 交安事件接口
export function safetyData(query) {
// export function safetyData(query) {
// return request({
// url: "/bigscreen/getEventInfo",
// method: "get",
// params: query,
// });
// }
// 今日巡查数据
export function roadToday(query) {
return request({
url: "/bigscreen/getEventInfo",
url: "/bigscreen/v2/getInspectionInfo",
method: "get",
params: query,
});
}
// 今日巡查弹窗
export function roadTodayDetail(query) {
return request({
url: "/bigscreen/v2/getInspectionDetailInfo",
method: "get",
params: query,
});
}
// 交安事件趋势接口
export function eventLog(query) {
export function defectLog(query) {
return request({
url: "/bigscreen/getEventLog",
url: "/bigscreen/v2/getDefectLog",
method: "get",
params: query,
});
}
// 交安事件统计接口
export function statisticData(query) {
// export function statisticData(query) {
// return request({
// url: "/bigscreen/eventStatus",
// method: "get",
// params: query,
// });
// }
export function roadCurrent(query) {
return request({
url: "/bigscreen/eventStatus",
url: "/bigscreen/v2/roadStatus",
method: "get",
params: query,
});
@@ -29,19 +61,37 @@ export function statisticData(query) {
// 交安事件排名接口
export function rankCount(query) {
return request({
url: "/bigscreen/getEventCountRanking",
method: "get",
params: query,
});
}
return request({
url: "/bigscreen/getEventCountRanking",
method: "get",
params: query,
});
}
// 交安突发事件
export function emergencyData(query) {
return request({
url: "/bigscreen/getEmergencyEvent",
method: "get",
params: query,
});
}
// export function emergencyData(query) {
// return request({
// url: "/bigscreen/getEmergencyEvent",
// method: "get",
// params: query,
// });
// }
// 病害日志列表
export function emergencyData(data) {
return request({
url: "/bigscreen/v2/getCurrentDefectListPage",
method: "post",
data,
});
}
// 病害日志-病害类型下拉
export function DefectType(query) {
return request({
url: "/bigscreen/v2/getAllDefectType",
method: "get",
params: query,
});
}