From e23d807e0f21f73e79c2795a279847da705bc153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Sun, 20 Apr 2025 13:31:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yanzhu-bigscreen/src/api/aiWarning.js | 32 ++ yanzhu-bigscreen/src/api/index.js | 2 + yanzhu-bigscreen/src/api/powerIot.js | 2 - yanzhu-bigscreen/src/components/header.vue | 7 +- yanzhu-bigscreen/src/router/index.js | 9 + yanzhu-bigscreen/src/views/projectDetail.vue | 2 +- .../src/views/safety/aiWarning.vue | 411 ++++++++++++++++++ .../manage/domain/DevAiProjectData.java | 14 +- .../yanzhu/manage/domain/ProPlanSchedule.java | 255 +++++++++++ .../manage/mapper/DevAiProjectDataMapper.java | 18 + .../manage/mapper/ProPlanScheduleMapper.java | 61 +++ .../com/yanzhu/security/utils/DictUtils.java | 21 + .../mapper/manage/DevAiProjectDataMapper.xml | 31 +- .../mapper/manage/ProPlanScheduleMapper.xml | 128 ++++++ .../resources/mapper/system/SysUserMapper.xml | 4 +- .../DevAiProjectDataController.java | 81 +++- .../controller/ProPlanScheduleController.java | 98 +++++ ...ProProjectInfoSubdeptsUsersController.java | 25 +- .../service/IDevAiProjectDataService.java | 18 + .../service/IProPlanScheduleService.java | 61 +++ .../impl/DevAiProjectDataServiceImpl.java | 28 +- .../impl/ProPlanScheduleServiceImpl.java | 97 +++++ 22 files changed, 1388 insertions(+), 17 deletions(-) create mode 100644 yanzhu-bigscreen/src/api/aiWarning.js create mode 100644 yanzhu-bigscreen/src/views/safety/aiWarning.vue create mode 100644 yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/domain/ProPlanSchedule.java create mode 100644 yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/mapper/ProPlanScheduleMapper.java create mode 100644 yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProPlanScheduleMapper.xml create mode 100644 yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProPlanScheduleController.java create mode 100644 yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/service/IProPlanScheduleService.java create mode 100644 yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/service/impl/ProPlanScheduleServiceImpl.java diff --git a/yanzhu-bigscreen/src/api/aiWarning.js b/yanzhu-bigscreen/src/api/aiWarning.js new file mode 100644 index 00000000..f291ca95 --- /dev/null +++ b/yanzhu-bigscreen/src/api/aiWarning.js @@ -0,0 +1,32 @@ +import request from "@/utils/request"; + +// 查询AI设备数据列表 +const list = (data) => { + return request({ + url: `/manage/devAiProjectData/list`, + method: 'get', + params: data, + }) +} + +// 统计AI预警数据 +const getDaysTrendView = (projectId) => { + return request({ + url: `/manage/devAiProjectData/getDaysTrendView/${projectId || 0}`, + method: 'get' + }) +} + +// 统计AI预警数据 +const groupCountByAlarmType = (projectId, now) => { + return request({ + url: `/manage/devAiProjectData/groupCountByAlarmType/${projectId || 0}?now=${now}`, + method: 'get' + }) +} + +export default { + list, + getDaysTrendView, + groupCountByAlarmType +} diff --git a/yanzhu-bigscreen/src/api/index.js b/yanzhu-bigscreen/src/api/index.js index ecd1c1b0..bdeaef43 100644 --- a/yanzhu-bigscreen/src/api/index.js +++ b/yanzhu-bigscreen/src/api/index.js @@ -8,6 +8,7 @@ import videoMonitor from "./videoMonitor"; import safety from "./safety"; import tower from "./tower"; import powerIot from "./powerIot"; +import aiWarning from "./aiWarning"; export default { http: axios, downFile: download, @@ -20,4 +21,5 @@ export default { safety, tower, powerIot, + aiWarning, }; diff --git a/yanzhu-bigscreen/src/api/powerIot.js b/yanzhu-bigscreen/src/api/powerIot.js index d5e677c7..0c5eacc4 100644 --- a/yanzhu-bigscreen/src/api/powerIot.js +++ b/yanzhu-bigscreen/src/api/powerIot.js @@ -32,8 +32,6 @@ const findIotWarnings = (proId,pointId) => { }); }; - - export default { findProAllConfigPoint, findConfigPointInfo, diff --git a/yanzhu-bigscreen/src/components/header.vue b/yanzhu-bigscreen/src/components/header.vue index 2ec51871..0f85eb2c 100644 --- a/yanzhu-bigscreen/src/components/header.vue +++ b/yanzhu-bigscreen/src/components/header.vue @@ -35,7 +35,7 @@ + @click="doNav(310)">AI预警 @@ -211,7 +211,10 @@ export default { break; case 306: this.$router.push("/powerIot"); - break; + break; + case 310: + this.$router.push("/aiWarning"); + break; case 4: this.$router.push("/prjQuality"); break; diff --git a/yanzhu-bigscreen/src/router/index.js b/yanzhu-bigscreen/src/router/index.js index f6297e32..ed0e97a8 100644 --- a/yanzhu-bigscreen/src/router/index.js +++ b/yanzhu-bigscreen/src/router/index.js @@ -82,6 +82,15 @@ const routes = [ /* webpackChunkName: "safetyCheck" */ "../views/safety/powerIot.vue" ), }, + { + path: "/aiWarning", + name: "aiWarning", + meta: { nav: 310 }, + component: () => + import( + /* webpackChunkName: "safetyCheck" */ "../views/safety/aiWarning.vue" + ), + }, { path: "/photography", name: "photography", diff --git a/yanzhu-bigscreen/src/views/projectDetail.vue b/yanzhu-bigscreen/src/views/projectDetail.vue index a550feab..b4caa443 100644 --- a/yanzhu-bigscreen/src/views/projectDetail.vue +++ b/yanzhu-bigscreen/src/views/projectDetail.vue @@ -136,7 +136,7 @@