fix: datetime format error
This commit is contained in:
@@ -232,16 +232,14 @@ export default {
|
|||||||
dataIndex: 'created',
|
dataIndex: 'created',
|
||||||
width: 185,
|
width: 185,
|
||||||
customRender: text => {
|
customRender: text => {
|
||||||
let m = moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
return text.value == 0 ? '' : moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
||||||
return m == 'Invalid date' ? '' : m
|
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
title: '更新时间',
|
title: '更新时间',
|
||||||
dataIndex: 'updated',
|
dataIndex: 'updated',
|
||||||
width: 185,
|
width: 185,
|
||||||
customRender: text => {
|
customRender: text => {
|
||||||
let m = moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
return text.value == 0 ? '' : moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
||||||
return m == 'Invalid date' ? '' : m
|
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|||||||
@@ -183,16 +183,14 @@ export default {
|
|||||||
dataIndex: 'created',
|
dataIndex: 'created',
|
||||||
width: 185,
|
width: 185,
|
||||||
customRender: text => {
|
customRender: text => {
|
||||||
let m = moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
return text == 0 ? '' : moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
||||||
return m == 'Invalid date' ? '' : m
|
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
title: '更新时间',
|
title: '更新时间',
|
||||||
dataIndex: 'updated',
|
dataIndex: 'updated',
|
||||||
width: 185,
|
width: 185,
|
||||||
customRender: text => {
|
customRender: text => {
|
||||||
let m = moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
return text.value == 0 ? '' : moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
||||||
return m == 'Invalid date' ? '' : m
|
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|||||||
@@ -155,16 +155,14 @@ export default {
|
|||||||
dataIndex: 'created',
|
dataIndex: 'created',
|
||||||
width: 185,
|
width: 185,
|
||||||
customRender: text => {
|
customRender: text => {
|
||||||
let m = moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
return text.value == 0 ? '' : moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
||||||
return m == 'Invalid date' ? '' : m
|
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
title: '更新时间',
|
title: '更新时间',
|
||||||
dataIndex: 'updated',
|
dataIndex: 'updated',
|
||||||
width: 185,
|
width: 185,
|
||||||
customRender: text => {
|
customRender: text => {
|
||||||
let m = moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
return text.value == 0 ? '' : moment(text.value * 1000).format('YYYY-MM-DD HH:mm:ss')
|
||||||
return m == 'Invalid date' ? '' : m
|
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user