xsh 3 年之前
父節點
當前提交
296902b4f4

文件差異過大導致無法顯示
+ 91 - 13236
package-lock.json


+ 1 - 1
src/App.vue

@@ -26,7 +26,7 @@ export default {
     },
     methods: {
         init() {
-            this.$http.post('http://122.112.252.100:8088/publicNetwork/add')
+            this.$http.post('http://192.168.1.165:8088/publicNetwork/add')
                     .then(res => {
                         console.log(res);
                     })

+ 1 - 1
src/utils/http.js

@@ -4,7 +4,7 @@ import Qs from 'qs';
 // 请求超时时间
 axios.defaults.timeout = 1000000;
 
-axios.defaults.baseURL = 'http://122.112.252.100:8085';
+axios.defaults.baseURL = 'http://119.3.84.55:8085';
 
 // post 请求头
 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';

+ 9 - 9
src/views/biology/biology.vue

@@ -549,11 +549,11 @@ export default {
     },
 	  methods: {
         init() {
-            this.$axios.get('http://122.112.252.100:8081/face/findDb?timeHorizon=oneDay')
+            this.$axios.get('http://119.3.84.55:8081/face/findDb?timeHorizon=oneDay')
             .then(res => {
                 let timeArr = [];
                 let valueArr = [];
-                    res.data.object.forEach(item => {
+                    res.data.data.forEach(item => {
                         timeArr.push(item.key);
                         valueArr.push(item.value);
                     });
@@ -569,13 +569,13 @@ export default {
                     myChartLeft1.setOption(this.options_stztzfb);
 
             });
-            this.$http.get('http://122.112.252.100:8081/face/findDb?timeHorizon=oneWeek')
+            this.$http.get('http://119.3.84.55:8081/face/findDb?timeHorizon=oneWeek')
             .then(res => {
                 let timeArr = [];
                 let valueArr = [];
                 let arr;
                 // console.log(res);
-                    arr =  res.object.reverse();
+                    arr =  res.data.reverse();
                     arr.forEach(item => {
                         timeArr.push(item.key);
                         valueArr.push(item.value);
@@ -592,12 +592,12 @@ export default {
                     myChartLeft2.setOption(this.options_mrldqk);
 
             });
-            this.$http.get('http://122.112.252.100:8081/face/findDb?timeHorizon=oneYear')
+            this.$http.get('http://119.3.84.55:8081/face/findDb?timeHorizon=oneYear')
                     .then(res => {
                         let timeArr = [];
                         let valueArr = [];
 
-                            res.object.forEach(item => {
+                            res.data.forEach(item => {
                                 timeArr.push(item.key);
                                 valueArr.push(item.value);
                             });
@@ -620,10 +620,10 @@ export default {
         let date = Date.parse(new Date());
         this.date = utils.timestamp(date);
         this.init();
-        this.$http.get('http://122.112.252.100:8081/face/findEnd')
+        this.$http.get('http://119.3.84.55:8081/face/findEnd')
                 .then(res => {
-                    this.outList = res.object;
-                    this.outFirst = res.object[0];
+                    this.outList = res.data;
+                    this.outFirst = res.data[0];
                 })
     }
 };

+ 4 - 4
src/views/home/Home.vue

@@ -224,7 +224,7 @@ export default {
            this.setInvaler();
         },
         initList() {
-            this.$http.post('http://122.112.252.100:8095/dpSjlrSyS/find')
+            this.$http.post('http://119.3.84.55:8095/dpSjlrSyS/find')
                     .then(res => {
                         if(res.code === 10000) {
                             this.listData= [];
@@ -241,7 +241,7 @@ export default {
                     this.environmentdData = res.data;
                 }
             });
-            this.$http.get('http://122.112.252.100:8081/face/alarm')
+            this.$http.get('http://119.3.84.55:8081/face/alarm')
             .then(res => {
                 if(res.code === 10001) {
                     res.data.forEach(item => {
@@ -251,7 +251,7 @@ export default {
                     this.callList = res.data;
                 }
             });
-            this.$http.get('http://122.112.252.100:8085/environment/getZMInfo')
+            this.$http.get('http://119.3.84.55:8085/environment/getZMInfo')
             .then(res => {
                 if(res.code === 10000) {
                     res.data.forEach(item => {
@@ -270,7 +270,7 @@ export default {
             } else {
                 this.isVideo = true;
                 this.pList = data.position.split('-');
-                this.$http.post('http://122.112.252.100:8088/cameraInfo/getCameraDetails', {areaIds: data.id})
+                this.$http.post('http://119.3.84.55:8088/cameraInfo/getCameraDetails', {areaIds: data.id})
                         .then(res => {
                             if(res.status === 10000) {
                                 // this.showIfrme = true;

+ 3 - 2
src/views/home/charts/ELeft1.vue

@@ -128,15 +128,16 @@ export default {
             myChart.setOption(option);
         },
         init() {
-            this.$axios.get(`http://122.112.252.100:8081/face/findDb?timeHorizon=oneYear`)
+            this.$axios.get(`http://119.3.84.55:8081/face/findDb?timeHorizon=oneYear`)
             .then(res => {
                 if(res.data.status === 10000) {
                     this.timeArr = [];
                     this.valueArr = [];
-                    res.data.object.forEach(item => {
+                    res.data.data.forEach(item => {
                         this.timeArr.push(item.key);
                         this.valueArr.push(item.value);
                     })
+                    console.log(this.timeArr)
                     this.drawChart();
                 }
             })

+ 2 - 2
src/views/home/swiperMulti.vue

@@ -170,7 +170,7 @@ export default {
             console.log('++++++++++++++++++++++++++++');
             this.$http.get('/environment/getZsda', {mcid: 39})
                     .then(res => {
-                        
+
                         // loading.close();
                         if(res.code === 10000) {
                             // this.data = res.data;
@@ -179,7 +179,7 @@ export default {
                             let arr2 = [];
                             res.data.forEach(item => {
                                 if(item.isQuanKong) {
-                                    this.$http.post('http://122.112.252.100:8088/allDataController/findByZSID', {ZSID: item.zsid, lqid: item.lqid})
+                                    this.$http.post('http://119.3.84.55:8088/allDataController/findByZSID', {ZSID: item.zsid, lqid: item.lqid})
                                     .then(res => {
                                         let slList = [];
                                         let dlList = [];

+ 4 - 4
src/views/monitor/monitor.vue

@@ -174,7 +174,7 @@ export default {
                 strList.push(item.id);
             });
             let str = strList.join(',');
-            this.$http.post('http://122.112.252.100:8088/cameraInfo/getCameraDetails', {areaIds: str})
+            this.$http.post('http://119.3.84.55:8088/cameraInfo/getCameraDetails', {areaIds: str})
             .then(res => {
                if(res.status === 10000) {
                    res.data.forEach(item => {
@@ -195,7 +195,7 @@ export default {
             this.dialogVisible = false;
         },
         init() {
-            this.$http.post('http://122.112.252.100:8088/pastureArea/findAll')
+            this.$http.post('http://119.3.84.55:8088/pastureArea/findAll')
             .then(res => {
                 if(res.status === 10000) {
                     this.poleOption = JSON.parse(JSON.stringify(res.data));
@@ -222,7 +222,7 @@ export default {
             this.showIfrme = false;
             if(this.poleSelected.length > 0) {
                 let val = this.poleSelected[this.poleSelected.length - 1];
-                this.$http.post('http://122.112.252.100:8088/cameraInfo/getCameraDetails', {areaIds: val})
+                this.$http.post('http://119.3.84.55:8088/cameraInfo/getCameraDetails', {areaIds: val})
                         .then(res => {
                             if(res.status === 10000) {
                                 this.showIfrme = true;
@@ -274,7 +274,7 @@ export default {
     },
     mounted() {
         window.addEventListener("message", this.handleMessage);
-        
+
     },
 };
 </script>