Author:CaesarBao

Remark:修改选择时间样式
master
baogq 3 years ago
parent 639dd5ace9
commit af9bd4eb48

@ -6,9 +6,12 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:sqlserver://121.36.58.109:1433;SelectMethod=cursor;DatabaseName=SecondNanjing url: jdbc:sqlserver://127.0.0.1:1433;SelectMethod=cursor;DatabaseName=FYATJ
username: sa username: sa
password: haiwei@123 password: Mesnac123
# url: jdbc:sqlserver://127.0.0.1:1433;SelectMethod=cursor;DatabaseName=FYATJ
# username: sa
# password: Mesnac123
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭

@ -2,6 +2,7 @@
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head> <head>
<th:block th:include="include :: header('工位参数查询')" /> <th:block th:include="include :: header('工位参数查询')" />
<!-- <th:block th:include="include :: datetimepicker-css" />-->
</head> </head>
<body class="gray-bg"> <body class="gray-bg">
<div class="container-div"> <div class="container-div">
@ -12,9 +13,13 @@
<ul> <ul>
<li class="select-time" > <li class="select-time" >
<label>时间区间: </label> <label>时间区间: </label>
<input type="text" class="time-input" id="beginTime" placeholder="开始时间" name="beginTime" required="required"/> <!-- <input type="text" class="time-input" id="beginTime" placeholder="开始时间" name="beginTime" required="required"/>-->
<input type="text" style="width:160px" class="form-control" id="beginTime" placeholder="开始时间">
<span>-</span> <span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime" required="required"/> <input type="text" style="width:160px" class="form-control" id="endTime" placeholder="结束时间">
<!-- <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime" required="required"/>-->
</li> </li>
<li> <li>
<label> 工位代码:</label> <label> 工位代码:</label>
@ -42,6 +47,7 @@
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<th:block th:include="include :: bootstrap-table-export-js" /> <th:block th:include="include :: bootstrap-table-export-js" />
<!--<th:block th:include="include :: datetimepicker-js" />-->
<script th:inline="javascript"> <script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('nanjing:WorkTrayHistoryInfo:edit')}]]; var editFlag = [[${@permission.hasPermi('nanjing:WorkTrayHistoryInfo:edit')}]];
var removeFlag = [[${@permission.hasPermi('nanjing:WorkTrayHistoryInfo:remove')}]]; var removeFlag = [[${@permission.hasPermi('nanjing:WorkTrayHistoryInfo:remove')}]];
@ -178,6 +184,25 @@
}) })
}) })
} }
$(function(){
<!-- laydate示例 -->
layui.use('laydate', function(){
var laydate = layui.laydate;
laydate.render({
elem: '#beginTime',
type: 'datetime',
trigger: 'click'
});
laydate.render({
elem: '#endTime',
type: 'datetime',
trigger: 'click'
});
});
});
</script> </script>
</body> </body>

Loading…
Cancel
Save