Commit 7189e082 authored by jianqian's avatar jianqian

Merge remote-tracking branch 'origin/master'

parents 5b9faf70 3e954d3c
...@@ -148,6 +148,13 @@ ...@@ -148,6 +148,13 @@
import QyMapone from './qyMapone.vue'; import QyMapone from './qyMapone.vue';
import vueDrag from 'vue-dragging' import vueDrag from 'vue-dragging'
import { Component, Vue, Provide, Prop, Watch } from "vue-property-decorator"; import { Component, Vue, Provide, Prop, Watch } from "vue-property-decorator";
import 'ol/ol.css';
import Map from 'ol/Map';
import OSM from 'ol/source/OSM';
import TileLayer from 'ol/layer/Tile';
import View from 'ol/View';
import {easeIn, easeOut} from 'ol/easing';
import {fromLonLat} from 'ol/proj';
Vue.use(vueDrag) Vue.use(vueDrag)
@Component({ @Component({
components: { components: {
...@@ -797,11 +804,13 @@ ...@@ -797,11 +804,13 @@
this.Mutil.visibleMarks(false, "qiye"); this.Mutil.visibleMarks(false, "qiye");
this.qiyeVisble = false; this.qiyeVisble = false;
this.$refs.qyzc.style.background = "#24BBC7"; this.$refs.qyzc.style.background = "#24BBC7";
this.$refs.zqyzc.lastChild.style.color = "#013056"; this.$refs.zqyzc.lastChild.style.color = "#013056";
// this.$refs.qyimg.lastChild.style.display = "none";
} else { } else {
this.Mutil.visibleMarks(true, "qiye"); this.Mutil.visibleMarks(true, "qiye");
this.Mutil.setViewF({
center: [this.mapData[0].longitude,this.mapData[0].latitude]
})
this.qiyeVisble = true; this.qiyeVisble = true;
this.$refs.qyzc.style.background = "RGBA(5, 52, 82, 0.7)"; this.$refs.qyzc.style.background = "RGBA(5, 52, 82, 0.7)";
this.$refs.zqyzc.lastChild.style.color = "#fff"; this.$refs.zqyzc.lastChild.style.color = "#fff";
...@@ -833,6 +842,9 @@ ...@@ -833,6 +842,9 @@
this.$refs.wxy.style.background = "#24BBC7"; this.$refs.wxy.style.background = "#24BBC7";
this.$refs.zwxy.lastChild.style.color = "#013056"; this.$refs.zwxy.lastChild.style.color = "#013056";
} else { } else {
this.Mutil.setViewF({
center: [this.wxymapData[0].longitude,this.wxymapData[0].latitude]
})
this.Mutil.visibleMarks(true, "wxy"); this.Mutil.visibleMarks(true, "wxy");
this.wxyVisble = true; this.wxyVisble = true;
this.$refs.wxy.style.background = "RGBA(5, 52, 82, 0.7)"; this.$refs.wxy.style.background = "RGBA(5, 52, 82, 0.7)";
...@@ -846,6 +858,9 @@ ...@@ -846,6 +858,9 @@
this.$refs.jk.style.background = "#24BBC7"; this.$refs.jk.style.background = "#24BBC7";
this.$refs.zjk.lastChild.style.color = "#013056"; this.$refs.zjk.lastChild.style.color = "#013056";
} else { } else {
this.Mutil.setViewF({
center: [this.shipinmapData[0].longitude,this.shipinmapData[0].latitude]
})
this.Mutil.visibleMarks(true, "shipin"); this.Mutil.visibleMarks(true, "shipin");
this.shipinVisble = true; this.shipinVisble = true;
this.$refs.jk.style.background = "RGBA(5, 52, 82, 0.7)"; this.$refs.jk.style.background = "RGBA(5, 52, 82, 0.7)";
...@@ -859,6 +874,9 @@ ...@@ -859,6 +874,9 @@
this.$refs.yh.style.background = "#24BBC7"; this.$refs.yh.style.background = "#24BBC7";
this.$refs.zyh.lastChild.style.color = "#013056"; this.$refs.zyh.lastChild.style.color = "#013056";
} else { } else {
this.Mutil.setViewF({
center: [this.yhmapData[0].longitude,this.yhmapData[0].latitude]
})
this.Mutil.visibleMarks(true, "yh"); this.Mutil.visibleMarks(true, "yh");
this.yinhuanVisble = true; this.yinhuanVisble = true;
this.$refs.yh.style.background = "RGBA(5, 52, 82, 0.7)"; this.$refs.yh.style.background = "RGBA(5, 52, 82, 0.7)";
......
<template style=""> <template style="">
<div class="pie" style="width:480px;margin-left: 10px;margin-top: 20px;"> <div class="pie" style="width:480px;margin-left: 10px;margin-top: 10px;">
<!-- <dv-border-box-1> --> <!-- <dv-border-box-1> -->
<div class="pie-div"> <div class="pie-div">
<div style="width:100%;height: 30px;text-align: center;"> <div style="width:100%;height: 30px;text-align: center;">
...@@ -31,12 +31,12 @@ ...@@ -31,12 +31,12 @@
</div> </div>
<!-- </dv-border-box-1> --> <!-- </dv-border-box-1> -->
<dv-border-box-12> <dv-border-box-12>
<div id="pie2" style="width:450px;height: 330px;padding: 20px 0 0 0;"> <div id="pie2" style="width:450px;height: auto;padding: 20px 0 0 0;">
<!-- 为 ECharts 准备一个具备大小(宽高)的 DOM --> <!-- 为 ECharts 准备一个具备大小(宽高)的 DOM -->
<div id="main2" style="width:450px;height:310px;"></div> <div id="main2" style="width:450px;height:calc(100vh - 670px);"></div>
</div> </div>
</dv-border-box-12> </dv-border-box-12>
<div class="div-table" style="width:480px;margin-top: 20px;background-color: rgb(0, 0, 0,0);position: fixed;bottom: 0;right: 0;margin-right: 20px;"> <div class="div-table" style="width:480px;margin-top: 15px;background-color: rgb(0, 0, 0,0);position: fixed;bottom: 0;right: 0;margin-right: 20px;">
<div style="width: 100%;height: 38px;text-align: left;font-size: 16px; line-height: 38px;color: #fff;font-weight: 900;background: #013056;opacity: 0.8;"><span style="margin-left: 10px;">预警信息</span></div> <div style="width: 100%;height: 38px;text-align: left;font-size: 16px; line-height: 38px;color: #fff;font-weight: 900;background: #013056;opacity: 0.8;"><span style="margin-left: 10px;">预警信息</span></div>
<el-table :data="$data.tableData" stripe border :header-cell-style="{background:'#02285a',color:'#fff',}"> <el-table :data="$data.tableData" stripe border :header-cell-style="{background:'#02285a',color:'#fff',}">
<el-table-column prop="unitName" label="企业名称" width="110"></el-table-column> <el-table-column prop="unitName" label="企业名称" width="110"></el-table-column>
...@@ -49,9 +49,9 @@ ...@@ -49,9 +49,9 @@
<el-table-column prop="alarmTime" label="预警时间"></el-table-column> <el-table-column prop="alarmTime" label="预警时间"></el-table-column>
</el-table> </el-table>
</div> </div>
<div id="pie3" style="width:450px;height: 350px;margin-left: 20px;margin-top: 35px;"> <div id="pie3" style="width:450px;height: auto;margin-left: 20px;margin-top: 20px;">
<!-- 为 ECharts 准备一个具备大小(宽高)的 DOM --> <!-- 为 ECharts 准备一个具备大小(宽高)的 DOM -->
<div id="main3" style="width:450px;height:330px;"></div> <div id="main3" style="width:450px;height:300px;"></div>
</div> </div>
</div> </div>
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
} }
}, },
grid: { grid: {
bottom:'7%', bottom:'13%',
left: 80, left: 80,
}, },
xAxis: { xAxis: {
...@@ -438,7 +438,7 @@ export default { ...@@ -438,7 +438,7 @@ export default {
.pie #pie2 { .pie #pie2 {
/* border: 1px #000000 solid; */ /* border: 1px #000000 solid; */
margin-left: 20px; margin-left: 20px;
margin-top: 30px !important; margin-top: 20px !important;
} }
.el-main .el-tabs .el-tabs__content{ .el-main .el-tabs .el-tabs__content{
/* height: 100%; */ /* height: 100%; */
......
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