fix: 首页调整

This commit is contained in:
caiyuchao
2025-08-12 15:17:40 +08:00
parent 307172d5d7
commit d4f555b759

View File

@@ -61,7 +61,7 @@ onMounted(async () => {
trendItems.value = licenses.map((item) => { trendItems.value = licenses.map((item) => {
return { return {
avatar: '', avatar: '',
content: `客户【<b>${item.customerName}</b>】项目【<b>${item.projectName}</b>】的License将在 <b>${dayjs(item.expiryDate).fromNow(true)}</b> 后到期`, content: `客户【<b>${item.customerName}</b>】项目【<b>${item.projectName}</b>】的License将在 <b>${dayjs(item.expiryDate).fromNow(true)}</b> 后到期`,
date: dayjs(item.expiryDate).format('YYYY-MM-DD HH:mm:ss') || '', date: dayjs(item.expiryDate).format('YYYY-MM-DD HH:mm:ss') || '',
title: item.serialNo || '', title: item.serialNo || '',
}; };
@@ -98,14 +98,14 @@ onMounted(async () => {
<WorkbenchTrends <WorkbenchTrends
:items="trendItems" :items="trendItems"
class="mt-5" class="mt-5"
title="License最先到期" title="License即将到期"
/> />
</div> </div>
<div class="mr-4 w-full lg:w-1/2"> <div class="mr-4 w-full lg:w-1/2">
<WorkbenchTrends <WorkbenchTrends
:items="projectProgressItems" :items="projectProgressItems"
class="mt-5" class="mt-5"
title="项目进展" title="项目评论"
/> />
</div> </div>
</div> </div>