diff --git a/nezha-fronted/src/assets/css/components/common/table/settings/cortexDetailTable.scss b/nezha-fronted/src/assets/css/components/common/table/settings/cortexDetailTable.scss index a7417d2d8..6a0b908c5 100644 --- a/nezha-fronted/src/assets/css/components/common/table/settings/cortexDetailTable.scss +++ b/nezha-fronted/src/assets/css/components/common/table/settings/cortexDetailTable.scss @@ -1,11 +1,11 @@ -#cortexDetail { +#cortexDetail,#lokiStatus { .sub-container{ background: $--background-color-empty; .nz-table-list{ height: auto; } } - #cortexDetailTable { + #cortexDetailTable,#lokiStatusTable { display: flex; flex-direction: column; height: 100%; @@ -129,14 +129,5 @@ } } } - - .table-no-data { - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - } } } diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue index 2434caf9d..5db71b662 100644 --- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue @@ -68,6 +68,7 @@ + @@ -109,6 +110,7 @@ import processBottomTab from '@/components/common/bottomBox/tabs/processBottomTa import networkBottomTab from '@/components/common/bottomBox/tabs/networkBottomTab' import scrapeEndpoint from '@/components/common/bottomBox/tabs/scrapeEndpoint' import cortexDetail from '@/components/common/bottomBox/tabs/cortexDetail' +import lokiStatus from '@/components/common/bottomBox/tabs/lokiStatus' import IpDetails from '@/components/common/bottomBox/tabs/IpDetails' import recordRuleEvalLog from '@/components/common/bottomBox/tabs/recordRuleEvalLog' import routerPathParams from '@/components/common/mixin/routerPathParams' @@ -119,6 +121,7 @@ export default { components: { scrapeEndpoint, cortexDetail, + lokiStatus, LogBottomTab, processBottomTab, networkBottomTab, @@ -251,11 +254,18 @@ export default { agent: { scrapeEndpoint: [ { prop: 'scrapeEndpoint', name: this.$t('config.agent.scrapeEndpoint'), active: true }, - { prop: 'cortexDetail', name: this.$t('config.agent.cortexDetail'), active: false } + { prop: 'cortexDetail', name: this.$t('config.agent.cortexDetail'), active: false }, + { prop: 'lokiStatus', name: this.$t('config.agent.lokiStatus'), active: false } ], cortexDetail: [ { prop: 'scrapeEndpoint', name: this.$t('config.agent.scrapeEndpoint'), active: false }, - { prop: 'cortexDetail', name: this.$t('config.agent.cortexDetail'), active: true } + { prop: 'cortexDetail', name: this.$t('config.agent.cortexDetail'), active: true }, + { prop: 'lokiStatus', name: this.$t('config.agent.lokiStatus'), active: false } + ], + lokiStatus: [ + { prop: 'scrapeEndpoint', name: this.$t('config.agent.scrapeEndpoint'), active: false }, + { prop: 'cortexDetail', name: this.$t('config.agent.cortexDetail'), active: false }, + { prop: 'lokiStatus', name: this.$t('config.agent.lokiStatus'), active: true } ] }, ipam: [ diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/lokiStatus.vue b/nezha-fronted/src/components/common/bottomBox/tabs/lokiStatus.vue new file mode 100644 index 000000000..da9ac2754 --- /dev/null +++ b/nezha-fronted/src/components/common/bottomBox/tabs/lokiStatus.vue @@ -0,0 +1,99 @@ + + + diff --git a/nezha-fronted/src/components/common/table/settings/cortexDetailTable.vue b/nezha-fronted/src/components/common/table/settings/cortexDetailTable.vue index 73916e65e..04d4d8a9e 100644 --- a/nezha-fronted/src/components/common/table/settings/cortexDetailTable.vue +++ b/nezha-fronted/src/components/common/table/settings/cortexDetailTable.vue @@ -1,6 +1,5 @@ + +