1、修复当数据库过大时,前端默认没有选择日期,导致的查询超时问题。增加了前端默认选择日期为当前日期

pull/185/head
wanglei2 4 years ago
parent c0f926ace3
commit 5aa000948d

@ -103,6 +103,13 @@ export default {
var vm = this;
$(this.$refs.latest).checkbox();
$(this.$refs.failedOnly).checkbox();
// io
const time = new Date();
const day = ("0" + time.getDate()).slice(-2);
const month = ("0" + (time.getMonth() + 1)).slice(-2);
const today = time.getFullYear() + "-" + (month) + "-" + (day);
this.begin = this.end = today;
},
watch: {

Loading…
Cancel
Save