Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
6fa16a4d
提交
6fa16a4d
authored
8月 30, 2022
作者:
王天霸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
56464646
上级
b47a4569
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
9 行删除
+10
-9
msgtemplateInfo.vue
...views/system/messageCenter/components/msgtemplateInfo.vue
+5
-4
msgtemplate.vue
src/views/system/messageCenter/msgtemplate.vue
+5
-5
没有找到文件。
src/views/system/messageCenter/components/msgtemplateInfo.vue
浏览文件 @
6fa16a4d
...
...
@@ -40,7 +40,7 @@
}}
</span
>
<span
class=
"right-text"
>
发布时间:
{{
timeFormatters
(
messageDetailInfo
.
add_time
)
}}
</span
>
发布时间:
{{
formatter
(
messageDetailInfo
.
add_time
)
}}
</span
>
</div>
<div
class=
"Info-text"
v-html=
"messageDetailInfo.content"
></div>
...
...
@@ -109,9 +109,10 @@ 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'
)
},
},
};
</
script
>
...
...
src/views/system/messageCenter/msgtemplate.vue
浏览文件 @
6fa16a4d
...
...
@@ -70,7 +70,7 @@
prop=
"add_time"
label=
"发布时间"
min-width=
"20%"
:formatter=
"
timeFormatters
"
:formatter=
"
formatter
"
></el-table-column>
<el-table-column
label=
"状态"
min-width=
"15%"
>
<template
slot-scope=
"scope"
>
...
...
@@ -312,10 +312,10 @@ export default {
this
.
currentPage
=
val
;
this
.
getList
();
},
/** 时间格式化 */
timeFormatters
(
row
,
column
,
cellValu
e
)
{
return
parseTime
(
cellValue
,
"{y}-{m}-{d} {h}:{i}:{s}"
);
},
/** 时间格式化 */
formatter
(
tim
e
)
{
return
dateFormat
(
time
*
1000
,
'Y-m-d H:i:s'
)
},
/** 关闭 对话框 */
closeOrderDetailDialog
()
{
this
.
dialogMessageDetail
=
false
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论