<page-plugin isAuth="{{authInfo['SF_ERP_LOG_VIEW']}}" loading="{{loading}}" is-login="{{isLogin}}"
  bind:handleLogin="handleLogin">
  <search-popup placeholder="输入操作账号" bind:change="searchChange" bind:ok="searchOk"
    bind:reset="searchReset" value="{{params.login_name}}" data-key="login_name">
    <view slot="content">
      <search-input label="操作IP" value="{{params.client_ip}}" data-key="client_ip"
        bind:change="searchChange" />

      <date-picker-plugin title="操作开始日期" value="{{params.create_dateL}}" data-key="create_dateL"
        bind:confirm="searchChange" />
      <date-picker-plugin title="操作结束日期" value="{{params.create_dateU}}" data-key="create_dateU"
        bind:confirm="searchChange" />
    </view>
  </search-popup>

  <count-plugin count="{{count}}">
    <!-- <sort-plugin options="{{sort}}" bind:ok="onSort" value="{{params.order}}" slot="right" /> -->
  </count-plugin>

  <empty-plugin wx:if="{{list.length == 0}}" />
  <card-plugin wx:for="{{ list }}" wx:key="log_id" showAll="{{true}}">
    <view slot="header">{{ item.menu_ch_name }}({{item.function_ch_name}})</view>
    <view slot="content">
      <card-item-plugin label="操作详情" value="{{item.content}}" />
      <card-item-plugin label="操作账号">
        <view slot="value">
          {{item.login_name}}
          <text wx:if="{{item.nick_name}}">({{item.nick_name}})</text>
        </view>
      </card-item-plugin>
      <card-item-plugin label="操作IP" value="{{item.client_ip}}" />
      <card-item-plugin label="操作时间" value="{{item.create_date}}" />
    </view>
  </card-plugin>
  <pagination-plugin curr_page="{{params.curr_page}}" page_count="{{params.page_count}}"
    total="{{count}}" bind:change="paginationChange" />
</page-plugin>