import {
	WeaTools
} from 'ecCom';

/**
 * 获取tab数据
 * @param  {Object} params [description]
 * @return {[type]}        [description]
 */
export const getFormInfo = (params = {}) => WeaTools.callApi('/api/hrm/permissionsearch/getPermissionSearchForm', 'GET', params)

export const getTableData = (params = {}) => WeaTools.callApi('/api/hrm/permissionsearch/getPermissionSearchResult', 'POST', params)

export const getCondition = (urlParams, params) => WeaTools.callApi(`/api/hrm/permissiontoadjustbrowser/condition/${urlParams}`, 'GET', params)

export const getList = (urlParams, params) => WeaTools.callApi(`/api/hrm/permissiontoadjustbrowser/list/${urlParams}`, 'GET', params)

export const initModuleData = (urlParams, params) => Promise.all([getCondition(urlParams), getList(urlParams, params)])