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 @@ + + + + +