fastadmin SelectPage field显示多个字段

如果想要显示多个字段需要在所需要查询的控制器中添加
$selectpageFields = 'id,name';

html中

<input id="c-user_id" data-rule="required" 
data-source="user/index"
class="form-control selectpage"
name="row[user_id]" type="text" data-live-search="true"
data-field="phone" //搜索字段
data-params='{"custom[phone]":["notin","[null]"]}' //搜索条件
data-format-item=
"{phone} - {nickName}"  //显示的内容 data-primary-key="user_id"      //选择的主键 value="{$row.user_id|htmlentities}">
原文地址:https://www.cnblogs.com/zhangzhijian/p/14680935.html