实现代码如下:
<table data-toggle="topjui-datagrid"
data-options="id: 'treeGridDg',
fitColumns:true,
filter: [{
field: 'fieldShow',
type: 'combobox',
options: {
valueField: 'label',
textField: 'value',
multiple: true,
data: [{
label: 'KC-W200SW',
value: 'KC-W200SW'
}, {
label: '白色LR-1688BY-2',
value: '白色LR-1688BY-2'
}, {
label: '银灰色BCD-339WBA 339',
value: '银灰色BCD-339WBA 339'
}]
},
op: ['contains', 'equal', 'notequal', 'less', 'greater']
}]">
<thead>
<tr>
<th data-options="field:'id',title:'ID',checkbox:true"></th>
<th data-options="field:'fieldName',title:'fieldName',sortable:true,width:100"></th>
<th data-options="field:'fieldType',title:'商品编号',sortable:true,width:50"></th>
<th data-options="field:'fieldShow',title:'fieldShow',sortable:true,width:100"></th>
</tr>
</thead>
</table>
但前台无法对该列进行编辑