zhengjinyi 1 年之前
父節點
當前提交
3adf1741ad
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      src/views/user/record/list.vue

+ 7 - 4
src/views/user/record/list.vue

@@ -297,6 +297,13 @@ export default {
     }
   },
   created() {
+    if (this.$route.query.type === 'second') {
+      this.activeName = 'second'
+      this.tabsCurrent = this.listQuery.todayType = 1
+    } else {
+      this.activeName = 'first'
+      this.tabsCurrent = this.listQuery.todayType = 0
+    }
     this.getHeigth()
     this.handleInfo()
     this.getList()
@@ -328,15 +335,11 @@ export default {
       // 初始化
       console.log('query', this.$route.query)
       if (this.$route.query.type === 'second') {
-        this.activeName = 'second'
-        this.tabsCurrent = this.listQuery.todayType = 1
         this.listQuery.clubId = this.$route.query.clubId
         this.listQuery.corporateName = this.$route.query.corporateName
         this.time.push(this.$route.query.startTime)
         this.time.push(this.$route.query.endTime)
       } else {
-        this.activeName = 'first'
-        this.tabsCurrent = this.listQuery.todayType = 0
         this.listQuery.clubId = this.$route.query.clubId
         this.listQuery.corporateName = this.$route.query.corporateName
       }