forked from TencentBlueKing/blueking-dbm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(frontend): tendbCluster 扩容/缩容接入层无法选择异常集群 TencentBlueKing#7354
# Reviewed, transaction id: 21189
- Loading branch information
Showing
5 changed files
with
97 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
dbm-ui/frontend/src/views/ticket-center/common/ticket-detail/components/BaseInfo.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<template> | ||
<DbCard | ||
mode="collapse" | ||
:title="t('基本信息')"> | ||
<table class="ticket-base-info"> | ||
<tbody> | ||
<tr> | ||
<td>{{ t('单号') }}:</td> | ||
<td>{{ ticketData.id }}</td> | ||
<td>{{ t('单据状态') }}:</td> | ||
<td> | ||
<BkTag :theme="ticketData.tagTheme"> | ||
{{ t(ticketData.statusText) }} | ||
</BkTag> | ||
</td> | ||
<td>{{ t('已耗时') }}:</td> | ||
<td> | ||
<CostTimer | ||
:is-timing="ticketData?.status === 'RUNNING'" | ||
:start-time="utcTimeToSeconds(ticketData?.create_at)" | ||
:value="ticketData?.cost_time || 0" /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>{{ t('单据类型') }}:</td> | ||
<td>{{ ticketData.ticket_type_display }}</td> | ||
<td>{{ t('申请人') }}:</td> | ||
<td>{{ ticketData.creator }}</td> | ||
<td>{{ t('申请时间') }}:</td> | ||
<td>{{ utcDisplayTime(ticketData.create_at) }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</DbCard> | ||
</template> | ||
<script setup lang="ts"> | ||
import { useI18n } from 'vue-i18n'; | ||
import TicketModel from '@services/model/ticket/ticket'; | ||
import CostTimer from '@components/cost-timer/CostTimer.vue'; | ||
import { utcDisplayTime, utcTimeToSeconds } from '@utils'; | ||
interface Props { | ||
ticketData: TicketModel<unknown>; | ||
} | ||
defineProps<Props>(); | ||
const { t } = useI18n(); | ||
</script> | ||
<style lang="less"> | ||
.ticket-base-info { | ||
td { | ||
width: 18%; | ||
line-height: 32px; | ||
color: #313238; | ||
&:nth-child(2n + 1) { | ||
width: 12%; | ||
padding-right: 8px; | ||
text-align: right; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters