From e988d6014dd88b72ba66ebfd5cf1e810b3e0c42c Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Fri, 23 Feb 2024 15:05:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/index.vue | 5 + src/request/alarm_configuration.js | 20 ++ src/request/axios.js | 3 + src/request/map_settings.js | 13 + .../components/batch_processing.vue | 86 +++++ .../alarm_information/index.vue | 160 +++++++++ .../other_alarm_areas/index.vue | 9 + .../components/add.vue | 317 ++++++++++++++++++ .../other_alarm_configurations/index.vue | 185 ++++++++++ .../components/add.vue | 40 ++- .../assignment_ticket_area_settings/index.vue | 23 +- .../path_planning/components/add.vue | 38 +++ .../map_settings/path_planning/index.vue | 124 +++++++ 13 files changed, 1013 insertions(+), 10 deletions(-) create mode 100644 src/request/alarm_configuration.js create mode 100644 src/views/alarm_configuration/alarm_information/components/batch_processing.vue create mode 100644 src/views/alarm_configuration/alarm_information/index.vue create mode 100644 src/views/alarm_configuration/other_alarm_areas/index.vue create mode 100644 src/views/alarm_configuration/other_alarm_configurations/components/add.vue create mode 100644 src/views/alarm_configuration/other_alarm_configurations/index.vue create mode 100644 src/views/map_settings/path_planning/components/add.vue create mode 100644 src/views/map_settings/path_planning/index.vue diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 8b6cbcc..07a4ad3 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -15,6 +15,7 @@ :summary-method="summaryMethod" :span-method="spanMethod" :default-expand-all="defaultExpandAll" + :tree-props="treeProps" @row-click="rowClick" @row-dblclick="rowDblclick" > @@ -102,6 +103,10 @@ const props = defineProps({ spanMethod: { type: Function, }, + treeProps: { + type: Object, + default: () => ({ hasChildren: "hasChildren", children: "children" }), + }, }); const emits = defineEmits([ "update:pagination", diff --git a/src/request/alarm_configuration.js b/src/request/alarm_configuration.js new file mode 100644 index 0000000..cd4326a --- /dev/null +++ b/src/request/alarm_configuration.js @@ -0,0 +1,20 @@ +import { post } from "@/request/axios.js"; + +export const getOtherAlarmConfigurationsList = (params) => + post("/positAlarm/electronicFence/list", params); // 其他告警配置列表 +export const getOtherAlarmConfigurationsView = (params) => + post("/positAlarm/electronicFenceGoEdit", params); // 其他告警配置查看 +export const setOtherAlarmConfigurationsDelete = (params) => + post("/positAlarm/electronicFenceDelete", params); // 其他告警配置删除 +export const setOtherAlarmConfigurationsDeactivateOrEnable = (params) => + post("/positAlarm/electronicFenceStatus", params); // 其他告警配置停用启用 +export const setOtherAlarmConfigurationsAdd = (params) => + post("/positAlarm/electronicFenceSave", params); // 其他告警配置新增 +export const setOtherAlarmConfigurationsEdit = (params) => + post("/positAlarm/electronicFenceEdit", params); // 其他告警配置修改 +export const getAlarmInformationList = (params) => + post("/positAlarm/getAlArmDataList", params); // 告警信息列表 +export const setAlarmInformationBatchProcessing = (params) => + post("/positAlarm/alarmHandling", params); // 告警信息批量处理 +export const setAlarmInformationOneClickProcessing = (params) => + post("/positAlarm/alarmHandlingAll", params); // 告警信息一键处理 diff --git a/src/request/axios.js b/src/request/axios.js index 4357615..9869ab6 100644 --- a/src/request/axios.js +++ b/src/request/axios.js @@ -58,6 +58,9 @@ axios.interceptors.response.use( error.message = `连接错误${error.response.status}`; import.meta.env.DEV && ElMessage.error(`连接错误${error.response.status}`); + endLoading(); + ElMessage.error("登录失效,请重新登陆"); + router.push("/login").then(); } } else { error.message = "连接到服务器失败"; diff --git a/src/request/map_settings.js b/src/request/map_settings.js index 231bc14..13a8e61 100644 --- a/src/request/map_settings.js +++ b/src/request/map_settings.js @@ -11,7 +11,20 @@ export const setLayerSettingsEdit = (params) => post("/positAlarm/edit", params); // 图层设置编辑 export const getAssignmentTicketAreaSettingsList = (params) => post("/positAlarm/otherRegion/list", params); // 作业票区域设置列表 +export const getAssignmentTicketAreaSettingsView = (params) => + post("/positAlarm/otherRegion/regionGoEdit", params); // 作业票区域设置查看 +export const setAssignmentTicketAreaSettingsAdd = (params) => + post("/positAlarm/otherRegion/save", params); // 作业票区域设置新增 +export const setAssignmentTicketAreaSettingsEdit = (params) => + post("/positAlarm/otherRegion/regionEdit", params); // 作业票区域设置修改 +export const getSelectRegionTreeVo = (params) => + post("/positAlarm/otherRegion/selectRegionTreeVo", params); // 所属图层 export const setAssignmentTicketAreaSettingsDeactivateOrEnable = (params) => post("/positAlarm/otherRegion/editStatus", params); // 作业票区域设置停用启用 export const setAssignmentTicketAreaSettingsDelete = (params) => post("/positAlarm/otherRegion/regionDelete", params); // 作业票区域设置删除 +// TODO 接口不对 +export const getPathPlanningList = (params) => + post("/positAlarm/coordinateLine/addCoordinateLine", params); // 路径规划列表 +export const setPathPlanningDelete = (params) => + post("/positAlarm/coordinateLine/batchDelete", params); // 路径规划删除 diff --git a/src/views/alarm_configuration/alarm_information/components/batch_processing.vue b/src/views/alarm_configuration/alarm_information/components/batch_processing.vue new file mode 100644 index 0000000..b2a3bab --- /dev/null +++ b/src/views/alarm_configuration/alarm_information/components/batch_processing.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/src/views/alarm_configuration/alarm_information/index.vue b/src/views/alarm_configuration/alarm_information/index.vue new file mode 100644 index 0000000..8762a67 --- /dev/null +++ b/src/views/alarm_configuration/alarm_information/index.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/src/views/alarm_configuration/other_alarm_areas/index.vue b/src/views/alarm_configuration/other_alarm_areas/index.vue new file mode 100644 index 0000000..862d86e --- /dev/null +++ b/src/views/alarm_configuration/other_alarm_areas/index.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/alarm_configuration/other_alarm_configurations/components/add.vue b/src/views/alarm_configuration/other_alarm_configurations/components/add.vue new file mode 100644 index 0000000..41b3025 --- /dev/null +++ b/src/views/alarm_configuration/other_alarm_configurations/components/add.vue @@ -0,0 +1,317 @@ + + + + + diff --git a/src/views/alarm_configuration/other_alarm_configurations/index.vue b/src/views/alarm_configuration/other_alarm_configurations/index.vue new file mode 100644 index 0000000..bf8c378 --- /dev/null +++ b/src/views/alarm_configuration/other_alarm_configurations/index.vue @@ -0,0 +1,185 @@ + + + + + diff --git a/src/views/map_settings/assignment_ticket_area_settings/components/add.vue b/src/views/map_settings/assignment_ticket_area_settings/components/add.vue index 107eb4e..570a579 100644 --- a/src/views/map_settings/assignment_ticket_area_settings/components/add.vue +++ b/src/views/map_settings/assignment_ticket_area_settings/components/add.vue @@ -9,7 +9,14 @@ - + + + - 作业票区域 + + {{ type === 1 ? "作业票区域" : "告警区域" }} +