如果想要显示多个字段需要在所需要查询的控制器中添加
$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}">

 

相关文章:

  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2022-01-31
  • 2021-06-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2021-08-23
  • 2021-06-20
  • 2022-12-23
  • 2021-04-23
相关资源
相似解决方案