app/views/educode_sales/staffs/edit.html.erb in educode_sales-0.6.9 vs app/views/educode_sales/staffs/edit.html.erb in educode_sales-0.7.0

- old
+ new

@@ -23,11 +23,11 @@ options_for_select(@staff_types, @staff.job_type), { 'lay-filter': 'job_type' } %> </div> </div> <div class="layui-form-item"> - <label class="layui-form-label required">负责区域</label> + <label class="layui-form-label">负责区域</label> <div class="layui-input-block"> <div id="area" class="demo-transfer"></div> </div> </div> <div class="layui-form-item" > @@ -134,13 +134,9 @@ }) var schools = []; sales_list.getValue().forEach(function(d) { schools.push(d.value); }) - if (area_ids.length == 0) { - layer.alert("请选择负责区域"); - return false; - } data.field['school_ids'] = schools; data.field['area_ids'] = area_ids; request.authPut("missions/staffs/" + parent.staff_id, data.field, function (res) { console.log(res.success == false) if (res.success == false) { \ No newline at end of file