This commit is contained in:
张磊
2026-04-07 18:13:31 +08:00
parent 5d9d3fe1c4
commit ea2b6778ee
+1 -20
View File
@@ -1,15 +1,10 @@
<template>
<div class="archive-detail-page" v-loading="loading">
<el-card v-if="!loading && !canRequest" class="state-card" shadow="never">
<el-empty description="缺少 user_id 或 id 参数,无法加载" />
</el-card>
<template v-else-if="!loading && !firstRecord">
<template v-if="!loading && !firstRecord">
<el-card class="state-card" shadow="never">
<el-empty description="暂无检测详情数据" />
</el-card>
</template>
<template v-else>
<header class="page-head">
<h1 class="page-title">分析对比详情</h1>
@@ -21,7 +16,6 @@
<div class="compare-row" :class="{ 'compare-row--single': !secondRecord }">
<section v-if="firstRecord" class="compare-pane">
<header class="pane-head">
<!-- <span class="pane-tag pane-tag--a">{{ paneTitleFirst }}</span> -->
<span class="pane-time">
<span class="pane-time__label">检测时间</span>
{{ firstRecord.create_time || '—' }}
@@ -56,7 +50,6 @@
<section v-if="secondRecord" class="compare-pane compare-pane--b">
<header class="pane-head">
<!-- <span class="pane-tag pane-tag--b">{{ paneTitleSecond }}</span> -->
<span class="pane-time">
<span class="pane-time__label">检测时间</span>
{{ secondRecord.create_time || '—' }}
@@ -197,18 +190,6 @@ const requestParams = computed(() => {
const canRequest = computed(() => Object.keys(requestParams.value).length > 0);
const paneTitleFirst = computed(
() => firstRecord.value?.nickname || firstRecord.value?.name || firstRecord.value?.username || '检测一'
);
const paneTitleSecond = computed(
() => secondRecord.value?.nickname || secondRecord.value?.name || secondRecord.value?.username || '检测二'
);
const pageSubtitle = computed(() => {
const uid = firstRecord.value?.user_id;
if (uid == null || uid === '') return '';
return `用户 ID${uid}`;
});
const thumbKeys = computed(() => orderedImageKeys(entriesFirst.value, entriesSecond.value));