ucharts.wxml 4.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%;color:#FFFFFF;"><uni-nav-bar vue-id="9bd52cbc-1" left-icon="back" left-text="返回" title="历史数据" data-event-opts="{{[['^clickLeft',[['clickLeft']]]]}}" bind:clickLeft="__e" bind:__l="__l"></uni-nav-bar></view><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="9bd52cbc-2" name="rili" custom-prefix="custom-icon" bind:__l="__l"></u-icon></view><u-calendar vue-id="9bd52cbc-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"><view class="shuju_one_title"><block wx:for="{{titletext}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeindex',[index]]]]]}}" class="{{[titleidnex==index?'title_text_color':'tltle_text']}}" bindtap="__e">{{''+item+''}}</view></block></view><block wx:if="{{!canvastishiTF}}"><view class="canvastishi">暂无数据</view></block><block wx:if="{{canvastishiTF}}"><canvas 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="shuju_two"><block wx:if="{{!canvastishiTF}}"><view class="canvastishi">暂无数据</view></block><block wx:if="{{canvastishiTF}}"><canvas 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',[['touchLineBb',['$event']]]],['touchmove',[['moveLineBb',['$event']]]],['touchend',[['touchEndLineBb',['$event']]]]]}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e"></canvas></block></view><view data-event-opts="{{[['tap',[['refresh',['$event']]]]]}}" class="refresh" bindtap="__e">刷 新</view><view class="condition"><scroll-view class="scroll-X" scroll-top="0" scroll-x="true"><view class="table _table"><view class="tr _tr"><block wx:for="{{thdata}}" 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.f0}}</view><view class="td _td">{{items.$orig.d_h_t.ds==0?"关机":"开机"}}</view><view class="td _td">{{items.$orig.d_h_t.ws==0?"待机":"工作"}}</view><view class="td _td">{{items.$orig.d_h_t.rps==0?"正常":"保护"}}</view><view class="td _td">{{items.$orig.d_h_t.tps==0?"正常":"保护"}}</view><view class="td _td">{{items.$orig.d_h_t.dps==0?"正常":"保护"}}</view><view class="td _td">{{items.$orig.d_h_t.tt}}</view><view class="td _td">{{items.$orig.d_h_t.ct}}</view><view class="td _td">{{items.$orig.d_h_t.new_tem==""?"--":items.$orig.d_h_t.new_tem}}</view><view class="td _td">{{items.$orig.d_h_t.new_hum==""?"--":items.$orig.d_h_t.new_hum}}</view><view class="td _td">{{items.$orig.d_h_t.cv}}</view><view class="td _td">{{items.$orig.d_h_t.bv}}</view></view></block></block><block wx:if="{{!forbidden}}"><view class="tr _tr"><block wx:for="{{12}}" wx:for-item="item" wx:for-index="__i0__"><view class="td _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 disabled="{{!forbidden}}" data-event-opts="{{[['tap',[['next',['$event']]]]]}}" bindtap="__e">下一页</button></view></view></view></view>