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}">

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM