diff --git a/nezha-fronted/src/components/charts/chart-detail.vue b/nezha-fronted/src/components/charts/chart-detail.vue
index 1c8710714..dea87c7da 100644
--- a/nezha-fronted/src/components/charts/chart-detail.vue
+++ b/nezha-fronted/src/components/charts/chart-detail.vue
@@ -56,6 +56,11 @@
+
+ {{value + '['+item.data.cabinetStart+'-'+item.data.cabinetEnd+']'}}
+ {{value}}
+
+
{{value ? value + 'ms' : ''}}
diff --git a/nezha-fronted/src/components/common/leftMenu.vue b/nezha-fronted/src/components/common/leftMenu.vue
index 687b79f4d..243892fb2 100644
--- a/nezha-fronted/src/components/common/leftMenu.vue
+++ b/nezha-fronted/src/components/common/leftMenu.vue
@@ -52,9 +52,7 @@
{{item.name}}
-
-
-
+
@@ -67,9 +65,7 @@
{{item.name}}
-
-
-
+
@@ -82,9 +78,7 @@
{{item.name}}
-
-
-
+
@@ -94,9 +88,7 @@
-
-
-
+
@@ -115,9 +107,7 @@
{{tag.value}}
-
-
-
+
@@ -515,11 +505,16 @@
// vendor
this.vendorData = response.data.vendor;
// ping
- this.pingData = response.data.ping.map(item => {
- item.label = item.name;
- item.value = item.status;
+ this.pingData=[{label:'up',value:1,total:0},{label:'down',value:0,total:0}]
+
+ this.pingData.map(item=>{
+ if(response.data.ping){
+ let data=response.data.ping.find(t=>t.name == item.label);
+ item.total = data.total;
+ item.value = data.status
+ }
return item;
- });
+ })
this.tagData = response.data.tag
diff --git a/nezha-fronted/src/components/common/rightBox/assetBox.vue b/nezha-fronted/src/components/common/rightBox/assetBox.vue
index c0b428b4c..e316fa924 100644
--- a/nezha-fronted/src/components/common/rightBox/assetBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/assetBox.vue
@@ -574,6 +574,8 @@
}
if(this.locationInfo.cabinet) {
this.editAsset.cabinetId = this.locationInfo.cabinet.id;
+ }else{
+ this.editAsset.cabinetId = null;
}
if(this.locationInfo.u && this.locationInfo.u.length > 0) {
this.editAsset.cabinetStart = this.locationInfo.u[0];
diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue
index 8c080b96d..ecc99d3b4 100644
--- a/nezha-fronted/src/components/common/searchInput.vue
+++ b/nezha-fronted/src/components/common/searchInput.vue
@@ -193,7 +193,6 @@
input_sreach: '',
sreach_num: 0,
searchLabelList: [ //下拉列表里的选项
- {id: 0, name: this.$t('search.searchTip'), icon: 'nz-icon nz-icon-search'},
],
bool: false,
no_condition: '',
@@ -916,7 +915,7 @@
this.no_condition = ''
this.input_sreach = ''
this.select_list = []
- this.searchLabelList = [{id: 0, name: 'Press Enter or click to search', icon: 'nz-icon nz-icon-search'},]
+ this.searchLabelList = []
JSON.parse(JSON.stringify(this.searchMsg.searchLabelList)).forEach(val => {
this.searchLabelList.push(val)
})
@@ -969,7 +968,7 @@
}*/
this.searchMsg.searchLabelList.forEach((val, key) => {
if (this.select_list[ind].id == val.id) {
- this.searchLabelList.splice(key , 1, val);
+ this.searchLabelList.splice(key+1 , 0, val);
this.Iskeywords(ind)
}
});
diff --git a/nezha-fronted/src/components/page/asset/asset.vue b/nezha-fronted/src/components/page/asset/asset.vue
index b837065af..fa51a8404 100644
--- a/nezha-fronted/src/components/page/asset/asset.vue
+++ b/nezha-fronted/src/components/page/asset/asset.vue
@@ -288,6 +288,12 @@
type: 'select',
label: 'pingStatus',
disabled: false
+ },{
+ id: 23,
+ name: this.$t("asset.tableTitle.cabinet"),
+ type: 'input',
+ label: 'cabinetName',
+ disabled: false
}],
},