Skip to content

Commit

Permalink
Merge pull request #2564 from hLinx/hotfix_3.7.x
Browse files Browse the repository at this point in the history
fix: 首页agent状态字段错误 #2562
  • Loading branch information
hLinx authored Oct 30, 2023
2 parents 3a9cad8 + 54bf1cf commit 7d9b8d2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/frontend/src/views/home/index/components/agent/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@
<div class="agent-statistics-detail">
<div
class="detail-item normal"
@click="handleShowAgentDetail('normal', agentInfo.normalNum)"
@click="handleShowAgentDetail('normal', agentInfo.aliveCount)"
@mouseover="handlePieScale($t('home.正常'))">
<span>{{ $t('home.正常') }}</span>
<span class="detail-value">{{ agentInfo.normalNum }}</span>
<span class="detail-value">{{ agentInfo.aliveCount }}</span>
</div>
<div
class="detail-item fail"
@click="handleShowAgentDetail('fail', agentInfo.normalNum)"
@click="handleShowAgentDetail('fail', agentInfo.notAliveCount)"
@mouseover="handlePieScale($t('home.异常'))">
<span>{{ $t('home.异常') }}</span>
<span class="detail-value">{{ agentInfo.abnormalNum }}</span>
<span class="detail-value">{{ agentInfo.notAliveCount }}</span>
</div>
</div>
<sideslider-box
Expand Down Expand Up @@ -110,7 +110,7 @@
return statusListMap[this.statusType];
},
defaultHighlight() {
return (this.agentInfo.abnormalNum || !this.agentInfo.normalNum)
return (this.agentInfo.notAliveCount || !this.agentInfo.aliveCount)
? this.$t('home.异常')
: this.$t('home.正常');
},
Expand Down Expand Up @@ -215,7 +215,7 @@
},
data: [
{
value: this.agentInfo.normalNum,
value: this.agentInfo.aliveCount,
key: 'normal',
name: this.$t('home.正常'),
itemStyle: {
Expand All @@ -228,7 +228,7 @@
},
},
{
value: this.agentInfo.abnormalNum,
value: this.agentInfo.notAliveCount,
key: 'fail',
name: this.$t('home.异常'),
itemStyle: {
Expand Down

0 comments on commit 7d9b8d2

Please sign in to comment.