app/views/educode_sales/businesses/new.html.erb in educode_sales-0.3.5 vs app/views/educode_sales/businesses/new.html.erb in educode_sales-0.3.6

- old
+ new

@@ -44,11 +44,11 @@ remoteSearch: true, // 是否启用远程搜索 默认是false,和远程搜索回调保存同步 remoteMethod: function (value, cb) { // 远程搜索的回调函数 if (!value) { return cb([]); } - request.get('educode_sales/search?type=department&q=' + value, {}, function (res) { + request.get('missions/search?type=department&q=' + value, {}, function (res) { return cb(res) }) } }); @@ -58,10 +58,10 @@ //监听提交 form.on('submit(create_business)', function (data) { if (add_department.getValue() == "") { return layer.alert("请选择单位部门") } - request.authPost("educode_sales/businesses", { + request.authPost("missions/businesses", { department_id: add_department.getValue(), name: data.field.name }, function (res) { if (res.success == false) { layer.alert(res.msg) \ No newline at end of file