Sha256: 7f1f09012c8f783dd8054da15c75eb53a1743e8b67450ae0067fdaa92a703b5b

Contents?: true

Size: 1.88 KB

Versions: 7

Compression:

Stored size: 1.88 KB

Contents

<div class="section">
  <h4><span>销售人员列表</span></h4>
  <hr>
  <table class="layui-hide" id="table"></table>
</div>
<script type="text/html" id="toolbarDemo">
  <div class="layui-btn-container">
    <button class="layui-btn layui-btn-sm" lay-event="getCheckData">添加</button>
  </div>
</script>
<script type="text/html" id="business_a">
  <div class="layui-text">
   <a href="/missions/businesses?clazz_id={{d.a_clazz_id}}&staff_id={{d.id}}">{{d.business_a}}</a>
  </div>
</script>
<script type="text/html" id="business_b">
  <div class="layui-text">
    <a href="/missions/businesses?clazz_id={{d.b_clazz_id}}&staff_id={{d.id}}">{{d.business_b}}</a>
  </div>
</script>
<script>
  layui.use('table', function () {
    var table = layui.table;

    table.render({
      elem: '#table',
      url: '/missions/sales',
      cellMinWidth: 80,
        totalRow:true,
      cols: [
        [{
            field: 'id',
            title:'序号',type: 'numbers',
            totalRowText:'合计',
            width: 80
          }, {
            field: 'name',
            title: '姓名',
            width: 100
          }, {
            field: 'area',
            title: '负责区域',
          }, {
            field: 'business_a',
            title: 'A类商机',
            templet: "#business_a",
            totalRow:true,
            width: 120
          }, {
            field: 'business_b',
            title: 'B类商机',
            templet: "#business_b",
            totalRow:true,
            width: 120
          }, {
            field: 'goal',
            title: '中标金额',
            totalRow:true,
            width: 120
          }, {
            field: 'return_money',
            title: '回款',
            totalRow:true,
            width: 120
          }
        ]
      ],
      limit: 20,
          limits: [10,15,20,30,40,50,60,70,80,90],
      page: true
    });
  });
</script>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
educode_sales-0.5.1 app/views/educode_sales/sales/index.html.erb
educode_sales-0.5.0 app/views/educode_sales/sales/index.html.erb
educode_sales-0.4.9 app/views/educode_sales/sales/index.html.erb
educode_sales-0.4.8 app/views/educode_sales/sales/index.html.erb
educode_sales-0.4.7 app/views/educode_sales/sales/index.html.erb
educode_sales-0.4.6 app/views/educode_sales/sales/index.html.erb
educode_sales-0.4.5 app/views/educode_sales/sales/index.html.erb