|
@@ -5,7 +5,7 @@
|
|
|
<!-- <img src="@/assets/images/layout_cont.png" alt="地图图片"> -->
|
|
|
<Map></Map>
|
|
|
</div>
|
|
|
- <div class="map-card lb">
|
|
|
+ <div class="map-card rb">
|
|
|
<div class="title">图例</div>
|
|
|
<div class="item">重大风险</div>
|
|
|
<div class="item level-1">较大风险</div>
|
|
@@ -16,7 +16,8 @@
|
|
|
<div class="title">作业项目</div>
|
|
|
<div class="item" v-for="(item,index) in items" :key="'project-work'+index" :class="item.color?'custom':'project-'+index">
|
|
|
<span>
|
|
|
- <span class="icon" v-if="item.color" :style="{backgroundColor: item.color}" />
|
|
|
+ <!-- <span class="icon" v-if="item.color" :style="{backgroundColor: item.color}" /> -->
|
|
|
+ <img class="map-card-icon" :src="layers['layer'+(index+1)]" alt="">
|
|
|
<span>{{item.name}}</span>
|
|
|
</span>
|
|
|
<span class="number" v-if="item.number">{{item.number}}</span>
|
|
@@ -27,6 +28,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import Map from './Map.vue';
|
|
|
+import layers from './layers';
|
|
|
export default {
|
|
|
name:'Layouts',
|
|
|
components:{
|
|
@@ -34,6 +36,7 @@ export default {
|
|
|
},
|
|
|
setup() {
|
|
|
return{
|
|
|
+ layers,
|
|
|
items:[
|
|
|
{color:'#F53F3F',name:"动火作业"},
|
|
|
{color:'#F49062',name:"受限空间作业"},
|
|
@@ -71,7 +74,7 @@ export default {
|
|
|
.map{
|
|
|
// 2420.41*1868.11
|
|
|
display: block;
|
|
|
- width: 63.03vw;
|
|
|
+ width: 80vw;
|
|
|
height: 86.49vh;
|
|
|
margin: 0 auto;
|
|
|
img{
|
|
@@ -96,10 +99,10 @@ export default {
|
|
|
padding-bottom: 0.1vh;
|
|
|
font-family: Microsoft YaHei UI;
|
|
|
}
|
|
|
- &.lb{
|
|
|
+ &.rb{
|
|
|
min-width: 7.92%;
|
|
|
bottom:4.76vh;
|
|
|
- left: 2%;
|
|
|
+ right: 2%;
|
|
|
}
|
|
|
&.rt{
|
|
|
top: 1.5vh;
|
|
@@ -118,9 +121,24 @@ export default {
|
|
|
text-indent: 1.5vw;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
.number{
|
|
|
font-family: 'YouSheBiaoTiHei';
|
|
|
}
|
|
|
+ span{
|
|
|
+ display: flex;
|
|
|
+ justify-content:flex-start;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .map-card-icon{
|
|
|
+ display: inline-block;
|
|
|
+ height: 2vh;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: 0.5s;
|
|
|
+ &:hover{
|
|
|
+ transform: scale(2.4);
|
|
|
+ }
|
|
|
+ }
|
|
|
&::before{
|
|
|
display: block;
|
|
|
content: "";
|