dingxin 6 年之前
父節點
當前提交
106f005705

+ 1
- 1
VUECODE/smart-property-manage/src/router/index.js 查看文件

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

+ 1
- 1
VUECODE/smart-property-manage/src/views/ticket/details.vue 查看文件

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

+ 1
- 1
VUECODE/smart-property-manage/src/views/ticket/index.vue 查看文件

180
     },
180
     },
181
     clickTitle(id) {
181
     clickTitle(id) {
182
       console.log('111111'+id)
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
     formatDate(val) {
185
     formatDate(val) {
186
       if (val === null) {
186
       if (val === null) {