提交 6fa16a4d authored 作者: 王天霸's avatar 王天霸

56464646

上级 b47a4569
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
}}</span }}</span
> >
<span class="right-text" <span class="right-text"
>发布时间:{{ timeFormatters(messageDetailInfo.add_time) }}</span >发布时间:{{ formatter(messageDetailInfo.add_time) }}</span
> >
</div> </div>
<div class="Info-text" v-html="messageDetailInfo.content"></div> <div class="Info-text" v-html="messageDetailInfo.content"></div>
...@@ -109,8 +109,9 @@ export default { ...@@ -109,8 +109,9 @@ export default {
}); });
}, },
//日期转换 //日期转换
timeFormatters(cellValue) { /** 时间格式化 */
return parseTime(cellValue, "{y}-{m}-{d} {h}:{i}:{s}"); formatter(time) {
return dateFormat(time * 1000, 'Y-m-d H:i:s')
}, },
}, },
}; };
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
prop="add_time" prop="add_time"
label="发布时间" label="发布时间"
min-width="20%" min-width="20%"
:formatter="timeFormatters" :formatter="formatter"
></el-table-column> ></el-table-column>
<el-table-column label="状态" min-width="15%"> <el-table-column label="状态" min-width="15%">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -313,8 +313,8 @@ export default { ...@@ -313,8 +313,8 @@ export default {
this.getList(); this.getList();
}, },
/** 时间格式化 */ /** 时间格式化 */
timeFormatters(row, column, cellValue) { formatter(time) {
return parseTime(cellValue, "{y}-{m}-{d} {h}:{i}:{s}"); return dateFormat(time * 1000, 'Y-m-d H:i:s')
}, },
/** 关闭 对话框 */ /** 关闭 对话框 */
closeOrderDetailDialog() { closeOrderDetailDialog() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论