Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_42566577
o2oa
提交
23d659d2
o2oa
项目概览
weixin_42566577
/
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,发现更多精彩内容 >>
提交
23d659d2
编写于
9月 01, 2021
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
流程应用根据是否有管理员权限进行界面区分
上级
9e6f1009
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
73 addition
and
34 deletion
+73
-34
o2web/source/x_component_process_Application/Main.js
o2web/source/x_component_process_Application/Main.js
+14
-0
o2web/source/x_component_process_Application/MyWorkExplorer.js
.../source/x_component_process_Application/MyWorkExplorer.js
+18
-7
o2web/source/x_component_process_Application/WorkExplorer.js
o2web/source/x_component_process_Application/WorkExplorer.js
+41
-27
未找到文件。
o2web/source/x_component_process_Application/Main.js
浏览文件 @
23d659d2
...
...
@@ -56,6 +56,19 @@ MWF.xApplication.process.Application.Main = new Class({
this
.
node
=
new
Element
(
"
div
"
,
{
"
styles
"
:
{
"
width
"
:
"
100%
"
,
"
height
"
:
"
100%
"
,
"
overflow
"
:
"
hidden
"
,
"
background-color
"
:
"
#ffffff
"
}
}).
inject
(
this
.
content
);
},
isManager
:
function
(){
if
(
o2
.
typeOf
(
this
.
managerFlag
)
===
"
boolean
"
)
return
this
.
managerFlag
;
if
(
o2
.
AC
.
isProcessManager
()
){
this
.
managerFlag
=
true
;
return
true
;
}
if
(
(
this
.
options
.
application
.
controllerList
||
[]
).
contains
(
layout
.
desktop
.
session
.
user
.
distinguishedName
)
){
this
.
managerFlag
=
true
;
return
true
;
}
this
.
managerFlag
=
false
;
return
false
;
},
loadApplication
:
function
(
callback
){
this
.
getApplication
(
function
(){
...
...
@@ -359,6 +372,7 @@ MWF.xApplication.process.Application.Menu = new Class({
MWF
.
getJSON
(
menuUrl
,
function
(
json
){
json
.
each
(
function
(
navi
){
if
(
navi
.
permission
===
"
manager
"
&&
!
this
.
app
.
isManager
()
)
return
;
var
naviNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
app
.
css
.
startMenuNaviNode
});
...
...
o2web/source/x_component_process_Application/MyWorkExplorer.js
浏览文件 @
23d659d2
...
...
@@ -60,13 +60,24 @@ MWF.xApplication.process.Application.MyWorkExplorer = new Class({
return
new
MWF
.
xApplication
.
process
.
Application
.
WorkExplorer
.
Work
(
data
,
this
);
},
removeWork
:
function
(
work
,
all
){
this
.
actions
.
removeWork
(
work
.
data
.
id
,
this
.
app
.
options
.
id
,
all
,
function
(
json
){
json
.
data
.
each
(
function
(
item
){
this
.
items
.
erase
(
this
.
works
[
item
.
id
]);
if
(
this
.
works
[
item
.
id
])
this
.
works
[
item
.
id
].
destroy
();
MWF
.
release
(
this
.
works
[
item
.
id
]);
delete
this
.
works
[
item
.
id
];
if
(
this
.
app
.
isManager
()
){
this
.
actions
.
removeWork
(
work
.
data
.
id
,
this
.
app
.
options
.
id
,
all
,
function
(
json
){
json
.
data
.
each
(
function
(
item
){
this
.
items
.
erase
(
this
.
works
[
item
.
id
]);
if
(
this
.
works
[
item
.
id
])
this
.
works
[
item
.
id
].
destroy
();
MWF
.
release
(
this
.
works
[
item
.
id
]);
delete
this
.
works
[
item
.
id
];
}.
bind
(
this
));
}.
bind
(
this
));
}.
bind
(
this
));
}
else
{
var
workId
=
work
.
data
.
id
;
o2
.
Actions
.
load
(
"
x_processplatform_assemble_surface
"
).
WorkAction
.
delete
(
workId
,
function
()
{
this
.
items
.
erase
(
this
.
works
[
workId
]);
if
(
this
.
works
[
workId
])
this
.
works
[
workId
].
destroy
();
MWF
.
release
(
this
.
works
[
workId
]);
delete
this
.
works
[
workId
];
}.
bind
(
this
))
}
}
});
o2web/source/x_component_process_Application/WorkExplorer.js
浏览文件 @
23d659d2
...
...
@@ -841,14 +841,24 @@ MWF.xApplication.process.Application.WorkExplorer.Work = new Class({
}.
bind
(
this
)
});
}
if
(
this
.
data
.
control
.
allowVisit
)
{
if
(
this
.
data
.
control
.
allowVisit
)
{
this
.
workAreaNode
.
addEvents
({
"
mouseover
"
:
function
(){
if
(
!
this
.
readyRemove
&&
!
this
.
readyFlow
)
this
.
workAreaNode
.
setStyles
(
this
.
css
.
workItemWorkNode_over
);}.
bind
(
this
),
"
mouseout
"
:
function
(){
if
(
!
this
.
readyRemove
&&
!
this
.
readyFlow
)
this
.
workAreaNode
.
setStyles
(
this
.
css
.
workItemWorkNode
);}.
bind
(
this
)
"
mouseover
"
:
function
(){
if
(
!
this
.
readyRemove
&&
!
this
.
readyFlow
)
{
this
.
workAreaNode
.
setStyles
(
this
.
css
.
workItemWorkNode_over
);
if
(
!
this
.
explorer
.
app
.
isManager
())
this
.
workAreaNode
.
setStyle
(
"
cursor
"
,
"
default
"
);
}}.
bind
(
this
),
"
mouseout
"
:
function
(){
if
(
!
this
.
readyRemove
&&
!
this
.
readyFlow
){
this
.
workAreaNode
.
setStyles
(
this
.
css
.
workItemWorkNode
);
if
(
!
this
.
explorer
.
app
.
isManager
())
this
.
workAreaNode
.
setStyle
(
"
cursor
"
,
"
default
"
);
}}.
bind
(
this
)
});
this
.
titleAreaNode
.
addEvent
(
"
click
"
,
function
(){
this
.
loadChild
();
}.
bind
(
this
));
if
(
this
.
explorer
.
app
.
isManager
()){
this
.
titleAreaNode
.
addEvent
(
"
click
"
,
function
(){
this
.
loadChild
();
}.
bind
(
this
));
}
else
{
this
.
workAreaNode
.
setStyle
(
"
cursor
"
,
"
default
"
);
}
}
},
processWork
:
function
(
e
){
...
...
@@ -1111,30 +1121,34 @@ MWF.xApplication.process.Application.WorkExplorer.Work = new Class({
this
.
readyRemove
=
true
;
this
.
explorer
.
app
.
confirm
(
"
warn
"
,
e
,
lp
.
deleteWorkTitle
,
text
,
350
,
120
,
function
(){
this
.
close
();
_self
.
explorer
.
app
.
confirm
(
"
warn
"
,
e
,
lp
.
deleteWorkTitle
,
{
"
html
"
:
lp
.
deleteAllWork
},
400
,
220
,
function
(){
var
inputs
=
this
.
content
.
getElements
(
"
input
"
);
var
flag
=
""
;
for
(
var
i
=
0
;
i
<
inputs
.
length
;
i
++
){
if
(
inputs
[
i
].
checked
){
flag
=
inputs
[
i
].
get
(
"
value
"
);
break
;
if
(
_self
.
explorer
.
app
.
isManager
()
)
{
_self
.
explorer
.
app
.
confirm
(
"
warn
"
,
e
,
lp
.
deleteWorkTitle
,
{
"
html
"
:
lp
.
deleteAllWork
},
400
,
220
,
function
()
{
var
inputs
=
this
.
content
.
getElements
(
"
input
"
);
var
flag
=
""
;
for
(
var
i
=
0
;
i
<
inputs
.
length
;
i
++
)
{
if
(
inputs
[
i
].
checked
)
{
flag
=
inputs
[
i
].
get
(
"
value
"
);
break
;
}
}
}
if
(
flag
){
if
(
flag
==
"
all
"
){
_self
.
explorer
.
removeWork
(
_self
,
true
);
}
else
{
_self
.
explorer
.
removeWork
(
_self
,
false
);
if
(
flag
)
{
if
(
flag
==
"
all
"
)
{
_self
.
explorer
.
removeWork
(
_self
,
true
);
}
else
{
_self
.
explorer
.
removeWork
(
_self
,
false
);
}
this
.
close
();
}
else
{
this
.
content
.
getElement
(
"
#deleteWork_checkInfor
"
).
set
(
"
text
"
,
lp
.
deleteAllWorkCheck
).
setStyle
(
"
color
"
,
"
red
"
);
}
},
function
()
{
//_self.explorer.removeWork(_self, false);
_self
.
workAreaNode
.
setStyles
(
_self
.
css
.
workItemWorkNode
);
this
.
close
();
}
else
{
this
.
content
.
getElement
(
"
#deleteWork_checkInfor
"
).
set
(
"
text
"
,
lp
.
deleteAllWorkCheck
).
setStyle
(
"
color
"
,
"
red
"
);
}
},
function
(){
//_self.explorer.removeWork(_self, false);
_self
.
workAreaNode
.
setStyles
(
_self
.
css
.
workItemWorkNode
);
this
.
close
();
});
});
}
else
{
_self
.
explorer
.
removeWork
(
_self
,
true
);
}
},
function
(){
_self
.
workAreaNode
.
setStyles
(
_self
.
css
.
workItemWorkNode
);
_self
.
readyRemove
=
false
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录