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) { export function getYwLogs(data) {
return request({ return request({
url: '/system/sys/sysLog/getYwLogs', url: '/smartArchives/sys/sysLog/getYwLogs',
method: 'get', method: 'get',
params: data params: data
}) })
@ -11,7 +11,7 @@ export function getYwLogs(data) {
//备份业务日志列表 //备份业务日志列表
export function downloadYwLogs(data) { export function downloadYwLogs(data) {
return request({ return request({
url: '/system/sys/sysLog/downloadYwLogs', url: '/smartArchives/sys/sysLog/downloadYwLogs',
method: 'get', method: 'get',
params: data, params: data,
responseType: 'blob' responseType: 'blob'
@ -30,7 +30,7 @@ export function getSysLogs(data) {
//备份系统日志列表 //备份系统日志列表
export function downloadSysLogs(data) { export function downloadSysLogs(data) {
return request({ return request({
url: '/system/sys/sysLog/downloadSysLogs', url: '/smartArchives/sys/sysLog/downloadSysLogs',
method: 'get', method: 'get',
params: data, params: data,
responseType: 'blob' responseType: 'blob'
@ -40,7 +40,7 @@ export function downloadSysLogs(data) {
//查询异常日志列表 //查询异常日志列表
export function getErrLogs(data) { export function getErrLogs(data) {
return request({ return request({
url: '/system/sys/sysLog/getErrLogs', url: '/smartArchives/sys/sysLog/getErrLogs',
method: 'get', method: 'get',
params: data params: data
}) })
@ -49,7 +49,7 @@ export function getErrLogs(data) {
//备份异常日志列表 //备份异常日志列表
export function downloadErrLogs(data) { export function downloadErrLogs(data) {
return request({ return request({
url: '/system/sys/sysLog/downloadErrLogs', url: '/smartArchives/sys/sysLog/downloadErrLogs',
method: 'get', method: 'get',
params: data, params: data,
responseType: 'blob' responseType: 'blob'
@ -59,7 +59,7 @@ export function downloadErrLogs(data) {
//获取日志分析数据 //获取日志分析数据
export function getAnalyseData(data) { export function getAnalyseData(data) {
return request({ return request({
url: '/system/sys/sysLog/getLogStatistics', url: '/smartArchives/sys/sysLog/getLogStatistics',
method: 'post', method: 'post',
data: data data: data
}) })
@ -69,7 +69,7 @@ export function getAnalyseData(data) {
//获取日志容量 //获取日志容量
export function getLogSize(data) { export function getLogSize(data) {
return request({ return request({
url: '/system/sys/sysLog/getLogsSet', url: '/smartArchives/sys/sysLog/getLogsSet',
method: 'post', method: 'post',
data data
}) })
@ -77,7 +77,7 @@ export function getLogSize(data) {
//设置日志容量 //设置日志容量
export function updateLogSize(data) { export function updateLogSize(data) {
return request({ return request({
url: '/system/sys/sysLog/setLogsSet', url: '/smartArchives/sys/sysLog/setLogsSet',
method: 'post', method: 'post',
data:data data:data
}) })
@ -86,7 +86,7 @@ export function getLogSize(data) {
//添加异常Ip日志 //添加异常Ip日志
export function addLogs(data) { export function addLogs(data) {
return request({ return request({
url: '/system/sys/sysLog/addLogs', url: '/smartArchives/sys/sysLog/addLogs',
method: 'post', method: 'post',
data:data data:data
}) })
@ -94,7 +94,7 @@ export function getLogSize(data) {
export function handleNoWarningLog(data) { export function handleNoWarningLog(data) {
return request({ return request({
url: '/system/sys/sysLog/logWarn', url: '/smartArchives/sys/sysLog/logWarn',
method: 'get' method: 'get'
}) })
} }

View File

@ -11,9 +11,9 @@ import { generateRequestSignature } from '@/utils/crypto-js'
const systemConfig = { const systemConfig = {
requestConfig: { requestConfig: {
encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : true, encryptRequest: process.env.VUE_APP_ENV === 'production' ? false : true,
checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : true, checkIntegrity: process.env.VUE_APP_ENV === 'production' ? false : true,
encryptResponse: process.env.VUE_APP_ENV === 'production' ? true : true, encryptResponse: process.env.VUE_APP_ENV === 'production' ? false : true,
}, },
} }

View File

@ -231,7 +231,7 @@ export default {
errType: '', errType: '',
ip: '', ip: '',
errLevel: '', errLevel: '',
operTime: '', // operTime: '',
// logSort:1, // logSort:1,
logDesc: 1, logDesc: 1,
}, },
@ -243,8 +243,8 @@ export default {
// this.getOperate() // this.getOperate()
}, },
mounted() { mounted() {
this.listQuery.operTime = // this.listQuery.operTime =
this.getCurrentDate() + ' - ' + this.getCurrentDate() // this.getCurrentDate() + ' - ' + this.getCurrentDate()
this.rangeDate = [this.getCurrentDate(), this.getCurrentDate()] this.rangeDate = [this.getCurrentDate(), this.getCurrentDate()]
this.getList() this.getList()
}, },
@ -262,8 +262,10 @@ export default {
getList() { getList() {
this.listLoading = true this.listLoading = true
if (this.rangeDate && this.rangeDate.length > 0) { if (this.rangeDate && this.rangeDate.length > 0) {
this.listQuery.operTime = // this.listQuery.operTime =
this.rangeDate[0] + ' - ' + this.rangeDate[1] // this.rangeDate[0] + ' - ' + this.rangeDate[1]
this.listQuery.startTime = this.rangeDate[0]
this.listQuery.endTime = this.rangeDate[1]
} }
getErrLogs(this.listQuery).then((response) => { getErrLogs(this.listQuery).then((response) => {
this.list = response.rows.map((item) => { this.list = response.rows.map((item) => {

View File

@ -224,7 +224,7 @@ export default {
ip: '', ip: '',
content: '', content: '',
result: '', result: '',
operTime: '', // operTime: '',
operType: '', operType: '',
logSort: 1, logSort: 1,
logDesc: 1, logDesc: 1,
@ -237,8 +237,8 @@ export default {
// this.getOperate() // this.getOperate()
}, },
mounted() { mounted() {
this.listQuery.operTime = // this.listQuery.operTime =
this.getCurrentDate() + ' - ' + this.getCurrentDate() // this.getCurrentDate() + ' - ' + this.getCurrentDate()
this.rangeDate = [this.getCurrentDate(), this.getCurrentDate()] this.rangeDate = [this.getCurrentDate(), this.getCurrentDate()]
this.getList() this.getList()
}, },
@ -256,8 +256,10 @@ export default {
getList() { getList() {
this.listLoading = true this.listLoading = true
if (this.rangeDate && this.rangeDate.length > 0) { if (this.rangeDate && this.rangeDate.length > 0) {
this.listQuery.operTime = // this.listQuery.operTime =
this.rangeDate[0] + ' - ' + this.rangeDate[1] // this.rangeDate[0] + ' - ' + this.rangeDate[1]
this.listQuery.startTime = this.rangeDate[0]
this.listQuery.endTime = this.rangeDate[1]
} }
getYwLogs(this.listQuery).then((response) => { getYwLogs(this.listQuery).then((response) => {
this.list = response.rows.map((item) => { this.list = response.rows.map((item) => {

View File

@ -45,7 +45,7 @@
total: 0, total: 0,
listLoading: false, listLoading: false,
listQuery: { listQuery: {
operTime:'', // operTime:'',
type:'1', type:'1',
}, },
rangeDate:[], rangeDate:[],
@ -77,7 +77,7 @@
} }
}, },
mounted() { mounted() {
this.listQuery.operTime = this.getCurrentDate()+' - '+this.getCurrentDate(); // this.listQuery.operTime = this.getCurrentDate()+' - '+this.getCurrentDate();
this.rangeDate = [this.getCurrentDate(),this.getCurrentDate()] this.rangeDate = [this.getCurrentDate(),this.getCurrentDate()]
this.getData() this.getData()
@ -86,7 +86,9 @@
getData() { getData() {
if(this.rangeDate && this.rangeDate.length>0){ 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) => { getAnalyseData(this.listQuery).then((response) => {
this.sumNum = response.data.allNum||0 this.sumNum = response.data.allNum||0

View File

@ -215,11 +215,10 @@ export default {
ip: '', ip: '',
content: '', content: '',
result: '', result: '',
operTime: '', // operTime: '',
operaType: '', operaType: '',
logSort: 1, logSort: 1,
logDesc: 1, logDesc: 1,
logType: 0,
}, },
rangeDate: [], rangeDate: [],
} }
@ -229,8 +228,8 @@ export default {
// this.getOperate() // this.getOperate()
}, },
mounted() { mounted() {
this.listQuery.operTime = // this.listQuery.operTime =
this.getCurrentDate() + ' - ' + this.getCurrentDate() // this.getCurrentDate() + ' - ' + this.getCurrentDate()
this.rangeDate = [this.getCurrentDate(), this.getCurrentDate()] this.rangeDate = [this.getCurrentDate(), this.getCurrentDate()]
this.getList() this.getList()
}, },
@ -248,8 +247,10 @@ export default {
getList() { getList() {
this.listLoading = true this.listLoading = true
if (this.rangeDate && this.rangeDate.length > 0) { if (this.rangeDate && this.rangeDate.length > 0) {
this.listQuery.operTime = // this.listQuery.operTime =
this.rangeDate[0] + ' - ' + this.rangeDate[1] // this.rangeDate[0] + ' - ' + this.rangeDate[1]
this.listQuery.startTime = this.rangeDate[0]
this.listQuery.endTime = this.rangeDate[1]
} }
getSysLogs(this.listQuery).then((response) => { getSysLogs(this.listQuery).then((response) => {
this.list = response.rows.map((item) => { this.list = response.rows.map((item) => {