diff --git a/spug_web/src/pages/deploy/request/Table.js b/spug_web/src/pages/deploy/request/Table.js
index 2e58b71..dfc8b54 100644
--- a/spug_web/src/pages/deploy/request/Table.js
+++ b/spug_web/src/pages/deploy/request/Table.js
@@ -11,6 +11,7 @@ import { http, hasPermission } from 'libs';
import { Action, AuthButton, TableCard } from 'components';
import S from './index.module.less';
import store from './store';
+import moment from 'moment';
function DeployConfirm() {
return (
@@ -72,7 +73,7 @@ function ComTable() {
className: S.min120,
dataIndex: 'created_at',
sorter: (a, b) => a['created_at'].localeCompare(b['created_at']),
- render: v => {v ? v.substring(0, 10) : null},
+ render: v => {v ? moment(v).fromNow() : null},
hide: true
}, {
title: '审核人',
@@ -83,7 +84,7 @@ function ComTable() {
title: '审核时间',
className: S.min120,
dataIndex: 'approve_at',
- render: v => {v ? v.substring(0, 10) : null},
+ render: v => {v ? moment(v).fromNow() : null},
}, {
title: '发布人',
className: S.min120,
@@ -93,7 +94,7 @@ function ComTable() {
title: '发布时间',
className: S.min120,
dataIndex: 'do_at',
- render: v => {v ? v.substring(0, 10) : null},
+ render: v => {v ? moment(v).fromNow() : null},
hide: true
}, {
title: '备注',