Commit a2f2631c authored by huagnxiner's avatar huagnxiner

修改回访报表统计jps界面的时钟设置

parent 70e7c67a
...@@ -25,10 +25,12 @@ ...@@ -25,10 +25,12 @@
action="${ctx}/statistic/callBackTraceStatistic" method="get"> action="${ctx}/statistic/callBackTraceStatistic" method="get">
<div style="margin-top:10px;"> <div style="margin-top:10px;">
&nbsp;&nbsp;数据日期:&nbsp;&nbsp; &nbsp;&nbsp;数据日期:&nbsp;&nbsp;
<input type="text" name="startTime" id="startTime" style="width: 120px;" class="m-wrap small mydate span2" placeholder="起始时间"> <input type="text" name="startTime" id="startTime" value="${startTime}"
<input type="text" name="endTime" id="endTime" style="width: 120px;" class="m-wrap small mydate span2" placeholder="截止时间"> style="width: 120px;" class="m-wrap small mydate span2" placeholder="起始时间">
<input type="text" name="endTime" id="endTime" value="${endTime}"
style="width: 120px;" class="m-wrap small mydate span2" placeholder="截止时间">
&nbsp;&nbsp; &nbsp;&nbsp;
<%-- <a class="btn " onclick="btnSubmit();">提交</a>--%>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" placeholder="搜索置业顾问" name="search_LIKE_realName" value="${param['search_LIKE_realName']}"> <input type="text" placeholder="搜索置业顾问" name="search_LIKE_realName" value="${param['search_LIKE_realName']}">
<div class="inputSearch__btn" onclick="$('#filterForm').submit();" <div class="inputSearch__btn" onclick="$('#filterForm').submit();"
...@@ -153,19 +155,42 @@ ...@@ -153,19 +155,42 @@
<script type="text/javascript"> <script type="text/javascript">
<%--$(document).ready(function () {--%>
<%-- var timeStart = "${startTime}";--%>
<%-- var timeEnd = "${endTime}";--%>
<%-- if (timeEnd == '' && timeStart == '') {--%>
<%-- $(".mydate").unbind("focus");--%>
<%-- $(".mydate").bind("focus", function () {--%>
<%-- WdatePicker({dateFmt: 'yyyy-MM-dd', maxDate: '%y-%M-{%d}'});--%>
<%-- });--%>
<%-- setTime();--%>
<%-- } else {--%>
<%-- $("#startTime").val(timeStart);--%>
<%-- $("#endTime").val(timeEnd);--%>
<%-- }--%>
<%--});--%>
$(document).ready(function () { $(document).ready(function () {
var timeStart = "${startTime}"; var startTime = $("#startTime");
var timeEnd = "${endTime}"; var endTime = $("#endTime");
if (timeEnd == '' && timeStart == '') { endTime.bind("focus", function () {
$(".mydate").unbind("focus"); WdatePicker({startDate: "%y-{%M}-%d", dateFmt: "yyyy-MM-dd", autoPickDate: false, maxDate: '%y-%M-{%d-1}'});
$(".mydate").bind("focus", function () { });
WdatePicker({dateFmt: 'yyyy-MM-dd', maxDate: '%y-%M-{%d}'}); startTime.bind("focus", function () {
WdatePicker({
startDate: "%y-{%M}-%d", dateFmt: "yyyy-MM-dd", autoPickDate: false, maxDate: '%y-%M-{%d-1}',
onpicked: function () {
WdatePicker({
/* doubleCalendar: true, */
dateFmt: "yyyy-MM-dd",
autoPickDate: true,
maxDate: '%y-%M-{%d-1}',
el: 'endTime'
})
}
}); });
setTime(); });
} else { setTime();
$("#startTime").val(timeStart);
$("#endTime").val(timeEnd);
}
}); });
function btnSubmit() { function btnSubmit() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment