BUG(监控日志管理): 获取监控日志信息修复
parent
eaa6af5762
commit
13902ef599
|
@ -146,7 +146,7 @@ export default {
|
||||||
this.getCurrentServerMonitorLogs()
|
this.getCurrentServerMonitorLogs()
|
||||||
},
|
},
|
||||||
getCurrentServerMonitorLogs() {
|
getCurrentServerMonitorLogs() {
|
||||||
getMonitorLogs(this.serverInfo.id,{ as: { 'create_datetime__range': this.currentTimeLimitSetting.timeRange } }).then(results => {
|
getMonitorLogs(this.serverInfo.id, {as: JSON.stringify({create_datetime__range: this.currentTimeLimitSetting.timeRange})}).then(results => {
|
||||||
this.lineChartData = results.data[this.lineChartKey]
|
this.lineChartData = results.data[this.lineChartKey]
|
||||||
this.drawBar()
|
this.drawBar()
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
|
|
|
@ -313,7 +313,7 @@ export default {
|
||||||
},
|
},
|
||||||
/** 获取监控日志信息 */
|
/** 获取监控日志信息 */
|
||||||
getCurrentServerMonitorLogs() {
|
getCurrentServerMonitorLogs() {
|
||||||
getMonitorLogs(this.currentServer.id, { as: { 'create_datetime__range': this.timeRange } }).then(results => {
|
getMonitorLogs(this.currentServer.id, { as: JSON.stringify( { 'create_datetime__range': this.timeRange })}).then(results => {
|
||||||
this.lineChartData = results.data
|
this.lineChartData = results.data
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.msgError(error.msg || '获取监控日志信息出错误!')
|
this.msgError(error.msg || '获取监控日志信息出错误!')
|
||||||
|
|
Loading…
Reference in New Issue