首页空数据显示修改

This commit is contained in:
2026-10-08 14:33:48 +08:00
parent a26075d61b
commit 214409e4be
8 changed files with 63 additions and 19 deletions
+12 -2
View File
@@ -292,7 +292,9 @@ onUnmounted(() => {
</div>
</template>
<template v-else>
<p class="text-xs text-slate-400 text-center">暂无数据</p>
<div class="h-100% flex items-center justify-center py-3">
<NEmpty description="暂无数据" class="!text-xs"></NEmpty>
</div>
</template>
</div>
</NCard>
@@ -325,6 +327,9 @@ onUnmounted(() => {
</div>
<p class="w-45px font-semibold text-slate-600 text-xs text-right">{{ s.avg_days || 0 }} 天</p>
</div>
<div v-if="homeData?.dept_efficiency?.items?.length===0" class="h-100% flex items-center justify-center py-3">
<NEmpty description="暂无数据" class="!text-xs"></NEmpty>
</div>
</div>
</div>
<div class="w-50%">
@@ -338,6 +343,9 @@ onUnmounted(() => {
</div>
<p class="w-45px font-semibold text-slate-600 text-xs text-right">{{ s.avg_days || 0 }} 天</p>
</div>
<div v-if="homeData?.person_efficiency?.items?.length===0" class="h-100% flex items-center justify-center py-3">
<NEmpty description="暂无数据" class="!text-xs"></NEmpty>
</div>
</div>
</div>
</div>
@@ -393,7 +401,9 @@ onUnmounted(() => {
</div>
</template>
<template v-else>
<p class="text-xs text-slate-400 text-center">暂无数据</p>
<div class="h-100% flex items-center justify-center py-3">
<NEmpty description="暂无数据" class="!text-xs"></NEmpty>
</div>
</template>
</div>
</NCard>