|
@@ -44,7 +44,7 @@
|
|
<el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">风速:</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-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-button @click="dialogVisibleShip = true" style="margin-top:5rem;margin-left:10rem;background-color:#0d25a5;color:white;font-size:7rem" icon="el-icon-location-information">历史轨迹</el-button>
|
|
|
|
|
|
+ <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>
|
|
<el-tab-pane label="监测数据" name="second">
|
|
<el-tab-pane label="监测数据" name="second">
|
|
<el-table
|
|
<el-table
|
|
@@ -135,7 +135,7 @@
|
|
|
|
|
|
<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"/>
|
|
- <div style="margin-top:5rem">
|
|
|
|
|
|
+ <div style="margin-top:5rem" @click="dialogVisibleShip = true">
|
|
<div style="float:left">
|
|
<div style="float:left">
|
|
<div class="lcbBackground">
|
|
<div class="lcbBackground">
|
|
<div style="margin-top:12rem">
|
|
<div style="margin-top:12rem">
|
|
@@ -163,7 +163,7 @@
|
|
<i class="el-icon-pie-chart" style="font-size:9rem;float:left;margin-left:5rem"/>
|
|
<i class="el-icon-pie-chart" style="font-size:9rem;float:left;margin-left:5rem"/>
|
|
<span style="font-size:6rem;float:left;margin-left:5rem">总数</span>
|
|
<span style="font-size:6rem;float:left;margin-left:5rem">总数</span>
|
|
</div>
|
|
</div>
|
|
- <div style="float:right;font-size:9rem;margin-top:1rem">111个</div>
|
|
|
|
|
|
+ <div style="float:right;font-size:9rem;margin-top:1rem">{{deviceTotal}}个</div>
|
|
</div>
|
|
</div>
|
|
<div style="padding-left:5rem;padding-top:1rem">
|
|
<div style="padding-left:5rem;padding-top:1rem">
|
|
<div style="color:white" @click="dialogVisible = true">
|
|
<div style="color:white" @click="dialogVisible = true">
|
|
@@ -180,9 +180,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></scroll> -->
|
|
|
|
|
|
+ <scroll></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></scroll> -->
|
|
|
|
|
|
+ <scroll></scroll>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="equipmentContent">
|
|
<div class="equipmentContent">
|
|
@@ -270,6 +270,7 @@
|
|
dialogVisibleShip:false,
|
|
dialogVisibleShip:false,
|
|
beginTime:'',
|
|
beginTime:'',
|
|
endTime:'',
|
|
endTime:'',
|
|
|
|
+ deviceTotal:0,
|
|
queryParams: {
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
@@ -351,9 +352,12 @@
|
|
},
|
|
},
|
|
getStaticDevice(){
|
|
getStaticDevice(){
|
|
getStaticDevice().then(response => {
|
|
getStaticDevice().then(response => {
|
|
|
|
+ console.log(response);
|
|
let nameArry = [];
|
|
let nameArry = [];
|
|
let dataArry = [];
|
|
let dataArry = [];
|
|
- for (var key in response.data) {
|
|
|
|
|
|
+ this.deviceTotal = 0;
|
|
|
|
+ for (var key in response.data) {
|
|
|
|
+ this.deviceTotal += response.data[key]
|
|
nameArry.push(key);
|
|
nameArry.push(key);
|
|
dataArry.push(response.data[key]);
|
|
dataArry.push(response.data[key]);
|
|
}
|
|
}
|
|
@@ -371,7 +375,7 @@
|
|
var option = {
|
|
var option = {
|
|
xAxis: {
|
|
xAxis: {
|
|
type: 'category',
|
|
type: 'category',
|
|
- data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
|
|
|
|
|
+ data: ['2021-01', '2021-02', '2021-03', '2021-04', '2021-05', '2021-06', '2021-07'],
|
|
axisLabel:{
|
|
axisLabel:{
|
|
show:true, //这里的show用于设置是否显示x轴下的字体 默认为true
|
|
show:true, //这里的show用于设置是否显示x轴下的字体 默认为true
|
|
interval:0, //可以设置成 0 强制显示所有标签。如果设置为 1,表示『隔一个标签显示一个标签』,如果值为 2,表示隔两个标签显示一个标签,以此类推。
|
|
interval:0, //可以设置成 0 强制显示所有标签。如果设置为 1,表示『隔一个标签显示一个标签』,如果值为 2,表示隔两个标签显示一个标签,以此类推。
|
|
@@ -670,9 +674,9 @@
|
|
background: url("./assets/bg_information.png") no-repeat;
|
|
background: url("./assets/bg_information.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
width:120rem;
|
|
width:120rem;
|
|
- height:150rem;
|
|
|
|
|
|
+ height:160rem;
|
|
position: absolute;
|
|
position: absolute;
|
|
- top:230rem;
|
|
|
|
|
|
+ top:225rem;
|
|
right:30rem;
|
|
right:30rem;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -680,9 +684,9 @@
|
|
background: url("./assets/bg_count.png") no-repeat;
|
|
background: url("./assets/bg_count.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
width:120rem;
|
|
width:120rem;
|
|
- height:150rem;
|
|
|
|
|
|
+ height:160rem;
|
|
position: absolute;
|
|
position: absolute;
|
|
- top:70rem;
|
|
|
|
|
|
+ top:55rem;
|
|
right:30rem;
|
|
right:30rem;
|
|
}
|
|
}
|
|
|
|
|