All Downloads are FREE. Search and download functionalities are using the official Maven repository.

api.ms.organization.employeerole.js Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
/**
 *岗位管理
 */
(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;
}());




© 2015 - 2024 Weber Informatics LLC | Privacy Policy