dedsudiyu 2 years ago
parent
commit
3c5aa20471

+ 1 - 1
src/views/comprehensive/system/publicConfig/indexOne.vue

@@ -207,7 +207,7 @@
     name: "publicConfig",
     data() {
       return {
-        uploadImgUrl: window.location.href.split('://')[0]+'://' + process.env.VUE_APP_BASE_API + "/base/upload", // 上传的图片服务器地址
+        uploadImgUrl: window.location.href.split('://')[0]+'://' + process.env.VUE_APP_BASE_API + "/file/upload", // 上传的图片服务器地址
         headers: {
           Authorization: "Bearer " + getToken(),
         },

+ 3 - 1
src/views/emergencyEvacuationBig.vue

@@ -207,7 +207,6 @@
     },
     mounted(){
       this.subscriptionMQTT();
-      this.getDeviceList();
     },
     methods:{
       //获取实验室的疏散数据
@@ -284,6 +283,7 @@
       //获取喇叭列表
       getDeviceList(){
         let obj ={
+          subId:this.subId,
           floorId:5,
           page:1,
           pageSize:100,
@@ -342,6 +342,7 @@
             this.title = data.data.subName;
             this.evacuationType = false;
             this.evacuate();
+            this.getDeviceList();
           }else{
             if(localStorage.getItem('evacuationSubId')){
               this.subId = localStorage.getItem('evacuationSubId');
@@ -354,6 +355,7 @@
             }
             this.evacuationType = true;
             this.lineEvacuateTow(this.subId,0);
+            this.getDeviceList();
           }
         });
       },

+ 3 - 1
src/views/emergencyEvacuationBigOne.vue

@@ -209,7 +209,6 @@
     },
     mounted(){
       this.subscriptionMQTT();
-      this.getDeviceList();
     },
     methods:{
       //获取实验室的疏散数据
@@ -286,6 +285,7 @@
       //获取喇叭列表
       getDeviceList(){
         let obj ={
+          subId:this.subId,
           floorId:this.buttonId,
           page:1,
           pageSize:100,
@@ -347,6 +347,7 @@
             this.address = data.data.deptName+'-'+data.data.buildName+'-'+data.data.floorName;
             this.evacuationType = false;
             this.evacuate();
+            this.getDeviceList();
           }else{
             if(localStorage.getItem('evacuationSubId')){
               console.log("1=================>")
@@ -369,6 +370,7 @@
             }
             this.evacuationType = true;
             this.lineEvacuateTow(this.subId,0);
+            this.getDeviceList();
           }
           this.lablayout();
         });

+ 1 - 1
src/views/mine/indexOne.vue

@@ -329,7 +329,7 @@
       return{
         buttonType:'1',
         uploadImgUrl: window.location.href.split('://')[0]+'://' + process.env.VUE_APP_BASE_API + "/laboratory/studentinfo/commit/face", // 上传的图片服务器地址
-        uploadImgUrlTwo: window.location.href.split('://')[0]+'://' + process.env.VUE_APP_BASE_API + "/base/upload", // 上传的图片服务器地址
+        uploadImgUrlTwo: window.location.href.split('://')[0]+'://' + process.env.VUE_APP_BASE_API + "/file/upload", // 上传的图片服务器地址
         headers: {
           Authorization: "Bearer " + getToken(),
         },