wuxiang 2 éve
szülő
commit
bcb445a853
2 módosított fájl, 8 hozzáadás és 194 törlés
  1. 8 8
      src/layout/Main/index.vue
  2. 0 186
      src/views/simulation/index.vue

+ 8 - 8
src/layout/Main/index.vue

@@ -78,16 +78,16 @@ export default {
     font-size: 12px;
   }
 
-/* /deep/ .el-card{
+/deep/ .el-card{
   background: transparent !important;
   border: none;
-  color: white;
+
   height: 100%;
 }
 /deep/ .el-table{
   background: transparent !important;
   border: none;
-  color: white;
+
 }
 
 /deep/  .el-table, .el-table__expanded-cell {
@@ -104,7 +104,7 @@ export default {
 }
 /deep/ .el-table th {
     background-color: transparent!important;
-    color: white;
+
 }
 /deep/ .el-table--enable-row-transition .el-table__body td, .el-table .cell{
    background-color: transparent;
@@ -142,7 +142,7 @@ height: 100%;
 
 /deep/ .el-card__header {
   background-color: #1981f6;
-  color: white;
+
   height: 28px;
   padding: 0px 20px;
 }
@@ -157,11 +157,11 @@ height: 100%;
 /deep/.el-input__inner {
   background-color: transparent !important;
   border: 1px solid #1296db;
-  color: #ffffff;
+
 }
 
 /deep/.el-form-item__label{
-  color: white !important;
-} */
+
+}
 </style>
 

+ 0 - 186
src/views/simulation/index.vue

@@ -25,7 +25,6 @@ import screenfull from "screenfull";
 import fireController from "@/api/fireController.js";
 import { getToken } from "@/utils";
 import axios from "axios";
