fillter根据value来匹配字段

Posted antyhouse

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了fillter根据value来匹配字段相关的知识,希望对你有一定的参考价值。

字段对应

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>
                                

以上是关于fillter根据value来匹配字段的主要内容,如果未能解决你的问题,请参考以下文章