From 04f28b4acc4a96bd724d30e769bb95203729c024 Mon Sep 17 00:00:00 2001 From: dearlin <1261008090@qq.com> Date: Fri, 26 Jan 2024 15:52:00 +0800 Subject: [PATCH] =?UTF-8?q?ai=E8=A7=86=E9=A2=91=E6=8A=A5=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/asyncRouter.js | 29 +-- src/request/aiwarning_manager.js | 8 + src/views/enterprise_management/user/add.vue | 4 +- .../identifying_parts/components/add.vue | 95 +--------- .../components/electronic_fence.vue | 81 ++++++++ .../ai_warning/components/add.vue | 155 ++++++++++++++++ src/views/video_manager/ai_warning/index.vue | 174 ++++++++++++++++++ 7 files changed, 446 insertions(+), 100 deletions(-) create mode 100644 src/request/aiwarning_manager.js create mode 100644 src/views/risk_control/identifying_parts/components/electronic_fence.vue create mode 100644 src/views/video_manager/ai_warning/components/add.vue create mode 100644 src/views/video_manager/ai_warning/index.vue diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index 0f149b1..a9e5ac6 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -818,13 +818,13 @@ export default [ path: "/keyprojects/inspection/record_list", meta: { title: "查看列表", - activeMenu: "/keyprojects/inspection" + activeMenu: "/keyprojects/inspection", }, component: "children", children: [ { path: "", - component: "keyprojects/inspection/record_list" + component: "keyprojects/inspection/record_list", }, { path: "/keyprojects/inspection/record_view", @@ -834,9 +834,9 @@ export default [ }, component: "keyprojects/inspection/record_view", }, - ] + ], }, - ] + ], }, { path: "/keyprojects/hidden", @@ -851,13 +851,13 @@ export default [ path: "/keyprojects/hidden/record_list", meta: { title: "查看列表", - activeMenu: "/keyprojects/hidden" + activeMenu: "/keyprojects/hidden", }, component: "children", children: [ { path: "", - component: "keyprojects/hidden/record_list" + component: "keyprojects/hidden/record_list", }, { path: "/keyprojects/hidden/record_view", @@ -867,9 +867,9 @@ export default [ }, component: "keyprojects/hidden/record_view", }, - ] + ], }, - ] + ], }, { path: "/keyprojects/punish", @@ -884,13 +884,13 @@ export default [ path: "/keyprojects/punish/record_list", meta: { title: "查看列表", - activeMenu: "/keyprojects/punish" + activeMenu: "/keyprojects/punish", }, component: "children", children: [ { path: "", - component: "keyprojects/punish/record_list" + component: "keyprojects/punish/record_list", }, { path: "/keyprojects/punish/record_view", @@ -900,9 +900,9 @@ export default [ }, component: "keyprojects/punish/record_view", }, - ] + ], }, - ] + ], }, { path: "/keyprojects/aiwarning", @@ -1969,6 +1969,11 @@ export default [ meta: { title: "视频设备列表", isSubMenu: false }, component: "video_manager/video_manager/index", }, + { + path: "/video_manager/ai_warning", + meta: { title: "Ai报警", isSubMenu: false }, + component: "video_manager/ai_warning/index", + }, ], }, { diff --git a/src/request/aiwarning_manager.js b/src/request/aiwarning_manager.js new file mode 100644 index 0000000..d3f0042 --- /dev/null +++ b/src/request/aiwarning_manager.js @@ -0,0 +1,8 @@ +import { post } from "@/request/axios.js"; + +export const getAiWarningList = (params) => post("/aiwarning/list", params); // ai报警列表 + +export const getAiWarningView = (params) => post("/aiwarning/goEdit", params); // 台账添加 +export const setAiWarningDelete = (params) => + post("/aiwarning/removeByIds", params); // 删除 +export const setAiWarningEdit = (params) => post("/aiwarning/edit", params); // 修改 diff --git a/src/views/enterprise_management/user/add.vue b/src/views/enterprise_management/user/add.vue index 669f0cb..c3d4a16 100644 --- a/src/views/enterprise_management/user/add.vue +++ b/src/views/enterprise_management/user/add.vue @@ -58,8 +58,8 @@ diff --git a/src/views/risk_control/identifying_parts/components/add.vue b/src/views/risk_control/identifying_parts/components/add.vue index 4c3f51f..d36104b 100644 --- a/src/views/risk_control/identifying_parts/components/add.vue +++ b/src/views/risk_control/identifying_parts/components/add.vue @@ -33,7 +33,10 @@ style="width: 240px" disabled /> - 添加 取消 确定 + - - - - - - - - - - - - 搜索 - - 重置 - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/video_manager/ai_warning/components/add.vue b/src/views/video_manager/ai_warning/components/add.vue new file mode 100644 index 0000000..43d9a91 --- /dev/null +++ b/src/views/video_manager/ai_warning/components/add.vue @@ -0,0 +1,155 @@ + + + + + diff --git a/src/views/video_manager/ai_warning/index.vue b/src/views/video_manager/ai_warning/index.vue new file mode 100644 index 0000000..2592f3a --- /dev/null +++ b/src/views/video_manager/ai_warning/index.vue @@ -0,0 +1,174 @@ + + + + +