|
@ -236,6 +236,14 @@ function formatDate(value) { |
|
|
const seconds = date.getSeconds().toString().padStart(2, "0"); |
|
|
const seconds = date.getSeconds().toString().padStart(2, "0"); |
|
|
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; |
|
|
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; |
|
|
} |
|
|
} |
|
|
|
|
|
function formatDateTwe(value) { |
|
|
|
|
|
if (!value) return ""; |
|
|
|
|
|
const date = new Date(value); |
|
|
|
|
|
const year = date.getFullYear(); |
|
|
|
|
|
const month = (date.getMonth() + 1).toString().padStart(2, "0"); |
|
|
|
|
|
const day = date.getDate().toString().padStart(2, "0"); |
|
|
|
|
|
return `${year}-${month}-${day}`; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//表格高度 |
|
|
//表格高度 |
|
|
const tableHeight = computed(function () { |
|
|
const tableHeight = computed(function () { |
|
@ -378,25 +386,32 @@ const checkNumber = function () { |
|
|
:height="tableHeight" |
|
|
:height="tableHeight" |
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
> |
|
|
> |
|
|
<el-table-column prop="currency" label="货币名称" :span="3" /> |
|
|
|
|
|
<el-table-column prop="exchangeRate" label="汇率" :span="3"> |
|
|
|
|
|
|
|
|
<el-table-column prop="currency" label="货币名称" :span="2" /> |
|
|
|
|
|
<el-table-column prop="exchangeRate" label="汇率" :span="2"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<p>{{ scope.row.exchangeRate }} :1新币</p> |
|
|
<p>{{ scope.row.exchangeRate }} :1新币</p> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column prop="createTime" label="添加时间" :span="5"> |
|
|
|
|
|
|
|
|
<el-table-column prop="createTime" label="添加时间" :span="3"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<span>{{ formatDate(scope.row.createTime) }}</span> |
|
|
<span>{{ formatDate(scope.row.createTime) }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="updateTime" label="更新时间" :span="5"> |
|
|
|
|
|
|
|
|
<!-- <el-table-column prop="updateTime" label="更新时间" :span="3"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<span>{{ formatDate(scope.row.updateTime) }}</span> |
|
|
<span>{{ formatDate(scope.row.updateTime) }}</span> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
</el-table-column> --> |
|
|
|
|
|
<el-table-column prop="adminName" label="提交人" :span="1" /> |
|
|
|
|
|
<el-table-column prop="startTime" label="持续时间" :span="10"> |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
<span>{{ formatDateTwe(scope.row.startTime) }}</span> |
|
|
|
|
|
<span>---</span> |
|
|
|
|
|
<span>{{ formatDateTwe(scope.row.endTime) }}</span> |
|
|
|
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="adminName" label="更新人" :span="4" /> |
|
|
|
|
|
<el-table-column label="操作" :span="4"> |
|
|
|
|
|
|
|
|
<el-table-column label="操作" :span="3"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<el-button |
|
|
<el-button |
|
|
type="text" |
|
|
type="text" |
|
|