|
|
@@ -120,7 +120,7 @@
|
|
|
<el-table-column prop="viewCount" label="阅读" width="70" />
|
|
|
<el-table-column label="发布时间" width="160">
|
|
|
<template slot-scope="{ row }">
|
|
|
- {{ row.publishedAt || '-' }}
|
|
|
+ {{ formatTime(row.publishedAt) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="200" fixed="right">
|
|
|
@@ -480,6 +480,10 @@ export default {
|
|
|
this.$message.error(e.message || '复制失败')
|
|
|
}
|
|
|
},
|
|
|
+ formatTime(t) {
|
|
|
+ if (!t) return '-'
|
|
|
+ return t.replace ? t.replace('T', ' ').substring(0, 19) : t
|
|
|
+ },
|
|
|
handleActionCmd(row, cmd) {
|
|
|
switch (cmd) {
|
|
|
case 'submitReview': this.handleSubmitReview(row); break;
|