mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-17 03:04:46 +08:00
pref: 优化计划任务错误显示 (#4803)
This commit is contained in:
parent
e47d449b1b
commit
164a48c99f
@ -16,9 +16,9 @@
|
|||||||
</span>
|
</span>
|
||||||
<el-button type="primary" link @click="toHalo">
|
<el-button type="primary" link @click="toHalo">
|
||||||
{{ isProductPro ? $t('license.pro') : $t('license.community') }}
|
{{ isProductPro ? $t('license.pro') : $t('license.community') }}
|
||||||
<span class="version">{{ version }}</span>
|
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-badge is-dot style="margin-left: -3px" v-if="version !== 'Waiting' && globalStore.hasNewVersion">
|
<span class="version">{{ version }}</span>
|
||||||
|
<el-badge is-dot style="margin-top: -3px" v-if="version !== 'Waiting' && globalStore.hasNewVersion">
|
||||||
<el-button type="primary" link @click="onLoadUpgradeInfo">
|
<el-button type="primary" link @click="onLoadUpgradeInfo">
|
||||||
<span>({{ $t('setting.hasNewVersion') }})</span>
|
<span>({{ $t('setting.hasNewVersion') }})</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -154,14 +154,9 @@
|
|||||||
<template #label>
|
<template #label>
|
||||||
<span class="status-label">{{ $t('commons.table.status') }}</span>
|
<span class="status-label">{{ $t('commons.table.status') }}</span>
|
||||||
</template>
|
</template>
|
||||||
<el-tooltip v-if="currentRecord?.status === 'Failed'" placement="top">
|
<el-tag type="danger" v-if="currentRecord?.status === 'Failed'">
|
||||||
<template #content>
|
{{ $t('commons.table.statusFailed') }}
|
||||||
<div style="width: 300px; word-break: break-all">
|
</el-tag>
|
||||||
{{ currentRecord?.message }}
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<el-tag type="danger">{{ $t('commons.table.statusFailed') }}</el-tag>
|
|
||||||
</el-tooltip>
|
|
||||||
<el-tag type="success" v-if="currentRecord?.status === 'Success'">
|
<el-tag type="success" v-if="currentRecord?.status === 'Success'">
|
||||||
{{ $t('commons.table.statusSuccess') }}
|
{{ $t('commons.table.statusSuccess') }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
@ -170,6 +165,14 @@
|
|||||||
</el-tag>
|
</el-tag>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row v-if="currentRecord?.status === 'Failed'">
|
||||||
|
<el-form-item class="w-full">
|
||||||
|
<template #label>
|
||||||
|
<span class="status-label">{{ $t('commons.table.message') }}</span>
|
||||||
|
</template>
|
||||||
|
{{ currentRecord?.message }}
|
||||||
|
</el-form-item>
|
||||||
|
</el-row>
|
||||||
<el-row v-if="currentRecord?.records">
|
<el-row v-if="currentRecord?.records">
|
||||||
<span>{{ $t('commons.table.records') }}</span>
|
<span>{{ $t('commons.table.records') }}</span>
|
||||||
<codemirror
|
<codemirror
|
||||||
|
Loading…
x
Reference in New Issue
Block a user