From bcf1e21260255ed67fc8c36c98059f1bfc02a9dc Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 27 Aug 2024 13:45:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=90=E7=BB=B4=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/api/index.js | 10 + .../picReport/components/lineStatusDialog.vue | 62 +++++- .../picReport/components/selectLine copy.vue | 78 +++++++ src/views/picReport/index.vue | 210 +++++++++++++++++- 4 files changed, 336 insertions(+), 24 deletions(-) create mode 100644 src/views/picReport/components/selectLine copy.vue diff --git a/src/utils/api/index.js b/src/utils/api/index.js index 194b05f..7db7190 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -257,3 +257,13 @@ export function getLineListJoggle(data) { data, }); } + +//查询权限数结构 + +export function getPermissionTree(data) { + return request({ + url: "/xymanager/user/getFullTree", + method: "get", + params: data, + }); +} diff --git a/src/views/picReport/components/lineStatusDialog.vue b/src/views/picReport/components/lineStatusDialog.vue index a67b66b..38a57ad 100644 --- a/src/views/picReport/components/lineStatusDialog.vue +++ b/src/views/picReport/components/lineStatusDialog.vue @@ -34,10 +34,19 @@ 查询 + 导出列表
- + @@ -45,16 +54,19 @@ {{ xlName }} + - + - + - + + diff --git a/src/views/picReport/index.vue b/src/views/picReport/index.vue index fbce125..ecebacc 100644 --- a/src/views/picReport/index.vue +++ b/src/views/picReport/index.vue @@ -27,10 +27,14 @@ 查询 + 导出列表
- + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -139,6 +308,8 @@ import { picRportApi } from "@/utils/api/index"; import selectLine from "./components/selectLine"; import lineStatusDialog from "./components/lineStatusDialog"; +import htmlToExcel from "@/utils/htmlToExcel"; + export default { name: "picReport", components: { selectLine, lineStatusDialog }, @@ -151,7 +322,9 @@ export default { }, formdata: { - starttime: new Date(new Date().setHours(0, 0, 0, 0)).getTime(), // 设置开始时间为当天凌晨00:00:00的时间戳, + starttime: + new Date(new Date().setHours(0, 0, 0, 0)).getTime() - + 3 * 24 * 60 * 60 * 1000, // 设置开始时间为当天凌晨00:00:00的时间戳, // 设置开始时间为当天凌晨00:00:00的时间戳, endtime: new Date(new Date().setHours(23, 59, 59, 0)).getTime(), // 设置结束时间为当天夜晚23:59:59的时间戳 }, tableData: [], @@ -172,6 +345,10 @@ export default { console.log(this.localSelectLine); }, methods: { + //导出活动列表表格 + deviceExport() { + htmlToExcel.getExcel("#deciceTable", "运维在线率列表"); + }, onSubmit() { if (this.formdata.starttime > this.formdata.endtime) { return this.$message({ @@ -230,7 +407,9 @@ export default { align-items: center; height: 32px; margin-bottom: 12px; - + .exportBtn { + margin-left: auto; + } h3 { margin-right: 24px; } @@ -250,7 +429,14 @@ export default { } .boxLogTable { height: calc(100% - 44px); - + .yestoday { + background: #b1f5e8 !important; + color: #000; + } + .beforeday { + background: #dfe745 !important; + color: #000; + } .el-table__cell { text-align: center; }