|
@@ -1,10 +1,9 @@
|
|
<template>
|
|
<template>
|
|
<div style="height:100%;">
|
|
<div style="height:100%;">
|
|
- <el-row style="height:70%;" gutter="20">
|
|
|
|
|
|
+ <el-row style="height:65%;" gutter="20">
|
|
|
|
|
|
- <el-col :span="6">
|
|
|
|
-
|
|
|
|
- <el-row>
|
|
|
|
|
|
+ <el-col :span="6" style="height:100%">
|
|
|
|
+ <el-row style="height: 28px;">
|
|
<span class="select">
|
|
<span class="select">
|
|
<span style="width:40%;text-align: center;">当前传感器:</span>
|
|
<span style="width:40%;text-align: center;">当前传感器:</span>
|
|
<el-select style="width:60%;" v-model="currentSensor" placeholder="选择传感器" @change="instanceChange" size="mini">
|
|
<el-select style="width:60%;" v-model="currentSensor" placeholder="选择传感器" @change="instanceChange" size="mini">
|
|
@@ -15,7 +14,7 @@
|
|
</span>
|
|
</span>
|
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
- <el-row>
|
|
|
|
|
|
+ <el-row style="height: calc(100% - 28px);">
|
|
<el-card class="tableHeight">
|
|
<el-card class="tableHeight">
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
<span>工作参数</span>
|
|
<span>工作参数</span>
|
|
@@ -35,17 +34,17 @@
|
|
</el-card>
|
|
</el-card>
|
|
</el-row>
|
|
</el-row>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" style="height:50%;">
|
|
|
|
|
|
+ <el-col :span="12" style="height:100%;">
|
|
<el-card class="radar">
|
|
<el-card class="radar">
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
<span>雷侦状态显示</span>
|
|
<span>雷侦状态显示</span>
|
|
</div>
|
|
</div>
|
|
<div class="echarts-box">
|
|
<div class="echarts-box">
|
|
- <div id="radarEchart" class="mapecharts"></div>
|
|
|
|
|
|
+ <div id="radarEchart" ></div>
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
</el-card>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="6" style="height:50%;">
|
|
|
|
|
|
+ <el-col :span="6" style="height:100%;">
|
|
<el-card class="tableHeight">
|
|
<el-card class="tableHeight">
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
<span>实例状态表</span>
|
|
<span>实例状态表</span>
|
|
@@ -58,12 +57,13 @@
|
|
</el-card>
|
|
</el-card>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-row style="height:30%;">
|
|
|
|
- <el-card>
|
|
|
|
|
|
+ <el-row style="height:35%;">
|
|
|
|
+ <el-card class="target">
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
<span>雷侦目标列表</span>
|
|
<span>雷侦目标列表</span>
|
|
|
|
+ <el-button style="float: right;" round size="mini">发送到协同平台</el-button>
|
|
</div>
|
|
</div>
|
|
- <el-table :data="ESMresults" style="width: 100%;" max-height="200">
|
|
|
|
|
|
+ <el-table :data="ESMresults" class="targetTable" height="100%;">
|
|
<!-- <el-table-column prop="az" label="方位角" width="150">
|
|
<!-- <el-table-column prop="az" label="方位角" width="150">
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
<el-table-column prop="az" label="方位角(°)">
|
|
<el-table-column prop="az" label="方位角(°)">
|
|
@@ -84,9 +84,6 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</el-card>
|
|
</el-card>
|
|
- <div>
|
|
|
|
- <el-button>发送到协同平台</el-button>
|
|
|
|
- </div>
|
|
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -265,9 +262,9 @@ export default {
|
|
//通过窗体高宽计算容器高宽,渲染echart图表的div的宽高度以达到自适应目的
|
|
//通过窗体高宽计算容器高宽,渲染echart图表的div的宽高度以达到自适应目的
|
|
resizeDom() {
|
|
resizeDom() {
|
|
console.log("高度自适应")
|
|
console.log("高度自适应")
|
|
- // const boxHeight = document.getElementsByClassName("echarts-box")[0].clientHeight
|
|
|
|
- // var Echart = document.getElementById('radarEchart')
|
|
|
|
- // Echart.style.height = (boxHeight/2-65)+'px';
|
|
|
|
|
|
+ const boxHeight = document.getElementsByClassName("echarts-box")[0].clientHeight
|
|
|
|
+ var Echart = document.getElementById('radarEchart')
|
|
|
|
+ Echart.style.height = (boxHeight-65)+'px';
|
|
this.$echarts.init(document.getElementById('radarEchart')).resize()
|
|
this.$echarts.init(document.getElementById('radarEchart')).resize()
|
|
},
|
|
},
|
|
instanceChange(val) {
|
|
instanceChange(val) {
|
|
@@ -293,20 +290,15 @@ export default {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
|
|
-.mapecharts {
|
|
|
|
- height: 100%;
|
|
|
|
-}
|
|
|
|
|
|
|
|
.radar {
|
|
.radar {
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
|
|
-.radar /deep/ .el-card__body {
|
|
|
|
- height: calc(100% - 100px);
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
|
|
|
|
.select{
|
|
.select{
|
|
display: flex;
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
</style>
|
|
</style>
|