diff --git a/acs/nladmin-ui/src/views/loki/view/index.vue b/acs/nladmin-ui/src/views/loki/view/index.vue index 0bc0e0f..8f96e2b 100644 --- a/acs/nladmin-ui/src/views/loki/view/index.vue +++ b/acs/nladmin-ui/src/views/loki/view/index.vue @@ -324,6 +324,16 @@ export default { logOperation.getLogData(queryParam).then(res => { this.showEmpty = false if (res.data.result.length === 1) { + // 如果返回的日志是一样的就不显示 + if (res.data.result[0].values.length === 1 && ansi_up.ansi_to_html(res.data.result[0].values[0][1]) === this.logs[this.logs.length - 1][1]) { + this.$notify({ + title: '警告', + duration: 1000, + message: '当前时间段日志已最新!', + type: 'warning' + }) + return + } const log = res.data.result[0].values for (const i in res.data.result[0].values) { log[i][1] = ansi_up.ansi_to_html(res.data.result[0].values[i][1]) diff --git a/acs/nladmin-ui/src/views/system/monitor/device/XJDeviceMonitor.vue b/acs/nladmin-ui/src/views/system/monitor/device/XJDeviceMonitor.vue deleted file mode 100644 index f6a8a16..0000000 --- a/acs/nladmin-ui/src/views/system/monitor/device/XJDeviceMonitor.vue +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/lms/nladmin-ui/src/views/loki/view/index.vue b/lms/nladmin-ui/src/views/loki/view/index.vue index 6c83bcc..3b17a95 100644 --- a/lms/nladmin-ui/src/views/loki/view/index.vue +++ b/lms/nladmin-ui/src/views/loki/view/index.vue @@ -328,6 +328,16 @@ export default { console.log(res) this.showEmpty = false if (res.data.result.length === 1) { + // 如果返回的日志是一样的就不显示 + if (res.data.result[0].values.length === 1 && ansi_up.ansi_to_html(res.data.result[0].values[0][1]) === this.logs[this.logs.length - 1][1]) { + this.$notify({ + title: '警告', + duration: 1000, + message: '当前时间段日志已最新!', + type: 'warning' + }) + return + } const log = res.data.result[0].values for (const i in res.data.result[0].values) { log[i][1] = ansi_up.ansi_to_html(res.data.result[0].values[i][1])