Browse Source

feat: 计划任务报告页增加计划任务名称显示 (#1219)

pull/1221/head
ssongliu 2 years ago committed by GitHub
parent
commit
35ca52620c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      frontend/src/views/cronjob/record/index.vue

19
frontend/src/views/cronjob/record/index.vue

@ -3,9 +3,24 @@
<div class="a-card" style="margin-top: 20px"> <div class="a-card" style="margin-top: 20px">
<el-card> <el-card>
<div> <div>
<el-tag style="float: left" effect="dark" type="success"> <el-popover
{{ $t('cronjob.' + dialogData.rowData.type) }} v-if="dialogData.rowData.name.length >= 15"
placement="top-start"
trigger="hover"
width="250"
:content="$t('cronjob.' + dialogData.rowData.type) + ' - ' + dialogData.rowData.name"
>
<template #reference>
<el-tag style="float: left" effect="dark" type="success">
{{ $t('cronjob.' + dialogData.rowData.type) }} -
{{ dialogData.rowData.name.substring(0, 12) }}...
</el-tag>
</template>
</el-popover>
<el-tag v-if="dialogData.rowData.name.length < 15" style="float: left" effect="dark" type="success">
{{ $t('cronjob.' + dialogData.rowData.type) }} - {{ dialogData.rowData.name }}
</el-tag> </el-tag>
<el-tag v-if="dialogData.rowData.status === 'Enable'" round class="status-content" type="success"> <el-tag v-if="dialogData.rowData.status === 'Enable'" round class="status-content" type="success">
{{ $t('commons.status.running') }} {{ $t('commons.status.running') }}
</el-tag> </el-tag>

Loading…
Cancel
Save