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-1.10.74 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.73 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.72 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.71 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.70 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.59 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.58 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.49 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.48 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.46 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.41 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.37 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.36 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.35 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.34 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.33 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.31 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.30 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.29 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-1.10.28 app/views/educode_sales/operation_plans/index.html.erb