Merge pull request #185 from leemo1989/master

1、修复当数据库过大时,前端默认没有选择日期,导致的查询超时问题。增加了前端默认选择日期为当前日期
master
miraclesu 4 years ago committed by GitHub
commit 0e5a7b9acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -103,6 +103,13 @@ export default {
var vm = this; var vm = this;
$(this.$refs.latest).checkbox(); $(this.$refs.latest).checkbox();
$(this.$refs.failedOnly).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: { watch: {

Loading…
Cancel
Save