This commit is contained in:
bb_pan 2025-09-09 13:27:49 +08:00
parent 98f52714a7
commit dbb252518f
6 changed files with 39 additions and 32 deletions

View File

@ -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'
})
}

View File

@ -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,
},
}

View File

@ -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) => {

View File

@ -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) => {

View File

@ -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

View File

@ -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) => {