You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
764 B
30 lines
764 B
3 years ago
|
'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
|
||
|
}
|