UNPKG

fx-form-widget

Version:
23 lines 910 B
import { employeeOrdepartmentMap } from '../api'; import httpClient from '../../../config/httpClient'; var EmployeeOrdepartmentStore = /*#__PURE__*/function () { function EmployeeOrdepartmentStore() {} var _proto = EmployeeOrdepartmentStore.prototype; _proto.getSearchResultByname = function getSearchResultByname(name) { return httpClient.post(employeeOrdepartmentMap.get('SEARCH'), { name: name }); }; _proto.getEmployeeOrdepartmentTree = function getEmployeeOrdepartmentTree() { return httpClient.post(employeeOrdepartmentMap.get('TREE'), { companyId: '' }); }; _proto.getSearchEmployeeByNameAndPhoneAndEmial = function getSearchEmployeeByNameAndPhoneAndEmial(name, pageNo) { return httpClient.post(employeeOrdepartmentMap.get('CONDITION'), { name: name }); }; return EmployeeOrdepartmentStore; }(); export default new EmployeeOrdepartmentStore();