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

Version Path
educode_sales-1.10.19 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.18 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.17 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.16 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.15 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.14 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.13 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.12 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.11 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.10 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.9 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.8 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.7 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.6 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.5 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.3 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.2 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.1 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.10.0 app/views/educode_sales/contracts/index.html.erb
educode_sales-1.0.9 app/views/educode_sales/contracts/index.html.erb