diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue index 63ea1dbd9..f08617f61 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue @@ -273,8 +273,8 @@ id:33, name:this.$t('asset.state'), // name: this.$t('asset.asset'), - type:'state', - label:'state', + type:'select', + label:'endpointState', disabled:false, readonly:true, }], @@ -385,7 +385,11 @@ // this.pageObj.pageNo = 1; for (let item in searchObj) { if (searchObj[item]) { - this.$set(this.endpointSearchLabel, item, searchObj[item]); + if (item === "endpointState") { + this.$set(this.endpointSearchLabel, 'state', searchObj[item]); + } else { + this.$set(this.endpointSearchLabel,item,searchObj[item]); + } } } if(orderBy){ diff --git a/nezha-fronted/src/components/common/searchSelectInfo.vue b/nezha-fronted/src/components/common/searchSelectInfo.vue index c017bb4d1..ac8bafa31 100644 --- a/nezha-fronted/src/components/common/searchSelectInfo.vue +++ b/nezha-fronted/src/components/common/searchSelectInfo.vue @@ -53,11 +53,14 @@ ], endpointState: [ //资产入库/出库状态 { - value: 'UP', + value: 1, label: 'UP' }, { - value: 'DOWN', + value: 0, label: 'DOWN' + }, { + value: 2, + label: 'SUSPENDED' } ], pingStatus:[ diff --git a/nezha-fronted/src/components/page/project/project.vue b/nezha-fronted/src/components/page/project/project.vue index 7e80bb6e1..6264c03aa 100644 --- a/nezha-fronted/src/components/page/project/project.vue +++ b/nezha-fronted/src/components/page/project/project.vue @@ -373,8 +373,8 @@ id:33, name:this.$t('asset.state'), // name: this.$t('asset.asset'), - type:'state', - label:'state', + type:'select', + label:'endpointState', disabled:false, readonly:true, }], @@ -580,7 +580,11 @@ this.endpointPageObj.pageNo=1; for(let item in searchObj){ if(searchObj[item]){ - this.$set(this.endpointSearchLabel,item,searchObj[item]); + if (item === "endpointState") { + this.$set(this.endpointSearchLabel, 'state', searchObj[item]); + } else { + this.$set(this.endpointSearchLabel,item,searchObj[item]); + } } } if(orderBy){