1
0

3 Ревизии 157432849e ... 03e70bacdf

Автор SHA1 Съобщение Дата
  Rgx 03e70bacdf 半实物设备 преди 3 месеца
  Rgx a4b38bf53d Merge remote-tracking branch 'origin/radarForntend' into radarForntend преди 3 месеца
  Rgx cee7908dcd 前端页面修改 преди 3 месеца
променени са 3 файла, в които са добавени 31 реда и са изтрити 13 реда
  1. 3 3
      src/layout/Aside/index.vue
  2. 6 6
      src/layout/Footer/index.vue
  3. 22 4
      src/views/scoutManagement/radar.vue

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

@@ -43,7 +43,7 @@
       <el-submenu index="5">
         <template slot="title">
           <div style="padding-left:24%; background-color: slategrey;">
-            <span style="width: 200px; height: 80px;">侦察传感器管理</span>
+            <span style="width: 200px; height: 80px;">传感器管理</span>
           </div>
           <!-- <dv-decoration-11 style="width: 200px; height: 60px"><i
               class="el-icon-location"></i>侦察传感器管理</dv-decoration-11> -->
@@ -51,9 +51,9 @@
         <el-menu-item index="/home/scoutRadar">
           <dv-decoration-7 style="width:200px;height:30px;">雷达管理</dv-decoration-7>
         </el-menu-item>
-<!--        <el-menu-item index="/home/scoutESM">-->
+        <el-menu-item index="/home/scoutESM">
 <!--          <dv-decoration-7 style="width:200px;height:30px;">电子攻击管理</dv-decoration-7>-->
-<!--        </el-menu-item>-->
+        </el-menu-item>
         <!-- <el-menu-item index="/home/scoutImage">
           <dv-decoration-7 style="width:200px;height:30px;">成像传感器管理</dv-decoration-7>
         </el-menu-item> -->

+ 6 - 6
src/layout/Footer/index.vue

@@ -137,12 +137,12 @@ export default {
     },
      async timerRefresh() {
       try {
-        const response = await axios.get(`/api/platform/${this.platformID}/position`);
-        if (response.data) {
-          this.x = response.data.x
-          this.y = response.data.y
-          this.z = response.data.z
-        }
+        // const response = await axios.get(`/api/platform/${this.platformID}/position`);
+        // if (response.data) {
+        //   this.x = response.data.x
+        //   this.y = response.data.y
+        //   this.z = response.data.z
+        // }
       } catch (error) {
         console.error('获取雷达状态失败:', error);
      

+ 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