xctdetail.wxml 5.7 KB

1
  1. <view><view class="{{['info',equipInfo.is_online==1?'on':'off']}}"><view data-event-opts="{{[['tap',[['copy',['$0'],['equipInfo']]]]]}}" bindtap="__e">{{'设备ID:'+(equipInfo.imei||equipInfo.device_id)+''}}<image class="tishi" src="https://www.hnyfwlw.com:8006/bigdata_app/image/environment/fuzhi.png" mode></image></view><view>{{'设备名称:'+(equipInfo.device_name==""?"无":equipInfo.device_name)+''}}</view><view>设备类型:吸虫塔</view><view>{{'最新上报时间:'+$root.f0+''}}</view><view>{{'设备地址:'+(equipInfo.address||city)+''}}</view></view><view class="caobox"><block wx:if="{{$root.m0}}"><view data-event-opts="{{[['tap',[['tophoto',['$event']]]]]}}" class="caobox_item" bindtap="__e"><image src="https://www.hnyfwlw.com:8006/bigdata_app/image/cb/1.png" mode="widthFix"></image><view>查看图片</view></view></block><block wx:if="{{$root.m1}}"><view data-event-opts="{{[['tap',[['toset',['$event']]]]]}}" class="caobox_item" bindtap="__e"><image src="https://www.hnyfwlw.com:8006/bigdata_app/image/cb/4.png" mode="widthFix"></image><view>设备控制</view></view></block><block wx:if="{{$root.m2}}"><view data-event-opts="{{[['tap',[['toanal',['$event']]]]]}}" class="caobox_item" bindtap="__e"><image src="https://www.hnyfwlw.com:8006/bigdata_app/image/cb/3.png" mode="widthFix"></image><view>虫情分析</view></view></block><view data-event-opts="{{[['tap',[['simRouter',['$event']]]]]}}" class="caobox_item" bindtap="__e"><image src="https://www.hnyfwlw.com:8006/bigdata_app/image/cb/6.png" mode="widthFix"></image><view>SIM卡</view></view></view><block wx:if="{{$root.m3}}"><view><view>历史数据</view><view class="timebox"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="firsttime" bindtap="__e"><block wx:if="{{start_time!=''}}"><view>{{''+$root.f1+''}}</view></block><block wx:else><view>{{''+(start_time==""?'请选择开始时间':start_time)+''}}</view></block></view><view class="jiange">-</view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="endtime" bindtap="__e"><block wx:if="{{end_time!=''}}"><view>{{''+$root.f2+''}}</view></block><block wx:else><view>{{''+(end_time==""?'请选择结束时间':end_time)+''}}</view></block></view><u-calendar vue-id="acdf2bd0-1" mode="{{mode}}" value="{{timeshow}}" data-event-opts="{{[['^change',[['timechange']]],['^input',[['__set_model',['','timeshow','$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><block wx:if="{{canvastishiTF}}"><canvas hidden="{{!(!timeshow)}}" 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></block></view><view class="condition"><scroll-view class="scroll-X" scroll-top="0" scroll-x="true"><block wx:if="{{$root.m4}}"><view class="table _table"><view class="tr _tr"><block wx:for="{{tableHeadTxt}}" wx:for-item="item" wx:for-index="index"><view class="th _th">{{item}}</view></block></view><block wx:for="{{$root.l0}}" wx:for-item="items" wx:for-index="indexs"><block wx:if="{{!forbidden}}"><view class="tr _tr"><view class="td _td">{{items.f3}}</view><view class="td _td">{{items.$orig.d_h_t.at}}</view><view class="td _td">{{items.$orig.d_h_t.ah}}</view><view class="td _td">{{items.$orig.d_h_t.dver}}</view><view class="td _td">{{items.$orig.d_h_t.ws==0?'待机':'工作'}}</view><view class="td _td">{{items.$orig.d_h_t.current}}</view><view class="td _td">{{items.$orig.d_h_t.vbat}}</view><view class="td _td">{{items.$orig.d_h_t.lng}}</view><view class="td _td">{{items.$orig.d_h_t.lat}}</view></view></block></block><block wx:if="{{forbidden}}"><view class="tr _tr"><block wx:for="{{9}}" wx:for-item="item" wx:for-index="__i0__"><view class="td _td">暂无数据</view></block></view></block></view></block><block wx:else><view class="table _table"><view class="tr _tr"><block wx:for="{{tableHeadTxt2}}" wx:for-item="item" wx:for-index="index"><view class="th _th">{{item}}</view></block></view><block wx:for="{{$root.l1}}" wx:for-item="items" wx:for-index="indexs"><block wx:if="{{!forbidden}}"><view class="tr _tr"><view class="td _td">{{items.f4}}</view><view class="td _td">{{items.$orig.d_h_t.at}}</view><view class="td _td">{{items.$orig.d_h_t.ah}}</view><view class="td _td">{{items.$orig.d_h_t.dver}}</view><view class="td _td">{{items.$orig.d_h_t.ws==0?'待机':'工作'}}</view><view class="td _td">{{items.$orig.d_h_t.lng}}</view><view class="td _td">{{items.$orig.d_h_t.lat}}</view></view></block></block><block wx:if="{{forbidden}}"><view class="tr _tr"><block wx:for="{{7}}" wx:for-item="item" wx:for-index="__i1__"><view class="td _td">暂无数据</view></block></view></block></view></block></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 disabled="{{forbidden}}" data-event-opts="{{[['tap',[['next',['$event']]]]]}}" bindtap="__e">下一页</button></view></view></view></block><block wx:else><view>暂无数据</view></block></view>