e17c3aa7 by yangjianbin

init

1 parent f410280d
......@@ -117,6 +117,37 @@
}, 0);
return false;
}
var targetUrl = 'department/update/' + treeNode.id;
var data = {
newName:newName
}
$.ajax({
type: 'put',
url: apiBaseUrl + targetUrl,
cache: false,
dataType: 'json',
data: JSON.stringify(data),
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if (data.code != 0) {
layer.alert('操作失败');
} else {
layer.msg('操作成功');
}
setTimeout(function () {
if(!data.code) {
layer_close();
}
},500);
},
error: function () {
layer.alert("操作失败")
}
})
return true;
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!