From 2e172df365a8a599f000c8a7c7b48a820858c8e5 Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Fri, 23 Feb 2024 09:06:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/axios.js | 8 +- src/request/map_settings.js | 17 ++ .../components/add.vue | 74 +++++++ .../components/selecting_points.vue | 38 ++++ .../assignment_ticket_area_settings/index.vue | 188 ++++++++++++++++++ .../layer_settings/components/add.vue | 47 +++++ .../components/edit_layer_info.vue | 69 +++++++ .../map_settings/layer_settings/index.vue | 156 +++++++++++++++ 8 files changed, 596 insertions(+), 1 deletion(-) create mode 100644 src/request/map_settings.js create mode 100644 src/views/map_settings/assignment_ticket_area_settings/components/add.vue create mode 100644 src/views/map_settings/assignment_ticket_area_settings/components/selecting_points.vue create mode 100644 src/views/map_settings/assignment_ticket_area_settings/index.vue create mode 100644 src/views/map_settings/layer_settings/components/add.vue create mode 100644 src/views/map_settings/layer_settings/components/edit_layer_info.vue create mode 100644 src/views/map_settings/layer_settings/index.vue diff --git a/src/request/axios.js b/src/request/axios.js index b701c6b..4357615 100644 --- a/src/request/axios.js +++ b/src/request/axios.js @@ -85,7 +85,13 @@ export function post(url, params) { res.data.result = "success"; } if (res.data.result === "success") { - resolve(res.data); + if (res.config.url.split("/")[1] === "positAlarm") { + if (res.data.code === 200 || res.data.code === 0) resolve(res.data); + else { + ElMessage.error(res.data.msg || "系统开小差了"); + reject(res.data); + } + } else resolve(res.data); } else { ElMessage.error( res.data.msg || diff --git a/src/request/map_settings.js b/src/request/map_settings.js new file mode 100644 index 0000000..231bc14 --- /dev/null +++ b/src/request/map_settings.js @@ -0,0 +1,17 @@ +import { post } from "@/request/axios.js"; + +export const getLayerSettingsList = (params) => + post("/positAlarm/list", params); // 图层设置列表 +export const getLayerSettingsView = (params) => + post("/positAlarm/goEdit", params); // 图层设置查看 +export const setLayerSettingsDelete = (params) => + post("/positAlarm/remove", params); // 图层设置删除 +export const setLayerSettingsAdd = (params) => post("/positAlarm/save", params); // 图层设置新增 +export const setLayerSettingsEdit = (params) => + post("/positAlarm/edit", params); // 图层设置编辑 +export const getAssignmentTicketAreaSettingsList = (params) => + post("/positAlarm/otherRegion/list", params); // 作业票区域设置列表 +export const setAssignmentTicketAreaSettingsDeactivateOrEnable = (params) => + post("/positAlarm/otherRegion/editStatus", params); // 作业票区域设置停用启用 +export const setAssignmentTicketAreaSettingsDelete = (params) => + post("/positAlarm/otherRegion/regionDelete", params); // 作业票区域设置删除 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 new file mode 100644 index 0000000..107eb4e --- /dev/null +++ b/src/views/map_settings/assignment_ticket_area_settings/components/add.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/src/views/map_settings/assignment_ticket_area_settings/components/selecting_points.vue b/src/views/map_settings/assignment_ticket_area_settings/components/selecting_points.vue new file mode 100644 index 0000000..17475c3 --- /dev/null +++ b/src/views/map_settings/assignment_ticket_area_settings/components/selecting_points.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/src/views/map_settings/assignment_ticket_area_settings/index.vue b/src/views/map_settings/assignment_ticket_area_settings/index.vue new file mode 100644 index 0000000..c7dd05a --- /dev/null +++ b/src/views/map_settings/assignment_ticket_area_settings/index.vue @@ -0,0 +1,188 @@ + + + + + diff --git a/src/views/map_settings/layer_settings/components/add.vue b/src/views/map_settings/layer_settings/components/add.vue new file mode 100644 index 0000000..58964b5 --- /dev/null +++ b/src/views/map_settings/layer_settings/components/add.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/src/views/map_settings/layer_settings/components/edit_layer_info.vue b/src/views/map_settings/layer_settings/components/edit_layer_info.vue new file mode 100644 index 0000000..904f9d9 --- /dev/null +++ b/src/views/map_settings/layer_settings/components/edit_layer_info.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/src/views/map_settings/layer_settings/index.vue b/src/views/map_settings/layer_settings/index.vue new file mode 100644 index 0000000..732ef2c --- /dev/null +++ b/src/views/map_settings/layer_settings/index.vue @@ -0,0 +1,156 @@ + + + + +