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.67 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.66 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.65 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.64 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.63 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.62 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.61 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.60 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.59 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.58 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.57 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.56 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.55 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.54 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.53 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.52 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.51 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.50 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.49 app/views/educode_sales/recycles/index.html.erb
educode_sales-0.9.48 app/views/educode_sales/recycles/index.html.erb