app/views/educode_sales/contracts/index.html.erb in educode_sales-0.9.75 vs app/views/educode_sales/contracts/index.html.erb in educode_sales-0.9.76

- old
+ new

@@ -1,18 +1,22 @@ <%= 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> + <li class="contracts_product_li">产品目录</li> </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> + <div class="layui-tab-item contracts_product_div"> + <div id="contract_product_wraper"></div> + </div> </div> </div> <script> layui.use(['form', 'table', 'miniPage', 'element', 'request', 'laydate', 'element'], function() { @@ -29,9 +33,11 @@ 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 && $("#product_list").length == 0) { + loadPage('/missions/contracts/product_list') } }); function loadPage(url) { \ No newline at end of file