mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 06:29:20 +08:00
feat: 三侧增量态表增加最后摘要
This commit is contained in:
@@ -34,6 +34,8 @@ export namespace PddOrderSyncVO {
|
||||
enabled: boolean;
|
||||
cursorStatus?: number;
|
||||
lastError?: string;
|
||||
/** 最后一次同步摘要(成功说明或失败提示;展示优先于 lastError) */
|
||||
lastSummary?: string;
|
||||
lastCursorAt?: string;
|
||||
lastSuccessTime?: string;
|
||||
overlapSeconds?: number;
|
||||
|
||||
+13
-3
@@ -106,6 +106,16 @@ const incHealthColor = computed(() => {
|
||||
return 'default';
|
||||
});
|
||||
|
||||
/** 只展示摘要(含失败提示);完整 lastError 不在抽屉展示 */
|
||||
const incStatusMessage = computed(() => incremental.value?.lastSummary || '');
|
||||
|
||||
const incStatusAlertType = computed(() => {
|
||||
const s = incremental.value?.lastSummary || '';
|
||||
if (s.includes('失败') || s.includes('限流')) return 'error';
|
||||
if (s) return 'info';
|
||||
return 'info';
|
||||
});
|
||||
|
||||
function formatTime(time?: null | string) {
|
||||
if (!time) return '-';
|
||||
const d = dayjs(time);
|
||||
@@ -459,10 +469,10 @@ defineExpose({ open, close: handleClose });
|
||||
</Descriptions>
|
||||
|
||||
<Alert
|
||||
v-if="incremental?.lastError"
|
||||
type="error"
|
||||
v-if="incStatusMessage"
|
||||
:type="incStatusAlertType"
|
||||
show-icon
|
||||
:message="incremental.lastError"
|
||||
:message="incStatusMessage"
|
||||
/>
|
||||
</Space>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user