'use strict'; import { basicAction } from '@peace/utils' import { ApiTable } from '$utils' export function getFundamental() { return dispatch => basicAction({ type: 'get', dispatch: dispatch, actionType: 'GET_DATA', url: ApiTable.getFundamental, msg: { error: '获取数据失败' }, reducer: { name: 'datas' } }); } export function getsortord(zuo, day) { return dispatch => basicAction({ type: 'get', dispatch: dispatch, actionType: 'GET_PATIENTIA', url: ApiTable.getsortord.replace('{zuo}', zuo).replace('{day}', day), msg: { error: '日期更新失败' }, reducer: { name: 'Patientia' } }); } export default { getFundamental, getsortord }