From 9236d34a6a9cb07e1cc3d32c6c42f2ef5913ffbb Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 6 Aug 2024 17:14:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=90=AF=E5=8A=A8=E6=97=B6?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/views/system/log/abnormalLog/index.vue | 489 +++++++++++--------- src/views/system/log/businessLog/index.vue | 499 ++++++++++++--------- src/views/system/log/systemLog/index.vue | 480 +++++++++++--------- 4 files changed, 860 insertions(+), 609 deletions(-) diff --git a/package.json b/package.json index 0b43c31..488d348 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "vue": "2.6.12", "vue-count-to": "1.0.13", "vue-cropper": "0.5.5", + "vue-loader-plugin": "^1.3.0", "vue-meta": "2.4.0", "vue-router": "3.4.9", "vuedraggable": "2.24.3", diff --git a/src/views/system/log/abnormalLog/index.vue b/src/views/system/log/abnormalLog/index.vue index 0756171..f423d8b 100644 --- a/src/views/system/log/abnormalLog/index.vue +++ b/src/views/system/log/abnormalLog/index.vue @@ -1,84 +1,156 @@ diff --git a/src/views/system/log/businessLog/index.vue b/src/views/system/log/businessLog/index.vue index d94822b..0563081 100644 --- a/src/views/system/log/businessLog/index.vue +++ b/src/views/system/log/businessLog/index.vue @@ -1,231 +1,320 @@ + - + content: '', + result: '', + operType: '', + logSort: 1, + logDesc: 1, + } + this.rangeDate = [this.getCurrentDate(), this.getCurrentDate()] + this.handleFilter() + }, + // 备份 + handleBackups() { + downloadYwLogs().then((res) => { + downloadFile({ + fileName: '业务日志.sql', + fileData: res, + fileType: 'text/html;charset=UTF-8', + }) + }) + }, + //导出 + handleExport() { + // exportCarDetail().then(res => { + // downloadFile({ fileName: '设备详情.xlsx', fileData: res, fileType: 'application/vnd.ms-excel;charset=utf-8' }) + // }) + }, + getCurrentDate() { + let now = new Date() + let year = now.getFullYear() + let month = now.getMonth() + 1 + if (month < 10) { + month = '0' + month + } + let day = now.getDate() + if (day < 10) { + day = '0' + day + } + return year + '-' + month + '-' + day + }, + }, +} + diff --git a/src/views/system/log/systemLog/index.vue b/src/views/system/log/systemLog/index.vue index 1759d26..79116a7 100644 --- a/src/views/system/log/systemLog/index.vue +++ b/src/views/system/log/systemLog/index.vue @@ -1,92 +1,160 @@