mirror of https://gitee.com/y_project/RuoYi.git
Pre Merge pull request !446 from 刘继东/N/A
commit
67d48bf831
|
@ -50,6 +50,9 @@
|
||||||
<li>
|
<li>
|
||||||
用户名称:<input type="text" name="userName"/>
|
用户名称:<input type="text" name="userName"/>
|
||||||
</li>
|
</li>
|
||||||
|
新增测试条件:<input type="text" name="userName2"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
<li>
|
<li>
|
||||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search('form2', 'bootstrap-table2')"><i class="fa fa-search"></i> 搜索</a>
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search('form2', 'bootstrap-table2')"><i class="fa fa-search"></i> 搜索</a>
|
||||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset('form2', 'bootstrap-table2')"><i class="fa fa-refresh"></i> 重置</a>
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset('form2', 'bootstrap-table2')"><i class="fa fa-refresh"></i> 重置</a>
|
||||||
|
@ -137,11 +140,17 @@
|
||||||
actions.push('<a class="btn btn-danger btn-xs" href="###" onclick="$.operate.remove(\'' + row.userId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
actions.push('<a class="btn btn-danger btn-xs" href="###" onclick="$.operate.remove(\'' + row.userId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
}
|
}
|
||||||
}]
|
}],
|
||||||
|
onClickRow: function(row,$element){
|
||||||
|
subList(row.userName);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
$.table.init(options);
|
$.table.init(options);
|
||||||
});
|
});
|
||||||
|
function subList(value){
|
||||||
|
$("#form2 input").val(value);
|
||||||
|
$.table.search('form2', 'bootstrap-table2')
|
||||||
|
}
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
var options = {
|
var options = {
|
||||||
|
|
Loading…
Reference in New Issue