这是楼主写的一个过滤器 用来format时间格式 在elementui table中加入一个template {{scope.row.jobTime | formatDate}} 使用即可 之前是: 加入过滤器之后是: