浏览代码

跳转传值方式修改

liuzhen 5 年之前
父节点
当前提交
56aa921805

+ 2 - 2
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerService/index.vue

@@ -159,8 +159,8 @@ export default {
159 159
     };
160 160
   },
161 161
   created() {
162
-    if(this.$route.query.id){
163
-      this.activeName=this.$route.query.id
162
+    if(this.$route.params.id){
163
+      this.activeName=this.$route.params.id
164 164
     }
165 165
     this.getOrderType()
166 166
     this.getList()

+ 2 - 2
CallCenterWeb.UI/src/views/customerServiceManagement/orderTransactionList/index.vue

@@ -138,8 +138,8 @@ export default {
138 138
     };
139 139
   },
140 140
   created() {
141
-    if(this.$route.query.id){
142
-      this.activeName=this.$route.query.id
141
+    if(this.$route.params.id){
142
+      this.activeName=this.$route.params.id
143 143
     }
144 144
     this.getOrderType()
145 145
     this.getList()

+ 4 - 4
CallCenterWeb.UI/src/views/dashboard/components/leftContent.vue

@@ -40,25 +40,25 @@
40 40
         <div>订单相关</div>
41 41
         <ul class="clearfix">
42 42
           <li>
43
-            <router-link :to="{name:'orderListCustomerService',query:{id:'1'}}">待审核订单:{{tobeexamine}}</router-link>
43
+            <router-link :to="{name:'orderListCustomerService',params:{id:'1'}}">待审核订单:{{tobeexamine}}</router-link>
44 44
           </li>
45 45
           <li>
46 46
             <router-link to="/customerServiceManagement/orderListCustomerServiceJingdong">待分配物流订单:{{tobedistribution}}</router-link>
47 47
           </li>
48 48
           <li>
49
-            <router-link :to="{name:'orderTransactionList',query:{id:'2'}}">待回款订单:{{tobecollected}}</router-link>
49
+            <router-link :to="{name:'orderTransactionList',params:{id:'2'}}">待回款订单:{{tobecollected}}</router-link>
50 50
           </li>
51 51
           <li>
52 52
             <router-link to="/customerServiceManagement/afterSaleRefundList">待理赔订单:{{pendingclaims}}</router-link>
53 53
           </li>
54 54
           <li>
55
-            <router-link :to="{name:'orderList',query:{id:'2'}}">审核退回订单:{{reviewreturn}}</router-link>
55
+            <router-link :to="{name:'orderList',params:{id:'2'}}">审核退回订单:{{reviewreturn}}</router-link>
56 56
           </li>
57 57
           <li>
58 58
             <router-link to="/afterSaleManagement/afterSaleList">售后订单:{{aftersale}}</router-link>
59 59
           </li>
60 60
           <li>
61
-            <router-link :to="{name:'consolidateOrderList',query:{id:'2'}}">合并退回订单:{{toberefunded}}</router-link>
61
+            <router-link :to="{name:'consolidateOrderList',params:{id:'2'}}">合并退回订单:{{toberefunded}}</router-link>
62 62
           </li>
63 63
         </ul>
64 64
       </div>

+ 2 - 2
CallCenterWeb.UI/src/views/orderManagement/consolidateOrderList/index.vue

@@ -98,8 +98,8 @@ export default {
98 98
     };
99 99
   },
100 100
   created() {
101
-    if(this.$route.query.id){
102
-      this.activeName=this.$route.query.id
101
+    if(this.$route.params.id){
102
+      this.activeName=this.$route.params.id
103 103
     }
104 104
     this.getOrderType()
105 105
     this.getList()

+ 2 - 2
CallCenterWeb.UI/src/views/orderManagement/orderList/index.vue

@@ -153,8 +153,8 @@ export default {
153 153
     };
154 154
   },
155 155
   created() {
156
-    if(this.$route.query.id){
157
-      this.activeName=this.$route.query.id
156
+    if(this.$route.params.id){
157
+      this.activeName=this.$route.params.id
158 158
     }
159 159
     this.getOrderType()
160 160
     this.getList()