Sha256: 6a561a287a680bf12db3fe4be2a9e1ca31db7671b7064e37041b256ab4bf92d3

Contents?: true

Size: 1.9 KB

Versions: 188

Compression:

Stored size: 1.9 KB

Contents

<div class="layui-tab" lay-filter="operation_tab">
  <ul class="layui-tab-title">
    <li class="layui-this" 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 '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(operation_tab)', function (data) {
      var status = $(this).attr('data')
      switch (status) {
        case 'week':
          $("#o_week_table_wraper .layui-table-fixed-r")[0].classList.remove('layui-hide');
          $("#o_week_table_wraper .layui-table-fixed-r .layui-table-body")[0].style.height = "auto";
          break;
        case 'weekly':
          $("#o_sales_weelky_table .layui-table-fixed-r")[0].classList.remove('layui-hide');
          $("#o_sales_weelky_table .layui-table-fixed-r .layui-table-body")[0].style.height = "auto";
          break;;
        case 'monthly':
          $("#o_monthly_table_wraper .layui-table-fixed-r")[0].classList.remove('layui-hide');
          $("#o_monthly_table_wraper .layui-table-fixed-r .layui-table-body")[0].style.height = "auto";
          break;
        case 'month':
          $("#o_month_table_wraper .layui-table-fixed-r")[0].classList.remove('layui-hide');
          $("#o_month_table_wraper .layui-table-fixed-r .layui-table-body")[0].style.height = "auto";
          break;
      }


    })
  })
</script>
<style>
    .layui-table-tool-temp{
        padding-right: 30px; !important;
    }
</style>

Version data entries

188 entries across 188 versions & 1 rubygems

Version Path
educode_sales-0.9.12 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.11 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.10 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.9 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.8 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.7 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.6 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.5 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.4 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.3 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.2 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.1 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.8.9 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.8.7 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.8.6 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.8.5 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.8.4 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.8.3 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.8.2 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.8.1 app/views/educode_sales/operation_plans/index.html.erb