mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 23:18:17 +00:00
Merge pull request #3323 from jumpserver/pr@dev@perf_dashboard_data
perf: 优化首页 rank 的宽度
This commit is contained in:
commit
992025e618
@ -13,6 +13,7 @@
|
||||
|
||||
<script>
|
||||
import RankTable from '../components/RankTable.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
RankTable
|
||||
@ -31,7 +32,8 @@ export default {
|
||||
},
|
||||
{
|
||||
prop: 'total',
|
||||
label: this.$t('dashboard.LoginCount')
|
||||
label: this.$t('dashboard.LoginCount'),
|
||||
width: '80px'
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -47,7 +49,8 @@ export default {
|
||||
},
|
||||
{
|
||||
prop: 'total',
|
||||
label: this.$t('dashboard.NumberOfVisits')
|
||||
label: this.$t('dashboard.NumberOfVisits'),
|
||||
width: '80px'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -6,10 +6,10 @@
|
||||
</div>
|
||||
<el-table
|
||||
:data="tableData"
|
||||
style="width: 100%"
|
||||
class="table"
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-table-column :label="$tc('dashboard.ranking')">
|
||||
<el-table-column :label="$tc('dashboard.ranking')" width="60px">
|
||||
<template v-slot="scope">
|
||||
<span>{{ scope.$index + 1 }}</span>
|
||||
</template>
|
||||
@ -17,8 +17,9 @@
|
||||
<el-table-column
|
||||
v-for="i in config.columns"
|
||||
:key="i.prop"
|
||||
:prop="i.prop"
|
||||
:label="i.label"
|
||||
:prop="i.prop"
|
||||
:width="i.width"
|
||||
/>
|
||||
</el-table>
|
||||
</div>
|
||||
@ -81,5 +82,10 @@ export default {
|
||||
}
|
||||
>>> .el-table th, .el-table tr {
|
||||
background-color: #F5F6F7!important;
|
||||
|
||||
}
|
||||
|
||||
>>> .el-table .cell {
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user