修复时间组件代码问题
This commit is contained in:
@@ -110,7 +110,7 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form class="form-horizontal" id="searchForm" action="/admin/flowDataBatchSearch/growExport"
|
<form class="form-horizontal" id="searchForm" action="/admin/flowDataBatchSearch/growExport"
|
||||||
method="get" target="_blank">
|
method="get" target="_blank">
|
||||||
<input type="hidden" id="growBatchId" name="batchId"/>
|
<input type="hidden" id="growBatchId" name="batchId" />
|
||||||
<div id="growTable"></div>
|
<div id="growTable"></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -153,26 +153,23 @@ export default {
|
|||||||
getBatch();
|
getBatch();
|
||||||
var picker1 = $("#startTime").datetimepicker({
|
var picker1 = $("#startTime").datetimepicker({
|
||||||
format: 'yyyy-mm-dd hh:ii:00',
|
format: 'yyyy-mm-dd hh:ii:00',
|
||||||
todayBtn: true,
|
|
||||||
autoclose: true,
|
autoclose: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
var picker2 = $("#endTime").datetimepicker({
|
var picker2 = $("#endTime").datetimepicker({
|
||||||
format: 'yyyy-mm-dd hh:ii:00',
|
format: 'yyyy-mm-dd hh:ii:00',
|
||||||
todayBtn: true,
|
|
||||||
autoclose: true
|
autoclose: true
|
||||||
});
|
});
|
||||||
|
|
||||||
picker1.on('changeDate', function () {
|
picker1.on('changeDate', function () {
|
||||||
var date = $('#startTime').datepicker('getDate');
|
var date = $('#startTime').datetimepicker('getDate');
|
||||||
picker2.datepicker('setStartDate', date);
|
picker2.datetimepicker('setStartDate', date);
|
||||||
});
|
});
|
||||||
|
|
||||||
picker2.on('changeDate', function () {
|
picker2.on('changeDate', function () {
|
||||||
var date = $('#endTime').datepicker('getDate');
|
var date = $('#endTime').datetimepicker('getDate');
|
||||||
picker1.datepicker('setEndDate', date);
|
picker1.datetimepicker('setEndDate', date);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#table').bootstrapTable('destroy');
|
$('#table').bootstrapTable('destroy');
|
||||||
$('#table').bootstrapTable({
|
$('#table').bootstrapTable({
|
||||||
columns: [
|
columns: [
|
||||||
|
Reference in New Issue
Block a user