This commit is contained in:
sjl
2025-01-22 12:09:32 +08:00
parent 400328d5fa
commit f22b4e7fb8
5 changed files with 38 additions and 15 deletions

View File

@@ -159,6 +159,19 @@ const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
prop: 'createTime',
label: '创建时间',
width: 200,
render: scope => {
if (scope.row.createTime) {
const date = new Date(scope.row.createTime);
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
const hours = String(date.getHours()).padStart(2, '0');
const minutes = String(date.getMinutes()).padStart(2, '0');
const seconds = String(date.getSeconds()).padStart(2, '0');
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
}
return '';
}
},
{
prop: 'sourceName',