5 changed files with 105 additions and 17 deletions
@ -0,0 +1,54 @@ |
|||
'use strict'; |
|||
|
|||
import { ApiTable, basicAction } from '$utils' |
|||
|
|||
export function getResourceClassify() {//查询籍贯列表
|
|||
return (dispatch) => basicAction({ |
|||
type: "get", |
|||
dispatch: dispatch, |
|||
actionType: "GET_RESOURCE_CLASSIFY", |
|||
// query: query,
|
|||
url: `${ApiTable.getResourceClassify}`, |
|||
msg: { option: "查询培训资料库目录" }, |
|||
reducer: { name: "resourceClassify" }, |
|||
}); |
|||
} |
|||
|
|||
export function postResourceClassify(data) { |
|||
return (dispatch) => |
|||
basicAction({ |
|||
type: "post", |
|||
dispatch: dispatch, |
|||
data, |
|||
actionType: "POST_RESOURCE_CLASSIFY", |
|||
url: `${ApiTable.postResourceClassify}`, |
|||
msg: { option: "新增" }, |
|||
reducer: { name: "" }, |
|||
}); |
|||
} |
|||
|
|||
export function putResourceClassify(data) { |
|||
return (dispatch) => |
|||
basicAction({ |
|||
type: "put", |
|||
dispatch: dispatch, |
|||
data, |
|||
actionType: "PUT_RESOURCE_CLASSIFY", |
|||
url: `${ApiTable.putResourceClassify}`, |
|||
msg: { option: "修改" }, |
|||
reducer: {}, |
|||
}); |
|||
} |
|||
|
|||
export function delResourceClassify(data) { |
|||
return (dispatch) => |
|||
basicAction({ |
|||
type: "del", |
|||
query: data, |
|||
dispatch: dispatch, |
|||
actionType: "DEL_RESOURCE_CLASSIFY", |
|||
url: `${ApiTable.delResourceClassify}`, |
|||
msg: { option: "删除" }, //删除
|
|||
reducer: {}, |
|||
}); |
|||
} |
Loading…
Reference in new issue