...
|
...
|
@@ -56,8 +56,8 @@ |
56
|
56
|
</Card>
|
57
|
57
|
</div>
|
58
|
58
|
<Card v-else :bordered="false" :bodyStyle="{ padding: 0 }" v-bind="$attrs">
|
59
|
|
- <Skeleton active :paragraph="{ rows: 10 }" :loading="!tenantTop10.length">
|
60
|
|
- <Descriptions :column="1" style="min-height: 180px" title="租户消息量TOP10">
|
|
59
|
+ <Skeleton active :paragraph="{ rows: 10 }" :loading="!tenantTop10">
|
|
60
|
+ <Descriptions :column="1" title="租户消息量TOP10" v-if="tenantTop10.length">
|
61
|
61
|
<template v-for="(item, index) in tenantTop10" :key="item.name">
|
62
|
62
|
<DescriptionsItem>
|
63
|
63
|
<span
|
...
|
...
|
@@ -114,6 +114,7 @@ |
114
|
114
|
{{ item.name }}
|
115
|
115
|
</Tooltip>
|
116
|
116
|
</div>
|
|
117
|
+
|
117
|
118
|
<div class="flex w-7/10">
|
118
|
119
|
<Progress
|
119
|
120
|
:showInfo="false"
|
...
|
...
|
@@ -142,6 +143,7 @@ |
142
|
143
|
</DescriptionsItem>
|
143
|
144
|
</template>
|
144
|
145
|
</Descriptions>
|
|
146
|
+ <Empty v-else :image="Empty.PRESENTED_IMAGE_SIMPLE" />
|
145
|
147
|
</Skeleton>
|
146
|
148
|
<h1 style="color: rgba(0, 0, 0, 0.85); font-weight: bold; font-size: 16px">
|
147
|
149
|
本月即将过期租户</h1
|
...
|
...
|
@@ -269,7 +271,9 @@ |
269
|
271
|
const tenantTop10 = ref<{ name: string; count: number }[]>([]);
|
270
|
272
|
onMounted(async () => {
|
271
|
273
|
if (isAdmin(props.role)) {
|
272
|
|
- tenantTop10.value = await getTenantTop10();
|
|
274
|
+ const res = await getTenantTop10();
|
|
275
|
+ if (res) tenantTop10.value = res;
|
|
276
|
+ else tenantTop10.value = [];
|
273
|
277
|
return;
|
274
|
278
|
}
|
275
|
279
|
const notice = await notifyMyGetrPageApi({ page: 1, pageSize: 5 });
|
...
|
...
|
|