app/views/educode_sales/contracts/index.html.erb in educode_sales-1.10.49 vs app/views/educode_sales/contracts/index.html.erb in educode_sales-1.10.58
- old
+ new
@@ -1,10 +1,10 @@
<%= 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_list_li" lay-id="contract">合同列表</li>
<% if can? :read_sales_detail, EducodeSales::Business %>
<li class="sales_list_li">销售明细</li>
<% end %>
</ul>
<div class="layui-tab-content">
@@ -27,13 +27,13 @@
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 = layui.element;
element.render();
element.on('tab(contract_tab)', function(data) {
@@ -42,9 +42,12 @@
} else if (data.index == 2 && $("#sales_list").length == 0) {
loadPage('/missions/sales_details')
}
});
+ <% if params[:date_at].present? %>
+ loadPage("/missions/contracts/list?date_at=<%= params[:date_at] %>");
+ <% end %>
function loadPage(url) {
var layer_index = layer.load(0, {shade: [0.1, '#fff']});
Rails.ajax({
url: url,
\ No newline at end of file