Browse Source

本地修改杂项上传

Koishi 3 years ago
parent
commit
05a11b60f0

+ 2 - 1
public/static/config/modeConfig.js

@@ -15,7 +15,7 @@ const tilesMaxLevel = 18;
 // 适配器地址
 const adapterUrl = "http://10.155.32.4:8011/";
 
-// 切换模块时是否提示当前模块名称(用于对内介项目时便捷显示模块名称)
+// 切换模块时是否提示当前模块名称(用于对内介项目时便捷显示模块名称)
 const showModuleName = 1;
 
 if (localTest) {
@@ -26,6 +26,7 @@ if (localTest) {
     tilesUrl = "http://localhost:8080/static/cesium/Assets/Textures/NaturalEarthII";
 } else {
     baseURL = "http://10.155.32.4:8082/" // 正式环境
+    // baseURL = "http://192.168.1.103:8082/" // 正式环境
 
     tilesUrl = "http://10.155.32.4:8070/zhfx/new_tiles";
 }

+ 32 - 29
src/views/MalfunctionWarning/components/detectionRecord.vue

@@ -107,18 +107,20 @@ export default {
     this.getfaultLables();
   },
   methods: {
-      opened(){
-          this.getData();
-      },
+    opened() {
+      this.getData();
+    },
     getData() {
       let that = this;
       this.API.requestData({
         method: "GET",
         subUrl: "http://192.168.1.18:9002/case/fault/list",
         data: {
-        //   station: this.selectValue,
-        //   model: this.selectMoudle,
-          st: new Date(new Date().getTime()- 86400000).formatDate("yyyy-MM-dd hh:mm:ss") ,
+          //   station: this.selectValue,
+          //   model: this.selectMoudle,
+          st: new Date(new Date().getTime() - 86400000).formatDate(
+            "yyyy-MM-dd hh:mm:ss"
+          ),
           et: new Date().formatDate("yyyy-MM-dd hh:mm:ss"),
         },
         success(res) {
@@ -140,36 +142,37 @@ export default {
         },
       });
     },
+
     selectChange(data) {
-        let params = [];
-        data.faulttype = this.faultLists.filter(
-              (item) => item.faultcode === data.faultcode
-            )[0]?.faulttype,
-        params.push(data)
-        axios({
-          method: "post",
-          url: "http://192.168.10.19:9002/case/fault/insert",
-          data: params,
-          header: {
-            "Content-Type": "application/json",
-          },
-        }).then((res) => {
-          if (res.data.code !== 200) {
-            this.BASE.showMsg({
-              type: "error",
-              msg: "标签修改失败",
-            });
-          }
-        });
+      let params = [];
+      (data.faulttype = this.faultLists.filter(
+        (item) => item.faultcode === data.faultcode
+      )[0]?.faulttype),
+        params.push(data);
+      axios({
+        method: "post",
+        url: "http://192.168.10.19:9002/case/fault/insert",
+        data: params,
+        header: {
+          "Content-Type": "application/json",
+        },
+      }).then((res) => {
+        if (res.data.code !== 200) {
+          this.BASE.showMsg({
+            type: "error",
+            msg: "标签修改失败",
+          });
+        }
+      });
     },
-    getReports(){
-      this.reportDisplay = true
+    getReports() {
+      this.reportDisplay = true;
     },
   },
 };
 </script>
 <style lang="less" scoped>
-.btn{
+.btn {
   width: 106px !important;
 }
 </style>

File diff suppressed because it is too large
+ 55 - 60
src/views/WindSite/components/Windmill.vue


+ 14 - 98
src/views/WindSite/pages/Tower/WindTower.vue

@@ -100,13 +100,7 @@
       >
         {{ cftMap.FCCFTFS80 || 0 }}m/s
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="196"
-        y="47"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="196" y="47">
         80米风速
       </text>
       <text
@@ -118,13 +112,7 @@
       >
         {{ cftMap.FCCFTFX80 || 0 }}度
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="438"
-        y="47"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="438" y="47">
         80米风向
       </text>
     </g>
@@ -139,13 +127,7 @@
       >
         {{ cftMap.FCCFTFS70 || 0 }}m/s
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="196"
-        y="127"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="196" y="127">
         70米风速
       </text>
       <text
@@ -157,13 +139,7 @@
       >
         {{ cftMap.FCCFTFX70 || 0 }}度
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="438"
-        y="127"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="438" y="127">
         70米风向
       </text>
     </g>
@@ -178,13 +154,7 @@
       >
         {{ cftMap.FCCFTFS60 || 0 }}m/s
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="196"
-        y="207"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="196" y="207">
         60米风速
       </text>
       <text
@@ -196,13 +166,7 @@
       >
         {{ cftMap.FCCFTFX60 || 0 }}度
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="438"
-        y="207"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="438" y="207">
         60米向
       </text>
     </g>
@@ -217,13 +181,7 @@
       >
         {{ cftMap.FCCFTFS50 || 0 }}m/s
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="196"
-        y="287"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="196" y="287">
         50米风速
       </text>
       <text
@@ -235,13 +193,7 @@
       >
         {{ cftMap.FCCFTFX50 || 0 }}度
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="438"
-        y="287"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="438" y="287">
         50米风向
       </text>
     </g>
@@ -256,13 +208,7 @@
       >
         {{ cftMap.FCCFTFS40 || 0 }}m/s
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="196"
-        y="367"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="196" y="367">
         40米风速
       </text>
       <text
@@ -274,13 +220,7 @@
       >
         {{ cftMap.FCCFTFX40 || 0 }}度
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="438"
-        y="367"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="438" y="367">
         40米风向
       </text>
     </g>
@@ -295,13 +235,7 @@
       >
         {{ cftMap.FCCFTFS30 || 0 }}m/s
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="196"
-        y="447"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="196" y="447">
         30米风速
       </text>
       <text
@@ -313,13 +247,7 @@
       >
         {{ cftMap.FCCFTFX30 || 0 }}度
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="438"
-        y="447"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="438" y="447">
         30米风向
       </text>
     </g>
@@ -334,13 +262,7 @@
       >
         {{ cftMap.FCCFTFS10 || 0 }}m/s
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="196"
-        y="527"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="196" y="527">
         10米风速
       </text>
       <text
@@ -352,13 +274,7 @@
       >
         {{ cftMap.FCCFTFX10 || 0 }}度
       </text>
-      <text
-        fill="#fff"
-        font-size="14"
-        stroke-width="0"
-        x="438"
-        y="527"
-      >
+      <text fill="#fff" font-size="14" stroke-width="0" x="438" y="527">
         10米风向
       </text>
     </g>