标签:void Matter row obj FN cell ble view 自定义
jqGrid:
ColModel 指定table中的td。
如果数据有特殊处理可借用formatter:
{name : ‘approveStatus‘,index : ‘APPROVE_STATUS‘, width:‘80px‘,formatter:‘select‘, formatter: createWfBtnFn},
然后在自定义的函数中对数据处理:
/**
* 配置流程按钮
*/
var createWfBtnFn = function(cellvalue, options, rowObject){
var content = ‘‘;
if(!cellvalue){
return content;
}
var optionArray = {1:‘待上报‘,2:‘审核中‘,3 :‘审核通过‘, 4:‘驳回‘};
content = optionArray[cellvalue] + "<a href=‘javascript:void(0)‘ class=‘icon-view m-r‘ onclick=‘javascript:auditWorkflowView(\"" + rowObject.id + "\")‘></a>";
return content;
}
标签:void Matter row obj FN cell ble view 自定义
原文地址:https://www.cnblogs.com/DennyZhao/p/9122298.html