From 96195672f192cfc3d930c9765e1f3e4108a980df Mon Sep 17 00:00:00 2001 From: Vce Date: Wed, 27 Mar 2024 19:12:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=9C=BA=E6=A2=B0?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=AE=9A=E4=BD=8D=E5=92=8C=E6=99=BA=E8=83=BD?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E5=B8=BD=E7=9A=84=E6=8E=A5=E5=8F=A3=E4=BC=A0?= =?UTF-8?q?=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/config.js | 4 +- src/assets/js/http.js | 4 +- .../dataPay/dataModule/dataPayAlarmRecord.vue | 6 +- .../dataModule/dataPayRealTimeData.vue | 6 +- .../deviceCentral/equipmentCentral.vue | 60 ++++++++--------- .../dataPay/dataModule/dataPayAlarmRecord.vue | 6 +- .../dataModule/dataPayRealTimeData.vue | 6 +- .../deviceCentral/deviceCentral.vue | 65 +++++++++---------- 8 files changed, 82 insertions(+), 75 deletions(-) diff --git a/public/js/config.js b/public/js/config.js index fde19c6d..b5d0e08e 100644 --- a/public/js/config.js +++ b/public/js/config.js @@ -11,7 +11,7 @@ var COMPANY = '' //通用 // COMPANY = 'hengtong'//瑞士恒通 // COMPANY = 'yunlian'//云联万物 // COMPANY = 'neimenggu'//内蒙古项目 -COMPANY = 'zjsj'//中建四局 +// COMPANY = 'zjsj'//中建四局 // COMPANY = 'zjwj'//中建五局 // COMPANY = 'sccr'//四川成润 // COMPANY = 'pssh'//坪山沙湖项目 @@ -26,7 +26,7 @@ var PROJECT = { online_gxlt: 'gxlt', // 广西联通 } -var PROJECT_TYPE = PROJECT.online_zjsj +var PROJECT_TYPE = PROJECT.local_test var headerShow = true // 是否显示头部 var tabsShow = true // 是否显示tabs if (COMPANY == 'xingxuan') { diff --git a/src/assets/js/http.js b/src/assets/js/http.js index 15309b9e..fd882353 100644 --- a/src/assets/js/http.js +++ b/src/assets/js/http.js @@ -88,8 +88,8 @@ if (process.env.NODE_ENV == 'development') { // axios.defaults.baseURL = 'http://182.90.224.237:51234' //郭圣雄远程 // axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈 // axios.defaults.baseURL ='http://183.249.224.118:9000/' //嘉兴王江泾公用码头 - // axios.defaults.baseURL ='http://101.43.164.214:11111/' // 百色三标段项目 - axios.defaults.baseURL = 'http://125.88.207.86:8088/'//中建四局线上(最新)地址 + axios.defaults.baseURL ='http://101.43.164.214:11111/' // 百色三标段项目 + // axios.defaults.baseURL = 'http://125.88.207.86:8088/'//中建四局线上(最新)地址 // axios.defaults.baseURL = 'http://125.88.207.86:8099/'//中建四局(沙湖)线上(最新)地址 diff --git a/src/views/projectFront/devicePosition/dataPay/dataModule/dataPayAlarmRecord.vue b/src/views/projectFront/devicePosition/dataPay/dataModule/dataPayAlarmRecord.vue index e66a9ee6..97334ff9 100644 --- a/src/views/projectFront/devicePosition/dataPay/dataModule/dataPayAlarmRecord.vue +++ b/src/views/projectFront/devicePosition/dataPay/dataModule/dataPayAlarmRecord.vue @@ -91,7 +91,7 @@ export default { getEquipmentAlarmRecordPageApi({ pageNo: this.pageInfo.pageNo, pageSize: this.pageInfo.pageSize, - // projectSn: this.$store.state.projectSn, + projectSn: this.$store.state.projectSn, devSn: this.searchForm.devSn, alarmTime_begin:this.searchForm.alarmTime_begin, alarmTime_end:this.searchForm.alarmTime_end, @@ -103,7 +103,9 @@ export default { }) }, async getEquipmentList() { - await getEquipmentListApi().then(result => { + await getEquipmentListApi({ + projectSn: this.$store.state.projectSn, + }).then(result => { if (result.success) { this.equipmentList = result.result } diff --git a/src/views/projectFront/devicePosition/dataPay/dataModule/dataPayRealTimeData.vue b/src/views/projectFront/devicePosition/dataPay/dataModule/dataPayRealTimeData.vue index 83df3b36..dc9c57c8 100644 --- a/src/views/projectFront/devicePosition/dataPay/dataModule/dataPayRealTimeData.vue +++ b/src/views/projectFront/devicePosition/dataPay/dataModule/dataPayRealTimeData.vue @@ -108,7 +108,7 @@ export default { getEquipmentPayDataPageApi({ pageNo: this.pageInfo.pageNo, pageSize: this.pageInfo.pageSize, - // projectSn: this.$store.state.projectSn, + projectSn: this.$store.state.projectSn, equipmentName: this.searchForm.equipmentName, devSn: this.searchForm.devSn, uploadTime_begin: this.searchForm.uploadTime_begin, @@ -121,7 +121,9 @@ export default { }) }, async getDevSnList() { - await getEquipmentListApi().then(result => { + await getEquipmentListApi({ + projectSn: this.$store.state.projectSn, + }).then(result => { if (result.success) { this.equipmentList = result.result } diff --git a/src/views/projectFront/devicePosition/deviceCentral/equipmentCentral.vue b/src/views/projectFront/devicePosition/deviceCentral/equipmentCentral.vue index 137eb33c..29ce40ad 100644 --- a/src/views/projectFront/devicePosition/deviceCentral/equipmentCentral.vue +++ b/src/views/projectFront/devicePosition/deviceCentral/equipmentCentral.vue @@ -43,9 +43,7 @@ - + @@ -59,21 +57,18 @@ - - + + - + @@ -82,11 +77,13 @@