app/views/educode_sales/ideas/new.html.erb in educode_sales-1.10.37 vs app/views/educode_sales/ideas/new.html.erb in educode_sales-1.10.41

- old
+ new

@@ -3,10 +3,16 @@ <div class="layui-form layuimini-form"> <div class="layui-form-item" style="padding: 25px"> <div class="layui-row"> <h2 style="padding-left: 25px">方案信息</h2> </div> + <div class="layui-col-md6" style="display: none"> + <labeL class="layui-form-label">部门:</labeL> + <div class="layui-input-block"> + <div id="department_id" style="width: 600px;"></div> + </div> + </div> <div class="layui-row" style="padding-top: 15px"> <div class="layui-col-md6"> <labeL class="layui-form-label">单位联系人:</labeL> <div class="layui-input-block"> <input type="text" name="manager_name" autocomplete="off" placeholder="请输入单位联系人" value="<%= @idea&.manager_name %>" class="layui-input"> @@ -417,25 +423,24 @@ school_list.getValue().forEach(function (d) { schools.push(d.value); }) data.field.school_id = schools[0]; - var departments = []; - department_list.getValue().forEach(function (d) { - departments.push(d.value); - }) - data.field.department_id = departments[0]; + // var departments = []; + // department_list.getValue().forEach(function (d) { + // departments.push(d.value); + // }) + // data.field.department_id = departments[0]; var business = []; business_list.getValue().forEach(function (d) { business.push(d.value); }) data.field.business_id = business[0]; data.field.staff_id = staff_list.getValue('valueStr'); data.field.sale_staff_id = sale_staff_list.getValue('valueStr'); data.field.assist_staff_ids = assist_staff_list.getValue('valueStr'); data.field.other_staff_ids = other_staff_list.getValue('valueStr'); data.field.attachment_ids = attachment_list.getValue('valueStr'); - data.field.school_id = school_list.getValue('valueStr'); request.authPost("missions/ideas/", data.field, function (res) { if (res.success == false) { layer.alert(res.msg) } else { layer.close(parent.add_idea_index); \ No newline at end of file