时间显示统一修改为年月日

This commit is contained in:
付民康
2025-03-27 11:09:31 +08:00
parent 878aedac89
commit 0e1f61bc86
2 changed files with 6 additions and 3 deletions

View File

@@ -108,7 +108,10 @@
<a @click="gotoDetail(scope.row)">{{ scope.row.version }}</a>
</template>
<template v-else-if="column.key === 'releaseDate'">
<span>{{ formatTime(scope.row.releaseDate, 'YYYY-MM-DD HH:mm:ss') }}</span>
<span>{{ formatTime(scope.row.releaseDate, 'YYYY-MM-DD') }}</span>
</template>
<template v-else-if="column.key === 'eolDate'">
<span>{{ formatTime(scope.row.eolDate, 'YYYY-MM-DD') }}</span>
</template>
<template v-else-if="column.key === 'softwareVersion'">
<a @click="gotoDetail(scope.row)">{{ scope.row.softwareVersion }}</a>

View File

@@ -24,7 +24,7 @@
<d-col :span="8">
<span class="card-key width-90">发布时间</span>
<span class="card-val">
{{ ReleaseInfo.basicInfo.releaseDate?dayjs(ReleaseInfo.basicInfo.releaseDate).format('YYYY-MM-DD HH:mm:ss') :'--' }}</span>
{{ ReleaseInfo.basicInfo.releaseDate?dayjs(ReleaseInfo.basicInfo.releaseDate).format('YYYY-MM-DD') :'--' }}</span>
</d-col>
<d-col :span="8">
<span class="card-key width-90">版本描述</span>
@@ -56,7 +56,7 @@
<d-col :span="8">
<span class="card-key width-110">社区EOL日期</span>
<span class="card-val">
{{ ReleaseInfo.referenceInfo.communityEolDate?dayjs(ReleaseInfo.referenceInfo.communityEolDate).format('YYYY-MM-DD HH:mm:ss') :'--' }}</span>
{{ ReleaseInfo.referenceInfo.communityEolDate?dayjs(ReleaseInfo.referenceInfo.communityEolDate).format('YYYY-MM-DD') :'--' }}</span>
</d-col>
<d-col :span="8">
<span class="card-key width-110">所属领域/产业</span>