Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
4a9c83f1
提交
4a9c83f1
编写于
9月 04, 2020
作者:
zhouweidong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
支持ibz与sys双模式
上级
ac53d8c2
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
18 行增加
和
18 行删除
+18
-18
dept-tree-treeview.vue
.../sys-department/dept-tree-treeview/dept-tree-treeview.vue
+2
-2
org-tree-treeview.vue
.../sys-organization/org-tree-treeview/org-tree-treeview.vue
+2
-2
OUCoreResource.java
...n/java/cn/ibizlab/api/rest/extensions/OUCoreResource.java
+14
-14
未找到文件。
app_web/src/widgets/sys-department/dept-tree-treeview/dept-tree-treeview.vue
浏览文件 @
4a9c83f1
...
@@ -102,11 +102,11 @@
...
@@ -102,11 +102,11 @@
// 判断是否超级用户
// 判断是否超级用户
if
(
user
.
superuser
==
1
)
{
if
(
user
.
superuser
==
1
)
{
// 获取所有组织的部门及下级组织的部门
// 获取所有组织的部门及下级组织的部门
url
=
'
ibzorganizations/alls/suborg/ibz
departments/picker'
;
url
=
'
sysorganizations/alls/suborg/sys
departments/picker'
;
}
else
{
}
else
{
// 获取当前登录人所在组织的部门及下级组织的部门
// 获取当前登录人所在组织的部门及下级组织的部门
if
(
_this
.
curUserContext
&&
_this
.
curUserContext
.
srforgid
)
{
if
(
_this
.
curUserContext
&&
_this
.
curUserContext
.
srforgid
)
{
url
=
'
ibzorganizations/'
+
_this
.
curUserContext
.
srforgid
+
'/suborg/ibz
departments/picker'
;
url
=
'
sysorganizations/'
+
_this
.
curUserContext
.
srforgid
+
'/suborg/sys
departments/picker'
;
}
else
{
}
else
{
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'当前登录人组织为空'
});
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'当前登录人组织为空'
});
}
}
...
...
app_web/src/widgets/sys-organization/org-tree-treeview/org-tree-treeview.vue
浏览文件 @
4a9c83f1
...
@@ -101,10 +101,10 @@
...
@@ -101,10 +101,10 @@
let
url
=
''
;
let
url
=
''
;
if
(
user
.
superuser
==
1
)
{
if
(
user
.
superuser
==
1
)
{
// 获取所有组织
// 获取所有组织
url
=
'
ibz
organizations/alls/suborg/picker'
;
url
=
'
sys
organizations/alls/suborg/picker'
;
}
else
{
}
else
{
if
(
_this
.
curUserContext
&&
_this
.
curUserContext
.
srforgid
)
{
if
(
_this
.
curUserContext
&&
_this
.
curUserContext
.
srforgid
)
{
url
=
'
ibz
organizations/'
+
_this
.
curUserContext
.
srforgid
+
'/suborg/picker'
;
url
=
'
sys
organizations/'
+
_this
.
curUserContext
.
srforgid
+
'/suborg/picker'
;
}
else
{
}
else
{
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'当前登录人组织为空'
});
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'当前登录人组织为空'
});
}
}
...
...
ou-provider/ou-provider-api/src/main/java/cn/ibizlab/api/rest/extensions/OUCoreResource.java
浏览文件 @
4a9c83f1
...
@@ -39,7 +39,7 @@ public class OUCoreResource
...
@@ -39,7 +39,7 @@ public class OUCoreResource
@Autowired
@Autowired
private
ISysDepartmentService
iibzDepartmentService
;
private
ISysDepartmentService
iibzDepartmentService
;
@GetMapping
(
"/ibzemployees/{userId}/oumaps"
)
@GetMapping
(
value
={
"/ibzemployees/{userId}/oumaps"
,
"/sysemployees/{userId}/oumaps"
}
)
public
ResponseEntity
<
Map
<
String
,
Set
<
String
>>>
getOUMapsByUserId
(
@PathVariable
(
"userId"
)
String
userId
)
public
ResponseEntity
<
Map
<
String
,
Set
<
String
>>>
getOUMapsByUserId
(
@PathVariable
(
"userId"
)
String
userId
)
{
{
SysEmployee
emp
=
iibzEmployeeService
.
get
(
userId
);
SysEmployee
emp
=
iibzEmployeeService
.
get
(
userId
);
...
@@ -52,7 +52,7 @@ public class OUCoreResource
...
@@ -52,7 +52,7 @@ public class OUCoreResource
return
ResponseEntity
.
ok
(
this
.
getMaps
(
orgid
,
deptid
));
return
ResponseEntity
.
ok
(
this
.
getMaps
(
orgid
,
deptid
));
}
}
@GetMapping
(
"/ibzdepartments/{deptId}/emp"
)
@GetMapping
(
value
={
"/ibzdepartments/{deptId}/emp"
,
"/sysdepartments/{deptId}/emp"
}
)
public
ResponseEntity
<
Map
>
getEmpByDept
(
@PathVariable
(
"deptId"
)
String
deptId
)
public
ResponseEntity
<
Map
>
getEmpByDept
(
@PathVariable
(
"deptId"
)
String
deptId
)
{
{
Map
map
=
new
LinkedHashMap
<>();
Map
map
=
new
LinkedHashMap
<>();
...
@@ -62,7 +62,7 @@ public class OUCoreResource
...
@@ -62,7 +62,7 @@ public class OUCoreResource
return
ResponseEntity
.
ok
(
map
);
return
ResponseEntity
.
ok
(
map
);
}
}
@GetMapping
(
"/ibzdepartments/{deptId}/fatheremp"
)
@GetMapping
(
value
={
"/ibzdepartments/{deptId}/fatheremp"
,
"/sysdepartments/{deptId}/fatheremp"
}
)
public
ResponseEntity
<
Map
>
getFatherEmpByDept
(
@PathVariable
(
"deptId"
)
String
deptId
)
public
ResponseEntity
<
Map
>
getFatherEmpByDept
(
@PathVariable
(
"deptId"
)
String
deptId
)
{
{
Map
map
=
new
LinkedHashMap
<>();
Map
map
=
new
LinkedHashMap
<>();
...
@@ -72,7 +72,7 @@ public class OUCoreResource
...
@@ -72,7 +72,7 @@ public class OUCoreResource
return
ResponseEntity
.
ok
(
map
);
return
ResponseEntity
.
ok
(
map
);
}
}
@GetMapping
(
"/ibzdepartments/{deptId}/parentemp"
)
@GetMapping
(
value
={
"/ibzdepartments/{deptId}/parentemp"
,
"/sysdepartments/{deptId}/parentemp"
}
)
public
ResponseEntity
<
Map
>
getParentEmpByDept
(
@PathVariable
(
"deptId"
)
String
deptId
)
public
ResponseEntity
<
Map
>
getParentEmpByDept
(
@PathVariable
(
"deptId"
)
String
deptId
)
{
{
Map
map
=
new
LinkedHashMap
<>();
Map
map
=
new
LinkedHashMap
<>();
...
@@ -82,7 +82,7 @@ public class OUCoreResource
...
@@ -82,7 +82,7 @@ public class OUCoreResource
return
ResponseEntity
.
ok
(
map
);
return
ResponseEntity
.
ok
(
map
);
}
}
@GetMapping
(
"/ibzdepartments/{deptId}/subemp"
)
@GetMapping
(
value
={
"/ibzdepartments/{deptId}/subemp"
,
"/sysdepartments/{deptId}/subemp"
}
)
public
ResponseEntity
<
Map
>
getSubEmpByDept
(
@PathVariable
(
"deptId"
)
String
deptId
)
public
ResponseEntity
<
Map
>
getSubEmpByDept
(
@PathVariable
(
"deptId"
)
String
deptId
)
{
{
Map
map
=
new
LinkedHashMap
<>();
Map
map
=
new
LinkedHashMap
<>();
...
@@ -93,7 +93,7 @@ public class OUCoreResource
...
@@ -93,7 +93,7 @@ public class OUCoreResource
}
}
@GetMapping
(
"/ibzorganizations/{orgId}/emp"
)
@GetMapping
(
value
={
"/ibzorganizations/{orgId}/emp"
,
"/sysorganizations/{orgId}/emp"
}
)
public
ResponseEntity
<
Map
>
getEmpByOrg
(
@PathVariable
(
"orgId"
)
String
orgId
)
public
ResponseEntity
<
Map
>
getEmpByOrg
(
@PathVariable
(
"orgId"
)
String
orgId
)
{
{
Map
map
=
new
LinkedHashMap
<>();
Map
map
=
new
LinkedHashMap
<>();
...
@@ -103,7 +103,7 @@ public class OUCoreResource
...
@@ -103,7 +103,7 @@ public class OUCoreResource
return
ResponseEntity
.
ok
(
map
);
return
ResponseEntity
.
ok
(
map
);
}
}
@GetMapping
(
"/ibzorganizations/{orgId}/fatheremp"
)
@GetMapping
(
value
={
"/ibzorganizations/{orgId}/fatheremp"
,
"/sysorganizations/{orgId}/fatheremp"
}
)
public
ResponseEntity
<
Map
>
getFatherEmpByOrg
(
@PathVariable
(
"orgId"
)
String
orgId
)
public
ResponseEntity
<
Map
>
getFatherEmpByOrg
(
@PathVariable
(
"orgId"
)
String
orgId
)
{
{
Map
map
=
new
LinkedHashMap
<>();
Map
map
=
new
LinkedHashMap
<>();
...
@@ -113,7 +113,7 @@ public class OUCoreResource
...
@@ -113,7 +113,7 @@ public class OUCoreResource
return
ResponseEntity
.
ok
(
map
);
return
ResponseEntity
.
ok
(
map
);
}
}
@GetMapping
(
"/ibzorganizations/{orgId}/parentemp"
)
@GetMapping
(
value
={
"/ibzorganizations/{orgId}/parentemp"
,
"/sysorganizations/{orgId}/parentemp"
}
)
public
ResponseEntity
<
Map
>
getParentEmpByOrg
(
@PathVariable
(
"orgId"
)
String
orgId
)
public
ResponseEntity
<
Map
>
getParentEmpByOrg
(
@PathVariable
(
"orgId"
)
String
orgId
)
{
{
Map
map
=
new
LinkedHashMap
<>();
Map
map
=
new
LinkedHashMap
<>();
...
@@ -123,7 +123,7 @@ public class OUCoreResource
...
@@ -123,7 +123,7 @@ public class OUCoreResource
return
ResponseEntity
.
ok
(
map
);
return
ResponseEntity
.
ok
(
map
);
}
}
@GetMapping
(
"/ibzorganizations/{orgId}/subemp"
)
@GetMapping
(
value
={
"/ibzorganizations/{orgId}/subemp"
,
"/sysorganizations/{orgId}/subemp"
}
)
public
ResponseEntity
<
Map
>
getSubEmpByOrg
(
@PathVariable
(
"orgId"
)
String
orgId
)
public
ResponseEntity
<
Map
>
getSubEmpByOrg
(
@PathVariable
(
"orgId"
)
String
orgId
)
{
{
Map
map
=
new
LinkedHashMap
<>();
Map
map
=
new
LinkedHashMap
<>();
...
@@ -133,28 +133,28 @@ public class OUCoreResource
...
@@ -133,28 +133,28 @@ public class OUCoreResource
return
ResponseEntity
.
ok
(
map
);
return
ResponseEntity
.
ok
(
map
);
}
}
@GetMapping
(
"/ibzorganizations/picker"
)
@GetMapping
(
value
={
"/ibzorganizations/picker"
,
"/sysorganizations/picker"
}
)
public
ResponseEntity
<
List
<
OrgNode
>>
getPicker
()
public
ResponseEntity
<
List
<
OrgNode
>>
getPicker
()
{
{
List
<
OrgNode
>
list
=
ouCoreService
.
getOrgNode
(
"alls"
);
List
<
OrgNode
>
list
=
ouCoreService
.
getOrgNode
(
"alls"
);
return
ResponseEntity
.
ok
(
list
);
return
ResponseEntity
.
ok
(
list
);
}
}
@GetMapping
(
"/ibzorganizations/{orgId}/ibzdepartments/picker"
)
@GetMapping
(
value
={
"/ibzorganizations/{orgId}/ibzdepartments/picker"
,
"/sysorganizations/{orgId}/sysdepartments/picker"
}
)
public
ResponseEntity
<
List
<
DeptNode
>>
getOrgDeptPicker
(
@PathVariable
(
"orgId"
)
String
orgId
)
public
ResponseEntity
<
List
<
DeptNode
>>
getOrgDeptPicker
(
@PathVariable
(
"orgId"
)
String
orgId
)
{
{
List
<
DeptNode
>
list
=
ouCoreService
.
getDeptNode
(
orgId
);
List
<
DeptNode
>
list
=
ouCoreService
.
getDeptNode
(
orgId
);
return
ResponseEntity
.
ok
(
list
);
return
ResponseEntity
.
ok
(
list
);
}
}
@GetMapping
(
"/ibzorganizations/{orgId}/suborg/picker"
)
@GetMapping
(
value
={
"/ibzorganizations/{orgId}/suborg/picker"
,
"/sysorganizations/{orgId}/suborg/picker"
}
)
public
ResponseEntity
<
List
<
OrgNode
>>
getSubOrgPicker
(
@PathVariable
(
"orgId"
)
String
orgId
)
public
ResponseEntity
<
List
<
OrgNode
>>
getSubOrgPicker
(
@PathVariable
(
"orgId"
)
String
orgId
)
{
{
List
<
OrgNode
>
list
=
ouCoreService
.
getOrgNode
(
orgId
);
List
<
OrgNode
>
list
=
ouCoreService
.
getOrgNode
(
orgId
);
return
ResponseEntity
.
ok
(
list
);
return
ResponseEntity
.
ok
(
list
);
}
}
@GetMapping
(
"/ibzorganizations/{orgId}/suborg/ibzdepartments/picker"
)
@GetMapping
(
value
={
"/ibzorganizations/{orgId}/suborg/ibzdepartments/picker"
,
"/sysorganizations/{orgId}/suborg/sysdepartments/picker"
}
)
public
ResponseEntity
<
List
<
DeptNode
>>
getSubOrgDeptPicker
(
@PathVariable
(
"orgId"
)
String
orgId
)
public
ResponseEntity
<
List
<
DeptNode
>>
getSubOrgDeptPicker
(
@PathVariable
(
"orgId"
)
String
orgId
)
{
{
List
<
DeptNode
>
list
=
ouCoreService
.
getOrgDeptNode
(
orgId
);
List
<
DeptNode
>
list
=
ouCoreService
.
getOrgDeptNode
(
orgId
);
...
@@ -162,7 +162,7 @@ public class OUCoreResource
...
@@ -162,7 +162,7 @@ public class OUCoreResource
}
}
@GetMapping
(
"/ibzorganizations/{orgId}/ibzemployees/picker"
)
@GetMapping
(
value
={
"/ibzorganizations/{orgId}/ibzemployees/picker"
,
"/sysorganizations/{orgId}/sysemployees/picker"
}
)
public
ResponseEntity
<
List
<
EmpNode
>>
getEmpPicker
(
@PathVariable
(
"orgId"
)
String
orgId
)
public
ResponseEntity
<
List
<
EmpNode
>>
getEmpPicker
(
@PathVariable
(
"orgId"
)
String
orgId
)
{
{
List
<
EmpNode
>
list
=
ouCoreService
.
getEmpNode
(
orgId
);
List
<
EmpNode
>
list
=
ouCoreService
.
getEmpNode
(
orgId
);
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录