Bläddra i källkod

接口ip调整、巡更计划字段大小写调整

wangtao 2 år sedan
förälder
incheckning
a1cf990090

+ 1 - 1
src/components2/conferenceRoomStatistics/index.vue

@@ -56,7 +56,7 @@ export default {
     init(){
       axios({
         method: 'get',
-        url: 'https://smartpark.caih.com/hyxt/api/thirdparty/meetingRoom/summary',
+        url: 'http://10.21.39.5:8082/api/thirdparty/meetingRoom/summary',
       }).then(res =>{
         if(res.data){
           this.data = res.data

+ 1 - 0
src/components2/equipmentAlarm/seTable.vue

@@ -53,6 +53,7 @@ export default {
           type:2
         }
       }).then(res =>{
+        
           this.initList = res.data.data.records
           this.loading = false
           this.text = "目前运转正常,无告警"

+ 21 - 21
src/components2/fireHazard/seTable.vue

@@ -32,27 +32,27 @@ export default {
     initData() {
       // 测试
       this.loading = false
-      this.text = "目前运转正常,无隐患"
-      // axios({
-      //   method: 'post',
-      //   url: 'https://smartpark.caih.com/dmapi/tbAlarm/page',
-      //   data:{
-      //     current: 1,
-      //     size: 100,
-      //     type:1,
-      //   },
-      //   timeout: 3000,
-      // }).then(res =>{
-      //     if(res.data.data.records){
-      //         let data = res.data.data.records
-      //         this.initList = data
-      //     }
-      //     this.loading = false
-      //     this.text = "目前运转正常,无隐患"
-      // }).catch(err =>{
-      //   this.loading = false
-      //   this.text = "数据加载失败..."
-      // })
+      // this.text = "目前运转正常,无隐患"
+      axios({
+        method: 'post',
+        url: 'https://smartpark.caih.com/dmapi/tbAlarm/page',
+        data:{
+          current: 1,
+          size: 100,
+          type:1,
+        },
+        timeout: 3000,
+      }).then(res =>{
+          if(res.data.data.records){
+              let data = res.data.data.records
+              this.initList = data
+          }
+          this.loading = false
+          this.text = "目前运转正常,无隐患"
+      }).catch(err =>{
+        this.loading = false
+        this.text = "数据加载失败..."
+      })
     },
     //数据滚动
     dataScrolling:function(){

+ 6 - 5
src/components2/keepWatch/seTable.vue

@@ -3,10 +3,10 @@
       <template slot="empty">
           <span>{{text}}</span>
       </template>
-      <el-table-column label="时间"  prop="eStartTime"  show-overflow-tooltip min-width="35%"/>
-      <el-table-column label="内容"  prop="eLName"  show-overflow-tooltip min-width="25%"/>
-      <el-table-column label="名称"  prop="ePlaceName"  show-overflow-tooltip min-width="25%"/>
-      <el-table-column label="状态"  prop="ePlanState"  show-overflow-tooltip min-width="15%"/>
+      <el-table-column label="时间"  prop="estarttime"  show-overflow-tooltip min-width="35%"/>
+      <el-table-column label="内容"  prop="elname"  show-overflow-tooltip min-width="25%"/>
+      <el-table-column label="名称"  prop="eplancename"  show-overflow-tooltip min-width="25%"/>
+      <el-table-column label="状态"  prop="eplanstate"  show-overflow-tooltip min-width="15%"/>
     </el-table>
 </template>
 <script>
@@ -304,12 +304,13 @@ export default {
             timeout: 3000,
         }).then(res =>{
             if(res.data.data.pageList){
+              console.log(res.data.data.pageList)
                 let data = res.data.data.pageList
                 this.initList = data.slice(0,9)
 
                 let arr = [ '1楼暖通机房','负1楼配电间','1楼配电间','1楼UPS机房','2楼网络机房','2楼新风机房','3楼新风机房','4楼新风机房','4楼阅览室等']
                 for(let i =0; i<this.initList.length;i++){
-                  this.initList[i].ePlaceName = arr[i]
+                  this.initList[i].eplancename = arr[i]
                 }
             }
             this.loading = false

+ 1 - 1
src/components2/populationStatistics/index.vue

@@ -47,7 +47,7 @@ export default {
     async init(){
       await axios({
         method: 'get',
-        url: 'https://smartpark.caih.com/ykt/api/thirdparty/v1/openInterface/yunUserRequest',
+        url: 'http://10.21.39.6:8087/api/thirdparty/v1/openInterface/yunUserRequest',
         timeout: 10000,
       }).then(res =>{
           let total = 0

+ 0 - 102
src/components2/weather/index.vue

@@ -1,105 +1,3 @@
- wangtao / DX-LargeScreen
-
-
-index.vue 2.1 KB
-
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
 <template>
   <el-row class="weather modular" :gutter="40" >
     <el-col :span="8" class="rowN">

+ 1 - 1
src/views/index.vue

@@ -19,7 +19,7 @@
         </el-col>
         <el-col  id="middleWrap" >
           <!-- <iframe  style="width:100%;height:100%;border:none;" id="iframe" src='http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9'></iframe> -->
-          <!-- <iframe  style="width:100%;height:100%;border:none;" id="iframe" src='http://10.21.39.6:9000/'></iframe> -->
+          <iframe  style="width:100%;height:100%;border:none;" id="iframe" src='http://10.21.39.6:9000/'></iframe>
         </el-col>
         <el-col  class="rightWrap">
           <weather alt="天气"/>