xyh 3 月之前
父節點
當前提交
1188e338d6
共有 4 個文件被更改,包括 83 次插入181 次删除
  1. 0 8
      src/store/modules/app.js
  2. 0 1
      src/views/login/index.vue
  3. 33 17
      src/views/networkManagement/index.vue
  4. 50 155
      src/views/scoutManagement/esm.vue

+ 0 - 8
src/store/modules/app.js

@@ -60,17 +60,9 @@ const getDefaultState = () => {
             { key: "丢包率", value: "0.5%" }
         ],
         VUStatus: [
-            { platID: "地面控制站", isOnline: "在线", TransBW: "43Mbps", isAccess: "直连" },
             { platID: "干扰模型-101", isOnline: "在线", TransBW: "77Mbps", isAccess: "直连" },
             { platID: "干扰模型-102", isOnline: "在线", TransBW: "68Mbps", isAccess: "直连" },
             { platID: "干扰模型-103", isOnline: "在线", TransBW: "54Mbps", isAccess: "直连" },
-            { platID: "干扰模型-104", isOnline: "在线", TransBW: "32Mbps", isAccess: "直连" },
-            { platID: "干扰模型-105", isOnline: "在线", TransBW: "43Mbps", isAccess: "直连" },
-            { platID: "干扰模型-106", isOnline: "在线", TransBW: "39Mbps", isAccess: "直连" },
-            { platID: "干扰模型-107", isOnline: "在线", TransBW: "61Mbps", isAccess: "直连" },
-            { platID: "干扰模型-108", isOnline: "在线", TransBW: "62Mbps", isAccess: "直连" },
-            { platID: "干扰模型-109", isOnline: "在线", TransBW: "55Mbps", isAccess: "直连" },
-            { platID: "干扰模型-110", isOnline: "在线", TransBW: "57Mbps", isAccess: "直连" },
         ],
         // 传感器管理
         esmParams: [

+ 0 - 1
src/views/login/index.vue

@@ -64,7 +64,6 @@ export default {
         params: {}
       })
       .then((response) => {
-        console.log('response.data :>> ', response.data);
         
         this.$store.commit("app/setPlatforms", response.data);
       })

+ 33 - 17
src/views/networkManagement/index.vue

