UNPKG

fx-form-widget

Version:
25 lines 1.01 kB
// import { get, post } from 'tools/httpClient'; 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.get(employeeOrdepartmentMap.get('TREE')); }; _proto.getSearchEmployeeByNameAndPhoneAndEmial = function getSearchEmployeeByNameAndPhoneAndEmial(condition, pageNo) { return httpClient.post(employeeOrdepartmentMap.get('CONDITION'), { condition: condition, customerType: 2, pageNo: pageNo, pageSize: 10 }); }; return EmployeeOrdepartmentStore; }(); export default new EmployeeOrdepartmentStore();