Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
75e6ed3e
o2oa
项目概览
fuyue82
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
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,发现更多精彩内容 >>
提交
75e6ed3e
编写于
10月 21, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
processor 修改
上级
deeea17e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
22 deletion
+22
-22
o2web/source/x_component_process_ProcessDesigner/widget/$OrgEditor/org.html
...ponent_process_ProcessDesigner/widget/$OrgEditor/org.html
+1
-0
o2web/source/x_component_process_Work/Processor.js
o2web/source/x_component_process_Work/Processor.js
+21
-22
未找到文件。
o2web/source/x_component_process_ProcessDesigner/widget/$OrgEditor/org.html
浏览文件 @
75e6ed3e
...
...
@@ -43,6 +43,7 @@
</tr>
</table>
<div
class=
"MWFScriptArea"
name=
"validation"
title=
"校验脚本 (S)"
></div>
<div
class=
"MWFScriptArea"
name=
"hiddenScript"
title=
"隐藏条件 (返回true隐藏)"
></div>
</div>
<div
title=
"选择"
class=
"MWFTab"
>
...
...
o2web/source/x_component_process_Work/Processor.js
浏览文件 @
75e6ed3e
...
...
@@ -1103,6 +1103,22 @@ MWF.xApplication.process.Work.Processor = new Class({
}
}
},
getVisableOrgData
:
function
(
routeId
){
if
(
!
this
.
hasHiddenOrg
)
this
.
hasHiddenOrg
=
{};
var
selectConfigList
=
this
.
getOrgData
(
routeId
);
var
list
=
[];
(
selectConfigList
||
[]
).
each
(
function
(
config
)
{
if
(
config
.
hiddenScript
&&
config
.
hiddenScript
.
code
){
//如果隐藏路由,返回
var
hidden
=
this
.
form
.
Macro
.
exec
(
config
.
hiddenScript
.
code
,
this
);
if
(
!
hidden
||
hidden
.
toString
()
!==
"
true
"
){
list
.
push
(
config
);
}
else
{
this
.
hasHiddenOrg
[
routeId
]
=
true
;
}
}
});
return
list
;
},
loadOrgs_mobile
:
function
(
route
){
if
(
!
this
.
form
||
!
route
){
this
.
orgsArea
.
hide
();
...
...
@@ -1210,7 +1226,10 @@ MWF.xApplication.process.Work.Processor = new Class({
if
(
route
===
key
){
this
.
orgTableObject
[
key
].
show
();
this
.
orgItems
=
this
.
orgItemsObject
[
key
]
||
[];
var
data
=
this
.
getOrgData
(
route
);
var
dataVisable
=
this
.
getVisableOrgData
(
route
);
this
.
setSize
(
data
.
length
);
isLoaded
=
true
;
}
else
{
...
...
@@ -1237,28 +1256,6 @@ MWF.xApplication.process.Work.Processor = new Class({
}).
inject
(
this
.
orgsArea
);
this
.
orgTableObject
[
route
]
=
routeOrgTable
;
//if( len <= this.options.maxOrgCountPerline ){
// var width = 1 / len * 100;
// var tr = new Element("tr").inject( routeOrgTable );
// for (var n=0; n<len; n++){
// new Element("td", { "width" : width+"%", "styles" : this.css.routeOrgOddTd }).inject( tr );
// }
//}else{
// var lines = ((len+1)/this.options.maxOrgCountPerline).toInt();
// var width = 1 / this.options.maxOrgCountPerline * 100;
// for( var n=0; n<lines; n++ ){
// var tr = new Element("tr").inject( routeOrgTable );
// for( var i=0; i<this.options.maxOrgCountPerline; i++ ){
// new Element("td", { "width" : width+"%", "styles" : this.css.routeOrgOddTd }).inject( tr );
// }
// }
//}
//
//var tds = routeOrgTable.getElements("td");
//data.each( function( config, i ){
// this.loadOrg( tds[i], config )
//}.bind(this))
var
lines
=
((
len
+
1
)
/
2
).
toInt
();
for
(
var
n
=
0
;
n
<
lines
;
n
++
){
var
tr
=
new
Element
(
"
tr
"
).
inject
(
routeOrgTable
);
...
...
@@ -1276,11 +1273,13 @@ MWF.xApplication.process.Work.Processor = new Class({
trs
[
trs
.
length
-
1
].
getLast
(
"
td
"
).
destroy
();
sNode
.
setStyle
(
"
border
"
,
"
0px
"
);
sNode
.
set
(
"
width
"
,
"
100%
"
);
sNode
.
store
(
"
orgId
"
,
config
.
name
);
this
.
loadOrg
(
sNode
,
config
,
"
all
"
,
ignoreFirstOrgOldData
&&
i
==
0
)
}
else
{
var
row
=
((
i
+
2
)
/
2
).
toInt
();
var
tr
=
trs
[
row
-
1
];
sNode
=
(
i
%
2
===
0
)
?
tr
.
getFirst
(
"
td
"
)
:
tr
.
getLast
(
"
td
"
);
sNode
.
store
(
"
orgId
"
,
config
.
name
);
this
.
loadOrg
(
sNode
,
config
,
(
i
%
2
===
0
)
?
"
left
"
:
"
right
"
,
ignoreFirstOrgOldData
&&
i
==
0
)
}
}.
bind
(
this
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录