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