需要对数字进行处理
<el-table stripe :data="tableData.List" border style="width: 100%">
<el-table-column type="index" width="60" align='center'></el-table-column>
<el-table-column prop="CorpName" label="企业名称" align='center'> </el-table-column>
<el-table-column prop="Merchno" label="商户号" width="180" align='center'></el-table-column>
<el-table-column prop="Mediumno" width="180" label="钱包ID" align='center'></el-table-column>
<el-table-column prop="Email" label="企业邮箱" width="250" align='center'> </el-table-column>
<el-table-column prop="IsAudit" :formatter="formatterColumn" label="审核状态" width="120" align='center'></el-table-column>
<el-table-column prop="UpdatedOnUTC" width="180" label="审核时间" align='center'></el-table-column>
<el-table-column label="操作" width="70" align='center'>
<template scope="scope">
<el-button type="text" size="small" @click="handleEditFun( scope.row)" >审核</el-button>
</template>
methods: {
...mapActions([
'getCompanyData'
]),
//状态改成汉字
formatterColumn(row, column) {
switch(row.IsAudit){
case 0:
return '未通过';
break;
case 1:
return '审核通过';
break;
case 10:
return '待审核';
break;
case 9:
return '草稿';
break;
default:
return '未知';
}
},
}
版权声明:本文为weixin_38788947原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。