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

- old
+ new

@@ -45,11 +45,11 @@ remoteMethod: function (value, cb) { // 远程搜索的回调函数 if (!value) { department_id = ""; 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) }) } }); @@ -60,10 +60,10 @@ form.on('submit(edit_business)', function (data) { if (department.getValue() == "" && department_id == "") { layer.alert("请选择单位部门") return false; } else { - request.authPut("educode_sales/businesses/" + parent.id, { + request.authPut("missions/businesses/" + parent.id, { department_id: department.getValue() || department_id, name: data.field.name }, function (res) { if (res.success == false) { layer.alert(res.msg) \ No newline at end of file