Commit d7831549 by 张杰

v1.15.0版本需求

1 parent a87406a3
...@@ -4,16 +4,41 @@ ...@@ -4,16 +4,41 @@
<el-breadcrumb-item>激活位置</el-breadcrumb-item> <el-breadcrumb-item>激活位置</el-breadcrumb-item>
</template> </template>
<template slot="main"> <template slot="main">
<div class="device_list">
<div class="title">
<span>设备列表(3)</span>
<i class="el-icon-close i_close"></i>
</div>
<div class="list_box">
<div class="cell" v-for="(item,index) in 3" :key="index">
<div class="top">
<i class="i_circle"></i>
<span>陈庆红</span>
<span>1700151515(无线)</span>
</div>
<div class="bottom">
<span>车架号:</span>
<span>LDSKF5522555555</span>
</div>
</div>
</div>
<div class="device_footer">
<i class="i_circle"></i>
<span>在线</span>
<i class="i_circle i_red"></i>
<span>离线</span>
</div>
</div>
<div id="map" class="map-container"></div> <div id="map" class="map-container"></div>
</template> </template>
</v-full-layout> </v-full-layout>
</template> </template>
<script> <script>
import mapService from 'utils/mapService.js' import mapService from "utils/mapService.js";
import "utils/mapEvent.js"; import "utils/mapEvent.js";
import EventBus from '../../event-bus' import EventBus from "../../event-bus";
import remoteLoad from "utils/remoteLoad.js"; import remoteLoad from "utils/remoteLoad.js";
import {CONSTANT} from '../../constant' import { CONSTANT } from "../../constant";
export default { export default {
data() { data() {
return { return {
...@@ -23,7 +48,7 @@ export default { ...@@ -23,7 +48,7 @@ export default {
}; };
}, },
created() { created() {
console.log(history.state) console.log(history.state);
if (window.AMap) { if (window.AMap) {
this.initMap(); this.initMap();
} else { } else {
...@@ -53,7 +78,7 @@ export default { ...@@ -53,7 +78,7 @@ export default {
this.mapObj = mapService.init("map"); this.mapObj = mapService.init("map");
this.isInitMap = true; this.isInitMap = true;
let o = history.state; let o = history.state;
console.log(o) console.log(o);
if (o.lng || o.bsLng) { if (o.lng || o.bsLng) {
o.elat = o.lat; o.elat = o.lat;
o.elng = o.lng; o.elng = o.lng;
...@@ -94,6 +119,93 @@ export default { ...@@ -94,6 +119,93 @@ export default {
bottom: 0; bottom: 0;
overflow: hidden; overflow: hidden;
} }
.device_list {
position: absolute;
top: 16px;
left: 16px;
width: 260px;
height: 300px;
background: #fff;
border-radius: 4px;
z-index: 101;
display: flex;
flex-direction: column;
border: 1px solid #f2f2f2;
.title {
position: relative;
text-align: center;
height: 36px;
line-height: 36px;
border-bottom: 1px solid #f2f2f2;
span {
font-weight: bold;
}
.i_close {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
font-size: 16px;
cursor: pointer;
}
.i_close:hover {
color: #f00;
}
}
.list_box {
flex: 1;
padding: 10px 0;
.cell {
position: relative;
padding: 4px 10px;
line-height:2;
cursor: pointer;
.bottom{
padding-left:12px;
}
}
.cell:hover{
background:#f2f2f2;
}
.cell:after{
position:absolute;
display: block;
content:"";
height:1px;
left:0;
right:0;
bottom:0;
background: #f2f2f2;
} }
}
.device_footer {
height: 30px;
line-height: 30px;
border-top: 1px solid #f2f2f2;
padding: 0 10px;
display: flex;
align-items: center;
span {
position: relative;
font-size: 12px;
color: #333;
margin: 0 10px 0 0;
}
.i_circle {
margin: 0 4px 0 0;
}
}
}
}
}
.i_circle {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 100%;
background: #09bf99;
}
.i_red {
background: #f00;
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!