帮助了 AmazingCounters.com 位小伙伴

更新机构

/**
* 更新机构
* @param data
* @return {function(*=): *}
*/
export function updateOrgStatus(data, status) {
return dispatch =>
requestJSON(
dispatch,
{method: 'PUT', url: `/xxxx/org`, data},
{type: TYPE.UPDATE_ORG, message: `更新机构状态:${status} 成功`},
{type: TYPE.UPDATE_ORG_ERROR, message: `更新机构状态:${status} 失败`})
}

posted on 2016-12-15 16:10  云的旋律  阅读(146)  评论(0)    收藏  举报

导航

前端攻城狮分享群