This commit is contained in:
parent
20575e5ef5
commit
0948ec6013
|
|
@ -106,10 +106,14 @@
|
||||||
<el-table-column prop="orderNo" label="订单号" width="170" show-overflow-tooltip />
|
<el-table-column prop="orderNo" label="订单号" width="170" show-overflow-tooltip />
|
||||||
<el-table-column prop="submitTime" label="提交时间" width="170" align="center">
|
<el-table-column prop="submitTime" label="提交时间" width="170" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
{{ row.submitTime || '-' }}
|
{{ formatDateTime(row.submitTime) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="创建时间" width="170" align="center">
|
||||||
|
<template #default="{ row }">
|
||||||
|
{{ formatDateTime(row.createTime) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="createTime" label="创建时间" width="170" align="center" />
|
|
||||||
<el-table-column label="操作" width="380" fixed="right" align="center">
|
<el-table-column label="操作" width="380" fixed="right" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="primary" link size="small" @click="handleViewDetail(row)">
|
<el-button type="primary" link size="small" @click="handleViewDetail(row)">
|
||||||
|
|
@ -219,10 +223,10 @@
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="订单号" :span="2">{{ state.detail.orderNo || '-' }}</el-descriptions-item>
|
<el-descriptions-item label="订单号" :span="2">{{ state.detail.orderNo || '-' }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="开始时间">{{ state.detail.startTime || '-' }}</el-descriptions-item>
|
<el-descriptions-item label="开始时间">{{ formatDateTime(state.detail.startTime) }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="提交时间">{{ state.detail.submitTime || '-' }}</el-descriptions-item>
|
<el-descriptions-item label="提交时间">{{ formatDateTime(state.detail.submitTime) }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="完成时间">{{ state.detail.completeTime || '-' }}</el-descriptions-item>
|
<el-descriptions-item label="完成时间">{{ formatDateTime(state.detail.completeTime) }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="创建时间">{{ state.detail.createTime }}</el-descriptions-item>
|
<el-descriptions-item label="创建时间">{{ formatDateTime(state.detail.createTime) }}</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -482,6 +486,16 @@ const editConclusionDialogVisible = computed({
|
||||||
|
|
||||||
// ============ Helper Functions ============
|
// ============ Helper Functions ============
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 格式化时间戳:去掉T,秒数不带小数点
|
||||||
|
* 例:2026-03-31T07:50:35.7396316 → 2026-03-31 07:50:35
|
||||||
|
*/
|
||||||
|
function formatDateTime(val: string | null | undefined): string {
|
||||||
|
if (!val) return '-'
|
||||||
|
// 取到秒(前19位),将T替换为两个空格
|
||||||
|
return val.substring(0, 19).replace('T', ' ')
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取状态标签类型
|
* 获取状态标签类型
|
||||||
* 待支付=info, 待测评=info, 测评中=primary, 生成中=warning, 已完成=success
|
* 待支付=info, 待测评=info, 测评中=primary, 生成中=warning, 已完成=success
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user