Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 首页agent状态字段错误 #2562 #2563

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading