|
@@ -252,7 +252,7 @@ export default {
|
|
|
this.$refs.trafficMapRef.focusByLocation(position);
|
|
this.$refs.trafficMapRef.focusByLocation(position);
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
- onIntersectionRowClick({ row, index }) {
|
|
|
|
|
|
|
+ onIntersectionRowClick({ row }) {
|
|
|
console.log(`准备跳转查看关键路口详情,当前路口:`, row.id, row.intersection);
|
|
console.log(`准备跳转查看关键路口详情,当前路口:`, row.id, row.intersection);
|
|
|
|
|
|
|
|
// 使用 Vue Router 跳转,将信息通过 URL 参数 (query) 带过去
|
|
// 使用 Vue Router 跳转,将信息通过 URL 参数 (query) 带过去
|
|
@@ -262,7 +262,7 @@ export default {
|
|
|
query: {
|
|
query: {
|
|
|
tab: 'crossing', // 告诉目标页面:把 Tab 切到“路口”页
|
|
tab: 'crossing', // 告诉目标页面:把 Tab 切到“路口”页
|
|
|
action: 'open-dialog', // 告诉目标页面:直接打开弹窗
|
|
action: 'open-dialog', // 告诉目标页面:直接打开弹窗
|
|
|
- id: row.id, // 传递路口 ID
|
|
|
|
|
|
|
+ id: row.id, // 传递路口 ID(详情接口按 id 查真实路口名/数据)
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|