From 84e05164e9e89ac0cca46d49e161c47b8573064b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Mon, 21 Aug 2023 19:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=8C=BA=E5=8F=97=E6=94=BB=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/zongzhi/netSecurity/mapData/index.js | 53 ++++ src/views/netSecurity/mapData/index.vue | 308 +++++++++++++++++++ 2 files changed, 361 insertions(+) create mode 100644 src/api/zongzhi/netSecurity/mapData/index.js create mode 100644 src/views/netSecurity/mapData/index.vue diff --git a/src/api/zongzhi/netSecurity/mapData/index.js b/src/api/zongzhi/netSecurity/mapData/index.js new file mode 100644 index 0000000..8ce79a7 --- /dev/null +++ b/src/api/zongzhi/netSecurity/mapData/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询地区受攻击列表 +export function listAttack(query) { + return request({ + url: "/zongzhi/attack/list", + method: "get", + params: query, + }); +} + +// 查询地区受攻击详细 +export function getAttack(id) { + return request({ + url: "/zongzhi/attack/" + id, + method: "get", + }); +} + +// 新增地区受攻击 +export function addAttack(data) { + return request({ + url: "/zongzhi/attack", + method: "post", + data: data, + }); +} + +// 修改地区受攻击 +export function updateAttack(data) { + return request({ + url: "/zongzhi/attack", + method: "put", + data: data, + }); +} + +// 删除地区受攻击 +export function delAttack(id) { + return request({ + url: "/zongzhi/attack/" + id, + method: "delete", + }); +} + +// 导出地区受攻击 +export function exportAttack(data) { + return request({ + url: "/zongzhi/attack/export", + method: "post", + data, + }); +} diff --git a/src/views/netSecurity/mapData/index.vue b/src/views/netSecurity/mapData/index.vue new file mode 100644 index 0000000..840aba3 --- /dev/null +++ b/src/views/netSecurity/mapData/index.vue @@ -0,0 +1,308 @@ + + + + + + + + + 搜索 + 重置 + + + + + 新增 + 修改 + 删除 + 导出 + + + + + + + + + 查看 + + 修改 + 删除 + + + + + + + + + {{ title }} + + + + + + + + + + + + + + {{ infoTitle }} + + + {{ form.name }} + + {{ form.attackCount }} + + + + + + + +