From 2f7623585f5ebbb11a40f7ded2ffe2ef4acf2b8e Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Mon, 26 Feb 2024 11:27:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=9A=E9=9B=86=E5=91=8A=E8=AD=A6=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E3=80=81=E8=81=9A=E9=9B=86=E6=A6=82=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/aggregation_management.js | 10 + src/request/map_settings.js | 3 +- .../gathering_alarm_records/index.vue | 63 +++ .../gathering_overview/index.vue | 452 ++++++++++++++++++ .../map_settings/path_planning/index.vue | 5 +- 5 files changed, 530 insertions(+), 3 deletions(-) create mode 100644 src/request/aggregation_management.js create mode 100644 src/views/aggregation_management/gathering_alarm_records/index.vue create mode 100644 src/views/aggregation_management/gathering_overview/index.vue diff --git a/src/request/aggregation_management.js b/src/request/aggregation_management.js new file mode 100644 index 0000000..c6d5611 --- /dev/null +++ b/src/request/aggregation_management.js @@ -0,0 +1,10 @@ +import { post } from "@/request/axios.js"; + +export const getGatheringAlarmRecordsList = (params) => + post("/positAlarm/getAlarmRecordList", params); // 聚集告警记录列表 +export const getAggregationAlarmTrend = (params) => + post("/positAlarm/aggregateAlarmTrends", params); // 聚集报警趋势 +export const getAggregatedDataStatistics = (params) => + post("/positAlarm/aggregateDataStatistics", params); // 聚集区域统计 +export const getAggregationAreaStatistics = (params) => + post("/positAlarm/aggregateDataStatisticsByGroup", params); // 聚集数据统计 diff --git a/src/request/map_settings.js b/src/request/map_settings.js index 7349c7a..eb33b12 100644 --- a/src/request/map_settings.js +++ b/src/request/map_settings.js @@ -25,8 +25,7 @@ export const setAssignmentTicketAreaSettingsDelete = (params) => post("/positAlarm/otherRegion/regionDelete", params); // 作业票区域设置删除 export const setPosition = (params) => post("/positAlarm/otherRegion/redrawTheArea", params); // 区域选点 -// TODO 接口不对 export const getPathPlanningList = (params) => - post("/positAlarm/coordinateLine/addCoordinateLine", params); // 路径规划列表 + post("/positAlarm/coordinateLine/tree", params); // 路径规划列表 export const setPathPlanningDelete = (params) => post("/positAlarm/coordinateLine/batchDelete", params); // 路径规划删除 diff --git a/src/views/aggregation_management/gathering_alarm_records/index.vue b/src/views/aggregation_management/gathering_alarm_records/index.vue new file mode 100644 index 0000000..e8a1061 --- /dev/null +++ b/src/views/aggregation_management/gathering_alarm_records/index.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/src/views/aggregation_management/gathering_overview/index.vue b/src/views/aggregation_management/gathering_overview/index.vue new file mode 100644 index 0000000..693862c --- /dev/null +++ b/src/views/aggregation_management/gathering_overview/index.vue @@ -0,0 +1,452 @@ + + + + + diff --git a/src/views/map_settings/path_planning/index.vue b/src/views/map_settings/path_planning/index.vue index bf4c839..fa4bfe4 100644 --- a/src/views/map_settings/path_planning/index.vue +++ b/src/views/map_settings/path_planning/index.vue @@ -86,7 +86,10 @@ import { reactive } from "vue"; import Add from "./components/add.vue"; const { list, searchForm, tableRef, pagination, fnGetData, fnResetPagination } = - useListData(getPathPlanningList); + useListData(getPathPlanningList, { + defaultSearchForm: { str: "" }, + key: "rows", + }); const data = reactive({ addDialogVisible: false, });