dingxin 6 lat temu
rodzic
commit
106f005705

+ 1
- 1
VUECODE/smart-property-manage/src/router/index.js Wyświetl plik

@@ -278,7 +278,7 @@ export const constantRouterMap = [
278 278
         meta: { title: '工单管理', icon: 'table' }
279 279
       },
280 280
       {
281
-        path: '/ticket/details/:id',
281
+        path: '/ticket/details',
282 282
         component: () => import('@/views/ticket/details'),
283 283
         name: 'ticket-details',
284 284
         hidden: true,

+ 1
- 1
VUECODE/smart-property-manage/src/views/ticket/details.vue Wyświetl plik

@@ -257,7 +257,7 @@ export default {
257 257
     }
258 258
   },
259 259
   mounted() {
260
-      this.dataQuery(this.$route.params.id)
260
+      this.dataQuery(this.$route.query.id)
261 261
   },
262 262
   methods: {
263 263
      dataQuery() { // 查询数据

+ 1
- 1
VUECODE/smart-property-manage/src/views/ticket/index.vue Wyświetl plik

@@ -180,7 +180,7 @@ export default {
180 180
     },
181 181
     clickTitle(id) {
182 182
       console.log('111111'+id)
183
-      this.$router.push({ name: 'ticket-details', params: { id: id }})
183
+      this.$router.push({ name: 'ticket-details', query: { id: id }})
184 184
     },
185 185
     formatDate(val) {
186 186
       if (val === null) {