app/views/educode_sales/customers/index.html.erb in educode_sales-0.5.9 vs app/views/educode_sales/customers/index.html.erb in educode_sales-0.6.0

- old
+ new

@@ -14,11 +14,11 @@ </div> </div> <div class="layui-inline"> <label class="layui-form-label">负责人</label> <div class="layui-input-inline"> - <%= select_tag "staff_id", options_for_select(@staffs), { include_blank: true } %> + <%= select_tag "staff_id", options_for_select(@staffs,params[:staff_id]), { include_blank: true } %> </div> </div> <div class="layui-inline"> <label class="layui-form-label">最后跟进</label> <div class="layui-input-inline"> @@ -27,11 +27,11 @@ </div> <div class="layui-inline"> <button type="reset" class="layui-btn layui-btn-primary" lay-submit lay-filter="reset_business_search">重置 </button> - <button type="submit" class="layui-btn layui-btn-primary" lay-submit lay-filter="search_teachers">搜 索 + <button type="submit" class="layui-btn layui-btn-primary" id="search_bt" lay-submit lay-filter="search_teachers">搜 索 </button> </div> </div> </form> </div> @@ -85,10 +85,17 @@ miniPage = layui.miniPage, laydate = layui.laydate; var laydate = layui.laydate; + function hn(){ + $("#search_bt").trigger("click"); + } + $(document).ready(function(){ + window.onload=hn; + }); + laydate.render({ elem: '#date', range: true }); laydate.render({ @@ -112,11 +119,10 @@ title:'序号',type: 'numbers', }, { field: 'name', - width: 160, title: '客户名称', templet: "#name" }, { field: 'area', @@ -141,21 +147,21 @@ title: '跟进次数', templet: "#follow" }, { field: 'last_follow_time', - width: 160, + width: 170, title: '最后跟进时间', }, { field: 'staff', width: 100, title: '负责人', }, { title: '操作', - minWidth: 170, + width: 300, toolbar: '#currentTableBar', align: "center", fixed: 'right' } ] @@ -249,14 +255,15 @@ date: "", attitude: "", name: "", professional_title: "", regist_at: "", + staff_id: "", status: "", school: "", assist: "", teacher_source: "" - }) + }); return false; }); /** * toolbar事件监听 */ \ No newline at end of file