style(@vben/web-antd): lint 自动格式化修正工单模块

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
lzh
2026-03-25 11:37:48 +08:00
parent 9d2e7d9e13
commit de95c707a0
2 changed files with 8 additions and 14 deletions

View File

@@ -64,7 +64,7 @@ export const STATUS_TAB_OPTIONS = [
/** 优先级颜色映射(按数值直接映射,不依赖字典 colorType */
const PRIORITY_STYLE_MAP: Record<
number,
{ style: { backgroundColor: string; color: string }; icon: string }
{ icon: string; style: { backgroundColor: string; color: string } }
> = {
0: {
style: { backgroundColor: '#FFF0F0', color: '#C01D1D' },

View File

@@ -350,7 +350,7 @@ const isCancelled = computed(() => order.value.status === 'CANCELLED');
const isCurrentActive = computed(
() =>
!isCancelled.value &&
!['COMPLETED', 'CANCELLED'].includes(order.value.status),
!['CANCELLED', 'COMPLETED'].includes(order.value.status),
);
/** 根据 step.key 查找 timeline 中对应的时间 */
@@ -381,7 +381,7 @@ const visibleSteps = computed(() => {
title:
t.status === 'CANCELLED'
? '已取消'
: (step?.title || t.statusName || t.status),
: step?.title || t.statusName || t.status,
icon: step?.icon || 'solar:close-circle-bold-duotone',
desc: t.description || step?.desc || '',
};
@@ -861,20 +861,15 @@ onUnmounted(stopPolling);
:key="step.key"
class="progress-node"
:class="{
'node-completed':
!isCancelled && index < currentStepIndex,
'node-current':
isCurrentActive && index === currentStepIndex,
'node-completed': !isCancelled && index < currentStepIndex,
'node-current': isCurrentActive && index === currentStepIndex,
'node-completed-current':
!isCancelled &&
index === currentStepIndex &&
order.status === 'COMPLETED',
'node-pending':
!isCancelled && index > currentStepIndex,
'node-cancelled-done':
isCancelled && index < currentStepIndex,
'node-cancelled-end':
isCancelled && index === currentStepIndex,
'node-pending': !isCancelled && index > currentStepIndex,
'node-cancelled-done': isCancelled && index < currentStepIndex,
'node-cancelled-end': isCancelled && index === currentStepIndex,
}"
>
<Tooltip :title="step.desc">
@@ -1874,7 +1869,6 @@ onUnmounted(stopPolling);
.desc-text {
color: rgb(255 255 255 / 75%);
}
}
/* ========== 通用卡片样式 ========== */