<!-- 过滤器 --> 
<wxs module="filter" src="../../utils/filters.wxs"></wxs> 
<cu-custom bgColor="bg-gradual-blue" > 
  <block bindtap="" slot="backText" >返回</block> 
  <view slot="content">操作日志</view> 
</cu-custom> 
<view class="padding-sm bg-white radius shadow shadow-lg" style="padding-bottom:0;"> 
<view class="flex flex-wrap"> 
<view class="basis-xl text-df padding-top-xs "> 
   操作日志共{{sum}}条  
  <text class="padding-right"></text>过滤后{{filtcount}}条 
</view> 
 
<view style="flex-basis:100% " class="flex padding-top-xs"> 
        <view class="margin-right-xs text-df">酒店：</view> 
        <picker class="text-df"  mode="selector"  value="{{index}}" bindchange="bindPickerChange" range="{{Hotelslist}}"> 
            <view class="picker text-green" > 
            {{Hotelslist[index]}} 
            </view> 
        </picker> 
  </view> 
 
    <!-- 人脸机筛选 --> 
  <view style="flex-basis:100% " class="flex padding-top-xs"> 
    <view bindtap="selapptype"  data-val="-1" class="padding-right  padding-left  {{apptype==-1?'bg-green':''}}   margin-right-xs text-df">全部</view> 
    <view bindtap="selapptype"  data-val="0" class="padding-right  padding-left  {{apptype==0?'bg-green':''}}   margin-right-xs text-df">RCU主机绑定信息</view> 
    <view bindtap="selapptype"  data-val="1" class="padding-right  padding-left  {{apptype==1?'bg-green':''}}   margin-right-xs text-df">人脸机绑定信息</view> 
  </view> 
 
    <!-- 时间筛选 --> 
  <view style="flex-basis:100% " class="flex padding-top-xs"> 
    <view bindtap="seltime" data-val="4" class="padding-right  padding-left  {{seltime==4?'bg-green':''}}   margin-right-xs text-df">全部</view> 
    <view bindtap="seltime"  data-val="1" class="padding-right  padding-left {{seltime==1?'bg-green':''}}  margin-right-xs  text-df">今日</view> 
    <view bindtap="seltime" data-val="2" class="padding-right  padding-left  {{seltime==2?'bg-green':''}}  margin-right-xs text-df">本周</view> 
    <view bindtap="seltime"  data-val="3" class="padding-right  padding-left  {{seltime==3?'bg-green':''}}   margin-right-xs text-df">本月</view> 
    <view bindtap="seltime"  data-val="5" class="padding-right  padding-left  {{seltime==5?'bg-green':''}}   margin-right-xs text-df">指定时间</view> 
  </view> 
 
  <view style="flex-basis:100% " class="flex padding-top-xs"> 
        <view class="margin-right-xs text-df">起始时间：</view> 
    <picker mode="date" class="text-df"  data-type = "1" bindchange="bindTimeChange" :value="starttime"  > 
            <view class="picker text-green"> 
                {{starttime==""?"请选择":starttime}} 
            </view> 
        </picker> 
        <view class="margin-left-sm margin-right-xs text-df">截止时间：</view> 
    <picker start="{{starttime}}" mode="date" class="text-df"  bindchange="bindTimeChange" data-type="2"  :value="endtime"  > 
            <view class="picker text-green"> 
                {{endtime==""?"请选择":endtime}} 
            </view> 
        </picker> 
  </view> 
  <view style="flex-basis:100% " class="flex padding-top-xs align-center"> 
        <view class="margin-right-xs text-df">用户名：</view> 
        <input  style="border-bottom: 2rpx solid #ccc !important;" class="text-df padding-right  padding-left  margin-right-xs" placeholder="搜索用户" name="input" model:value="{{name}}"></input> 
    <view bindtap="sreach" class="padding-right  padding-left  bg-green  text-df">搜素</view> 
    </view> 
<!-- <view  class="basis-sm">当前第{{page}}页</view> --> 
</view> 
<view class="bg-gray margin-xs" style="padding:2rpx"  ></view> 
<view id="scroll"> 
<scroll-view wx:if="{{topheight>0}}" style="height:{{topheight==null?'600rpx':topheight+'px'}} ;padding-bottom:10rpx"   refresher-background="white"  refresher-default-style="black"  scroll-y  refresher-enabled="{{true}}" 
    refresher-triggered="{{refresher}}" bindscrolltolower="MoreData"   bindrefresherrefresh="toupper"> 
<view wx:for="{{logsdata}}" class="flex flex-wrap border-bottom"> 
<view class="basis-lg">{{item.Id}}<text class="margin-left-xs"></text>{{item.uid}}<text class="margin-left-xs"></text> {{filter.TimeFormat(item.createtime)}}</view> 
<view  class="basis-sm text-right">{{item.ActionId}}<text class='margin-left-xs text-{{item.type==0?"green":"red"}}'>{{item.AppType==0?"RCU":"人脸机"}}{{item.type==0?"绑定":"解绑"}}</text></view> 
<!-- <view  class="basis-df">行为:{{item.type==0?"绑定":"解绑"}}</view> --> 
<view  class="basis-xl">酒店:<text class='text-{{item.type==0?"green":"red"}}'>{{item.Name}}</text></view> 
<view  class="basis-sm">房间号:<text class='text-{{item.type==0?"green":"red"}}'>{{item.roomNumber}} - {{item.roomID}}</text></view> 
<view  class="basis-lg">{{item.AppType==0?"MAC":"SN"}}:<text class='text-{{item.type==0?"green":"red"}}'>{{item.MAC}}</text></view> 
<view  class="basis-xl">地点:{{item.location}}</view> 
<view class="bg-gray margin-xs" style="padding:2rpx; width:100%" ></view> 
</view> 
<view class="cu-load bg-blue light loading" wx:if="{{status==1}}"></view> 
<view class="cu-load bg-blue light over" wx:if="{{status==3}}"></view> 
<view class="cu-load bg-red light erro " wx:if="{{status==2}}"></view> 
</scroll-view> 
</view> 
</view> 
