修改时间
This commit is contained in:
@@ -174,6 +174,8 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import TableHelper from '@/utils/bootstrap-table-helper';
|
import TableHelper from '@/utils/bootstrap-table-helper';
|
||||||
|
import { formatTime } from '@/utils/maintainer';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "BlockedAdminView",
|
name: "BlockedAdminView",
|
||||||
setup() { },
|
setup() { },
|
||||||
@@ -195,15 +197,10 @@ export default {
|
|||||||
autoclose: true,
|
autoclose: true,
|
||||||
startDate: new Date()
|
startDate: new Date()
|
||||||
})
|
})
|
||||||
$(function () {//默认时间
|
|
||||||
var todayDate = new Date();
|
|
||||||
var minute = todayDate.getMinutes() < 10 ? "0" + todayDate.getMinutes() : todayDate.getMinutes();
|
|
||||||
var month = (todayDate.getMonth() + 1) < 10 ? "0" + (todayDate.getMonth() + 1) : (todayDate.getMonth() + 1);
|
|
||||||
var todayDateStr = todayDate.getFullYear() + "-" + month + "-" + todayDate.getDate() + " " + todayDate.getHours() + ":" + minute;
|
|
||||||
$("#addStartDate").val(todayDateStr);
|
|
||||||
$("#startDate").val(todayDateStr);
|
|
||||||
})
|
|
||||||
$(function () {
|
$(function () {
|
||||||
|
var todayDate = new Date();
|
||||||
|
$("#addStartDate").val(formatTime(todayDate));
|
||||||
|
$("#startDate").val(formatTime(todayDate));
|
||||||
$('#table').bootstrapTable('destroy');
|
$('#table').bootstrapTable('destroy');
|
||||||
// 清空分页组件的容器
|
// 清空分页组件的容器
|
||||||
$('.fixed-table-pagination').empty();
|
$('.fixed-table-pagination').empty();
|
||||||
|
Reference in New Issue
Block a user