代码生成优化

This commit is contained in:
RuoYi
2018-11-21 23:37:09 +08:00
parent 4fed9a1e50
commit c96b73bbda
11 changed files with 284 additions and 39 deletions

View File

@ -68,6 +68,22 @@ $(function() {
});
});
}
// laydate time-input 时间控件绑定
if ($(".time-input").length > 0) {
layui.use('laydate', function() {
var laydate = layui.laydate;
var times = $(".time-input");
for (var i = 0; i < times.length; i++) {
var time = times[i];
laydate.render({
elem: time,
theme: 'molv',
trigger: 'click',
done: function(value, date) {}
});
}
});
}
// tree 关键字搜索绑定
if ($("#keyword").length > 0) {
$("#keyword").bind("focus", function focusKey(e) {