修復時間篩選框問題
This commit is contained in:
@@ -17,11 +17,11 @@
|
||||
</div>
|
||||
<label for="startTime" class="col-sm-1 control-label">付费日期:</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" name="startTime" id="timeBegin" class="input-sm" placeholder="起始时间">
|
||||
<input type="text" name="startTime" id="timeBegin" class="input-sm form-control" placeholder="起始时间">
|
||||
</div>
|
||||
<label for="endTime" class="col-sm-1 control-label">-</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" name="endTime" id="timeEnd" class="input-sm" placeholder="结束时间">
|
||||
<input type="text" name="endTime" id="timeEnd" class="input-sm form-control" placeholder="结束时间">
|
||||
</div>
|
||||
<label for="partitionId" class="col-sm-1 control-label">地区:</label>
|
||||
<div class="col-sm-2">
|
||||
@@ -67,13 +67,23 @@ export default {
|
||||
init() {
|
||||
this.$nextTick(function () {
|
||||
let $this = this;
|
||||
$('#startTime').datetimepicker({
|
||||
format: 'hh:ii:00',
|
||||
var picker1 = $("#timeBegin").datetimepicker({
|
||||
format: 'yyyy-mm-dd hh:ii:00',
|
||||
todayBtn: true,
|
||||
autoclose: true,
|
||||
});
|
||||
$('#endTime').datetimepicker({
|
||||
format: 'hh:ii:00',
|
||||
autoclose: true,
|
||||
var picker2 = $("#timeEnd").datetimepicker({
|
||||
format: 'yyyy-mm-dd hh:ii:00',
|
||||
todayBtn: true,
|
||||
autoclose: true
|
||||
});
|
||||
picker1.on('changeDate', function () {
|
||||
var date = $('#timeBegin').datetimepicker('getDate');
|
||||
picker2.datetimepicker('setStartDate', date);
|
||||
});
|
||||
picker2.on('changeDate', function () {
|
||||
var date = $('#timeEnd').datetimepicker('getDate');
|
||||
picker1.datetimepicker('setEndDate', date);
|
||||
});
|
||||
$this.initTable();
|
||||
$('#btnSearch').click(function () {
|
||||
|
Reference in New Issue
Block a user