|
@@ -1,201 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div style="width:100%;height:100%;background-color:rgb(0, 9, 40)">
|
|
<div style="width:100%;height:100%;background-color:rgb(0, 9, 40)">
|
|
- <mapdiv></mapdiv>
|
|
|
|
- <div class="shipDiv" v-show="shipShow">
|
|
|
|
- <div class="shipTitle">
|
|
|
|
- <span style="float:left">一号船</span>
|
|
|
|
- <i class="el-icon-close" style="font-size:9rem;margin-top:2rem;float:right" @click="shipShow=false"></i>
|
|
|
|
- </div>
|
|
|
|
- <div style="padding—left:10rem" class="shipContent">
|
|
|
|
- <el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
|
- <el-tab-pane label="AIS信息" name="first">
|
|
|
|
- <el-row :gutter="3" style="margin-top:3rem">
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">MMSI:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">监测点:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="3" style="margin-top:3rem">
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">经度:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">纬度:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="3" style="margin-top:3rem">
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">对地航速:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">对地航向:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <!-- <el-row :gutter="3" style="margin-top:3rem">
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">SO<sub>2</sub>浓度:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">CO<sub>2</sub>浓度:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row> -->
|
|
|
|
- <!-- <el-row :gutter="3" style="margin-top:3rem">
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">NO<sub>2</sub>浓度:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">硫碳比:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row> -->
|
|
|
|
- <el-row :gutter="3" style="margin-top:3rem">
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">风向:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">风速:</div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
- <div class="grid-content bg-purple contentFont" style="float:left">11111</div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-button style="margin-top:5rem;margin-left:10rem;background-color:#0d25a5;color:white;font-size:7rem" icon="el-icon-location-information">历史轨迹</el-button>
|
|
|
|
- </el-tab-pane>
|
|
|
|
- <el-tab-pane label="主要监测数据" name="second">
|
|
|
|
- <el-table
|
|
|
|
- :header-cell-style="{ background: '#e4eafc'}"
|
|
|
|
- ref="singleTable"
|
|
|
|
- :data="tableData"
|
|
|
|
- highlight-current-row
|
|
|
|
- style="width: 100%"
|
|
|
|
- class="tableSc">
|
|
|
|
- <el-table-column
|
|
|
|
- type="index"
|
|
|
|
- label="序号"
|
|
|
|
- width="50">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- property="name"
|
|
|
|
- label="监测点"
|
|
|
|
- width="100">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- :label="'硫含量'"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div v-if="scope.row.value > normalPer" style="color:red">{{ scope.row.value }}% ↑ {{ ((scope.row.value - normalPer) / normalPer * 100).toFixed(0) }}%</div>
|
|
|
|
- <div v-if=" scope.row.value <= normalPer">{{ scope.row.value }}%</div>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- :label="'黑度'">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div v-if="scope.row.count > normalCount" style="color:red">{{ scope.row.count }}度 ↑ {{ ((scope.row.count - normalCount) / normalCount * 100).toFixed(0) }}%</div>
|
|
|
|
- <div v-if=" scope.row.count <= normalCount">{{ scope.row.count }}度</div>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- property="date"
|
|
|
|
- label="监测时间">
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
-
|
|
|
|
- </el-tab-pane>
|
|
|
|
-
|
|
|
|
- <el-tab-pane label="其它监测数据" name="thrid">
|
|
|
|
- <el-table
|
|
|
|
- :header-cell-style="{ background: '#e4eafc'}"
|
|
|
|
- ref="singleTable"
|
|
|
|
- :data="tableData"
|
|
|
|
- highlight-current-row
|
|
|
|
- style="width: 100%"
|
|
|
|
- class="tableSc"
|
|
|
|
- height=200>
|
|
|
|
- <el-table-column
|
|
|
|
- type="index"
|
|
|
|
- label="序号"
|
|
|
|
- width="50">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- property="name"
|
|
|
|
- label="监测点"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- :label="'SO2浓度'"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div v-if="scope.row.value > normalPer" style="color:red">{{ scope.row.value }}% ↑</div>
|
|
|
|
- <div v-if=" scope.row.value <= normalPer">{{ scope.row.value }}%</div>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- :label="'NO2浓度'"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div v-if="scope.row.value > normalPer" style="color:red">{{ scope.row.value }}% ↑</div>
|
|
|
|
- <div v-if=" scope.row.value <= normalPer">{{ scope.row.value }}%</div>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- :label="'CO2浓度'"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div v-if="scope.row.value > normalPer" style="color:red">{{ scope.row.value }}% ↑</div>
|
|
|
|
- <div v-if=" scope.row.value <= normalPer">{{ scope.row.value }}%</div>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- :label="'硫碳比'">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div v-if="scope.row.count > normalCount" style="color:red">{{ scope.row.count }}度 ↑</div>
|
|
|
|
- <div v-if=" scope.row.count <= normalCount">{{ scope.row.count }}度</div>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- property="date"
|
|
|
|
- label="监测时间">
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
-
|
|
|
|
- </el-tab-pane>
|
|
|
|
- </el-tabs>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <mapdiv ref="mapv"></mapdiv>
|
|
|
|
|
|
<div class="shipInCount">
|
|
<div class="shipInCount">
|
|
<img src="@/assets/picture/img_wgcb.png" style="margin-top:5rem;margin-left:5rem"/>
|
|
<img src="@/assets/picture/img_wgcb.png" style="margin-top:5rem;margin-left:5rem"/>
|
|
@@ -244,9 +49,9 @@
|
|
|
|
|
|
<div class="shipInformation">
|
|
<div class="shipInformation">
|
|
<img src="@/assets/picture/img_xycbxx.png" style="margin-top:5rem;margin-left:5rem"/>
|
|
<img src="@/assets/picture/img_xycbxx.png" style="margin-top:5rem;margin-left:5rem"/>
|
|
- <scroll illegalStatus=1></scroll>
|
|
|
|
|
|
+ <!-- <scroll illegalStatus=1></scroll> -->
|
|
<img src="@/assets/picture/img_wgcbxx.png" style="margin-top:5rem;margin-left:5rem"/>
|
|
<img src="@/assets/picture/img_wgcbxx.png" style="margin-top:5rem;margin-left:5rem"/>
|
|
- <scroll illegalStatus=1></scroll>
|
|
|
|
|
|
+ <!-- <scroll illegalStatus=1></scroll> -->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="equipmentContent">
|
|
<div class="equipmentContent">
|
|
@@ -388,15 +193,95 @@ export default {
|
|
shipDateArry:[
|
|
shipDateArry:[
|
|
|
|
|
|
],
|
|
],
|
|
|
|
+ heyDeviceData:[
|
|
|
|
+ {"name":"南京三桥黑烟1","locations":[[118.643133,31.969894]],"data":{'监测点':"南京三桥",'类型':'黑烟检测'}},
|
|
|
|
+ {"name":"南京三桥黑烟2","locations":[[118.642232,31.970804]],"data":{'监测点':"南京三桥",'类型':'黑烟检测'}},
|
|
|
|
+ {"name":"南京三桥黑烟3","locations":[[118.6503,31.965016]]},
|
|
|
|
+ {"name":"南京三桥黑烟4","locations":[[118.638434,31.973189]]},
|
|
|
|
+ {"name":"南京三桥黑烟5","locations":[[118.643283,31.970076]]},
|
|
|
|
+ {"name":"南京三桥黑烟6","locations":[[118.647403,31.967309]]},
|
|
|
|
+ {"name":"苏通大桥黑烟1","locations":[[121.001581,31.78503]]},
|
|
|
|
+ {"name":"苏通大桥黑烟2","locations":[[120.997083,31.76303]]},
|
|
|
|
+ {"name":"苏通大桥黑烟3","locations":[[120.998929,31.771094]]},
|
|
|
|
+ {"name":"苏通大桥黑烟4","locations":[[121.002491,31.791012]]},
|
|
|
|
+ {"name":"江阴大桥黑烟1","locations":[[120.27317,31.945522]]},
|
|
|
|
+ {"name":"江阴大桥黑烟2","locations":[[120.274763,31.942572]]},
|
|
|
|
+ {"name":"润扬大桥黑烟1","locations":[[119.366033,32.210959]]},
|
|
|
|
+ {"name":"润扬大桥黑烟2","locations":[[119.370324,32.202425]]},
|
|
|
|
+ ],
|
|
|
|
+ so2DeviceData:[
|
|
|
|
+ {"name":"南京三桥嗅探1","locations":[[118.640237,31.971992]]},
|
|
|
|
+ {"name":"南京三桥嗅探2","locations":[[118.647447,31.967359]]},
|
|
|
|
+ {"name":"南京三桥嗅探3","locations":[[118.641632,31.971064]]},
|
|
|
|
+ {"name":"苏通大桥嗅探1","locations":[[121.003306,31.792982]]},
|
|
|
|
+ {"name":"苏通大桥嗅探2","locations":[[120.999529,31.775326]]},
|
|
|
|
+ {"name":"江阴大桥嗅探1","locations":[[120.272167,31.947384]]},
|
|
|
|
+ {"name":"江阴大桥嗅探2","locations":[[120.274441,31.943087]]},
|
|
|
|
+ {"name":"润扬大桥嗅探1","locations":[[119.367277,32.209071]]},
|
|
|
|
+ {"name":"润扬大桥嗅探2","locations":[[119.369466,32.204568]]},
|
|
|
|
+ ],
|
|
|
|
+ aisDeviceData:[
|
|
|
|
+ {"name":"南京三桥光谱1","locations":[[118.642876,31.970445]]},
|
|
|
|
+ {"name":"南京三桥光谱2","locations":[[118.648949,31.966386]]},
|
|
|
|
+ {"name":"南京三桥光谱3","locations":[[118.651223,31.964747]]},
|
|
|
|
+ {"name":"苏通大桥光谱1","locations":[[121.003134,31.789772]]},
|
|
|
|
+ {"name":"苏通大桥光谱2","locations":[[120.997985,31.762921]]},
|
|
|
|
+ {"name":"江阴大桥光谱1","locations":[[120.272044,31.947069]]},
|
|
|
|
+ {"name":"江阴大桥光谱2","locations":[[120.276078,31.940587]]},
|
|
|
|
+ {"name":"润扬大桥光谱1","locations":[[119.367235,32.209107]]},
|
|
|
|
+ {"name":"润扬大桥光谱2","locations":[[119.369724,32.204459]]},
|
|
|
|
+ ],
|
|
|
|
+ ship:[
|
|
|
|
+ {"name":"一号船","locations":[[118.639711,31.96602]],'type':1},
|
|
|
|
+ {"name":"二号船","locations":[[118.649839,31.970352]],'type':2},
|
|
|
|
+ {"name":"三号船","locations":[[118.638466,31.970716]],'type':1},
|
|
|
|
+ {"name":"四号船","locations":[[118.643402,31.961505]],'type':3},
|
|
|
|
+ {"name":"五号船","locations":[[118.64941,31.973519]],'type':2},
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
}, mounted() {
|
|
}, mounted() {
|
|
this.getMonthDate();
|
|
this.getMonthDate();
|
|
//this.getStaticDevice();
|
|
//this.getStaticDevice();
|
|
this.getIllegalShipStatic();
|
|
this.getIllegalShipStatic();
|
|
|
|
+ this.addDevicePoint();
|
|
|
|
+ this.addAisPoint();
|
|
|
|
+ this.addSo2Point();
|
|
|
|
+ this.addshipPoint();
|
|
// console.log(111111111111)
|
|
// console.log(111111111111)
|
|
// this.getChart();
|
|
// this.getChart();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ addDevicePoint(){
|
|
|
|
+ for(var index in this.heyDeviceData){
|
|
|
|
+ var obj = this.heyDeviceData[index]
|
|
|
|
+ this.$refs.mapv.addpoint(obj.locations,obj.name,'hy.png','device');
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ addAisPoint(){
|
|
|
|
+ for(var index in this.aisDeviceData){
|
|
|
|
+ var obj = this.aisDeviceData[index]
|
|
|
|
+ this.$refs.mapv.addpoint(obj.locations,obj.name,'ais.png','device');
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ addSo2Point(){
|
|
|
|
+ for(var index in this.so2DeviceData){
|
|
|
|
+ var obj = this.so2DeviceData[index]
|
|
|
|
+ this.$refs.mapv.addpoint(obj.locations,obj.name,'so2.png','device');
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ addshipPoint(){
|
|
|
|
+ for(var index in this.ship){
|
|
|
|
+ var obj = this.ship[index]
|
|
|
|
+ var img = 'zc.png'
|
|
|
|
+ if(obj.type == 2){
|
|
|
|
+ img ='xy.png'
|
|
|
|
+ }else if(obj.type == 3){
|
|
|
|
+ img ='wg.png'
|
|
|
|
+ }
|
|
|
|
+ this.$refs.mapv.addpoint(obj.locations,obj.name,img,'ship');
|
|
|
|
+ }
|
|
|
|
+ },
|
|
getSo2Time(){
|
|
getSo2Time(){
|
|
getSo2Time(this.shipDate).then(data =>{
|
|
getSo2Time(this.shipDate).then(data =>{
|
|
this.getMonthArry(this.shipDate.startMonth,this.shipDate.endMonth);
|
|
this.getMonthArry(this.shipDate.startMonth,this.shipDate.endMonth);
|