在add.html中添加
尤其要注意 data-field属性这个是最重要的,不然搜索不出来
<div class="form-group">
<label class="required control-label col-xs-12 col-sm-2">{:__('Meeting_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-meeting_id" data-rule="required" data-field="meeting_title" data-source="xhhygl/hytab/index" class="form-control selectpage" name="row[meeting_id]" type="text" value="">
</div>
</div>
在edit.html中添加
<div class="form-group">
<label class="required control-label col-xs-12 col-sm-2">{:__('Meeting_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-meeting_id" data-rule="required" data-source="xhhygl/hytab/index" class="form-control selectpage" data-field="meeting_title" name="row[meeting_id]" type="text" value="{$row.meeting_id|htmlentities}">
</div>
</div>
然后列表页要加入关联的搜索,最好用在线命令行去做!