|
@@ -1,16 +1,18 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <home :cur="PageCur" v-if="PageCur=='home'" :key="commponent1Key"></home>
|
|
|
- <people v-if="PageCur=='people'" :key="commponent2Key"></people>
|
|
|
+ <home :cur="PageCur" v-if="PageCur=='home'" :key="commponent1Key"></home>>
|
|
|
+ <history :cur="PageCur" v-if="PageCur=='history'" :key="commponent2Key"></history>
|
|
|
+ <warndata :cur="PageCur" v-if="PageCur=='warndata'" :key="commponent3Key"></warndata>
|
|
|
+ <people v-if="PageCur=='people'" :key="commponent4Key"></people>
|
|
|
<view class="cu-bar tabbar bg-white shadow foot">
|
|
|
<view :class="PageCur=='home'?'action text-green':'action text-gray'" @click="NavChange" data-cur="home">
|
|
|
- <view class='cuIcon-homefill'></view>数据管理
|
|
|
+ <view class='cuIcon-homefill'></view>设备监测
|
|
|
</view>
|
|
|
- <view :class="PageCur=='test1'?'action text-green':'action text-gray'" @click="NavChange" data-cur="test1">
|
|
|
- <view class='cuIcon-peoplelist'></view>数据管理1
|
|
|
+ <view :class="PageCur=='history'?'action text-green':'action text-gray'" @click="NavChange" data-cur="history">
|
|
|
+ <view class='cuIcon-peoplelist'></view>历史数据
|
|
|
</view>
|
|
|
- <view :class="PageCur=='profile'?'action text-green':'action text-gray'" @click="NavChange" data-cur="profile">
|
|
|
- <view class='cuIcon-profile'></view>数据管理2
|
|
|
+ <view :class="PageCur=='warndata'?'action text-green':'action text-gray'" @click="NavChange" data-cur="warndata">
|
|
|
+ <view class='cuIcon-profile'></view>预警分析
|
|
|
</view>
|
|
|
<view :class="PageCur=='people'?'action text-green':'action text-gray'" @click="NavChange" data-cur="people">
|
|
|
<view class='cuIcon-people'></view>个人信息
|
|
@@ -26,12 +28,16 @@
|
|
|
PageCur: 'home',
|
|
|
commponent1Key: 0,
|
|
|
commponent2Key: 0,
|
|
|
+ commponent3Key: 0,
|
|
|
+ commponent4Key: 0,
|
|
|
}
|
|
|
},
|
|
|
onLoad:function(){
|
|
|
this.PageCur='home'
|
|
|
++this.commponent1Key
|
|
|
++this.commponent2Key
|
|
|
+ ++this.commponent3Key
|
|
|
+ ++this.commponent4Key
|
|
|
},
|
|
|
methods: {
|
|
|
NavChange: function(e) {
|