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.74 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.73 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.72 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.71 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.70 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.59 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.58 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.49 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.48 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.46 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.41 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.37 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.36 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.35 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.34 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.33 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.31 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.30 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.29 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-1.10.28 app/views/educode_sales/user_behaviors/index.html.erb