소스 검색

修改路由传参

seimin 1 일 전
부모
커밋
01d8eca371
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/views/AppIndex.vue

+ 4 - 4
src/views/AppIndex.vue

@@ -39,7 +39,7 @@
39 39
             <!-- 上周/上月汇总数据 -->
40 40
             <div class="app-item">
41 41
               <h2 class="app-item__header app-item__header--big">
42
-                上周汇总数据
42
+                {{ onDutyTodaySign == 'lastWeek' ? '上周' : '上月' }}汇总数据
43 43
                 <ul class="app-item__headerData">
44 44
                   <li class="app-item__headerDataItem" :class="{ active: onDutyTodaySign == 'lastWeek' }">上周</li>
45 45
                   <li class="app-item__headerDataItem" :class="{ active: onDutyTodaySign == 'lastMonth' }">上月</li>
@@ -160,17 +160,17 @@ export default {
160 160
       dutyId = undefined
161 161
       parentDutyId = undefined
162 162
     } else if (this.$route.params.queryType === '2') {
163
-      hosId = +this.$route.params.hosId
163
+      hosId = +this.$route.query.hosId
164 164
       dutyId = undefined
165 165
       parentDutyId = undefined
166 166
     } else if (this.$route.params.queryType === '3') {
167 167
       hosId = undefined
168
-      dutyId = +this.$route.params.dutyId
168
+      dutyId = +this.$route.query.dutyId
169 169
       parentDutyId = undefined
170 170
     } else if (this.$route.params.queryType === '4') {
171 171
       hosId = undefined
172 172
       dutyId = undefined
173
-      parentDutyId = +this.$route.params.dutyId
173
+      parentDutyId = +this.$route.query.dutyId
174 174
     }
175 175
     console.log(parentDutyId, hosId, dutyId)
176 176
     return {