perf: 去掉首页无意义的标签显示

This commit is contained in:
ibuler
2021-07-21 10:20:06 +08:00
committed by 老广
parent 0e67594ba9
commit d07b311b76
2 changed files with 1 additions and 24 deletions

View File

@@ -2,13 +2,6 @@
<el-card shadow="never">
<div slot="header" class="summary-header">
<span class="header-title">{{ title }}</span>
<span class="pull-right right-side">
<slot name="header-right">
<el-tag :type="rightSideLabel.type || 'success'" effect="dark" size="mini">
{{ rightSideLabel.title }}
</el-tag>
</slot>
</span>
</div>
<slot>
<h1 class="no-margins">

View File

@@ -1,7 +1,7 @@
<template>
<el-row :gutter="10">
<el-col v-for="item of summaryItems" :key="item.title" :md="6" :sm="12" :xs="12">
<SummaryCard :title="item.title" :right-side-label="item.rightSideLabel" :body="item.body" />
<SummaryCard :title="item.title" :body="item.body" />
</el-col>
</el-row>
</template>
@@ -27,10 +27,6 @@ export default {
return [
{
title: this.$t('dashboard.UsersTotal'),
rightSideLabel: {
title: 'Users',
type: 'success'
},
body: {
route: `/users/users`,
count: this.counter.total_count_users,
@@ -40,10 +36,6 @@ export default {
},
{
title: this.$t('dashboard.AssetsTotal'),
rightSideLabel: {
title: 'Assets',
type: 'info'
},
body: {
route: `/assets/assets`,
count: this.counter.total_count_assets,
@@ -53,10 +45,6 @@ export default {
},
{
title: this.$t('dashboard.OnlineUsers'),
rightSideLabel: {
title: 'Online',
type: 'primary'
},
body: {
route: { name: `SessionList`, params: { activeMenu: 'OnlineList' }},
count: this.counter.total_count_online_users,
@@ -65,10 +53,6 @@ export default {
},
{
title: this.$t('dashboard.OnlineSessions'),
rightSideLabel: {
title: 'Connected',
type: 'danger'
},
body: {
route: { name: `SessionList`, params: { activeMenu: 'OnlineList' }},
count: this.counter.total_count_online_sessions,