diff --git a/.env.development b/.env.development index 6f1e63f..4b1f5f2 100644 --- a/.env.development +++ b/.env.development @@ -2,10 +2,10 @@ ENV = 'development' # 若依管理系统/开发环境 -VUE_APP_BASE_API = 'http://121.36.65.171:9527' +#VUE_APP_BASE_API = 'http://121.36.65.171:9527' VUE_APP_H5_QR = 'http://172.119.51.218/h5/invitation.html' VUE_APP_H5_INFO = 'http://172.119.51.218/h5/info.html' -#VUE_APP_BASE_API = 'http://172.119.50.32:9527' +VUE_APP_BASE_API = 'http://172.119.50.181:9527' # 路由懒加载 diff --git a/src/api/company/companyDept.js b/src/api/company/companyDept.js new file mode 100644 index 0000000..0f617f6 --- /dev/null +++ b/src/api/company/companyDept.js @@ -0,0 +1,65 @@ + + +import request from '@/utils/request' + +// 申请加入组织列表 +export function applyToJoinList(query) { + return request({ + url: '/system/dept/applyToJoinList', + method: 'post', + data: query + }) +} +// 根据cryptoDeptId查看组织 +export function getDeptByCryptoDeptId(query) { + return request({ + url: '/system/dept/getDeptByCryptoDeptId', + method: 'post', + data: query + }) + } + + + // 审核申请加入组织列表 +export function applyToJoin(query) { + return request({ + url: '/system/dept/applyToJoin', + method: 'post', + data: query + }) + } +// 申请加入组织列表 +export function selfCreatedList(query) { + return request({ + url: '/system/dept/selfCreatedList', + method: 'post', + data: query + }) +} + + // 创建根节点 +export function createNewRootNode(query) { + return request({ + url: '/system/dept/createNewRootNode', + method: 'post', + data: query + }) + } + +// 同意申请加入组织 +export function agreeApplyToJoin(query) { + return request({ + url: '/system/dept/agreeApplyToJoin', + method: 'post', + data: query + }) + } + +// 拒绝申请加入组织 +export function refuseApplyToJoin(query) { + return request({ + url: '/system/dept/refuseApplyToJoin', + method: 'post', + data: query + }) +} diff --git a/src/views/company/dept.vue b/src/views/company/dept.vue new file mode 100644 index 0000000..4d45e12 --- /dev/null +++ b/src/views/company/dept.vue @@ -0,0 +1,254 @@ + + + \ No newline at end of file diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index e1baa58..53cfe3b 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -48,6 +48,7 @@ :tree-props="{children: 'children', hasChildren: 'hasChildren'}" > +