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.32 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.31 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.30 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.29 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.28 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.27 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.26 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.25 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.24 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.23 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.22 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.21 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.20 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.19 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.18 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.17 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.16 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.15 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.14 app/views/educode_sales/operation_plans/index.html.erb
educode_sales-0.9.13 app/views/educode_sales/operation_plans/index.html.erb