diff --git a/src/api/ranger.js b/src/api/ranger.js index da31e6ed918c3bed87be4c0cdb10196491a71c54..9ffcf551a78eac0af373441447692c00a6ea34ea 100644 --- a/src/api/ranger.js +++ b/src/api/ranger.js @@ -71,3 +71,22 @@ export function getExemptionApi(id) { export function updateExemptionApi(data) { return putReq(`/ranger/inspection/api/v1/exemptions`, data); } + +export function addMajorApi(data) { + return postReq(`/ranger/inspection/api/v1/specialities`, data); +} +export function updateMajorApi(data) { + return putReq('/ranger/inspection/api/v1/specialities', data); +} + +export function getMajorInfoApi(id) { + return getReq(`/ranger/inspection/api/v1/specialities/${id}`); +} + +export function getOrganizationUserApi(id) { + return getReq(`/api/v1/users/organizations/${id}`); +} + +export function addSpecialitiesStaffsApi(data) { + return postReq(`/ranger/inspection/api/v1/specialities/staffs`, data); +} diff --git a/src/pages/oceanus/equipment/Left/OrganizationTree.vue b/src/pages/oceanus/equipment/Left/OrganizationTree.vue index da83e55f94b32ad13c499ecac675ae830caf0497..96dc167c563b8d3707bed3e4402a0ddd3af291f1 100644 --- a/src/pages/oceanus/equipment/Left/OrganizationTree.vue +++ b/src/pages/oceanus/equipment/Left/OrganizationTree.vue @@ -12,10 +12,11 @@ @change="onChange" /> - + diff --git a/src/pages/ranger/basic/major/add_member.vue b/src/pages/ranger/basic/major/add_member.vue new file mode 100644 index 0000000000000000000000000000000000000000..5915e562c1c47770cb92bfecfd675cf266a2d7c4 --- /dev/null +++ b/src/pages/ranger/basic/major/add_member.vue @@ -0,0 +1,80 @@ + + + diff --git a/src/pages/ranger/basic/major/index.js b/src/pages/ranger/basic/major/index.js new file mode 100644 index 0000000000000000000000000000000000000000..65e6b7ac8be7b3cdd19dfcbd0fd73f92df8aa640 --- /dev/null +++ b/src/pages/ranger/basic/major/index.js @@ -0,0 +1,3 @@ +import Index from './index.vue'; + +export default Index; diff --git a/src/pages/ranger/basic/major/index.vue b/src/pages/ranger/basic/major/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..26eac089c647c5764b4572f4c7deb30eac6e2b79 --- /dev/null +++ b/src/pages/ranger/basic/major/index.vue @@ -0,0 +1,73 @@ + + + diff --git a/src/pages/ranger/basic/major/member.vue b/src/pages/ranger/basic/major/member.vue new file mode 100644 index 0000000000000000000000000000000000000000..841702b8db3b676c4938dd589b8315114f6b746b --- /dev/null +++ b/src/pages/ranger/basic/major/member.vue @@ -0,0 +1,63 @@ + + + diff --git a/src/router/config.js b/src/router/config.js index f5dae7107f6af4d48d53c3edee4cc2e2ba613bfb..078e169bd5777923513dc7df54d3d2ca0e1f7e85 100644 --- a/src/router/config.js +++ b/src/router/config.js @@ -80,6 +80,11 @@ const hasAuthorityRoutes = [ name: '单元配置', component: () => import('@/pages/ranger/basic/unit'), }, + { + path: 'major', + name: '专业配置', + component: () => import('@/pages/ranger/basic/major'), + }, { path: 'item',