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