| 1 |
- <view><view class="ui-card forecast-card"><view class="flex-1"><view class="font-16 title">{{"设备名称:"+deviceInfo.equip_name}}</view><view class="text">{{"设备ID:"+deviceInfo.equip_name}}</view><view class="text text-ellipsis">{{"地址:"+deviceInfo.equip_name}}</view><view class="text">{{"最新上报时间:"+$root.f0}}</view></view><view class="font-12 state">{{deviceInfo.is_online?'在线':'离线'}}</view></view><view class="row-between m-12"><view class="font-16 mr">实时数据</view><view class="flex-1 font-10 text-sub">(可点击查看24小时数据)</view><navigator class="font-14 text-primary" url="{{'history?id='+deviceInfo.equip_id}}" hover-class="none">历史数据</navigator></view><view class="latest-list"><block wx:for="{{latestList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['openLatestChart',['$0','$1'],[[['latestList','',index,'el']],[['latestList','',index,'text']]]]]]]}}" class="ui-card latest-item" bindtap="__e"><view class="icon"></view><view class="column-between text-info font-12"><view class="text">{{item.text}}</view><view class="text">{{item.value}}</view></view></view></block></block></view><uni-popup class="vue-ref" vue-id="42f3cef0-1" type="dialog" mask-click="{{false}}" data-ref="chartsPopup" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{dayData}}"><view class="charts-popup"><uni-icons class="charts-icon" vue-id="{{('42f3cef0-2')+','+('42f3cef0-1')}}" type="clear" size="50" color="#999999" data-event-opts="{{[['^click',[['closeChartsPopup']]]]}}" bind:click="__e" bind:__l="__l"></uni-icons><view class="charts-title">24小时数据</view><view class="charts-box"><line-charts vue-id="{{('42f3cef0-3')+','+('42f3cef0-1')}}" chartData="{{chartShowData}}" width="{{200}}" height="{{200}}" bind:__l="__l"></line-charts></view><view class="charts-text">{{'当天最大值:'+dayData.max+" "+$root.f1+''}}</view><view class="charts-text">{{'当天最小值:'+dayData.min+" "+$root.f2+''}}</view></view></block></uni-popup></view>
|