@@ -246,7 +246,6 @@ export default {
       "platformID",
       "JParams",
       "JStatus",
-      "VUStatus",
     ]),
   },
   watch: {
@@ -261,6 +260,7 @@ export default {
   },
   data() {
     return {
+      VUStatus:[],
       currentLink: 1,
       dialogVisible: false,
       msgType: "综合情报",
@@ -365,20 +365,7 @@ export default {
 
       groupTable: [],
       nodes: [
-        { name: "地面控制站" },
-        { name: "干扰模型-101" },
-        { name: "干扰模型-102" },
-        { name: "干扰模型-103" },
-        { name: "干扰模型-104" },
-        { name: "干扰模型-105" },
-        { name: "干扰模型-106" },
-        { name: "干扰模型-107" },
-        { name: "干扰模型-108" },
-        { name: "干扰模型-109" },
-        { name: "干扰模型-110" },
-        { name: "接入终端-201" },
-        { name: "接入终端-202" },
-        { name: "接入终端-203" },
+      
       ],
       edges: [
         { source: "接入终端-201", target: "干扰模型-103" },
@@ -417,7 +404,9 @@ export default {
     this.timerDestory();
   },
   mounted() {
-    this.echartsInit();
+    setTimeout(() => 
+    this.echartsInit(), 
+    1500);
     // 页面加载设置高度自适应
     window.onresize = () => {
       this.resizeDom();
@@ -432,6 +421,7 @@ export default {
           setTimeout(this.timerRefresh, 0);
         }, 1000);
       }
+      
     },
     timerDestory() {
       if (this.timer) {
@@ -440,7 +430,7 @@ export default {
       }
     },
     timerRefresh() {
-      // this.echartsInit();
+      //this.echartsInit();
       axios.get(`http://localhost:5100/api/platform/${this.platformID}/getMsgStatus`)
         .then(response => {
           this.VUParams[1].value = response.data.startUp
@@ -464,6 +454,32 @@ export default {
           this.outbox = response.data
 
 
+        })
+        .catch(error => {
+        });
+        axios.get(`http://localhost:5100/api/platform/${this.platformID}/getTeamMemberByID`)
+        .then(response => {
+          let temp = []
+          this.nodes = []
+          this.edges = []
+          for(let i=0;i<response.data.length;i++){
+            temp.push({
+              platID: response.data[i],
+              isOnline: "在线",
+              TransBW: "77Mbps", 
+              isAccess: "直连"
+            })
+            this.nodes.push({name: response.data[i]})
+          }
+          for(let i=0;i<this.nodes.length;i++){
+            for(let j=i+1;j<this.nodes.length;j++){
+              this.edges.push({
+                source: this.nodes[i].name, target: this.nodes[j].name
+              })
+            }
+          }
+          this.VUStatus = temp
+         
         })
         .catch(error => {
         });

+ 50 - 155
src/views/scoutManagement/esm.vue

@@ -76,44 +76,21 @@
           <div slot="header" class="clearfix">
             <span>干扰列表</span>
           </div>
-          <el-table :data="esmData" style="height: 100%" v-if="scoutMode === 1" size="mini" fit border>
-            <el-table-column prop="uOrd" label="序号"> </el-table-column>
-            <el-table-column prop="fTime" label="更新时间"> </el-table-column>
-            <el-table-column prop="uTgtTrackState" label="目标侦察状态">
+          <el-table :data="esmData" style="height: 100%" size="mini" fit border>
+            <el-table-column prop="beginTime" label="开始时间"> </el-table-column>
+            <el-table-column prop="invesStatus" label="目标侦察状态">
             </el-table-column>
-            <el-table-column prop="disturb" label="所用干扰样式">
+            <el-table-column prop="jaming" label="所用干扰样式">
             </el-table-column>
-            <el-table-column prop="disturb1" label="干扰参数1">
+            <el-table-column prop="param1" label="干扰参数1">
             </el-table-column>
-            <el-table-column prop="disturb2" label="干扰参数2">
+            <el-table-column prop="param2" label="干扰参数2">
             </el-table-column>
-            <el-table-column prop="disturb3" label="干扰参数3">
+            <el-table-column prop="param3" label="干扰参数3">
             </el-table-column>
             
           </el-table>
-          <el-table :data="commScoutData" style="height: 100%" v-else-if="scoutMode === 2" size="mini" fit border>
-            <el-table-column prop="fSignalLevel" label="信号幅度电平">
-            </el-table-column>
-            <el-table-column prop="fSNR" label="信噪比,幅度比">
-            </el-table-column>
-            <el-table-column prop="fCarrierFreqMhz" label="单载频波形载频">
-            </el-table-column>
-            <el-table-column prop="fBandWidKhz" label="单载频波形信号带宽">
-            </el-table-column>
-            <el-table-column prop="uModuMode" label="单载频波形调制类型">
-            </el-table-column>
-            <el-table-column prop="uModuOrder" label="单载频波形调制阶数">
-            </el-table-column>
-            <el-table-column prop="fModuIndex" label="单载频波形调制指数">
-            </el-table-column>
-            <el-table-column prop="fFreqOffsetMhz" label="单载频波形频偏">
-            </el-table-column>
-            <el-table-column prop="fCodeLenMS" label="码长"> </el-table-column>
-            <el-table-column prop="fAzGe_Deg" label="惯性系方位角">
-            </el-table-column>
-            <el-table-column prop="fElGe_Deg" label="惯性系俯仰角">
-            </el-table-column>
-          </el-table>
+       
         </el-card>
       </el-row>
     </el-row>
@@ -122,6 +99,7 @@
 
 <script>
 import { mapGetters } from "vuex";
+import axios from "axios";
 export default {
   computed: {
     ...mapGetters([
@@ -129,9 +107,7 @@ export default {
       "init",
       "platforms",
       "esmInstances",
-      "esmParams",
       "esmStatus",
-      "esmData",
       "commScoutParams",
       "commScoutData",
       "platformID",
@@ -146,53 +122,8 @@ export default {
     init: {
       handler: function (val, oldVal) { },
     },
-    platformID: {
-      handler: function (val, oldVal) {
-        this.$wst.send({
-          url: "getESMInstances",
-          data: {
-            PlatformID: this.platformID,
-          },
-        });
-      },
-    },
-    esmParams: {
-      handler: function (val, oldVal) {
-        if (this.getValue(val, "工作状态") == "就绪") {
-          this.currentESMParam.uRrPowerOn = 0;
-        } else {
-          this.currentESMParam.uRrPowerOn = 1;
-        }
-        if (this.getValue(val, "工作模式") == "全面搜索") {
-          this.currentESMParam.uRrWorkMode = 0;
-        } else if (this.getValue(val, "工作模式") == "精测向") {
-          this.currentESMParam.uRrWorkMode = 1;
-        }
-        (this.currentESMParam.dScanAzCentDeg = this.getValue(
-          val,
-          "侦察方位中心(°)"
-        )),
-          (this.currentESMParam.dScanAzWidthDeg = this.getValue(
-            val,
-            "侦察方位范围(°)"
-          )),
-          (this.currentESMParam.dScanElCentDeg = this.getValue(
-            val,
-            "侦察俯仰中心(°)"
-          )),
-          (this.currentESMParam.uLineNumPerFrame = this.getValue(
-            val,
-            "景幅行数"
-          )),
-          (this.currentESMParam.fAntScanVel = this.getValue(
-            val,
-            "天线扫描速度(°/s)"
-          )),
-          (this.currentESMParam.fFreqMode = this.getValue(val, "侦收起始频率"));
-        this.uRrWorkModeBoolean =
-          this.currentESMParam.uRrPowerOn == 1 ? true : false;
-      },
-    },
+
+    
     commScoutParams: {
       handler: function (val, oldVal) {
         this.currentTdScoutParam.uTDWorkState = this.getValue(
@@ -237,7 +168,7 @@ export default {
         [10, 27],
         [10, 351],
       ],
-
+      esmData:[],
       frequencevalue: "",
       workvalue: "",
       scoutMode: 1,
@@ -318,31 +249,37 @@ export default {
       ],
       esmModes: [
         {
-          value: 0,
+          value: "噪声调频干扰",
           label: "噪声调频干扰",
         },
         {
-          value: 1,
+          value: "噪声调幅干扰",
           label: "噪声调幅干扰",
         },
         {
-          value: 2,
+          value: "噪声直放干扰",
           label: "噪声直放干扰",
         },
         {
-          value: 3,
+          value: "多假目标干扰",
           label: "多假目标干扰",
         },
         {
-          value: 4,
+          value: "速度拖引干扰",
           label: "速度拖引干扰",
         },
         {
-          value: 5,
+          value: "距离拖引干扰",
           label: "距离拖引干扰",
         },
       ],
-
+      esmParams: [
+            { key: "开关机状态", value: "打开" },
+            { key: "干扰样式", value: "噪声调幅干扰" },
+            { key: "干扰参数1", value: "参数1" },
+            { key: "干扰参数2", value: "参数2" },
+            { key: "干扰参数3", value: "参数3" },
+        ],
       echartoption: {
         polar: {},
         tooltip: {
@@ -391,33 +328,14 @@ export default {
     };
   },
   activated() {
-    this.$wst.send({
-      url: "getESMInstances",
-      data: {
-        PlatformID: this.platformID,
-      },
-    });
+  
     this.setTimer();
   },
   deactivated() {
     this.timerDestory();
   },
   mounted() {
-    if (this.scoutMode === 1) {
-      this.$wst.send({
-        url: "getESMParams",
-        data: {
-          PlatformID: this.platformID,
-        },
-      });
-    } else {
-      this.$wst.send({
-        url: "getCommScoutParams",
-        data: {
-          PlatformID: this.platformID,
-        },
-      });
-    }
+  
 
     // for (let i = 0; i <= 7; i++) {
     //   let theta = (i / 100) * 180 + Math.random() * 360;
@@ -443,7 +361,7 @@ export default {
       if (this.timer == null) {
         this.timer = setInterval(() => {
           setTimeout(this.timerRefresh, 0);
-        }, 1000);
+        }, 2000);
       }
     },
     timerDestory() {
@@ -454,6 +372,10 @@ export default {
     },
     timerRefresh() {
       // this.echartsRefresh();
+      axios.get(`http://localhost:5100/api/platform/${this.platformID}/getECMParamsByID`)
+        .then(response => {
+          this.esmData = response.data
+        })
      
     },
     echartsInit() {
@@ -495,51 +417,24 @@ export default {
     
     },
     handleEdit() {
-      if (this.scoutMode === 1) {
-        this.$wst.send({
-          url: "setESMParams",
-          data: {
-            PlatformID: this.platformID,
-            uRrPowerOn: this.currentESMParam.uRrPowerOn,
-            uRrWorkMode: this.currentESMParam.uRrWorkMode,
-            dScanAzCentDeg: this.currentESMParam.dScanAzCentDeg,
-            dScanAzWidthDeg: this.currentESMParam.dScanAzWidthDeg,
-            dScanElCentDeg: this.currentESMParam.dScanElCentDeg,
-            uLineNumPerFrame: this.currentESMParam.uLineNumPerFrame,
-            fAntScanVel: this.currentESMParam.fAntScanVel,
-            fFreqMode: this.currentESMParam.fFreqMode,
-          },
-        });
-        this.$wst.send({
-          url: "getESMParams",
-          data: {
-            PlatformID: this.platformID,
-          },
-        });
-      } else {
-        this.$wst.send({
-          url: "setCommScoutParams",
-          data: {
-            PlatformID: this.platformID,
-            uTDWorkState: this.currentTdScoutParam.uTDWorkState,
-            fSysMinDetectFreqMhz: this.currentTdScoutParam.fSysMinDetectFreqMhz,
-            fSysMaxDetectFreqMhz: this.currentTdScoutParam.fSysMaxDetectFreqMhz,
-            fSysInstantBandwidKhz:
-              this.currentTdScoutParam.fSysInstantBandwidKhz,
-            ulChanNum: this.currentTdScoutParam.ulChanNum,
-            fDetectGate: this.currentTdScoutParam.fDetectGate,
-            fDynamicRng: this.currentTdScoutParam.fDynamicRng,
-            fInstallAzAng: this.currentTdScoutParam.fInstallAzAng,
-            fInstallElAng: this.currentTdScoutParam.fInstallElAng,
-          },
-        });
-        this.$wst.send({
-          url: "getCommScoutParams",
-          data: {
-            PlatformID: this.platformID,
-          },
-        });
-      }
+      // 直接获取本地时间字符串(格式可能因系统区域设置变化)
+const localTime = new Date().toLocaleString(); 
+      axios.post(
+              `/api/platform/${this.platformID}/setEcmParam`,
+              {
+                beginTime: localTime,
+                invesStatus: "侦察",
+                jaming: this.currentESMParam.uRrWorkMode,
+                param1: this.currentESMParam.disturb1,
+                param2: this.currentESMParam.disturb2,
+                param3: this.currentESMParam.disturb3
+              }
+            ).then(response => {
+              this.$message.success('发送成功')
+            })
+              .catch(error => {
+                this.$message.error('发送失败:' + error.message)
+              })
     },
     getValue(params, key) {
       let value = null;