字段对应

let cashBackState = {
  'WAIT_FIVE': '满5单可返现',
  'FINISHED': '已返现'
}
 filters: {
    cashBackStateFilter: function (value) {
      return enumOptions.cashBackState[value]
    }
 },
            <el-table-column label="状态"
                               width="100"
                               align="center">
                               <template scope="scope">{{ scope.row.cashBackState | cashBackStateFilter}}</template>
              </el-table-column>
                                
posted on 2019-01-15 16:01  周小姐你好  阅读(148)  评论(0编辑  收藏  举报