fix(任务中心): 执行结果标题

This commit is contained in:
baiqi 2024-10-28 15:31:32 +08:00 committed by Craftsman
parent 0286f5717e
commit 2ddd07925c
2 changed files with 6 additions and 6 deletions

View File

@ -1,13 +1,13 @@
<template> <template>
<MsDrawer v-model:visible="visible" :width="1200" :footer="false"> <MsDrawer v-model:visible="visible" :width="1200" :footer="false">
<template #title> <template #title>
<div class="flex items-center gap-[8px]"> <div class="flex flex-1 items-center gap-[8px] overflow-hidden">
<a-tag :color="executeResultMap[props.record.result]?.color"> <a-tag :color="executeResultMap[props.record.result]?.color">
{{ t(executeResultMap[props.record.result]?.label || 'common.unExecute') }} {{ t(executeResultMap[props.record.result]?.label || 'common.unExecute') }}
</a-tag> </a-tag>
<div>{{ detail.name }}</div> <div class="one-line-text">{{ detail.name }}</div>
</div> </div>
<div class="flex flex-1 justify-end"> <div class="flex justify-end">
<MsButton type="icon" status="secondary" class="!rounded-[var(--border-radius-small)]" @click="init"> <MsButton type="icon" status="secondary" class="!rounded-[var(--border-radius-small)]" @click="init">
<MsIcon type="icon-icon_reset_outlined" class="mr-[8px]" size="14" /> <MsIcon type="icon-icon_reset_outlined" class="mr-[8px]" size="14" />
{{ t('common.refresh') }} {{ t('common.refresh') }}

View File

@ -1,13 +1,13 @@
<template> <template>
<MsDrawer v-model:visible="visible" :width="1200" :footer="false"> <MsDrawer v-model:visible="visible" :width="1200" :footer="false">
<template #title> <template #title>
<div class="flex items-center gap-[8px]"> <div class="flex flex-1 items-center gap-[8px] overflow-hidden">
<a-tag :color="executeResultMap[props.record.result]?.color"> <a-tag :color="executeResultMap[props.record.result]?.color">
{{ t(executeResultMap[props.record.result]?.label || 'common.unExecute') }} {{ t(executeResultMap[props.record.result]?.label || 'common.unExecute') }}
</a-tag> </a-tag>
<div>{{ detail.name }}</div> <div class="one-line-text">{{ detail.name }}</div>
</div> </div>
<div class="flex flex-1 justify-end"> <div class="flex justify-end">
<MsButton type="icon" status="secondary" class="!rounded-[var(--border-radius-small)]" @click="init"> <MsButton type="icon" status="secondary" class="!rounded-[var(--border-radius-small)]" @click="init">
<MsIcon type="icon-icon_reset_outlined" class="mr-[8px]" size="14" /> <MsIcon type="icon-icon_reset_outlined" class="mr-[8px]" size="14" />
{{ t('common.refresh') }} {{ t('common.refresh') }}