|
|
@ -110,7 +110,8 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-footer>
|
|
|
|
</el-footer>
|
|
|
|
</el-container>
|
|
|
|
</el-container>
|
|
|
|
<el-aside style="background-color: rgba(0,0,0,0.3);overflow: auto;margin-bottom: 0;height: calc(100vh - 84px)" width="350px">
|
|
|
|
<el-aside style="background-color: rgba(0,0,0,0.3);overflow: auto;margin-bottom: 0;height: calc(100vh - 84px)"
|
|
|
|
|
|
|
|
width="350px">
|
|
|
|
<div v-for="i in 60" style="position:relative;color:#fff;height: 120px;">
|
|
|
|
<div v-for="i in 60" style="position:relative;color:#fff;height: 120px;">
|
|
|
|
<img src="../assets/icons/highTemperature.png"
|
|
|
|
<img src="../assets/icons/highTemperature.png"
|
|
|
|
style="width: 40px;height: 40px;position: absolute;top: 10px;left: 0px">
|
|
|
|
style="width: 40px;height: 40px;position: absolute;top: 10px;left: 0px">
|
|
|
@ -132,6 +133,7 @@ import * as echarts from 'echarts';
|
|
|
|
// import resize from './mixins/resize'
|
|
|
|
// import resize from './mixins/resize'
|
|
|
|
import chinaMap from './china.json'
|
|
|
|
import chinaMap from './china.json'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const animationDuration = 6000
|
|
|
|
const animationDuration = 6000
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -324,6 +326,7 @@ export default {
|
|
|
|
this.initChart()
|
|
|
|
this.initChart()
|
|
|
|
this.initCarChart()
|
|
|
|
this.initCarChart()
|
|
|
|
this.initTyreChart()
|
|
|
|
this.initTyreChart()
|
|
|
|
|
|
|
|
this.getErrInfo()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeDestroy() {
|
|
|
|
beforeDestroy() {
|
|
|
@ -404,7 +407,6 @@ export default {
|
|
|
|
label: {
|
|
|
|
label: {
|
|
|
|
normal: {
|
|
|
|
normal: {
|
|
|
|
formatter: (e) => {
|
|
|
|
formatter: (e) => {
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
return e.data.name
|
|
|
|
return e.data.name
|
|
|
|
},
|
|
|
|
},
|
|
|
|
position: 'right',
|
|
|
|
position: 'right',
|
|
|
@ -644,6 +646,19 @@ export default {
|
|
|
|
alert("您的浏览器不支持Websocket通信协议")
|
|
|
|
alert("您的浏览器不支持Websocket通信协议")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
let url = "ws://127.0.0.1:8080/websocket/message"; //请求的后端地址
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let websocket = null;//全局WebSocket对象
|
|
|
|
|
|
|
|
let lockReconnect = false; // 网络断开重连
|
|
|
|
|
|
|
|
let wsCreateHandler = null; // 创建连接
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
websocket = new WebSocket(url)
|
|
|
|
|
|
|
|
websocket.onopen = function(event) {
|
|
|
|
|
|
|
|
console.log("服务已连接")
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
websocket.onmessage = function(event){
|
|
|
|
|
|
|
|
console.log(event)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|