Commit fdfc0bb4 authored by Administrator's avatar Administrator

地图设备信息

parent c6acef5c
Pipeline #250 failed with stages
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
width="35%" width="35%"
:modal="false" :modal="false"
top="20vh" top="20vh"
custom-class="zero-dialog" :custom-class="dialogClass"
> >
<el-table :data="gridData" :show-header="false"> <el-table :data="gridData" :show-header="false">
<el-table-column property="title" width="180px"></el-table-column> <el-table-column property="title" width="180px"></el-table-column>
...@@ -209,6 +209,7 @@ export default { ...@@ -209,6 +209,7 @@ export default {
data(){ data(){
const _this = this; const _this = this;
return { return {
dialogClass: 'zero-dialog',
leftDeviceListVisible: true, leftDeviceListVisible: true,
markersGoodsVisible: false, markersGoodsVisible: false,
markersGoods: [{ markersGoods: [{
...@@ -388,12 +389,17 @@ export default { ...@@ -388,12 +389,17 @@ export default {
}, },
// 获取设备详细信息 // 获取设备详细信息
getUserDeviceInfo(id) { getUserDeviceInfo(id) {
this.dialogClass = 'zero-dialog';
deviceinfo(id) deviceinfo(id)
.then(res => { .then(res => {
const deviceInfo = res.data; const deviceInfo = res.data;
console.log(deviceInfo);
this.center = deviceInfo.devicecoord.replace(/\s*/g, '').split(','); this.center = deviceInfo.devicecoord.replace(/\s*/g, '').split(',');
this.dialogTableVisible = true; this.dialogTableVisible = true;
this.markersDeviceVisible = true; this.markersDeviceVisible = true;
if (deviceInfo.devicepolice === 4 || deviceInfo.devicepolice === 5 || deviceInfo.devicepolice === 6) {
this.dialogClass += ' device-box-fade-alarm';
}
this.gridData = [ this.gridData = [
{ {
title: '设备编号', title: '设备编号',
...@@ -596,4 +602,34 @@ export default { ...@@ -596,4 +602,34 @@ export default {
right: 1px; right: 1px;
bottom: 1px; bottom: 1px;
} }
@keyframes fade {
from {
opacity: 1.0;
}
50% {
opacity: 1.0;
background-color: red;
}
to {
opacity: 1.0;
}
}
@-webkit-keyframes fade {
from {
opacity: 1.0;
}
50% {
opacity: 1.0;
background-color: red;
}
to {
opacity: 1.0;
}
}
.device-box-fade-alarm .el-dialog__header {
animation: fade 600ms infinite;
-webkit-animation: fade 600ms infinite;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment