diff --git a/src/api/organization.js b/src/api/organization.js new file mode 100644 index 0000000000000000000000000000000000000000..db072271a82ef7a7efc203aa2da47329b1a38857 --- /dev/null +++ b/src/api/organization.js @@ -0,0 +1,26 @@ +import { delReq, getReq, postReq, putReq } from '@/utils'; + +// export function delMenuApi(id) { +// return delReq(`/api/v1/menus/${id}`); +// } + +// export function getMenuDataApi() { +// return getReq('/api/v1/menus'); +// } + +// export function addMenuApi(data) { +// return postReq('/api/v1/menus', data); +// } + +function addJobsApi(data) { + return postReq('/api/v1/jobs', data); +} + +function updateJobsApi(data) { + return putReq('/api/v1/jobs', data); +} + +export default { + add: addJobsApi, + update: updateJobsApi, +}; diff --git a/src/pages/system/view/organization/jobmanagement/JobManagement.vue b/src/pages/system/view/organization/jobmanagement/JobManagement.vue new file mode 100644 index 0000000000000000000000000000000000000000..55c4e51dd4bcaf41568e819b49315076c8faaeb2 --- /dev/null +++ b/src/pages/system/view/organization/jobmanagement/JobManagement.vue @@ -0,0 +1,45 @@ + + \ No newline at end of file diff --git a/src/pages/system/view/organization/jobmanagement/form.vue b/src/pages/system/view/organization/jobmanagement/form.vue new file mode 100644 index 0000000000000000000000000000000000000000..98fab55944c0d991632e68e1297bc51e92e4c25d --- /dev/null +++ b/src/pages/system/view/organization/jobmanagement/form.vue @@ -0,0 +1,49 @@ + + + diff --git a/src/pages/system/view/organization/jobmanagement/index.js b/src/pages/system/view/organization/jobmanagement/index.js new file mode 100644 index 0000000000000000000000000000000000000000..199f40f1434ec22234692d530c4fdedcc141cc70 --- /dev/null +++ b/src/pages/system/view/organization/jobmanagement/index.js @@ -0,0 +1,3 @@ +import JobManagement from './JobManagement'; + +export default JobManagement; diff --git a/src/router/config.js b/src/router/config.js index a8a15b9a5bc324544425985af4607193e3887df5..0c1462f47ed92d71add1c9ff0cde86ed409de0d3 100644 --- a/src/router/config.js +++ b/src/router/config.js @@ -73,7 +73,14 @@ const options = { { path: 'organization_management', name: '组织管理', - component: () => import('@/pages/system/view/organization'), + component: BlankTemplateView, + children: [ + { + path: 'job_management', + name: '岗位管理', + component: () => import('@/pages/system/view/organization/jobmanagement'), + }, + ], }, { path: 'user_management', diff --git a/src/utils/requestUtil.js b/src/utils/requestUtil.js index bb0ad299545981d48af1864093e7bda6ba2d307f..db07c9ed5b054fa06d0aa5fced934e9140464d89 100644 --- a/src/utils/requestUtil.js +++ b/src/utils/requestUtil.js @@ -145,6 +145,10 @@ function postReq(url, data, config) { return request(url, METHOD.POST, data, config); } +function putReq(url, data, config) { + return request(url, METHOD.PUT, data, config); +} + export { METHOD, request, @@ -156,4 +160,5 @@ export { delReq, getReq, postReq, + putReq, };