diff --git a/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue b/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue
index 9f38359..9265338 100644
--- a/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue
+++ b/ruoyi-ui/src/views/realTimeMonitoring/carMonitoring/index.vue
@@ -5,9 +5,6 @@
车辆信息
车队名称:{{ cardInfo.name }}
- 出厂编号:{{ cardInfo.No }}
- 车型号:{{ cardInfo.type }}
- 线路:{{ cardInfo.line }}
实时位置
@@ -134,9 +131,6 @@ const tableChange = async (e) => {
const cardInfo = ref({
name: '名称',
- No: '123',
- type: '2',
- line: '3',
carLicense:''
})
diff --git a/ruoyi-ui/src/views/realTimeMonitoring/vehicleMonitoring/index.vue b/ruoyi-ui/src/views/realTimeMonitoring/vehicleMonitoring/index.vue
index 8acd46e..c72367e 100644
--- a/ruoyi-ui/src/views/realTimeMonitoring/vehicleMonitoring/index.vue
+++ b/ruoyi-ui/src/views/realTimeMonitoring/vehicleMonitoring/index.vue
@@ -41,8 +41,14 @@ const setMarker = async (data, zoom) => {
label: {
direction: 'top',
content: `${e.carLicense || ''} - 在线' : 'red">离线'}
监控 ${e.three || ''}
${parseTime(e.laseRuntime) || ''}
`, //设置文本标注内容
+ },
+ extData:{
+ id:'123'
}
});
+ markers.value[index].on('click',(e)=>{
+ console.log(e.target._opts.extData)
+ })
})
map.add(markers.value)
map.setFitView()
diff --git a/ruoyi-ui/vite.config.js b/ruoyi-ui/vite.config.js
index 31d5c39..d3a8730 100644
--- a/ruoyi-ui/vite.config.js
+++ b/ruoyi-ui/vite.config.js
@@ -31,8 +31,8 @@ export default defineConfig(({mode, command}) => {
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
'/dev-api': {
- target: 'http://10.11.41.249:8080',
- // target: 'http://localhost:8080',
+ // target: 'http://10.11.41.249:8080',
+ target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
}