diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 7b26e59..f3a692a 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -127,10 +127,10 @@ export default { index: "/reportData", title: "数据报表", }, - // { - // index: "/photoTotal", - // title: "图片数据统计", - // }, + { + index: "/statisticalReport", + title: "统计报表", + }, ], }, { diff --git a/src/router/index.js b/src/router/index.js index dbbfa1a..990ffd8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -284,6 +284,18 @@ const routes = [ name: "icing", meta: { title: "覆冰监测", keepAlive: true, requiresAuth: true }, }, + //数据报表 + { + path: "/statisticalReport", + component: () => import("../views/statisticalReport/index.vue"), + name: "statisticalReport", + meta: { + title: "统计报表", + icon: "", + keepAlive: true, + requiresAuth: true, + }, + } ], }, { diff --git a/src/utils/api/index.js b/src/utils/api/index.js index e3b5647..5244304 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -1051,22 +1051,12 @@ export function deletePresetApi(data) { }, }); } -//图片统计结果 -export function getPhotoStatApi(data) { +//统计报表查询 +export function getStatisticalReport(data) { return request({ url: "/xymanager/getPhotoStat", method: "post", data, }); } - -//导出图片统计结果 -export function exportPhotoJoggle(data) { - return request({ - url: "/xymanager/exportPhotoStat", - method: "get", - params: data, - responseType: "blob", // 关键!必须添加这个配置 - }); -} diff --git a/src/views/statisticalReport/index.vue b/src/views/statisticalReport/index.vue new file mode 100644 index 0000000..3b6c458 --- /dev/null +++ b/src/views/statisticalReport/index.vue @@ -0,0 +1,575 @@ + + + + \ No newline at end of file