Merge remote-tracking branch 'origin/master'

master
chaiyapeng 2024-10-11 14:58:28 +08:00
commit 07165fec7c
3 changed files with 19 additions and 36 deletions

View File

@ -9,6 +9,8 @@
<title><%= webpackConfig.name %></title> <title><%= webpackConfig.name %></title>
<!--[if lt IE 11]> <!--[if lt IE 11]>
<script>window.location.href = '/html/ie.html';</script><![endif]--> <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> <style>
html, html,
body, body,

View File

@ -31,6 +31,13 @@
</el-table-column> </el-table-column>
<el-table-column width="150" align="center" label="操作"> <el-table-column width="150" align="center" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-takeaway-box"
@click="cs(scope.row)"
>自己測試用*
</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -192,6 +199,14 @@ import {listManager , getManagerId , addManager,updateManager,delManager} from "
}; };
}, },
methods: { methods: {
cs(row){
const carVin = row.carVin;
alert(carVin);
this.$router.push({
path: `/vehicleManagement/record`,
query: { carVin }
});
},
// //
findStrategy(row){ findStrategy(row){
findStrategyList(3).then(res=>{ findStrategyList(3).then(res=>{

View File

@ -76,7 +76,7 @@ export default {
}, },
created() { created() {
// fetchData // fetchData
this.intervalId = setInterval(this.fetchData, 1000); // 1000010 this.intervalId = setInterval(this.fetchData, 10000); // 1000010
}, },
methods: { methods: {
async fetchData() { async fetchData() {
@ -128,40 +128,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() { mounted() {
this.initMap(); this.initMap();
}, },