本文主要是介绍fastadmin 中input 变成搜索变成selectpage,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.column 列中
{field:'admin_idss',title:"用户名",addclass:"selectpage",extend:'data-source="auth/admin/index" data-field="nickenames"'}
列入:
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,
escape: false,
pk: 'id',
sortName: 'weigh',
pagination: false,
commonSearch: false,
columns: [
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'type', title: __('Type')},
{field: 'name', title: __('Name'), align: 'left'},
{field: 'nickname', title: __('Nickname')},
{field:'admin_idss',title:"用户名",addclass:"selectpage",extend:'data-source="auth/admin/index" data-field="nickenames"'}
{field: 'flag', title: __('Flag'), operate: false, formatter: Table.api.formatter.flag}, {field: 'image', title: __('Image'), operate: false, formatter: Table.api.formatter.image}, {field: 'weigh', title: __('Weigh')},
{field: 'status', title: __('Status'), operate: false, formatter: Table.api.formatter.status}, {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
]
});
这篇关于fastadmin 中input 变成搜索变成selectpage的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!