Sha256: c53efc87e178c48bc02f37df97ef170a9860861e11a9b0c9f419282532966394

Contents?: true

Size: 1.91 KB

Versions: 99

Compression:

Stored size: 1.91 KB

Contents

<div class="layui-tab" lay-filter="sale_tab">
  <ul class="layui-tab-title">
    <li class="layui-this" data="business">商机</li>
    <li  data="week">周计划</li>
    <li data="weekly">周报</li>
    <li data="month">月计划</li>
    <li data="monthly">月报</li>
  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item   layui-show">
      <%= render 'business' %>
    </div>
    <div class="layui-tab-item">
      <%= render 'weekPlan' %>
    </div>
    <div class="layui-tab-item">
      <%= render 'weekly' %>
    </div>
    <div class="layui-tab-item ">
      <%= render 'monthPlan' %>
    </div>
    <div class="layui-tab-item">
      <%= render 'monthly' %>
    </div>
  </div>
</div>

<script>
  layui.use(['element', 'table', 'jquery'], function () {
    var $ = layui.jquery,
      table = layui.table,
      element = layui.element;
    element.on('tab(sale_tab)', function (data) {
      var status = $(this).attr('data')
      switch (status) {
        case 'week':
           $("#week_table_wraper .layui-table-fixed-r")[0].classList.remove('layui-hide');
           $("#week_table_wraper .layui-table-fixed-r .layui-table-body")[0].style.height="auto";
          break;
        case 'weekly':
          $("#sales_weelky_table .layui-table-fixed-r")[0].classList.remove('layui-hide');
          $("#sales_weelky_table .layui-table-fixed-r .layui-table-body")[0].style.height="auto";
          break;
        ;
        case 'monthly':
          $("#monthly_table_wraper .layui-table-fixed-r")[0].classList.remove('layui-hide');
          $("#monthly_table_wraper .layui-table-fixed-r .layui-table-body")[0].style.height="auto";
          break;
        case 'month':
          $("#month_table_wraper .layui-table-fixed-r")[0].classList.remove('layui-hide');
          $("#month_table_wraper .layui-table-fixed-r .layui-table-body")[0].style.height="auto";
          break;
      }
     
          
    })
  })
 </script>

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
educode_sales-0.9.47 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.46 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.45 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.44 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.43 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.42 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.41 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.40 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.39 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.38 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.37 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.36 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.35 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.34 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.33 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.32 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.31 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.30 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.29 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.28 app/views/educode_sales/recycles/index.html.erb