Compare commits
10 Commits
dev.breakd
...
master
Author | SHA1 | Date |
---|---|---|
|
1e97ff6504 | |
|
77698cef0e | |
|
512a0bd2fb | |
|
d32509d544 | |
|
9925006c56 | |
|
07165fec7c | |
|
8cd6aa7a01 | |
|
dbfd9652f9 | |
|
0a61d647fa | |
|
0932ed3cd2 |
|
@ -9,6 +9,8 @@
|
|||
<title><%= webpackConfig.name %></title>
|
||||
<!--[if lt IE 11]>
|
||||
<script>window.location.href = '/html/ie.html';</script><![endif]-->
|
||||
<script type="text/javascript"
|
||||
src="https://webapi.amap.com/maps?v=1.4.15&key=bec0cf8516dae626fd99eb46944e3843"></script>
|
||||
<style>
|
||||
html,
|
||||
body,
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
|
@ -31,6 +31,13 @@
|
|||
</el-table-column>
|
||||
<el-table-column width="150" align="center" label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-takeaway-box"
|
||||
@click="cs(scope.row)"
|
||||
>自己測試用*
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
|
@ -192,6 +199,14 @@ import {listManager , getManagerId , addManager,updateManager,delManager} from "
|
|||
};
|
||||
},
|
||||
methods: {
|
||||
cs(row){
|
||||
const carVin = row.carVin;
|
||||
alert(carVin);
|
||||
this.$router.push({
|
||||
path: `/vehicleManagement/record`,
|
||||
query: { carVin }
|
||||
});
|
||||
},
|
||||
//配置策略的前台
|
||||
findStrategy(row){
|
||||
findStrategyList(3).then(res=>{
|
||||
|
|
|
@ -69,20 +69,21 @@ export default {
|
|||
map: null,
|
||||
polyline: null,
|
||||
carMarker: null,
|
||||
carVin: this.$route.query.carVin || null ,
|
||||
carVin: this.$route.query.carVin || null,
|
||||
intervalId: null,
|
||||
data: {}, // 数据存储变量
|
||||
};
|
||||
},
|
||||
created() {
|
||||
// 创建定时器,每隔一定时间间隔调用fetchData方法
|
||||
this.intervalId = setInterval(this.fetchData, 1000); // 10000毫秒(10秒)
|
||||
this.intervalId = setInterval(this.fetchData, 10000); // 10000毫秒(10秒)
|
||||
},
|
||||
methods: {
|
||||
async fetchData() {
|
||||
try {
|
||||
const res = await getDataByRedis(this.carVin);
|
||||
this.data = res.data;
|
||||
alert(res.data.longitude);
|
||||
|
||||
// 更新车辆位置
|
||||
this.updateCarMarker();
|
||||
|
@ -128,40 +129,6 @@ export default {
|
|||
}
|
||||
},
|
||||
},
|
||||
// methods: {
|
||||
// fetchData() {
|
||||
// getDataByRedis(this.carVin).then(res=>{
|
||||
// this.data = res.data
|
||||
// })
|
||||
// },
|
||||
// initMap() {
|
||||
// this.map = new AMap.Map('map', {
|
||||
// center: [116.397428, 39.90923], // 初始化地图中心点
|
||||
// zoom: 13, // 地图缩放级别
|
||||
// });
|
||||
//
|
||||
// // 初始化轨迹线
|
||||
// this.polyline = new AMap.Polyline({
|
||||
// map: this.map,
|
||||
// path: [], // 初始路径为空
|
||||
// strokeColor: "#FF0000", // 轨迹线的颜色
|
||||
// strokeWeight: 5, // 轨迹线的宽度
|
||||
// });
|
||||
//
|
||||
// // 模拟实时数据更新
|
||||
// setInterval(this.updateTrajectory, 1100);
|
||||
// },
|
||||
// updateTrajectory() {
|
||||
// // 替换为实际的经纬度数据获取逻辑
|
||||
// const newPoint = [this.data.longitude, this.data.latitude];
|
||||
// // 更新轨迹线
|
||||
// const path = this.polyline.getPath();
|
||||
// path.push(newPoint);
|
||||
// this.polyline.setPath(path);
|
||||
// // 调整地图视野
|
||||
// this.map.setCenter(newPoint);
|
||||
// },
|
||||
// },
|
||||
mounted() {
|
||||
this.initMap();
|
||||
},
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="login">
|
||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
||||
<h3 class="title">若依后台管理系统</h3>
|
||||
<h3 class="title">智慧车辆系统</h3>
|
||||
<el-form-item prop="username">
|
||||
<el-input
|
||||
v-model="loginForm.username"
|
||||
|
@ -162,7 +162,7 @@ export default {
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
background-image: url("../assets/images/login-background.jpg");
|
||||
background-image: url("../assets/images/car.jpg");
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="register">
|
||||
<el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
|
||||
<h3 class="title">若依后台管理系统</h3>
|
||||
<h3 class="title">智慧车辆系统</h3>
|
||||
<el-form-item prop="deptId">
|
||||
<el-select v-model="registerForm.deptId" placeholder="企业" type="deptId">
|
||||
<el-option v-for="i in firm" :label="i.deptName" :value="i.deptId" :key="i.deptId"></el-option>
|
||||
|
@ -160,7 +160,7 @@ export default {
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
background-image: url("../assets/images/login-background.jpg");
|
||||
background-image: url("../assets/images/car.jpg");
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue