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-0.9.72 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.71 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.70 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.69 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.68 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.67 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.66 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.65 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.64 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.63 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.62 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.61 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.60 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.59 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.58 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.57 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.56 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.55 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.54 app/views/educode_sales/user_behaviors/index.html.erb
educode_sales-0.9.53 app/views/educode_sales/user_behaviors/index.html.erb