Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
038d4213
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,发现更多精彩内容 >>
提交
038d4213
编写于
7月 14, 2021
作者:
NoSubject
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改Org组件,兼容同步模式
上级
a923dc1f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
66 addition
and
41 deletion
+66
-41
o2web/source/x_component_process_FormDesigner/Module/Org/org.html
...urce/x_component_process_FormDesigner/Module/Org/org.html
+7
-0
o2web/source/x_component_process_FormDesigner/lp/en.js
o2web/source/x_component_process_FormDesigner/lp/en.js
+1
-0
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
+1
-0
o2web/source/x_component_process_Xform/$Input.js
o2web/source/x_component_process_Xform/$Input.js
+1
-5
o2web/source/x_component_process_Xform/$Module.js
o2web/source/x_component_process_Xform/$Module.js
+2
-0
o2web/source/x_component_process_Xform/Org.js
o2web/source/x_component_process_Xform/Org.js
+54
-36
未找到文件。
o2web/source/x_component_process_FormDesigner/Module/Org/org.html
浏览文件 @
038d4213
...
...
@@ -48,6 +48,13 @@
<input
type=
"radio"
name=
"storeRange"
value=
"simple"
text
{($.
section
!=='
full
')?'
checked
'
:
''}
/>
{{$.lp.simple}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.asyncMode}}:
</td>
<td
class=
"editTableValue"
>
<input
type=
"radio"
name=
"asyncMode"
value=
"yes"
text
{($
.asyncMode=
='yes')?'checked':''}/
>
{{$.lp.yes}}
<input
type=
"radio"
name=
"asyncMode"
value=
"no"
text
{($.
asyncMode
!=='
yes
')?'
checked
'
:
''}
/>
{{$.lp.no}}
</td>
</tr>
<tr>
<td
class=
"editTableTitle"
>
{{$.lp.separator}}:
</td>
<td
class=
"editTableValue"
>
...
...
o2web/source/x_component_process_FormDesigner/lp/en.js
浏览文件 @
038d4213
...
...
@@ -430,6 +430,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"
complete
"
:
"
Complete
"
,
"
simple
"
:
"
Simple
"
,
"
separator
"
:
"
Separator
"
,
"
asyncMode
"
:
"
Async Mode
"
,
"
identity
"
:
"
Identity
"
,
"
unit
"
:
"
Unit
"
,
...
...
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js
浏览文件 @
038d4213
...
...
@@ -428,6 +428,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"
complete
"
:
"
完整
"
,
"
simple
"
:
"
精简
"
,
"
separator
"
:
"
分隔符
"
,
"
asyncMode
"
:
"
异步模式
"
,
"
identity
"
:
"
身份
"
,
"
unit
"
:
"
组织
"
,
...
...
o2web/source/x_component_process_Xform/$Input.js
浏览文件 @
038d4213
...
...
@@ -223,11 +223,6 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class(
this
.
__setValue
(
v
);
}.
bind
(
this
),
function
(){});
this
.
moduleValueAG
=
p
;
p
.
then
(
function
(){
this
.
moduleValueAG
=
null
;
}.
bind
(
this
),
function
(){
this
.
moduleValueAG
=
null
;
}.
bind
(
this
));
}
else
{
this
.
moduleValueAG
=
null
;
this
.
__setValue
(
value
);
...
...
@@ -238,6 +233,7 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class(
},
__setValue
:
function
(
value
){
this
.
moduleValueAG
=
null
;
this
.
_setBusinessData
(
value
);
if
(
this
.
node
.
getFirst
())
this
.
node
.
getFirst
().
set
(
"
value
"
,
value
||
""
);
if
(
this
.
readonly
||
this
.
json
.
isReadonly
)
this
.
node
.
set
(
"
text
"
,
value
);
...
...
o2web/source/x_component_process_Xform/$Module.js
浏览文件 @
038d4213
...
...
@@ -102,6 +102,8 @@ MWF.xApplication.process.Xform.$Module = MWF.APP$Module = new Class(
this
.
_afterLoaded
();
this
.
fireEvent
(
"
postLoad
"
);
this
.
fireEvent
(
"
load
"
);
this
.
moduleLoaded
=
true
;
}
},
_loadUserInterface
:
function
(){
...
...
o2web/source/x_component_process_Xform/Org.js
浏览文件 @
038d4213
...
...
@@ -1178,47 +1178,65 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg = new Class(
if
(
typeOf
(
value
)
!==
"
array
"
)
value
=
(
!!
value
)
?
[
value
]
:
[];
//value = (value.flat) ? value.flat() : value.flatten();
var
p
=
o2
.
promiseAll
(
value
).
then
(
function
(
d
){
if
(
typeOf
(
d
)
!==
"
array
"
)
d
=
(
!!
d
)
?
[
d
]
:
[];
d
.
each
(
function
(
da
){
if
(
typeOf
(
da
)
!==
"
array
"
)
da
=
(
!!
da
)
?
[
da
]
:
[];
da
.
each
(
function
(
dd
){
if
(
dd
){
if
(
typeOf
(
dd
)
===
"
string
"
){
var
pp
=
this
.
getOrgAction
()[
this
.
getValueMethod
(
dd
)](
function
(
json
){
return
MWF
.
org
.
parseOrgData
(
json
.
data
,
true
,
simple
);
}.
bind
(
this
),
null
,
dd
,
true
).
catch
(
function
(
e
){
console
.
log
(
"
error:
"
+
e
);
console
.
log
(
e
);
});
ags
.
push
(
pp
);
}
else
{
values
.
push
(
dd
);
if
(
value
.
some
(
function
(
e
){
return
(
e
&&
o2
.
typeOf
(
e
.
then
)
==
"
function
"
)
})
||
this
.
json
.
asyncMode
===
"
yes
"
){
var
p
=
Promise
.
all
(
value
).
then
(
function
(
d
){
if
(
typeOf
(
d
)
!==
"
array
"
)
d
=
(
!!
d
)
?
[
d
]
:
[];
d
.
each
(
function
(
da
){
if
(
typeOf
(
da
)
!==
"
array
"
)
da
=
(
!!
da
)
?
[
da
]
:
[];
da
.
each
(
function
(
dd
){
if
(
dd
){
if
(
typeOf
(
dd
)
===
"
string
"
){
var
pp
=
this
.
getOrgAction
()[
this
.
getValueMethod
(
dd
)](
function
(
json
){
return
MWF
.
org
.
parseOrgData
(
json
.
data
,
true
,
simple
);
}.
bind
(
this
),
null
,
dd
,
true
).
catch
(
function
(
e
){
console
.
log
(
"
error:
"
+
e
);
console
.
log
(
e
);
});
ags
.
push
(
pp
);
}
else
{
values
.
push
(
dd
);
}
}
}
}
.
bind
(
this
));
}.
bind
(
this
));
}.
bind
(
this
));
if
(
ags
.
length
){
return
o2
.
promiseAll
(
ags
).
then
(
function
(
data
){
values
=
values
.
concat
(
data
);
if
(
ags
.
length
){
return
Promise
.
all
(
ags
).
then
(
function
(
data
){
values
=
values
.
concat
(
data
);
flag
=
true
;
this
.
__setValue
(
values
);
return
values
;
}.
bind
(
this
),
function
(){});
}
else
{
flag
=
true
;
this
.
__setValue
(
values
);
return
values
;
}.
bind
(
this
),
function
(){});
}
else
{
flag
=
true
;
this
.
__setValue
(
values
);
return
values
}
}.
bind
(
this
),
function
(){});
return
values
}
}.
bind
(
this
),
function
(){});
this
.
moduleValueAG
=
p
;
if
(
p
&&
p
.
then
)
p
.
then
(
function
(){
this
.
moduleValueAG
=
null
;
}.
bind
(
this
),
function
(){
this
.
moduleValueAG
=
null
;
}.
bind
(
this
));
return
p
;
}
else
{
value
.
each
(
function
(
dd
){
if
(
dd
){
if
(
typeOf
(
dd
)
===
"
string
"
){
this
.
getOrgAction
()[
this
.
getValueMethod
(
dd
)](
function
(
json
){
values
.
push
(
MWF
.
org
.
parseOrgData
(
json
.
data
,
true
,
simple
));
}.
bind
(
this
),
null
,
dd
,
false
);
}
else
{
values
.
push
(
dd
);
}
}
}.
bind
(
this
));
this
.
__setValue
(
values
);
return
values
}
this
.
moduleValueAG
=
p
;
if
(
p
&&
p
.
then
)
p
.
then
(
function
(){
this
.
moduleValueAG
=
null
;
}.
bind
(
this
),
function
(){
this
.
moduleValueAG
=
null
;
}.
bind
(
this
));
return
p
;
// var ag = o2.AG.all(value).then(function(d) {
// if (typeOf(d)!=="array") d = (d) ? [d.toString()] : [];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录