//xxx.vue
</
el-table-column>
<
el-table-column
prop=
"username"
label=
"所属商务"
width=
"80">
</
el-table-column>
<
el-table-column
prop=
""
label=
"最后跟进时间">
<
span
:class="scope.row.tip
?
'redfont'
:
''"//设置样式
slot-scope=
"scope">
{{scope.row.visittime
| timeFormat}} //数据过滤
</
span>
</
el-table-column>
//main.js 全局注册所有过滤器
import
*
as filters
from
'@/common/filters/filters'
Object.
keys(filters).
forEach(
key
=>{
Vue.
filter(key,filters[key]);
})