所有页面没有数据时显示内容修改

This commit is contained in:
2026-10-08 14:12:54 +08:00
parent 4ab213e396
commit a26075d61b
12 changed files with 60 additions and 24 deletions
+15 -3
View File
@@ -170,7 +170,7 @@ onMounted(() => {
<NCard :bordered="true" size="small" :content-style="{padding: 0}" :style="{ borderRadius: themeStore.themeRadius + 'px', height: '100%' }">
<p class=" text-base font-semibold border-b border-slate-100 p-3">各车间变更数量({{dateLabel}})</p>
<div class="py-3 px-4">
<ColumnChart v-if="homeData" :data="homeData?.workshop_counts?.items || []" />
<ColumnChart v-if="homeData" :data="homeData?.workshop_counts?.items || []" />
</div>
</NCard>
</NGi>
@@ -214,7 +214,11 @@ onMounted(() => {
</thead>
<tbody>
<tr v-if="homeData?.approver_eff?.rows?.length===0">
<td colspan="4" class="text-center text-xs text-slate-400 py-3">暂无数据</td>
<td colspan="4">
<div class="h-100% flex items-center justify-center py-3">
<NEmpty description="暂无数据" class="!text-xs"></NEmpty>
</div>
</td>
</tr>
<tr v-for="r in homeData?.approver_eff?.rows || []" :key="r.p" class="border-b last:border-0">
<td class="py-2">
@@ -296,6 +300,9 @@ onMounted(() => {
<NButton size="small" class="text-[11px]" @click="jumpTo('details_index',r.change_id)">查看</NButton>
</span>
</div>
<div v-if="homeData?.accept_detail?.length===0" class="h-100% flex items-center justify-center py-3">
<NEmpty description="暂无数据" class="!text-xs"></NEmpty>
</div>
</div>
</div>
</div>
@@ -440,6 +447,9 @@ onMounted(() => {
<span class="w-12 shrink-0 text-right text-xs font-bold text-slate-800">{{ e.days }} 天</span>
</NProgress>
</div>
<div v-if="homeData?.dept_approval_days?.length===0" class="h-100% flex items-center justify-center py-3">
<NEmpty description="暂无数据" class="!text-xs"></NEmpty>
</div>
</div>
</div>
</NCard>
@@ -536,7 +546,9 @@ onMounted(() => {
<span class="w-12 shrink-0 text-right text-xs font-bold text-slate-800">{{ r.count }} 起</span>
</NProgress>
</div>
<div class="text-[11px] text-slate-400">可用于申请端填报质量改进:TOP2 理由已纳入 AI 预识别检查项</div>
<div v-if="!homeData?.reject?.reasons || homeData?.reject?.reasons?.length===0" class="h-100% flex items-center justify-center py-3">
<NEmpty description="暂无数据" class="!text-xs"></NEmpty>
</div>
</div>
</div>
</NCard>