可编辑表格中,combobox显示 value 而不是 Text 的解决办法

提问 未结 2 4973
悬赏:20飞吻
<table data-toggle="topjui-edatagrid"   data-options="id:'caseremark',selectOnCheck:true,pagination:false">
<thead>
<tr>
<th data-options="width:'200',field:'casetype',title:'发案类型',sortable:true,editor:{type:'combobox',options:{url : '/dic/getdicdetail?typecode=10',
valueField : 'code',required:true,
textField : 'name'}}"></th>
<th data-options="width:'200',field:'money',title:'诉请金额',sortable:true,editor:{type:'textbox',options:{validType:'money',height:30}}"></th>
<th data-options="width:'200',field:'moneytype',title:'金额类型',sortable:true,editor:{type:'combobox',options:{url : '/dic/getdicdetail?typecode=9',
valueField : 'code',required:true,
textField : 'name'}}"></th>
<th data-options="width:'200',field:'casetime',title:'发案时间',sortable:true,editor:{type:'datebox',options:{required:true,height:30}}"></th>
<th data-options="width:'200',field:'caseremark',title:'发案说明',sortable:true,editor:{type:'textbox',options:{required:true,height:30}}"></th>
<th data-options="field:'operation',title:'操作',sortable:true,formatter:formatdel"></th>
</tr>
</thead>
</table>
在可编辑表格中,其中一个格子设置为combobox,在下拉的动作完成后,值的显示会变成value.但是实际上我需要展示text
而且获取值的时候我仍旧需要combobox的value
回帖
回帖须知