cmb.wxml 5.6 KB

1
  1. <view><view class="status_bar"></view><view style="position:relative;top:44px;"><view style="position:fixed;z-index:100;width:100%;"><uni-nav-bar vue-id="738360ca-1" left-icon="back" left-text="返回" title="设备详情" data-event-opts="{{[['^clickLeft',[['clickLeft']]]]}}" bind:clickLeft="__e" bind:__l="__l"></uni-nav-bar></view><view class="info"><view class="info_item"><image class="bgi" src="http://www.hnyfwlw.com:8006/bigdata_app/image/cb/onBg.png" mode></image><view data-event-opts="{{[['tap',[['copy',['$0'],['eqinfo.device_id']]]]]}}" style="font-size:32rpx;" bindtap="__e" class="_p">{{'设备 ID:'+eqinfo.device_id+''}}<image class="tishi" src="http://www.hnyfwlw.com:8006/bigdata_app/image/environment/fuzhi.png" mode></image></view><view class="_p">{{"设备名称:"+(eqinfo.device_name||"无")}}</view><view class="_p">最近上报时间:<block wx:if="{{eqinfo.uptime}}"><label class="_span">{{$root.f0}}</label></block><block wx:else><label class="_span">{{$root.f1}}</label></block></view><view class="_p">{{"地址:"+(eqinfo.location||"暂无地址")}}</view></view></view><view class="control"><block wx:if="{{kongtf}}"><view data-event-opts="{{[['tap',[['control',['$event']]]]]}}" class="control_item" bindtap="__e"><image src="{{'http://www.hnyfwlw.com:8006/bigdata_app'+'/image/environment/forecastResult.png'}}" mode></image><view class="_p">预测结果</view></view></block></view><block wx:if="{{datatf}}"><view class="his_box"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="selecttimes" bindtap="__e"><view class="timesbox"><image src="http://www.hnyfwlw.com:8006/bigdata_app/image/prevention/1acfe2751c01d3786cdc49b83d7e505.png" mode></image><view class="_p">{{$root.m0}}</view><view class="or _p">~</view><view class="_p">{{$root.m1}}</view><u-icon class="icon" vue-id="738360ca-2" name="rili" custom-prefix="custom-icon" bind:__l="__l"></u-icon></view><u-calendar vue-id="738360ca-3" mode="range" value="{{tiemshow}}" data-event-opts="{{[['^change',[['tiemchange']]],['^input',[['__set_model',['','tiemshow','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></u-calendar></view><view class="shuju_one"><block wx:if="{{!canvastishiTF&&!dataloadingtf}}"><view class="canvastishi">暂无数据</view></block><block wx:if="{{dataloadingtf}}"><view class="canvastishi"><view class="dataloading _p">加载中</view></view></block><canvas hidden="{{!(!tiemshow)}}" class="charts" style="{{'width:'+(cWidth*pixelRatio+'px')+';'+('height:'+(cHeight*pixelRatio+'px')+';')+('transform:'+('scale('+1/pixelRatio+')')+';')+('margin-left:'+(-cWidth*(pixelRatio-1)/2+'px')+';')+('margin-top:'+(-cHeight*(pixelRatio-1)/2+'px')+';')}}" canvas-id="canvasColumnA" id="canvasColumnA" disable-scroll="true" data-event-opts="{{[['touchstart',[['touchLineA',['$event']]]],['touchmove',[['moveLineA',['$event']]]],['touchend',[['touchEndLineA',['$event']]]]]}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e"></canvas><canvas hidden="{{!(!tiemshow)}}" class="charts" style="{{'width:'+(cWidth*pixelRatio+'px')+';'+('height:'+(cHeight*pixelRatio+'px')+';')+('transform:'+('scale('+1/pixelRatio+')')+';')+('margin-left:'+(-cWidth*(pixelRatio-1)/2+'px')+';')+('margin-top:'+(-cHeight*(pixelRatio-1)/2+'px')+';')}}" canvas-id="canvasColumnB" id="canvasColumnB" disable-scroll="true" data-event-opts="{{[['touchstart',[['touchLineB',['$event']]]],['touchmove',[['moveLineB',['$event']]]],['touchend',[['touchEndLineB',['$event']]]]]}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e"></canvas></view><view class="condition"><scroll-view class="scroll-X" scroll-top="0" scroll-x="true"><view class="table"><view class="tr" style="width:6000rpx;"><block wx:for="{{tableHead}}" wx:for-item="item" wx:for-index="index"><view class="th">{{''+item+''}}</view></block></view><block wx:for="{{$root.l0}}" wx:for-item="items" wx:for-index="indexs"><view class="tr" style="width:6000rpx;"><view class="td">{{items.f2}}</view><view class="td">{{items.$orig.dianChiDianYa}}</view><view class="td">{{items.$orig.fiftyTuRangHanShuiLiang}}</view><view class="td">{{items.$orig.fiftyTuRangWenDu}}</view><view class="td">{{items.$orig.fiveTuRangHanShuiLiang}}</view><view class="td">{{items.$orig.fiveTuRangWenDu}}</view><view class="td">{{items.$orig.kongQiWenDu}}</view><view class="td">{{items.$orig.luDianWenDu}}</view><view class="td">{{items.$orig.riZhaoShiShu}}</view><view class="td">{{items.$orig.shiRunShiJian}}</view><view class="td">{{items.$orig.tenTuRangHanShuiLiang}}</view><view class="td">{{items.$orig.tenTuRangWenDu}}</view><view class="td">{{items.$orig.tianJiangYuLiang}}</view><view class="td">{{items.$orig.tuRangDaoDianLv}}</view><view class="td">{{items.$orig.twentyFiveTuRangHanShuiLiang}}</view><view class="td">{{items.$orig.twentyFiveTuRangWenDu}}</view><view class="td">{{items.$orig.twentyTuRangHanShuiLiang}}</view><view class="td">{{items.$orig.twentyTuRangWenDu}}</view><view class="td">{{items.$orig.xiangDuiShiDu}}</view><view class="td">{{items.$orig.xiaoShiJiangYuLiang}}</view></view></block><block wx:if="{{$root.g0==0}}"><view class="tr" style="width:6000rpx;"><block wx:for="{{13}}" wx:for-item="item" wx:for-index="__i0__"><view class="td">暂无数据</view></block></view></block></view></scroll-view><view class="pagenumber"><button data-event-opts="{{[['tap',[['prev',['$event']]]]]}}" bindtap="__e">上一页</button><view class="pagenumber_page">{{'第 '+page+' 页'}}</view><view class="pagenumber_page">{{'共 '+pagesum+' 页'}}</view><button data-event-opts="{{[['tap',[['next',['$event']]]]]}}" bindtap="__e">下一页</button></view></view></view></block></view></view>