api.ms.organization.employeerole.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ms-morganization Show documentation
Show all versions of ms-morganization Show documentation
ms-morganization tools Library
/**
*岗位管理
*/
(function() {
/**
* 岗位管理列表
* @param data
* @param func
* @returns
*/
function list(data,func) {
ms.http.get(ms.base + "/people/organization/employeerole/list.do",data
).then(func, (err) => {
console.log(err)
})
}
/**
* 保存岗位管理
* @param data
* @param func
* @returns
*/
function save(data,func) {
ms.http.employeerole(ms.base + "/people/organization/employeerole/saveOrUpdate.do",data,{
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}).then(func, (err) => {
console.log(err)
})
}
let employeerole = {
list:list,
saveOrUpdate:saveOrUpdate,
}
window.ms.people.organization.employeerole = employeerole;
}());