最近测试报告增加时间
This commit is contained in:
parent
55e6ab076f
commit
d769d79c5e
|
@ -88,6 +88,7 @@
|
|||
},
|
||||
reportRecent: {
|
||||
title: this.$t('report.recent'),
|
||||
showTime: true,
|
||||
url: "/api/report/recent/5",
|
||||
index: function (item) {
|
||||
return '/api/report/view/' + item.id;
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
<i class="el-icon-refresh" @click="recent"/>
|
||||
</div>
|
||||
<el-menu-item :key="i.id" v-for="i in items" :index="getIndex(i)" :route="getRouter(i)">
|
||||
<span class="title">{{ i.name }}</span>
|
||||
<template slot="title">
|
||||
<div class="title">{{ i.name }}</div>
|
||||
<div class="time" v-if="options.showTime && i.updateTime">{{ i.updateTime | timestampFormatDate}}</div>
|
||||
</template>
|
||||
</el-menu-item>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -81,6 +84,18 @@
|
|||
}
|
||||
|
||||
.title {
|
||||
display: inline-block;
|
||||
padding-left: 20px;
|
||||
max-width: 200px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.time {
|
||||
color: #C0C4CC;
|
||||
display: inline-block;
|
||||
padding-left: 20px;
|
||||
float: right;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue