report 页面

This commit is contained in:
Captain.B 2020-04-02 10:40:04 +08:00
parent 3c6ed58fab
commit e572201bcc
3 changed files with 27 additions and 12 deletions

View File

@ -19,12 +19,6 @@
<el-table-column
prop="name"
:label="$t('commons.name')"
width="150"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="description"
:label="$t('commons.description')"
show-overflow-tooltip>
</el-table-column>
<el-table-column
@ -47,6 +41,27 @@
<span>{{ scope.row.updateTime | timestampFormatDate }}</span>
</template>
</el-table-column>
<el-table-column
prop="status"
:label="$t('commons.status')">
<template slot-scope="{row}">
<el-tag size="mini" type="primary" v-if="row.status === 'Starting'">
{{ row.status }}
</el-tag>
<el-tag size="mini" type="success" v-else-if="row.status === 'Running'">
{{ row.status }}
</el-tag>
<el-tooltip placement="top" v-else-if="row.status === 'Error'" effect="light">
<div slot="content">{{row.description}}</div>
<el-tag size="mini" type="danger">
{{ row.status }}
</el-tag>
</el-tooltip>
<el-tag size="mini" type="info" v-else>
{{ row.status }}
</el-tag>
</template>
</el-table-column>
<el-table-column
width="150"
:label="$t('commons.operating')">

View File

@ -30,7 +30,7 @@ export default {
'phone': 'Phone',
'role': 'Role',
'personal_info': 'Personal Info',
'status': 'Enable/Disable',
'status': 'Status',
'show_all': 'Show All',
'report': 'Report',
'user': 'User',

View File

@ -30,7 +30,7 @@ export default {
'phone': '电话',
'role': '角色',
'personal_info': '个人信息',
'status': '启用/禁用',
'status': '状态',
'show_all': '显示全部',
'report': '报告',
'user': '用户',