-import Model from "@/views/situation/Model.vue";
 import satelliteModel from '@/assets/model/satelite.glb';
 import { mapGetters } from "vuex";
 export default {
@@ -164,191 +163,6 @@ export default {
     },
     changeItemPosition(data) {
 
-    },
-    async getJson(row) {
-      let redunit = [];
-      let blueunit = [];
-      let satellite = [];
-      let center = [];
-      // let fileInfoStr = row.blueunit;
-      // let fileInfoArr = JSON.parse(fileInfoStr);
-      // for (let i = 0; i < fileInfoArr.length; i++) {
-      //   await axios
-      //     .get("http://localhost:8084/admin/online/onlineOperation/downloadDatasource/main", {
-      //       params: {
-      //         datasourceId: "1656243335922192384",
-      //         fieldName: "blueunit",
-      //         asImage: false,
-      //         dataId: row.id,
-      //         filename: fileInfoArr[i].filename,
-      //         Authorization: getToken(),
-      //         MenuId: "1656244747347431424"
-      //       }
-      //     })
-      //     .then((response) => {
-      //       // 处理成功的响应
-      //       blueunit.push(response.data);
-      //     })
-      //     .catch((error) => {
-      //       // 处理错误
-      //       console.error(error);
-      //     });
-      // }
-      // fileInfoStr = row.redunit;
-      // fileInfoArr = JSON.parse(fileInfoStr);
-
-      // for (let i = 0; i < fileInfoArr.length; i++) {
-      //   await axios
-      //     .get("http://localhost:8084/admin/online/onlineOperation/downloadDatasource/main", {
-      //       params: {
-      //         datasourceId: "1656243335922192384",
-      //         fieldName: "redunit",
-      //         asImage: false,
-      //         dataId: row.id,
-      //         filename: fileInfoArr[i].filename,
-      //         Authorization: getToken(),
-      //         MenuId: "1656244747347431424"
-      //       }
-      //     })
-      //     .then((response) => {
-      //       // 处理成功的响应
-      //       redunit.push(response.data);
-      //     })
-      //     .catch((error) => {
-      //       // 处理错误
-      //       console.error(error);
-      //     });
-      // }
-      // fileInfoStr = row.center;
-      // fileInfoArr = JSON.parse(fileInfoStr);
-
-      // for (let i = 0; i < fileInfoArr.length; i++) {
-      //   await axios
-      //     .get("http://localhost:8084/admin/online/onlineOperation/downloadDatasource/main", {
-      //       params: {
-      //         datasourceId: "1656243335922192384",
-      //         fieldName: "center",
-      //         asImage: false,
-      //         dataId: row.id,
-      //         filename: fileInfoArr[i].filename,
-      //         Authorization: getToken(),
-      //         MenuId: "1656244747347431424"
-      //       }
-      //     })
-      //     .then((response) => {
-      //       // 处理成功的响应
-      //       center.push(response.data);
-      //     })
-      //     .catch((error) => {
-      //       // 处理错误
-      //       console.error(error);
-      //     });
-      // }
-      // fileInfoStr = row.satellite;
-      // fileInfoArr = JSON.parse(fileInfoStr);
-
-      // for (let i = 0; i < fileInfoArr.length; i++) {
-      //   await axios
-      //     .get("http://localhost:8084/admin/online/onlineOperation/downloadDatasource/main", {
-      //       params: {
-      //         datasourceId: "1656243335922192384",
-      //         fieldName: "satellite",
-      //         asImage: false,
-      //         dataId: row.id,
-      //         filename: fileInfoArr[i].filename,
-      //         Authorization: getToken(),
-      //         MenuId: "1656244747347431424"
-      //       }
-      //     })
-      //     .then((response) => {
-      //       // 处理成功的响应
-      //       satellite.push(response.data);
-      //     })
-      //     .catch((error) => {
-      //       // 处理错误
-      //       console.error(error);
-      //     });
-      // }
-      // const jsonData = {}
-      //   id: row.id,
-      //   xdname: row.xdname,
-      //   type: row.type,
-      //   creator: row.creator,
-      //   createtime: row.createtime,
-      //   bluecnt: row.bluecnt,
-      //   target: row.target,
-      //   starttime: row.starttime,
-      //   steptime: row.steptime,
-      //   blueunit: blueunit,
-      //   redunit: redunit,
-      //   satellite: satellite,
-      //   center: center
-      // };
-     let fileInfoStr = row.xdfile;
-     let fileInfoArr = JSON.parse(fileInfoStr);
-      await axios
-          .get("http://localhost:8084/admin/online/onlineOperation/downloadDatasource/main", {
-            params: {
-              datasourceId: "1656243335922192384",
-              fieldName: "xdfile",
-              asImage: false,
-              dataId: row.id,
-              filename: fileInfoArr[0].filename,
-              Authorization: getToken(),
-              MenuId: "1656244747347431424"
-            }
-          })
-          .then((response) => {
-            console.log('response.data :>> ', response.data);
-            // // 处理成功的响应
-            // jsonData = response.data
-            blueunit = response.data.blueunit
-            redunit = response.data.redunit
-            satellite = response.data.satellite
-            center = response.data.center
-            this.save = true
-                this.jsonData = {
-        id: row.id,
-        xdname: row.xdname,
-        type: row.type,
-        creator: row.creator,
-        createtime: row.createtime,
-        bluecnt: row.bluecnt,
-        target: row.target,
-        starttime: row.starttime,
-        steptime: row.steptime,
-        blueunit: blueunit,
-        redunit: redunit,
-        satellite: satellite,
-        center: center
-      }
-          })
-          .catch((error) => {
-            // 处理错误
-            console.error(error);
-          });
-      
-      for(let i =0;i<blueunit.length;i++){
-        this.markLocationbyJson(parseFloat(blueunit[i].pos.lat),parseFloat(blueunit[i].pos.lon),blueunit[i].name,"blue")
-      }
-      for(let i = 0;i<center.length;i++){
-        let item = center[i]
-        this.markLocationbyJson(parseFloat(item[center[i].name].properties.lat),parseFloat(item[center[i].name].properties.lon),item.name,"center")
-      }
-      for(let i = 0;i<redunit.length;i++){
-        this.markLocationbyJson(parseFloat(redunit[i].component_movementjson.properties.launch_lat),parseFloat(redunit[i].component_movementjson.properties.launch_lon),redunit[i].name,"red")
-        let point1 = {
-          longitude : parseFloat(redunit[i].component_movementjson.properties.launch_lon),
-          latitude : parseFloat(redunit[i].component_movementjson.properties.launch_lat),
-          height :parseFloat(redunit[i].component_movementjson.properties.launch_h)
-        }
-        let point2 = {
-          longitude : parseFloat(redunit[i].component_movementjson.properties.target_lon),
-          latitude : parseFloat(redunit[i].component_movementjson.properties.target_lat),
-          height : parseFloat(redunit[i].component_movementjson.properties.target_h)
-        }
-        this.markLine(point1,point2,"red")
-      }
     },
     //获取所有数据
     getData() {