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 @@ - - - - - - - - - - - - + + + - - - - - - - - 查询 - - - 重置 - - - + - - - - {{ (listQuery.pageNum - 1) * listQuery.pageSize + scope.$index + 1 }} - - - - - {{ scope.row.operaUserName||'/' }} - - - - - - - - {{ scope.row.model||'/' }} - - - - - - - - - + + - - - + + + - - + + 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 @@ - - - - - - - - - - - + + + + + + - - - - - - - - 查询 - - - 重置 - - - + - - - - {{ (listQuery.pageNum - 1) * listQuery.pageSize + scope.$index + 1 }} - - - - - - - - - - - {{ row.result}} - - - - - - - + + + + {{ + (listQuery.pageNum - 1) * listQuery.pageSize + + scope.$index + + 1 + }} + + + + + + + + + + + {{ row.result }} + + + + + + + - + - + - + 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 @@ - - - - - - - - - + + + - - - - - - - - 查询 - - - 重置 - - + + + + + + {{ + (listQuery.pageNum - 1) * listQuery.pageSize + + scope.$index + + 1 + }} + + + + + + + + + + + {{ row.result }} + + + + + + + + + - - - - - {{ (listQuery.pageNum - 1) * listQuery.pageSize + scope.$index + 1 }} - - - - - - - - - - - {{ row.result }} - - - - - - - - - -