<!--pages/station/index.wxml-->
<view class="custom-tabs">
<view class="custom_box" wx:for="{{baseInfo.list}}" wx:key="index">
 <view class="custom_title">
 <view class="custom_title_name">设备编号</view>
 <view class="custom_title_gl">{{item.name}} </view>
 </view>
 <view class="custom_div">
 <view class="batteryccc">实时功率</view>
 <view class="custom_title_gl">{{item.power}}<text class="batteryccc"> kW</text> </view>
 </view>
 <view class="custom_div">
 <view class="batteryccc">在线状态</view>
 <view class="tag_type2red" class="{{item.comState=='离线'?'tag_type2red':'tag_type2'}}">{{item.comState}}</view>
 <!-- <view class="tag_type2">{{item.comState}}</view> -->
 </view>
 <view class="custom_div">
 <view class="batteryccc">故障状态</view>
 <!-- <view class="tag_type1">{{item.faultState}}</view> -->
 <view class="tag_type2red" class="{{item.faultState=='正常'?'tag_type2':'tag_type2red'}}">{{item.faultState}}</view>

 </view>
 <view class="custom_div">
 <view class="batteryccc">运行状态</view>
 <!-- <view class="tag_type3">{{item.runState}}</view> -->
 <view class="tag_type2red" class="{{item.runState=='运行'?'tag_type2':'tag_type3'}}">{{item.runState}}</view>

 </view>
 <view class="custom_div">
 <view class="batteryccc">投运时间</view>
 <view class="custom_div1">{{item.createAt}}</view>
 </view>
</view>
<view class="tag_typetext">没有更多数据...</view>
</view>
<!-- 
createAt 投运时间
comState 在线状态
power 实时功率
 故障状态 faultState
 运行状态 runState
name  名称
 -->