{volist name='listfields' id='v'} {switch $v.type} {case t1|t2|t3} {field:'{$v.name}',title:'{$v.title}' {if ($v.listcolumn==3)},edit: 'text'{/if} ,sort:true}, {/case} {case t4|t5|t6} {field:'{$v.name}',title:'{$v.title}',sort:true, templet:function(d){ return d.{$v.name}_value; }}, {/case} {case t7} {field:'{$v.name}',title:'{$v.title}',sort:true, templet:function(d){ return d.{$v.name}_value; },filter: {type: 'date[yyyy-MM-dd HH:mm:ss]'}}, {/case} {case t12} {field:'{$v.name}',minWidth: 86,align: 'center', title:'{$v.title}', templet:function(d){ var checked,disabled; checked = d.{$v.name} == 1 ? ' checked' : ''; disabled = {$v.listcolumn} == 2 ? ' disabled' : ''; return ""; },sort:true}, {/case} {case t8} {field:'{$v.name}',width:100, align: 'center',title:'{$v.title}',templet: function(d){ if(!d.{$v.name}) d.{$v.name} = '/public/static/images/nopic.jpg'; return ''; },filter:'false'}, {/case} {default /} {/switch} {/volist}