Sha256: 330c40637a7c6327a20d8f9b7a821e9612e76021aefebbf963db90c53d394d5c
Contents?: true
Size: 1.89 KB
Versions: 60
Compression:
Stored size: 1.89 KB
Contents
<%= Gon::Base.render_data %> <div class="layui-tab" lay-filter="contract_tab"> <ul class="layui-tab-title"> <li class="layui-this follows_li">跟进动态</li> <li class="contracts_list_li">合同列表</li> <% if can? :read_sales_detail, EducodeSales::Business %> <li class="sales_list_li">销售明细</li> <% end %> </ul> <div class="layui-tab-content"> <div class="layui-tab-item follows_div layui-show"> <%=render 'follows' %> </div> <div class="layui-tab-item contracts_list_div"> <div id="contract_list_wraper"></div> </div> <% if can? :read_sales_detail, EducodeSales::Business %> <div class="layui-tab-item sales_list_div"> <div id="sales_list_wraper"></div> </div> <% end %> </div> </div> <script> layui.use(['form', 'table', 'miniPage', 'element', 'request', 'laydate', 'element'], function() { var $ = layui.jquery, form = layui.form, request = layui.request, dropdown = layui.dropdown, miniPage = layui.miniPage, element = layui.element, laydate = layui.laydate; var laydate = layui.laydate; element.render(); element.on('tab(contract_tab)', function(data) { if (data.index == 1 && $("#contract_list").length == 0) { loadPage('/missions/contracts/list') } else if (data.index == 2 && $("#sales_list").length == 0) { loadPage('/missions/sales_details') } }); function loadPage(url) { var layer_index = layer.load(0, {shade: [0.1, '#fff']}); Rails.ajax({ url: url, type: 'GET', dataType: "script", success: function (res) { layer.close(layer_index); } }); } }) </script>
Version data entries
60 entries across 60 versions & 1 rubygems