diff --git a/src/api/system/log.js b/src/api/system/log.js index f204435..a98f26a 100644 --- a/src/api/system/log.js +++ b/src/api/system/log.js @@ -2,7 +2,7 @@ import request from '@/utils/request' //查询业务日志列表 export function getYwLogs(data) { return request({ - url: '/system/sys/sysLog/getYwLogs', + url: '/smartArchives/sys/sysLog/getYwLogs', method: 'get', params: data }) @@ -11,7 +11,7 @@ export function getYwLogs(data) { //备份业务日志列表 export function downloadYwLogs(data) { return request({ - url: '/system/sys/sysLog/downloadYwLogs', + url: '/smartArchives/sys/sysLog/downloadYwLogs', method: 'get', params: data, responseType: 'blob' @@ -30,7 +30,7 @@ export function getSysLogs(data) { //备份系统日志列表 export function downloadSysLogs(data) { return request({ - url: '/system/sys/sysLog/downloadSysLogs', + url: '/smartArchives/sys/sysLog/downloadSysLogs', method: 'get', params: data, responseType: 'blob' @@ -40,7 +40,7 @@ export function downloadSysLogs(data) { //查询异常日志列表 export function getErrLogs(data) { return request({ - url: '/system/sys/sysLog/getErrLogs', + url: '/smartArchives/sys/sysLog/getErrLogs', method: 'get', params: data }) @@ -49,7 +49,7 @@ export function getErrLogs(data) { //备份异常日志列表 export function downloadErrLogs(data) { return request({ - url: '/system/sys/sysLog/downloadErrLogs', + url: '/smartArchives/sys/sysLog/downloadErrLogs', method: 'get', params: data, responseType: 'blob' @@ -59,7 +59,7 @@ export function downloadErrLogs(data) { //获取日志分析数据 export function getAnalyseData(data) { return request({ - url: '/system/sys/sysLog/getLogStatistics', + url: '/smartArchives/sys/sysLog/getLogStatistics', method: 'post', data: data }) @@ -69,7 +69,7 @@ export function getAnalyseData(data) { //获取日志容量 export function getLogSize(data) { return request({ - url: '/system/sys/sysLog/getLogsSet', + url: '/smartArchives/sys/sysLog/getLogsSet', method: 'post', data }) @@ -77,7 +77,7 @@ export function getLogSize(data) { //设置日志容量 export function updateLogSize(data) { return request({ - url: '/system/sys/sysLog/setLogsSet', + url: '/smartArchives/sys/sysLog/setLogsSet', method: 'post', data:data }) @@ -86,7 +86,7 @@ export function getLogSize(data) { //添加异常Ip日志 export function addLogs(data) { return request({ - url: '/system/sys/sysLog/addLogs', + url: '/smartArchives/sys/sysLog/addLogs', method: 'post', data:data }) @@ -94,7 +94,7 @@ export function getLogSize(data) { export function handleNoWarningLog(data) { return request({ - url: '/system/sys/sysLog/logWarn', + url: '/smartArchives/sys/sysLog/logWarn', method: 'get' }) } diff --git a/src/utils/request.js b/src/utils/request.js index 979c792..e8aac5a 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -11,9 +11,9 @@ import { generateRequestSignature } from '@/utils/crypto-js' const systemConfig = { requestConfig: { - encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : true, - checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : true, - encryptResponse: process.env.VUE_APP_ENV === 'production' ? true : true, + encryptRequest: process.env.VUE_APP_ENV === 'production' ? false : true, + checkIntegrity: process.env.VUE_APP_ENV === 'production' ? false : true, + encryptResponse: process.env.VUE_APP_ENV === 'production' ? false : true, }, } diff --git a/src/views/system/log/abnormalLog/index.vue b/src/views/system/log/abnormalLog/index.vue index 51d1bc3..766113a 100644 --- a/src/views/system/log/abnormalLog/index.vue +++ b/src/views/system/log/abnormalLog/index.vue @@ -231,7 +231,7 @@ export default { errType: '', ip: '', errLevel: '', - operTime: '', + // operTime: '', // logSort:1, logDesc: 1, }, @@ -243,8 +243,8 @@ export default { // this.getOperate() }, mounted() { - this.listQuery.operTime = - this.getCurrentDate() + ' - ' + this.getCurrentDate() + // this.listQuery.operTime = + // this.getCurrentDate() + ' - ' + this.getCurrentDate() this.rangeDate = [this.getCurrentDate(), this.getCurrentDate()] this.getList() }, @@ -262,8 +262,10 @@ export default { getList() { this.listLoading = true if (this.rangeDate && this.rangeDate.length > 0) { - this.listQuery.operTime = - this.rangeDate[0] + ' - ' + this.rangeDate[1] + // this.listQuery.operTime = + // this.rangeDate[0] + ' - ' + this.rangeDate[1] + this.listQuery.startTime = this.rangeDate[0] + this.listQuery.endTime = this.rangeDate[1] } getErrLogs(this.listQuery).then((response) => { this.list = response.rows.map((item) => { diff --git a/src/views/system/log/businessLog/index.vue b/src/views/system/log/businessLog/index.vue index e436bf4..0720dc6 100644 --- a/src/views/system/log/businessLog/index.vue +++ b/src/views/system/log/businessLog/index.vue @@ -224,7 +224,7 @@ export default { ip: '', content: '', result: '', - operTime: '', + // operTime: '', operType: '', logSort: 1, logDesc: 1, @@ -237,8 +237,8 @@ export default { // this.getOperate() }, mounted() { - this.listQuery.operTime = - this.getCurrentDate() + ' - ' + this.getCurrentDate() + // this.listQuery.operTime = + // this.getCurrentDate() + ' - ' + this.getCurrentDate() this.rangeDate = [this.getCurrentDate(), this.getCurrentDate()] this.getList() }, @@ -256,8 +256,10 @@ export default { getList() { this.listLoading = true if (this.rangeDate && this.rangeDate.length > 0) { - this.listQuery.operTime = - this.rangeDate[0] + ' - ' + this.rangeDate[1] + // this.listQuery.operTime = + // this.rangeDate[0] + ' - ' + this.rangeDate[1] + this.listQuery.startTime = this.rangeDate[0] + this.listQuery.endTime = this.rangeDate[1] } getYwLogs(this.listQuery).then((response) => { this.list = response.rows.map((item) => { diff --git a/src/views/system/log/logAnalyse/index.vue b/src/views/system/log/logAnalyse/index.vue index 41a3a24..49dea26 100644 --- a/src/views/system/log/logAnalyse/index.vue +++ b/src/views/system/log/logAnalyse/index.vue @@ -45,7 +45,7 @@ total: 0, listLoading: false, listQuery: { - operTime:'', + // operTime:'', type:'1', }, rangeDate:[], @@ -77,7 +77,7 @@ } }, mounted() { - this.listQuery.operTime = this.getCurrentDate()+' - '+this.getCurrentDate(); + // this.listQuery.operTime = this.getCurrentDate()+' - '+this.getCurrentDate(); this.rangeDate = [this.getCurrentDate(),this.getCurrentDate()] this.getData() @@ -86,7 +86,9 @@ getData() { if(this.rangeDate && this.rangeDate.length>0){ - this.listQuery.operTime = this.rangeDate[0]+' - '+this.rangeDate[1]; + // this.listQuery.operTime = this.rangeDate[0]+' - '+this.rangeDate[1]; + this.listQuery.startTime = this.rangeDate[0] + this.listQuery.endTime = this.rangeDate[1] } getAnalyseData(this.listQuery).then((response) => { this.sumNum = response.data.allNum||0 diff --git a/src/views/system/log/systemLog/index.vue b/src/views/system/log/systemLog/index.vue index 3d7e4d8..584aeff 100644 --- a/src/views/system/log/systemLog/index.vue +++ b/src/views/system/log/systemLog/index.vue @@ -215,11 +215,10 @@ export default { ip: '', content: '', result: '', - operTime: '', + // operTime: '', operaType: '', logSort: 1, logDesc: 1, - logType: 0, }, rangeDate: [], } @@ -229,8 +228,8 @@ export default { // this.getOperate() }, mounted() { - this.listQuery.operTime = - this.getCurrentDate() + ' - ' + this.getCurrentDate() + // this.listQuery.operTime = + // this.getCurrentDate() + ' - ' + this.getCurrentDate() this.rangeDate = [this.getCurrentDate(), this.getCurrentDate()] this.getList() }, @@ -248,8 +247,10 @@ export default { getList() { this.listLoading = true if (this.rangeDate && this.rangeDate.length > 0) { - this.listQuery.operTime = - this.rangeDate[0] + ' - ' + this.rangeDate[1] + // this.listQuery.operTime = + // this.rangeDate[0] + ' - ' + this.rangeDate[1] + this.listQuery.startTime = this.rangeDate[0] + this.listQuery.endTime = this.rangeDate[1] } getSysLogs(this.listQuery).then((response) => { this.list = response.rows.map((item) => {