<div style="width: 50%;">
<div style="display: flex;margin-bottom: 25px;">
<div style="color: #FF0000;">*</div>
<div style="">开始时间</div>
</div>
<div style="width: 225px;height: 35px;border: solid 1px #DCDCDC;">
<div class='input-group date'>
<input readonly="readonly" name="startTime" class="Wdate form-control" id="startTime" type="text"
onclick="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:00',minDate:'%y-%M-%d %H:{%m+1}:00',maxDate:'#F{$dp.$D(\'endTime\')}'})"
value=""/>
<span class="input-group-addon">
<img th:src="@{/adminlte/dist/img/icon/calendar.svg}" style="width: 20px;height: 20px;">
</span>
</div>
</div>
</div>
<div style="width: 50%;">
<div style="display: flex;margin-bottom: 25px;">
<div style="color: #FF0000;">*</div>
<div style="">结束时间</div>
</div> <!-- -->
<div style="width: 225px;height: 35px;border: solid 1px #DCDCDC;">
<div class='input-group date'>
<input readonly="readonly" name="endTime" id="endTime" class="Wdate form-control" type="text"
onclick="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:00',minDate:'#F{$dp.$D(\'startTime\')||$dp.$DV(%y-%M-%d %H:{%m+1}:00)}'})"
value=""/>
<span class="input-group-addon">
<img th:src="@{/adminlte/dist/img/icon/calendar.svg}" style="width: 20px;height: 20px;">
</span>
</div>
</div>
</div>
这是原代码统一窗口弹出
只要把这个input改成
<input readonly="readonly" name="endTime" id="endTime" class="Wdate form-control" type="text" οnclick="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:00',minDate:'#F{$dp.$D(\'startTime\')||$dp.$DV(%y-%M-%d %H:{%m+1}:00)}'})" value=""/>
这样就不会了,真TM神奇
<input readonly="readonly" name="endTime" id="endTime" class="Wdate form-control" type="text" οnclick="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:00',minDate:'#F{$dp.$D(\'startTime\')}'})" value=""/>