...
|
...
|
@@ -33,7 +33,7 @@ |
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Xi_id')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-xi_id" data-rule="required" data-source="user/index" data-field="nickname" class="form-control selectpage" name="row[xi_id]" type="text" value="">
|
|
|
<input id="c-xi_id" data-rule="required" data-source="user/index" data-field="nickname" class="form-control selectpage" name="row[xi_id]" type="text" value="" onfocus="set_next_input(this);">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
...
|
...
|
@@ -65,7 +65,7 @@ |
|
|
<div class="form-group">
|
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Zhao_id')}:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input id="c-zhao_id" data-rule="required" data-source="user/index" data-field="nickname" class="form-control selectpage" name="row[zhao_id]" type="text" value="">
|
|
|
<input id="c-zhao_id" data-rule="required" data-source="user/index" data-field="nickname" class="form-control selectpage" name="row[zhao_id]" type="text" value="" onfocus="set_next_input2(this);">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
...
|
...
|
@@ -132,3 +132,20 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
|
|
|
<script>
|
|
|
|
|
|
function set_next_input(obj) {
|
|
|
//改变下面这个框的数据源
|
|
|
console.log('洗车');
|
|
|
$("#c-xi_id_text").data("selectPageObject").option.data = 'user/index?pid=1';
|
|
|
}
|
|
|
|
|
|
|
|
|
function set_next_input2(obj) {
|
|
|
//改变下面这个框的数据源
|
|
|
console.log('找车');
|
|
|
$("#c-zhao_id_text").data("selectPageObject").option.data = 'user/index?pid=2';
|
|
|
|
|
|
}
|
|
|
</script> |
...
|
...
|
|