-
data-source
-
根据user/user/index搜索,根据username搜索返回的是主键
<div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Userid')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="username" class="form-control selectpage" name="row[user_id]" type="text" value=""> </div> </div>
-