Ver código fonte

半实物设备

Rgx 3 meses atrás
pai
commit
03e70bacdf
2 arquivos alterados com 23 adições e 5 exclusões
  1. 1 1
      src/layout/Aside/index.vue
  2. 22 4
      src/views/scoutManagement/radar.vue

+ 1 - 1
src/layout/Aside/index.vue

@@ -52,7 +52,7 @@
           <dv-decoration-7 style="width:200px;height:30px;">雷达管理</dv-decoration-7>
         </el-menu-item>
         <el-menu-item index="/home/scoutESM">
-          <dv-decoration-7 style="width:200px;height:30px;">电子攻击管理</dv-decoration-7>
+<!--          <dv-decoration-7 style="width:200px;height:30px;">电子攻击管理</dv-decoration-7>-->
         </el-menu-item>
         <!-- <el-menu-item index="/home/scoutImage">
           <dv-decoration-7 style="width:200px;height:30px;">成像传感器管理</dv-decoration-7>

+ 22 - 4
src/views/scoutManagement/radar.vue

@@ -52,11 +52,12 @@
       <el-col :span="12" style="height: 100%">
         <el-card class="radar">
           <div slot="header" class="clearfix">
-            <span>雷达状态显示</span>
-          </div>
-          <div class="echarts-box">
-            <div id="radarEchart"></div>
+            <span>半实物设备状态</span>
           </div>
+            <el-table height="100%" border size="small" :data="sdrStatus">
+              <el-table-column prop="key" align="left" label="属性" width="130"></el-table-column>
+              <el-table-column prop="value" align="right" label="值"></el-table-column>
+            </el-table>
         </el-card>
       </el-col>
       <el-col :span="5" style="height: 100%">
@@ -217,6 +218,13 @@ export default {
         SignalWidth: null,
         SideGain: null,
       },
+      sdrStatus: [
+        { key: "平台状态", value: "未知" },
+        { key: "服务状态", value: "未知" },
+        { key: "干扰策略", value: "未知" },
+        { key: "抗干扰策略", value: "未知" },
+
+      ],
       AntiJamStyles: [
         {
           value: 0,
@@ -393,6 +401,16 @@ export default {
           this.$store.commit("app/SET_RADAR_STATUS", defaultStatus);
         }
       }
+      axios.get(`http://localhost:5100/api/platform/${this.platformID}/getSdrStatusByID`)
+              .then(response => {
+                console.log(response.data)
+                console.log(this.sdrStatus)
+                this.sdrStatus[0].value = response.data.platformStatus
+                this.sdrStatus[1].value = response.data.serviceStatus
+                this.sdrStatus[2].value = response.data.jamingPolicy
+                this.sdrStatus[3].value = response.data.investingPolicy
+                console.log(this.sdrStatus)
+              })
     },
     echartsInit() {
       this.$echarts