From e3e0b966c0eeea543c631f250b1b9b90d21fb4ea Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Wed, 24 Apr 2024 13:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sidebar.vue | 4 + src/router/index.js | 12 + src/utils/api/reportApi.js | 27 ++ src/views/photographicDevice/index.vue | 52 ++- src/views/reportData/index.vue | 47 +++ .../photostatis/components/ipDialog.vue | 45 +++ .../photostatis/components/photoList.vue | 200 ++++++++++ src/views/reportData/photostatis/index.vue | 359 ++++++++++++++++++ vue.config.js | 6 +- 9 files changed, 746 insertions(+), 6 deletions(-) create mode 100644 src/utils/api/reportApi.js create mode 100644 src/views/reportData/index.vue create mode 100644 src/views/reportData/photostatis/components/ipDialog.vue create mode 100644 src/views/reportData/photostatis/components/photoList.vue create mode 100644 src/views/reportData/photostatis/index.vue diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index fed3e36..17b64e6 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -119,6 +119,10 @@ export default { index: "/devicePhotoSchedule", title: "拍照时间表设置", }, + { + index: "/reportData", + title: "数据报表", + }, ], }, { diff --git a/src/router/index.js b/src/router/index.js index 98177c7..a62dd83 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -187,6 +187,18 @@ const routes = [ requiresAuth: true, }, }, + { + path: "/reportData", + component: () => import("../views/reportData/index.vue"), + name: "reportData", + meta: { + title: "数据报表", + icon: "", + keepAlive: true, + requiresAuth: true, + }, + }, + { path: "/echarts", component: () => import("../echartsDemo.vue"), diff --git a/src/utils/api/reportApi.js b/src/utils/api/reportApi.js new file mode 100644 index 0000000..c9a6c9f --- /dev/null +++ b/src/utils/api/reportApi.js @@ -0,0 +1,27 @@ +import request from "../request"; + +//照片统计 +export function getphotoList(data) { + return request({ + url: "/xymanager/terminal/listWithPhoto", + method: "get", + params: data, + }); +} +//获取电压-线路-杆塔等信息 + +export function getSearchInfo(data) { + return request({ + url: "/xymanager/getLineAndGt", + method: "post", + data, + }); +} +//获取实时图片数据 +export function getphotoApi(data) { + return request({ + url: "/xymanager/getPhotoList", + method: "post", + data, + }); +} diff --git a/src/views/photographicDevice/index.vue b/src/views/photographicDevice/index.vue index 73ad7ef..3ae274d 100644 --- a/src/views/photographicDevice/index.vue +++ b/src/views/photographicDevice/index.vue @@ -166,10 +166,15 @@ >