Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
858b047e
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
858b047e
编写于
7月 02, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整选人组件的回调
上级
27cf4a71
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
64 addition
and
38 deletion
+64
-38
o2web/source/x_component_Selector/Identity.js
o2web/source/x_component_Selector/Identity.js
+64
-38
未找到文件。
o2web/source/x_component_Selector/Identity.js
浏览文件 @
858b047e
...
@@ -447,10 +447,6 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
...
@@ -447,10 +447,6 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
if
(
this
.
subItems
)
this
.
subItems
.
push
(
item
);
if
(
this
.
subItems
)
this
.
subItems
.
push
(
item
);
object
[
idSubData
.
id
||
idSubData
.
distinguishedName
]
=
true
;
object
[
idSubData
.
id
||
idSubData
.
distinguishedName
]
=
true
;
}
}
if
(
!
this
.
selector
.
options
.
expandSubEnable
){
this
.
loaded
=
true
;
if
(
callback
)
callback
();
}
}.
bind
(
this
));
}.
bind
(
this
));
}.
bind
(
this
));
}.
bind
(
this
));
...
@@ -463,8 +459,11 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
...
@@ -463,8 +459,11 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
}
}
}.
bind
(
this
));
}.
bind
(
this
));
this
.
loaded
=
true
;
this
.
loaded
=
true
;
if
(
callback
)
callback
();
if
(
callback
)
callback
();
}.
bind
(
this
),
null
,
this
.
data
.
distinguishedName
);
}.
bind
(
this
),
null
,
this
.
data
.
distinguishedName
);
}
else
{
this
.
loaded
=
true
;
if
(
callback
)
callback
();
}
}
}
else
{
}
else
{
...
@@ -475,10 +474,6 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
...
@@ -475,10 +474,6 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
this
.
selector
.
items
.
push
(
item
);
this
.
selector
.
items
.
push
(
item
);
if
(
this
.
subItems
)
this
.
subItems
.
push
(
item
);
if
(
this
.
subItems
)
this
.
subItems
.
push
(
item
);
}
}
if
(
!
this
.
selector
.
options
.
expandSubEnable
){
this
.
loaded
=
true
;
if
(
callback
)
callback
();
}
}.
bind
(
this
));
}.
bind
(
this
));
if
(
this
.
selector
.
options
.
expandSubEnable
){
if
(
this
.
selector
.
options
.
expandSubEnable
){
...
@@ -492,6 +487,9 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
...
@@ -492,6 +487,9 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
this
.
loaded
=
true
;
this
.
loaded
=
true
;
if
(
callback
)
callback
();
if
(
callback
)
callback
();
}.
bind
(
this
),
null
,
this
.
data
.
distinguishedName
);
}.
bind
(
this
),
null
,
this
.
data
.
distinguishedName
);
}
else
{
this
.
loaded
=
true
;
if
(
callback
)
callback
();
}
}
}.
bind
(
this
),
null
,
this
.
data
.
distinguishedName
);
}.
bind
(
this
),
null
,
this
.
data
.
distinguishedName
);
}
}
...
@@ -583,8 +581,8 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
...
@@ -583,8 +581,8 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
}
}
this
.
itemLoaded
=
true
;
this
.
itemLoaded
=
true
;
}.
bind
(
this
));
}.
bind
(
this
));
if
(
callback
)
callback
();
}.
bind
(
this
));
}.
bind
(
this
));
if
(
callback
)
callback
();
}
else
{
}
else
{
this
.
selector
.
orgAction
.
listIdentityWithUnit
(
function
(
idJson
){
this
.
selector
.
orgAction
.
listIdentityWithUnit
(
function
(
idJson
){
idJson
.
data
.
each
(
function
(
idSubData
){
idJson
.
data
.
each
(
function
(
idSubData
){
...
@@ -968,8 +966,22 @@ MWF.xApplication.Selector.Identity.Include = new Class({
...
@@ -968,8 +966,22 @@ MWF.xApplication.Selector.Identity.Include = new Class({
this
.
itemAreaNode
=
$
(
itemAreaNode
);
this
.
itemAreaNode
=
$
(
itemAreaNode
);
this
.
orgAction
=
MWF
.
Actions
.
get
(
"
x_organization_assemble_control
"
);
this
.
orgAction
=
MWF
.
Actions
.
get
(
"
x_organization_assemble_control
"
);
},
},
load
:
function
(){
load
:
function
(
callback
){
if
(
!
this
.
options
.
include
||
this
.
options
.
include
.
length
===
0
)
return
;
if
(
!
this
.
options
.
include
||
this
.
options
.
include
.
length
===
0
){
this
.
fireEvent
(
"
afterLoad
"
);
if
(
callback
)
callback
();
return
;
}
var
count
=
0
;
var
checkCallback
=
function
()
{
count
++
;
if
(
count
===
this
.
options
.
include
.
length
){
this
.
fireEvent
(
"
afterLoad
"
);
if
(
callback
)
callback
();
}
}.
bind
(
this
);
this
.
includeAreaNode
=
new
Element
(
"
div.includeAreaNode
"
).
inject
(
this
.
itemAreaNode
,
"
top
"
);
this
.
includeAreaNode
=
new
Element
(
"
div.includeAreaNode
"
).
inject
(
this
.
itemAreaNode
,
"
top
"
);
...
@@ -996,34 +1008,41 @@ MWF.xApplication.Selector.Identity.Include = new Class({
...
@@ -996,34 +1008,41 @@ MWF.xApplication.Selector.Identity.Include = new Class({
if
(
flag
===
"
u
"
){
if
(
flag
===
"
u
"
){
this
.
orgAction
.
listUnitByKey
(
function
(
json
){
this
.
orgAction
.
listUnitByKey
(
function
(
json
){
this
.
loadUnitItem
(
json
,
container
,
null
,
null
,
flatCategoryContainer
);
this
.
loadUnitItem
(
json
,
container
,
null
,
null
,
flatCategoryContainer
);
}.
bind
(
this
),
null
,
d
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
);
}
else
if
(
flag
===
"
i
"
)
{
}
else
if
(
flag
===
"
i
"
)
{
this
.
orgAction
.
listIdentityByKey
(
function
(
json
)
{
this
.
orgAction
.
listIdentityByKey
(
function
(
json
)
{
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
)
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
);
}.
bind
(
this
),
null
,
d
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
);
}
else
if
(
flag
===
"
g
"
){
}
else
if
(
flag
===
"
g
"
){
this
.
orgAction
.
listGroupByKey
(
function
(
json
){
this
.
orgAction
.
listGroupByKey
(
function
(
json
){
this
.
loadGroupItem
(
json
,
container
,
null
,
null
,
flatCategoryContainer
)
this
.
loadGroupItem
(
json
,
container
,
null
,
null
,
flatCategoryContainer
);
}.
bind
(
this
),
null
,
d
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
);
}
else
if
(
flag
===
"
p
"
){
}
else
if
(
flag
===
"
p
"
){
if
(
this
.
options
.
resultType
===
"
person
"
){
if
(
this
.
options
.
resultType
===
"
person
"
){
this
.
orgAction
.
getPerson
(
function
(
json
){
this
.
orgAction
.
getPerson
(
function
(
json
){
this
.
loadPersonItem
(
json
,
container
,
null
,
null
,
true
)
this
.
loadPersonItem
(
json
,
container
,
null
,
null
,
true
);
}.
bind
(
this
),
null
,
d
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
);
}
else
{
}
else
{
this
.
orgAction
.
listIdentityByPerson
(
function
(
json
){
this
.
orgAction
.
listIdentityByPerson
(
function
(
json
){
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
)
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
);
}.
bind
(
this
),
null
,
d
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
);
}
}
}
else
{
}
else
{
if
(
this
.
options
.
resultType
===
"
person
"
){
if
(
this
.
options
.
resultType
===
"
person
"
){
this
.
orgAction
.
listPersonByKey
(
function
(
json
)
{
this
.
orgAction
.
listPersonByKey
(
function
(
json
)
{
this
.
loadPersonItem
(
json
,
container
,
null
,
null
,
true
)
this
.
loadPersonItem
(
json
,
container
,
null
,
null
,
true
);
}.
bind
(
this
),
null
,
d
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
);
}
else
{
}
else
{
this
.
orgAction
.
listIdentityByKey
(
function
(
json
){
this
.
orgAction
.
listIdentityByKey
(
function
(
json
){
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
)
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
);
}.
bind
(
this
),
null
,
d
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
);
}
}
}
}
}
else
{
}
else
{
...
@@ -1032,34 +1051,41 @@ MWF.xApplication.Selector.Identity.Include = new Class({
...
@@ -1032,34 +1051,41 @@ MWF.xApplication.Selector.Identity.Include = new Class({
if
(
flag
===
"
u
"
)
{
if
(
flag
===
"
u
"
)
{
this
.
orgAction
.
getUnit
(
function
(
json
)
{
this
.
orgAction
.
getUnit
(
function
(
json
)
{
this
.
loadUnitItem
(
json
,
container
,
null
,
null
,
flatCategoryContainer
);
this
.
loadUnitItem
(
json
,
container
,
null
,
null
,
flatCategoryContainer
);
}.
bind
(
this
),
null
,
d
.
distinguishedName
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
.
distinguishedName
);
}
else
if
(
flag
===
"
i
"
){
}
else
if
(
flag
===
"
i
"
){
this
.
orgAction
.
getIdentity
(
function
(
json
)
{
this
.
orgAction
.
getIdentity
(
function
(
json
)
{
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
)
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
);
}.
bind
(
this
),
null
,
d
.
distinguishedName
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
.
distinguishedName
);
}
else
if
(
flag
===
"
g
"
){
}
else
if
(
flag
===
"
g
"
){
this
.
orgAction
.
getGroup
(
function
(
json
){
this
.
orgAction
.
getGroup
(
function
(
json
){
this
.
loadGroupItem
(
json
,
container
,
null
,
null
,
flatCategoryContainer
)
this
.
loadGroupItem
(
json
,
container
,
null
,
null
,
flatCategoryContainer
);
}.
bind
(
this
),
null
,
d
.
distinguishedName
,
null
,
null
,
true
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
.
distinguishedName
,
null
,
null
,
true
);
}
else
if
(
flag
===
"
p
"
){
}
else
if
(
flag
===
"
p
"
){
if
(
this
.
options
.
resultType
===
"
person
"
){
if
(
this
.
options
.
resultType
===
"
person
"
){
this
.
orgAction
.
getPerson
(
function
(
json
)
{
this
.
orgAction
.
getPerson
(
function
(
json
)
{
this
.
loadPersonItem
(
json
,
container
,
null
,
null
,
true
)
this
.
loadPersonItem
(
json
,
container
,
null
,
null
,
true
);
}.
bind
(
this
),
null
,
d
.
distinguishedName
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
.
distinguishedName
);
}
else
{
}
else
{
this
.
orgAction
.
listIdentityByPerson
(
function
(
json
){
this
.
orgAction
.
listIdentityByPerson
(
function
(
json
){
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
)
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
);
}.
bind
(
this
),
null
,
d
.
distinguishedName
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
.
distinguishedName
);
}
}
}
else
{
}
else
{
if
(
this
.
options
.
resultType
===
"
person
"
){
if
(
this
.
options
.
resultType
===
"
person
"
){
this
.
orgAction
.
getPerson
(
function
(
json
)
{
this
.
orgAction
.
getPerson
(
function
(
json
)
{
this
.
loadPersonItem
(
json
,
container
,
null
,
null
,
true
)
this
.
loadPersonItem
(
json
,
container
,
null
,
null
,
true
);
}.
bind
(
this
),
null
,
d
.
distinguishedName
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
.
distinguishedName
);
}
else
{
}
else
{
this
.
orgAction
.
getIdentity
(
function
(
json
)
{
this
.
orgAction
.
getIdentity
(
function
(
json
)
{
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
)
this
.
loadIdentityItem
(
json
,
container
,
null
,
null
,
true
);
}.
bind
(
this
),
null
,
d
.
distinguishedName
);
checkCallback
();
}.
bind
(
this
),
checkCallback
,
d
.
distinguishedName
);
}
}
}
}
//var category = this._newItemCategory("ItemCategory", unit, this, this.itemAreaNode);
//var category = this._newItemCategory("ItemCategory", unit, this, this.itemAreaNode);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录