mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
perf: 去掉首页无意义的标签显示
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user