Commit 33e582e550e26107c2217a49560decbc00b0fe04

Authored by liuqimichale
1 parent 159ba68d

刷新时间修改为3分钟

index.html
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 6 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
7 <meta name="renderer" content="webkit"> 7 <meta name="renderer" content="webkit">
8 <meta name="viewport" content="width=1200"> 8 <meta name="viewport" content="width=1200">
9 - <meta http-equiv="refresh" content="60"> 9 + <meta http-equiv="refresh" content="180">
10 <title>赤峰停车运营监控中心</title> 10 <title>赤峰停车运营监控中心</title>
11 <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=cuMSxNl5LOY6sf1M3nDGtG6tGXl5a0Bb"></script> 11 <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=cuMSxNl5LOY6sf1M3nDGtG6tGXl5a0Bb"></script>
12 </head> 12 </head>
src/views/mapsection.vue
@@ -99,9 +99,10 @@ export default { @@ -99,9 +99,10 @@ export default {
99 }).then((response)=>{ 99 }).then((response)=>{
100 const data = response.data.data 100 const data = response.data.data
101 console.log(data) 101 console.log(data)
102 - this.parkList = data  
103 - console.log(data)  
104 - this.firstItem = data[0].id 102 + const newData = data.filter(item => item.areaName.indexOf('测试') < 0)
  103 + this.parkList = newData
  104 + console.log(newData)
  105 + this.firstItem = newData[0].id
105 this.currentPark(this.firstItem,0) 106 this.currentPark(this.firstItem,0)
106 }) 107 })
107 }, 108 },