diff --git a/nezha-fronted/src/components/charts/chart-detail.vue b/nezha-fronted/src/components/charts/chart-detail.vue
index 465277ac6..ba5b1936f 100644
--- a/nezha-fronted/src/components/charts/chart-detail.vue
+++ b/nezha-fronted/src/components/charts/chart-detail.vue
@@ -41,12 +41,14 @@
{{assetKey[key]}}
{{assetKey[key]}}
-
-
- {{value}}
-
-
{{value + ' ' + $t('overall.active')}}
+
{{value}}
+
{{value}}
+
{{value}}
+
{{value}}
+
+
{{value}}
+
{{value}}
{{endpointKey[key]}}
-
{{value || value === 0 ? value : " "}}
-
{{value}}
+
+ {{value}}
+ {{value}}
+ {{value}}
+
+
+ {{$t('project.endpoint.metrics')}}
+
+
+
+
+
+
+
+
+
+
+
+ {{$t('project.endpoint.logs')}}
+
+
+
+
+
+
+
+
+
+
+
+ {{value || value === 0 ? value : " "}}
+ {{value}}
+
@@ -257,24 +290,29 @@ export default {
oldSearchTime: [],
assetKey: {
- host: this.$t('asset.host'),
+ // host: this.$t('asset.host'),
id: 'Id',
- assetType: this.$t('asset.assetType'),
- sn: this.$t('asset.device'),
+ name: this.$t('overall.name'),
+ manageIp: this.$t('overall.manageIp'),
+ type: this.$t('overall.type'),
+ // assetType: this.$t('asset.assetType'),
+ // sn: this.$t('asset.device'),
state: this.$t('asset.assetState'),
pingRtt: this.$t('asset.assetPing'),
dataCenter: this.$t('asset.dataCenter'),
cabinet: this.$t('asset.cabinet'),
+ brand: this.$t('asset.brand'),
model: this.$t('asset.model'),
- vendor: this.$t('asset.vendor'),
- purchaseDate: this.$t('asset.procurementDate'),
+ tags: this.$t('overall.labels'),
+ alert: this.$t('asset.alerts'),
+ endpoint: this.$t('asset.modules')
+ // vendor: this.$t('asset.vendor'),
+ // purchaseDate: this.$t('asset.procurementDate'),
// principal: this.$t('asset.principal'),
// tel: this.$t('asset.principalTel'),
// pingStatus: this.$t('asset.assetPing'),
- pingLastReply: this.$t('asset.lastReply'),
- endpoint: this.$t('asset.modules'),
- alert: this.$t('asset.alerts'),
- tags: this.$t('overall.tag')
+ // pingLastReply: this.$t('asset.lastReply'),
+
},
projectKey: {
id: 'ID',
@@ -293,9 +331,10 @@ export default {
endpointKey: {
id: 'ID',
name: this.$t('overall.name'),
- type: this.$t('overall.type'),
+ // type: this.$t('overall.type'),
project: this.$t('overall.project'),
module: this.$t('project.module.module'),
+ asset: this.$t('overall.asset'),
alerts: this.$t('project.endpoint.alerts'),
state: this.$t('project.endpoint.state')
}
@@ -420,6 +459,7 @@ export default {
this.panelIdInner = panelId
this.data = chartItem
this.detail = detail
+ console.log(this.detail)
// console.info(this.data, this.detail)
/* if (this.detail[0] && this.detail[0].type && this.detail[0].type == 'endpointInfo') { // endpointInfo的小图表
this.$nextTick(() => {
@@ -518,3 +558,8 @@ export default {
}
}
+
diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue
index fe469667f..4dcabe7c4 100644
--- a/nezha-fronted/src/components/charts/chart-list.vue
+++ b/nezha-fronted/src/components/charts/chart-list.vue
@@ -1488,16 +1488,18 @@ export default {
chartInfo.name = this.$t('project.chart.endpointInfo')
chartInfo.from = fromRoute.endpoint
const basicInfo = JSON.parse(JSON.stringify(this.obj))
+ console.log(basicInfo)
detail.push(
{
data: {
id: basicInfo.id,
name: basicInfo.name,
- type: basicInfo.module.type,
+ // type: basicInfo.module.type,
project: basicInfo.project.name,
module: basicInfo.module.name,
+ asset: basicInfo.asset.manageIp,
alerts: basicInfo.alertNum,
- state: basicInfo.state === 1 ? 'up' : 'down'
+ state: basicInfo.configs
},
type: 'endpointInfo',
title: this.$t('project.chart.basicTitle')
@@ -1538,23 +1540,27 @@ export default {
// basic.cabinet = basic.cabinet ? basic.cabinet.name : '-'
const obj = {
id: basic.id,
- host: basic.pingInfo ? basic.pingInfo.host : '-',
- assetType: basic.type ? basic.type.name : '-',
+ // host: basic.pingInfo ? basic.pingInfo.host : '-',
+ // assetType: basic.type ? basic.type.name : '-',
+ name: basic.name ? basic.name : '-',
+ manageIp: basic.manageIp,
+ type: basic.type ? basic.type.name : '-',
state: basic.state ? basic.state.name : '-',
pingRtt: basic.pingInfo ? basic.pingInfo.rtt : '',
dataCenter: basic.dc ? basic.dc.name : '-',
cabinet: basic.cabinet ? basic.cabinet.name : '-',
- alert: basic.alertNum,
- endpoint: basic.endpointNum,
- purchaseDate: basic.purchaseDate,
- vendor: basic.brand ? basic.brand.name : '-',
+ brand: basic.brand ? basic.brand.name : '-',
model: basic.model ? basic.model.name : '-',
- sn: basic.sn,
tags: basic.fields,
- pingStatus: basic.pingInfo ? basic.pingInfo.status : '-',
- cabinetStart: basic.cabinetStart,
- cabinetEnd: basic.cabinetEnd,
- pingLastReply: basic.pingInfo ? basic.pingInfo.lastUpdate : ''
+ alert: basic.alertNum,
+ endpoint: basic.endpointNum
+ // purchaseDate: basic.purchaseDate,
+ // vendor: basic.brand ? basic.brand.name : '-',
+ // sn: basic.sn,
+ // pingStatus: basic.pingInfo ? basic.pingInfo.status : '-',
+ // cabinetStart: basic.cabinetStart,
+ // cabinetEnd: basic.cabinetEnd,
+ // pingLastReply: basic.pingInfo ? basic.pingInfo.lastUpdate : ''
// principal: basic.dc ? basic.dc.principal : '-',
// tel: basic.tel,
}
diff --git a/nezha-fronted/src/components/common/alert/alertLabel.vue b/nezha-fronted/src/components/common/alert/alertLabel.vue
index 8977f85e2..07761b611 100644
--- a/nezha-fronted/src/components/common/alert/alertLabel.vue
+++ b/nezha-fronted/src/components/common/alert/alertLabel.vue
@@ -89,7 +89,7 @@
{{$t('overall.alert')}}
- {{alertLabelData && alertLabelData.alertNum ? alertLabelData.alertNum : 0 + ' ' + alertActiveStr()}}
+ {{alertLabelData && alertLabelData.alertNum ? alertLabelData.alertNum : 0}}
@@ -130,7 +130,7 @@
{{$t('overall.alert')}}
- {{alertLabelData && alertLabelData.alertNum ? alertLabelData.alertNum : 0 + ' ' + alertActiveStr()}}
+ {{alertLabelData && alertLabelData.alertNum ? alertLabelData.alertNum : 0}}
@@ -170,7 +170,7 @@
{{$t('overall.alert')}}
- {{alertLabelData && alertLabelData.alertNum ? alertLabelData.alertNum : 0 + ' ' + alertActiveStr()}}
+ {{alertLabelData && alertLabelData.alertNum ? alertLabelData.alertNum : 0}}