Pārlūkot izejas kodu

路由刷新问题

weiximei 6 gadus atpakaļ
vecāks
revīzija
9dc73c7d0a

+ 3
- 3
VUECODE/smart-property-manage/src/router/index.js Parādīt failu

@@ -221,7 +221,7 @@ export const constantRouterMap = [
221 221
         meta: { title: '收费组管理', icon: 'table' }
222 222
       },
223 223
       {
224
-        path: '/bill/management/info/:id',
224
+        path: '/bill/management/info',
225 225
         component: () => import('@/views/bill/info/index'),
226 226
         name: 'bill-info',
227 227
         hidden: true,
@@ -235,14 +235,14 @@ export const constantRouterMap = [
235 235
         meta: { title: '新增收费组', icon: 'table' }
236 236
       },
237 237
       {
238
-        path: '/bill/management/edi/:id',
238
+        path: '/bill/management/edi',
239 239
         component: () => import('@/views/bill/edi/index'),
240 240
         name: 'bill-edi',
241 241
         hidden: true,
242 242
         meta: { title: '修改收费组', icon: 'table' }
243 243
       },
244 244
       {
245
-        path: '/bill/management/info/bill-edi/:id',
245
+        path: '/bill/management/info/bill-edi',
246 246
         component: () => import('@/views/bill/info/bill-edi/index'),
247 247
         name: 'bill-info-edi',
248 248
         hidden: true,

+ 1
- 1
VUECODE/smart-property-manage/src/views/bill/edi/index.vue Parādīt failu

@@ -130,7 +130,7 @@ export default {
130 130
     }
131 131
   },
132 132
   created() {
133
-    this.listQuery.billId = this.$route.params.id
133
+    this.listQuery.billId = this.$route.query.id
134 134
     this.billInvoiceGetInvoiceInvalid()
135 135
     // this.getMenuList()
136 136
   },

+ 2
- 2
VUECODE/smart-property-manage/src/views/bill/index.vue Parādīt failu

@@ -162,9 +162,9 @@ export default {
162 162
     },
163 163
     getInfo(billId, billStatus) {
164 164
       if (billStatus === '2') {
165
-        this.$router.push({ name: 'bill-edi', params: { id: billId }})
165
+        this.$router.push({ name: 'bill-edi', query: { id: billId }})
166 166
       } else {
167
-        this.$router.push({ name: 'bill-info', params: { id: billId }})
167
+        this.$router.push({ name: 'bill-info', query: { id: billId }})
168 168
       }
169 169
     },
170 170
     addBill() {

+ 1
- 1
VUECODE/smart-property-manage/src/views/bill/info/add/index.vue Parādīt failu

@@ -116,7 +116,7 @@ export default {
116 116
   mounted() {
117 117
     // 获取期
118 118
     this.getPhase()
119
-    this.formInline.billId = this.$route.params.id
119
+    this.formInline.billId = this.$route.query.id
120 120
     // 查询数据
121 121
     this.getTempBillInvoice()
122 122
   },

+ 1
- 1
VUECODE/smart-property-manage/src/views/bill/info/bill-edi/index.vue Parādīt failu

@@ -45,7 +45,7 @@ export default {
45 45
     }
46 46
   },
47 47
   mounted() {
48
-    this.ruleForm.id = this.$route.params.id
48
+    this.ruleForm.id = this.$route.query.id
49 49
     this.getBillByIdInfo()
50 50
   },
51 51
   methods: {

+ 3
- 3
VUECODE/smart-property-manage/src/views/bill/info/index.vue Parādīt failu

@@ -206,7 +206,7 @@ export default {
206 206
   mounted() {
207 207
     // 获取期
208 208
     this.getPhase()
209
-    this.formInline.billId = this.$route.params.id
209
+    this.formInline.billId = this.$route.query.id
210 210
     this.getBillInvoice()
211 211
   },
212 212
   methods: {
@@ -345,7 +345,7 @@ export default {
345 345
       this.getBillInvoice()
346 346
     },
347 347
     updateBill() { // 跳转修改bill标题页面 bill-info-edi
348
-      this.$router.push({ name: 'bill-info-edi', params: { id: this.formInline.billId }})
348
+      this.$router.push({ name: 'bill-info-edi', query: { id: this.formInline.billId }})
349 349
     },
350 350
     deleteBeachIds() { // 批量删除
351 351
       if (this.deleteIds.length <= 0) {
@@ -448,7 +448,7 @@ export default {
448 448
       //   console.log('GetBillByIdInfo error')
449 449
       // })
450 450
 
451
-      this.$router.push({ name: 'bill-info-add', params: { id: this.formInline.billId }})
451
+      this.$router.push({ name: 'bill-info-add', query: { id: this.formInline.billId }})
452 452
     },
453 453
     showPayPrice(payPrice) { //  转换金额
454 454
       const price = payPrice / 100