diff --git a/src/api/system/log.js b/src/api/system/log.js new file mode 100644 index 0000000..37abfb2 --- /dev/null +++ b/src/api/system/log.js @@ -0,0 +1,106 @@ +import request from '@/utils/request' +//查询业务日志列表 +export function getYwLogs(data) { + return request({ + url: '/system/sys/sysLog/getYwLogs', + method: 'get', + params: data + }) + } + +//备份业务日志列表 +export function downloadYwLogs(data) { + return request({ + url: '/system/sys/sysLog/downloadYwLogs', + method: 'get', + params: data, + responseType: 'blob' + }) + } + +//查询系统日志列表 +export function getSysLogs(data) { + return request({ + url: '/system/sys/sysLog/getSystemLogs', + method: 'get', + params: data + }) +} + +//备份系统日志列表 +export function downloadSysLogs(data) { + return request({ + url: '/system/sys/sysLog/downloadSysLogs', + method: 'get', + params: data, + responseType: 'blob' + }) +} + +//查询异常日志列表 +export function getErrLogs(data) { + return request({ + url: '/system/sys/sysLog/getErrLogs', + method: 'get', + params: data + }) +} + +//备份异常日志列表 +export function downloadErrLogs(data) { + return request({ + url: '/system/sys/sysLog/downloadErrLogs', + method: 'get', + params: data, + responseType: 'blob' + }) +} + +//获取日志分析数据 +export function getAnalyseData(data) { + return request({ + url: '/system/sys/sysLog/getLogStatistics', + method: 'post', + data: data + }) + } + + + //获取日志容量 +export function getLogSize(data) { + return request({ + url: '/system/sys/sysLog/getLogsSet', + method: 'post', + data + }) + } + //设置日志容量 + export function updateLogSize(data) { + return request({ + url: '/system/sys/sysLog/setLogsSet', + method: 'post', + data:data + }) + } + + //添加异常Ip日志 + export function addLogs(data) { + return request({ + url: '/system/sys/sysLog/addLogs', + method: 'post', + data:data + }) + } + +export function handleNoWarningLog(data) { + return request({ + url: '/system/sys/sysLog/logWarn', + method: 'get' + }) +} + + + + + + diff --git a/src/views/system/log/abnormalLog/index.vue b/src/views/system/log/abnormalLog/index.vue new file mode 100644 index 0000000..51d1bc3 --- /dev/null +++ b/src/views/system/log/abnormalLog/index.vue @@ -0,0 +1,328 @@ + + + diff --git a/src/views/system/log/businessLog/index.vue b/src/views/system/log/businessLog/index.vue new file mode 100644 index 0000000..e436bf4 --- /dev/null +++ b/src/views/system/log/businessLog/index.vue @@ -0,0 +1,325 @@ + + + diff --git a/src/views/system/log/logAnalyse/index.vue b/src/views/system/log/logAnalyse/index.vue new file mode 100644 index 0000000..41a3a24 --- /dev/null +++ b/src/views/system/log/logAnalyse/index.vue @@ -0,0 +1,185 @@ + + + + diff --git a/src/views/system/log/logCapacity/index.vue b/src/views/system/log/logCapacity/index.vue new file mode 100644 index 0000000..36df825 --- /dev/null +++ b/src/views/system/log/logCapacity/index.vue @@ -0,0 +1,63 @@ + + + diff --git a/src/views/system/log/systemLog/index.vue b/src/views/system/log/systemLog/index.vue new file mode 100644 index 0000000..afce0e6 --- /dev/null +++ b/src/views/system/log/systemLog/index.vue @@ -0,0 +1,316 @@ + + + diff --git a/vue.config.js b/vue.config.js index 5ea6f13..715e45c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -9,7 +9,8 @@ const CompressionPlugin = require('compression-webpack-plugin') const name = process.env.VUE_APP_TITLE || '工程档案资料移交管理系统' // 网页标题 -const baseUrl = 'http://localhost:8080' // 后端接口 +// const baseUrl = 'http://localhost:8080' // 后端接口 +const baseUrl = 'http://192.168.0.60:8080' // 后端接口-福 const port = process.env.port || process.env.npm_config_port || 80 // 端口