history.wxml 3.8 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="40f6a137-1" left-icon="back" left-text="返回" title="历史数据" data-event-opts="{{[['^clickLeft',[['clickLeft']]]]}}" bind:clickLeft="__e" bind:__l="__l"></uni-nav-bar></view><view class="graph"><view class="canvasbox"><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="selecttimes"><view class="newtimes"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="newtimes_state" bindtap="__e"><view class="oldtimes_left"><image src="../../static/image/prevention/841f87bfd8abb1b09610fa0789f9d8e.png" mode></image>{{'开始时间:'+$root.f0+''}}</view><view class="oldtimes_left"><u-icon vue-id="40f6a137-2" name="arrow-down" bind:__l="__l"></u-icon></view><u-picker vue-id="40f6a137-3" mode="time" params="{{params}}" value="{{pickshow}}" data-event-opts="{{[['^confirm',[['pickone']]],['^input',[['__set_model',['','pickshow','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></u-picker></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="newtimes_end" bindtap="__e"><view class="oldtimes_left"><image src="../../static/image/prevention/1acfe2751c01d3786cdc49b83d7e505.png" mode></image>{{'结束时间:'+$root.f1+''}}</view><view class="oldtimes_left"><u-icon vue-id="40f6a137-4" name="arrow-down" bind:__l="__l"></u-icon></view><u-picker vue-id="40f6a137-5" mode="time" params="{{params}}" value="{{picktwoshow}}" data-event-opts="{{[['^confirm',[['picktwo']]],['^input',[['__set_model',['','picktwoshow','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></u-picker></view><block wx:if="{{tishiTF}}"><view class="tishi _p">请选择正确的结束时间</view></block><view data-event-opts="{{[['tap',[['serter',['$event']]]]]}}" class="btnser" bindtap="__e">搜 索</view></view></view><view class="condition"><scroll-view class="scroll-X" scroll-top="0" scroll-x="true"><view class="table _table"><view class="tr _tr"><view class="th _th">日期</view><block wx:for="{{$root.l0}}" wx:for-item="key" wx:for-index="index"><block wx:if="{{key.$orig}}"><view class="th _th">{{key.g0+")"}}</view></block></block></view><block wx:for="{{$root.l2}}" wx:for-item="items" wx:for-index="index"><block wx:if="{{!forbidden}}"><view class="tr _tr"><view class="td _td">{{items.f2}}</view><block wx:for="{{items.l1}}" wx:for-item="keys" wx:for-index="__i0__"><block wx:if="{{keys.$orig}}"><view class="td _td">{{keys.m0==-99.99?"N/A":keys.m1}}</view></block></block></view></block></block><block wx:if="{{forbidden}}"><view class="tr _tr"><block wx:for="{{10}}" wx:for-item="item" wx:for-index="__i1__"><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></view>