xiebin
2022-10-09 43c9b669d810a3fa43b06f9ffd1b53c09bab45ec
取消默认时间查询
1 files modified
13 ■■■■ changed files
src/views/taskinfo/taskinfo.vue 13 ●●●● patch | view | raw | blame | history
src/views/taskinfo/taskinfo.vue
@@ -75,12 +75,13 @@
      };
    },
    created() {
      const date = new Date()
      const year = date.getFullYear()
      const month = date.getMonth() + 1
      const strDate = date.getDate()
      this.query.startTime = `${year}-${month}-${strDate} 00:00:00`
      this.query.endTime = `${year}-${month}-${strDate} 23:59:59`
      // 默认时间查询
      // const date = new Date()
      // const year = date.getFullYear()
      // const month = date.getMonth() + 1
      // const strDate = date.getDate()
      // this.query.startTime = `${year}-${month}-${strDate} 00:00:00`
      // this.query.endTime = `${year}-${month}-${strDate} 23:59:59`
    },
    computed: {
      ...mapGetters(["permission"]),