app/views/educode_sales/contracts/index.html.erb in educode_sales-0.9.76 vs app/views/educode_sales/contracts/index.html.erb in educode_sales-0.9.77
- old
+ new
@@ -1,22 +1,18 @@
<%= 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() {
@@ -33,11 +29,9 @@
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