Sha256: d574f6b649f77203698ab125d4b8d1768a88fd60d35e657c9ea712b4a8779035

Contents?: true

Size: 2 KB

Versions: 150

Compression:

Stored size: 2 KB

Contents

<script type="text/html" id="user_behaviors_topbar">
  <div class="layui-btn-container">
    <span class="table-label">行为分析</span>
  </div>
</script>
<div class="min-height-table">
  <table class="layui-hide" id="user_behaviors_table" lay-filter="user_behaviors_table"></table>
</div>

<script>
    layui.use(['form', 'table', 'miniPage', 'element', 'request'], function () {
      var $ = layui.jquery,
          form = layui.form,
          table = layui.table,
          request = layui.request,
          miniPage = layui.miniPage;

      table.render({
        elem: '#user_behaviors_table',
        url: '/missions/user_behaviors',
        totalRow:true,
        toolbar: '#user_behaviors_topbar',
        defaultToolbar: [],
        cols: [
          [
            {
              field: 'id',
              title:'序号',
              type: 'numbers',
              width: 60
            },
            {
              field: 'name',
              title: '用户名',
              width: 120,
              sort: true,
            },
            {
              field: 'last_ip',
              title: '上次登录IP',
              width: 120
            },
            {
              field: 'current_ip',
              title: '当前登录IP',
              width: 120
            },
            {
              field: 'last_login_at',
              width: 200,
              title: '上次登录时间',
              sort: true,
            },
            {
              field: 'created_at',
              width: 200,
              title: '当前登录时间',
              sort: true,
            }
          ]
        ],
        limit: 20,
        limits: [10,15,20,30,40,50,60,70,80,90],
        page: true
      });

    var sort = {};
    table.on('sort(user_behaviors_table)', function (obj) {
      sort.field = obj.field;
      sort.order = obj.type;
      table.reload('user_behaviors_table', {
        initSort: obj,
        where: {
          sort: sort
        }
      });
    })
      
    });
</script>

Version data entries

150 entries across 150 versions & 1 rubygems

Version Path
educode_sales-1.10.26 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.25 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.24 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.23 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.22 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.21 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.20 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.19 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.18 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.17 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.16 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.15 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.14 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.13 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.12 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.11 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.10 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.9 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.8 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.7 app/views/educode_sales/user_behaviors/index.html.erb