Browse Source

修改IP176

a1140836302 1 year ago
parent
commit
e02bc7bcea
3 changed files with 20 additions and 21 deletions
  1. 3 3
      .env.production
  2. 0 1
      src/api/records.js
  3. 17 17
      src/views/power-change-monitoring/components/SubTitle.vue

+ 3 - 3
.env.production

@@ -2,6 +2,6 @@
 ENV = 'production'
 
 # base api
-VUE_APP_BASE_API = 'http://192.168.3.177:8080/api'
-VUE_APP_WS = 'ws://192.168.3.177:8080/ws'
-VUE_APP_VIDEO = 'ws://192.168.3.177:8082/ws'
+VUE_APP_BASE_API = 'http://192.168.3.176:8080/api'
+VUE_APP_WS = 'ws://192.168.3.176:8080/ws'
+VUE_APP_VIDEO = 'ws://192.168.3.176:8082/ws'

+ 0 - 1
src/api/records.js

@@ -74,7 +74,6 @@ export function RecordFile(Fileurl,fileName){
     if (!data) return alert('文件下载失败');
     // let fileName = '统计表计';
     if (typeof window.navigator.msSaveBlob !== 'undefined') {
-        // window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), fileName + '.xlsx');
         window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), fileName);
     } else {
         let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }));

+ 17 - 17
src/views/power-change-monitoring/components/SubTitle.vue

@@ -86,7 +86,7 @@ export default {
         })
         .catch(err => { console.error(err) })
     },
-    ///锁止屏蔽、放开
+    //锁止屏蔽、放开
     HandleIsLock(islock){
       let lockTest=''
       if(islock === 0){
@@ -175,22 +175,22 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       })
-        .then(async() => {
-          const res = await beginSwap()
-          if(res.code === 0){
-              this.$message({
-              type: 'success',
-              message: res.data,
-            })
-          }else{
-              this.$message({
-              type: 'warning',
-              message: res.msg,
-            })
-          }
-          this.loading=false
-        })
-        .catch(err => { console.error(err) })
+      .then(async() => {
+        const res = await beginSwap()
+        if(res.code === 0){
+            this.$message({
+            type: 'success',
+            message: res.data,
+          })
+        }else{
+            this.$message({
+            type: 'warning',
+            message: res.msg,
+          })
+        }
+        this.loading=false
+      })
+      .catch(err => { console.error(err) })
     },
   }
 };