mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
fix: 悬浮显示样式修改
This commit is contained in:
parent
95bc5cc902
commit
16b54a8604
@ -54,7 +54,10 @@
|
||||
<el-tag v-if="row.status === 'Success'" type="success">
|
||||
{{ $t('commons.status.success') }}
|
||||
</el-tag>
|
||||
<el-tooltip v-else effect="dark" :content="row.message" placement="bottom">
|
||||
<el-tooltip v-else effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
<div style="width: 300px; word-break: break-all">{{ row.message }}</div>
|
||||
</template>
|
||||
<el-tag type="danger">{{ $t('commons.status.failed') }}</el-tag>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
|
@ -45,13 +45,10 @@
|
||||
<el-table-column type="selection" fix />
|
||||
<el-table-column :label="$t('commons.table.name')" min-width="80" prop="name" fix>
|
||||
<template #default="{ row }">
|
||||
<el-tooltip
|
||||
v-if="row.name.length > 20"
|
||||
class="box-item"
|
||||
effect="dark"
|
||||
:content="row.name"
|
||||
placement="top"
|
||||
>
|
||||
<el-tooltip v-if="row.name.length > 20" effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
<div style="width: 300px; word-break: break-all">{{ row.name }}</div>
|
||||
</template>
|
||||
<el-link @click="onInspect(row.name)" type="primary">
|
||||
{{ row.name.substring(0, 20) }}...
|
||||
</el-link>
|
||||
|
@ -45,7 +45,10 @@
|
||||
<el-table-column type="selection" fix />
|
||||
<el-table-column :label="$t('cronjob.taskName')" :min-width="120" prop="name">
|
||||
<template #default="{ row }">
|
||||
<el-tooltip effect="dark" :content="row.name" v-if="row.name.length > 12" placement="top">
|
||||
<el-tooltip effect="dark" v-if="row.name.length > 12" placement="top">
|
||||
<template #content>
|
||||
<div style="width: 300px; word-break: break-all">{{ row.name }}</div>
|
||||
</template>
|
||||
<el-link @click="loadDetail(row)" type="primary">
|
||||
{{ row.name.substring(0, 15) }}...
|
||||
</el-link>
|
||||
|
@ -221,12 +221,12 @@
|
||||
<template #label>
|
||||
<span class="status-label">{{ $t('commons.table.status') }}</span>
|
||||
</template>
|
||||
<el-tooltip
|
||||
v-if="currentRecord?.status === 'Failed'"
|
||||
class="box-item"
|
||||
:content="currentRecord?.message"
|
||||
placement="top"
|
||||
>
|
||||
<el-tooltip v-if="currentRecord?.status === 'Failed'" placement="top">
|
||||
<template #content>
|
||||
<div style="width: 300px; word-break: break-all">
|
||||
{{ 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'">
|
||||
|
@ -63,13 +63,10 @@
|
||||
<el-tag v-if="row.status === 'Uploading'" type="info">
|
||||
{{ $t('commons.status.uploading') }}...
|
||||
</el-tag>
|
||||
<el-tooltip
|
||||
v-if="row.status === 'Failed'"
|
||||
class="box-item"
|
||||
effect="dark"
|
||||
:content="row.message"
|
||||
placement="top-start"
|
||||
>
|
||||
<el-tooltip v-if="row.status === 'Failed'" effect="dark" placement="top">
|
||||
<template #content>
|
||||
<div style="width: 300px; word-break: break-all">{{ row.message }}</div>
|
||||
</template>
|
||||
<el-tag type="danger">{{ $t('commons.table.statusFailed') }}</el-tag>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user