columns: [
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'type', title: __('Type'), searchList: Config.searchList, formatter: Table.api.formatter.normal},
{field: 'name', title: __('Name'), align: 'left'},
{field: 'shop_id', title: __('Shop'), searchList: function(){
// 自定义 input 框
var html;
html = '<input id="c-shop_id" data-source="unidrink/shop/index" placeholder="请选择商户" data-primary-key="id" class="form-control selectpage" name="shop_id" type="text">';
return html;
},
visible:false,
searchable: true
}
]
]
table公共搜索表单,自定义字段设置
最新推荐文章于 2025-04-18 18:22:27 发布