<el-table-column
prop="createdate"
:formatter="dateFormat" //這個過濾器只能使用局部過濾器
label="日期"
sortable
width="180">
</el-table-column>
如果要使用全局過濾器
<el-table-column
label="更新日期"
sortable
>
<!--需要在行內部自定義查插槽使用全局過濾器-->
<template slot-scope="scope">
<p>{{scope.row.up_date|dateFormat}}</p>
</template>
</el-table-column>