easyui grid 列格式化


<table id="list" class="easyui-datagrid"
url="loadReceivablesRecord.do" pagination="true" pagesize="20"
rownumbers="true" singleSelect="true" fit="true">
<thead>
<tr>
<th field="mr_Date" >收款日期</th>
<th field="ap_No" width="100" >评估单号</th>
<th field="ab_No">事故单号</th>
<th field="ap_CarNum" width="130" align="center">车牌号码</th>
<th field="mr_User" width="160">收款人</th>
<th field="mr_Money" width="120" align="right">金额</th>
<th field="method" width="120" formatter="formatMethod">收款方式</th>
<th field="mr_BranchName" width="120" >收款网点</th>
</tr>
</thead>
</table>


//格式
function formatMethod(value, row, index) {
if (value == 1){
return '现金';
} else {
return '银行';
}
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值