Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
62afe130
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,发现更多精彩内容 >>
提交
62afe130
编写于
12月 12, 2022
作者:
傻
傻拖
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
流程脚本增加版本恢复
上级
111cab53
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
122 addition
and
20 deletion
+122
-20
o2web/source/x_component_process_ScriptDesigner/$Main/default/toolbar/resume.png
...t_process_ScriptDesigner/$Main/default/toolbar/resume.png
+0
-0
o2web/source/x_component_process_ScriptDesigner/$Main/default/toolbars.html
...ponent_process_ScriptDesigner/$Main/default/toolbars.html
+2
-0
o2web/source/x_component_process_ScriptDesigner/Main.js
o2web/source/x_component_process_ScriptDesigner/Main.js
+97
-19
o2web/source/x_component_process_ScriptDesigner/lp/en.js
o2web/source/x_component_process_ScriptDesigner/lp/en.js
+11
-0
o2web/source/x_component_process_ScriptDesigner/lp/zh-cn.js
o2web/source/x_component_process_ScriptDesigner/lp/zh-cn.js
+12
-1
未找到文件。
o2web/source/x_component_process_ScriptDesigner/$Main/default/toolbar/resume.png
0 → 100644
浏览文件 @
62afe130
473 字节
o2web/source/x_component_process_ScriptDesigner/$Main/default/toolbars.html
浏览文件 @
62afe130
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
<!-- -->
<!-- -->
<!-- <span MWFnodetype="MWFToolBarButton" MWFButtonImage="help.png" title="帮助" MWFButtonAction="scriptHelp" MWFButtonText="" id="MWFScriptAutoCode"></span>-->
<!-- <span MWFnodetype="MWFToolBarButton" MWFButtonImage="help.png" title="帮助" MWFButtonAction="scriptHelp" MWFButtonText="" id="MWFScriptAutoCode"></span>-->
<span
MWFnodetype=
"MWFToolBarSeparator"
></span>
<span
MWFnodetype=
"MWFToolBarButton"
MWFButtonImage=
"resume.png"
title=
"查看所有脚本版本"
MWFButtonAction=
"showScriptVersion"
MWFButtonText=
""
></span>
<span
MWFnodetype=
"MWFToolBarSeparator"
></span>
<span
MWFnodetype=
"MWFToolBarSeparator"
></span>
<input
type=
"checkbox"
value=
"autoSave"
id=
"MWFScriptAutoSaveCheck"
>
自动保存
<input
type=
"checkbox"
value=
"autoSave"
id=
"MWFScriptAutoSaveCheck"
>
自动保存
...
...
o2web/source/x_component_process_ScriptDesigner/Main.js
浏览文件 @
62afe130
...
@@ -36,7 +36,7 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
...
@@ -36,7 +36,7 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
this
.
actions
=
MWF
.
Actions
.
get
(
"
x_processplatform_assemble_designer
"
);
this
.
actions
=
MWF
.
Actions
.
get
(
"
x_processplatform_assemble_designer
"
);
//this.actions = new MWF.xApplication.process.ProcessManager.Actions.RestActions();
//this.actions = new MWF.xApplication.process.ProcessManager.Actions.RestActions();
this
.
lp
=
MWF
.
xApplication
.
process
.
ScriptDesigner
.
LP
;
this
.
lp
=
MWF
.
xApplication
.
process
.
ScriptDesigner
.
LP
;
this
.
addEvent
(
"
queryClose
"
,
function
(
e
){
this
.
addEvent
(
"
queryClose
"
,
function
(
e
){
...
@@ -46,7 +46,7 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
...
@@ -46,7 +46,7 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
}.
bind
(
this
));
}.
bind
(
this
));
// this.processData = this.options.processData;
// this.processData = this.options.processData;
},
},
loadApplication
:
function
(
callback
){
loadApplication
:
function
(
callback
){
this
.
createNode
();
this
.
createNode
();
if
(
!
this
.
options
.
isRefresh
){
if
(
!
this
.
options
.
isRefresh
){
...
@@ -325,14 +325,14 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
...
@@ -325,14 +325,14 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
//};
//};
//this.desktop.openApplication(e, "process.ScriptDesigner", options);
//this.desktop.openApplication(e, "process.ScriptDesigner", options);
},
},
//loadContentNode------------------------------
//loadContentNode------------------------------
loadContentNode
:
function
(
toolbarCallback
,
contentCallback
){
loadContentNode
:
function
(
toolbarCallback
,
contentCallback
){
this
.
contentToolbarNode
=
new
Element
(
"
div#contentToolbarNode
"
,
{
this
.
contentToolbarNode
=
new
Element
(
"
div#contentToolbarNode
"
,
{
"
styles
"
:
this
.
css
.
contentToolbarNode
"
styles
"
:
this
.
css
.
contentToolbarNode
}).
inject
(
this
.
contentNode
);
}).
inject
(
this
.
contentNode
);
this
.
loadContentToolbar
(
toolbarCallback
);
this
.
loadContentToolbar
(
toolbarCallback
);
this
.
editContentNode
=
new
Element
(
"
div
"
,
{
this
.
editContentNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
editContentNode
"
styles
"
:
this
.
css
.
editContentNode
}).
inject
(
this
.
contentNode
);
}).
inject
(
this
.
contentNode
);
...
@@ -537,36 +537,36 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
...
@@ -537,36 +537,36 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
// new MWF.widget.ScrollBar(this.designNode, {"distance": 100});
// new MWF.widget.ScrollBar(this.designNode, {"distance": 100});
//}.bind(this));
//}.bind(this));
},
},
//loadProperty------------------------
//loadProperty------------------------
loadProperty
:
function
(){
loadProperty
:
function
(){
this
.
propertyTitleNode
=
new
Element
(
"
div
"
,
{
this
.
propertyTitleNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
propertyTitleNode
,
"
styles
"
:
this
.
css
.
propertyTitleNode
,
"
text
"
:
MWF
.
APPSD
.
LP
.
property
"
text
"
:
MWF
.
APPSD
.
LP
.
property
}).
inject
(
this
.
propertyNode
);
}).
inject
(
this
.
propertyNode
);
this
.
propertyResizeBar
=
new
Element
(
"
div
"
,
{
this
.
propertyResizeBar
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
propertyResizeBar
"
styles
"
:
this
.
css
.
propertyResizeBar
}).
inject
(
this
.
propertyNode
);
}).
inject
(
this
.
propertyNode
);
this
.
loadPropertyResize
();
this
.
loadPropertyResize
();
this
.
propertyContentNode
=
new
Element
(
"
div
"
,
{
this
.
propertyContentNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
propertyContentNode
"
styles
"
:
this
.
css
.
propertyContentNode
}).
inject
(
this
.
propertyNode
);
}).
inject
(
this
.
propertyNode
);
this
.
propertyDomArea
=
new
Element
(
"
div
"
,
{
this
.
propertyDomArea
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
propertyDomArea
"
styles
"
:
this
.
css
.
propertyDomArea
}).
inject
(
this
.
propertyContentNode
);
}).
inject
(
this
.
propertyContentNode
);
this
.
propertyDomPercent
=
0.3
;
this
.
propertyDomPercent
=
0.3
;
this
.
propertyContentResizeNode
=
new
Element
(
"
div
"
,
{
this
.
propertyContentResizeNode
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
propertyContentResizeNode
"
styles
"
:
this
.
css
.
propertyContentResizeNode
}).
inject
(
this
.
propertyContentNode
);
}).
inject
(
this
.
propertyContentNode
);
this
.
propertyContentArea
=
new
Element
(
"
div
"
,
{
this
.
propertyContentArea
=
new
Element
(
"
div
"
,
{
"
styles
"
:
this
.
css
.
propertyContentArea
"
styles
"
:
this
.
css
.
propertyContentArea
}).
inject
(
this
.
propertyContentNode
);
}).
inject
(
this
.
propertyContentNode
);
this
.
loadPropertyContentResize
();
this
.
loadPropertyContentResize
();
this
.
setPropertyContent
();
this
.
setPropertyContent
();
...
@@ -611,7 +611,7 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
...
@@ -611,7 +611,7 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
var
x
=
(
Browser
.
name
==
"
firefox
"
)
?
e
.
event
.
clientX
:
e
.
event
.
x
;
var
x
=
(
Browser
.
name
==
"
firefox
"
)
?
e
.
event
.
clientX
:
e
.
event
.
x
;
var
y
=
(
Browser
.
name
==
"
firefox
"
)
?
e
.
event
.
clientY
:
e
.
event
.
y
;
var
y
=
(
Browser
.
name
==
"
firefox
"
)
?
e
.
event
.
clientY
:
e
.
event
.
y
;
el
.
store
(
"
position
"
,
{
"
x
"
:
x
,
"
y
"
:
y
});
el
.
store
(
"
position
"
,
{
"
x
"
:
x
,
"
y
"
:
y
});
var
size
=
this
.
propertyNode
.
getSize
();
var
size
=
this
.
propertyNode
.
getSize
();
el
.
store
(
"
initialWidth
"
,
size
.
x
);
el
.
store
(
"
initialWidth
"
,
size
.
x
);
}.
bind
(
this
),
}.
bind
(
this
),
...
@@ -622,7 +622,7 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
...
@@ -622,7 +622,7 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
var
position
=
el
.
retrieve
(
"
position
"
);
var
position
=
el
.
retrieve
(
"
position
"
);
var
initialWidth
=
el
.
retrieve
(
"
initialWidth
"
).
toFloat
();
var
initialWidth
=
el
.
retrieve
(
"
initialWidth
"
).
toFloat
();
var
dx
=
position
.
x
.
toFloat
()
-
x
.
toFloat
();
var
dx
=
position
.
x
.
toFloat
()
-
x
.
toFloat
();
var
width
=
initialWidth
+
dx
;
var
width
=
initialWidth
+
dx
;
if
(
width
>
bodySize
.
x
/
2
)
width
=
bodySize
.
x
/
2
;
if
(
width
>
bodySize
.
x
/
2
)
width
=
bodySize
.
x
/
2
;
if
(
width
<
40
)
width
=
40
;
if
(
width
<
40
)
width
=
40
;
...
@@ -666,16 +666,16 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
...
@@ -666,16 +666,16 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
var
size
=
this
.
propertyContentNode
.
getSize
();
var
size
=
this
.
propertyContentNode
.
getSize
();
var
resizeNodeSize
=
this
.
propertyContentResizeNode
.
getSize
();
var
resizeNodeSize
=
this
.
propertyContentResizeNode
.
getSize
();
var
height
=
size
.
y
-
resizeNodeSize
.
y
;
var
height
=
size
.
y
-
resizeNodeSize
.
y
;
var
domHeight
=
this
.
propertyDomPercent
*
height
;
var
domHeight
=
this
.
propertyDomPercent
*
height
;
var
contentHeight
=
height
-
domHeight
;
var
contentHeight
=
height
-
domHeight
;
this
.
propertyDomArea
.
setStyle
(
"
height
"
,
""
+
domHeight
+
"
px
"
);
this
.
propertyDomArea
.
setStyle
(
"
height
"
,
""
+
domHeight
+
"
px
"
);
this
.
propertyContentArea
.
setStyle
(
"
height
"
,
""
+
contentHeight
+
"
px
"
);
this
.
propertyContentArea
.
setStyle
(
"
height
"
,
""
+
contentHeight
+
"
px
"
);
},
},
//resizeNode------------------------------------------------
//resizeNode------------------------------------------------
resizeNode
:
function
(){
resizeNode
:
function
(){
if
(
!
this
.
isMax
){
if
(
!
this
.
isMax
){
...
@@ -724,7 +724,7 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
...
@@ -724,7 +724,7 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
this
.
scriptListResizeNode
.
setStyle
(
"
height
"
,
""
+
y
+
"
px
"
);
this
.
scriptListResizeNode
.
setStyle
(
"
height
"
,
""
+
y
+
"
px
"
);
}
}
},
},
//loadForm------------------------------------------
//loadForm------------------------------------------
loadScript
:
function
(){
loadScript
:
function
(){
//this.scriptTab.addTab(node, title);
//this.scriptTab.addTab(node, title);
...
@@ -848,5 +848,83 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
...
@@ -848,5 +848,83 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
return
status
;
return
status
;
}
}
return
{
"
id
"
:
this
.
options
.
id
,
"
application
"
:
application
};
return
{
"
id
"
:
this
.
options
.
id
,
"
application
"
:
application
};
}
},
showScriptVersion
:
function
(){
this
.
versionNode
=
new
Element
(
"
div
"
);
this
.
dlg
=
o2
.
DL
.
open
({
"
title
"
:
MWF
.
APPSD
.
LP
.
version
[
"
title
"
],
"
content
"
:
this
.
versionNode
,
"
offset
"
:
{
"
y
"
:
-
100
},
"
isMax
"
:
false
,
"
width
"
:
500
,
"
height
"
:
300
,
"
buttonList
"
:
[
{
"
type
"
:
"
cancel
"
,
"
text
"
:
MWF
.
APPSD
.
LP
.
version
[
"
close
"
],
"
action
"
:
function
(){
this
.
close
();
}
}
],
"
onPostShow
"
:
function
(){
this
.
loadVersionList
();
}.
bind
(
this
),
"
onPostClose
"
:
function
(){
this
.
dlg
=
null
;
}.
bind
(
this
)
});
},
loadVersionList
:
function
(){
var
tableHtml
=
"
<table width='100%' cellspacing='0' cellpadding='3' style='margin-top: 1px'><tr>
"
+
"
<th>
"
+
MWF
.
APPSD
.
LP
.
version
[
"
no
"
]
+
"
</th>
"
+
"
<th>
"
+
MWF
.
APPSD
.
LP
.
version
[
"
updateTime
"
]
+
"
</th>
"
+
"
<th>
"
+
MWF
.
APPSD
.
LP
.
version
[
"
op
"
]
+
"
</th>
"
+
"
</tr></table>
"
;
this
.
versionNode
.
set
(
"
html
"
,
tableHtml
);
this
.
versionTable
=
this
.
versionNode
.
getElement
(
"
table
"
);
this
.
action
=
o2
.
Actions
.
load
(
"
x_processplatform_assemble_designer
"
);
this
.
action
.
ScriptVersionAction
.
listWithForm
(
this
.
options
.
id
,
function
(
json
){
this
.
versionList
=
json
.
data
;
this
.
versionList
.
each
(
function
(
version
,
index
)
{
var
node
=
new
Element
(
"
tr
"
).
inject
(
this
.
versionTable
);
var
html
=
"
<td>
"
+
(
index
+
1
)
+
"
</td>
"
+
"
<td>
"
+
version
.
updateTime
+
"
</td>
"
+
"
<td></td>
"
;
node
.
set
(
"
html
"
,
html
);
var
actionNode
=
new
Element
(
"
div
"
,{
"
styles
"
:{
"
width
"
:
"
60px
"
,
"
padding
"
:
"
0px 3px
"
,
"
border-radius
"
:
"
20px
"
,
"
cursor
"
:
"
pointer
"
,
"
color
"
:
"
#ffffff
"
,
"
background-color
"
:
"
#4A90E2
"
,
"
float
"
:
"
left
"
,
"
margin-right
"
:
"
2px
"
,
"
text-align
"
:
"
center
"
,
"
font-weight
"
:
"
100
"
}}).
inject
(
node
.
getLast
(
"
td
"
));
actionNode
.
set
(
"
text
"
,
MWF
.
APPSD
.
LP
.
version
[
"
resume
"
]);
actionNode
.
addEvent
(
"
click
"
,
function
(
e
)
{
console
.
log
(
this
);
var
_self
=
this
;
this
.
confirm
(
"
warn
"
,
e
,
MWF
.
APPSD
.
LP
.
version
[
"
resumeConfirm
"
],
MWF
.
APPSD
.
LP
.
version
[
"
resumeInfo
"
],
460
,
120
,
function
(){
_self
.
resumeScript
(
version
);
this
.
close
();
},
function
(){
this
.
close
();
});
}.
bind
(
this
));
}.
bind
(
this
))
}.
bind
(
this
));
},
resumeScript
:
function
(
version
){
this
.
action
.
ScriptVersionAction
.
get
(
version
.
id
,
function
(
json
){
var
scriptData
=
JSON
.
parse
(
json
.
data
.
data
);
this
.
script
.
editor
.
setValue
(
scriptData
.
text
)
this
.
dlg
.
close
();
this
.
notice
(
MWF
.
APPSD
.
LP
.
version
[
"
resumeSuccess
"
]);
}.
bind
(
this
),
null
,
false
);
},
});
});
o2web/source/x_component_process_ScriptDesigner/lp/en.js
浏览文件 @
62afe130
...
@@ -26,5 +26,16 @@ MWF.xApplication.process.ScriptDesigner.LP = {
...
@@ -26,5 +26,16 @@ MWF.xApplication.process.ScriptDesigner.LP = {
"
inputName
"
:
"
Please enter the script name
"
"
inputName
"
:
"
Please enter the script name
"
},
},
"
version
"
:
{
"
title
"
:
"
View form version history
"
,
"
close
"
:
"
Close
"
,
"
no
"
:
"
SerialNumber
"
,
"
updateTime
"
:
"
UpdateTime
"
,
"
op
"
:
"
action
"
,
"
resume
"
:
"
Resume
"
,
"
resumeConfirm
"
:
"
Resume Confirmation
"
,
"
resumeInfo
"
:
"
Are you sure you need to perform a form recovery operation? After confirming the restoration, the current form will be updated, and the current form needs to be manually saved to take effect.
"
,
"
resumeSuccess
"
:
"
Resume Successfully
"
},
"
isSave
"
:
"
Saving, please wait...
"
"
isSave
"
:
"
Saving, please wait...
"
};
};
o2web/source/x_component_process_ScriptDesigner/lp/zh-cn.js
浏览文件 @
62afe130
...
@@ -27,5 +27,16 @@ MWF.xApplication.process.ScriptDesigner.LP = {
...
@@ -27,5 +27,16 @@ MWF.xApplication.process.ScriptDesigner.LP = {
"
inputName
"
:
"
请输入脚本名称
"
"
inputName
"
:
"
请输入脚本名称
"
},
},
"
version
"
:
{
"
title
"
:
"
查看脚本版本记录
"
,
"
close
"
:
"
关闭
"
,
"
no
"
:
"
序号
"
,
"
updateTime
"
:
"
更新时间
"
,
"
op
"
:
"
操作
"
,
"
resume
"
:
"
恢复
"
,
"
resumeConfirm
"
:
"
恢复确认
"
,
"
resumeInfo
"
:
"
您确认是否需要执行脚本恢复操作?确认恢复后当前脚本会更新,需要手动保存当前脚本才会生效。
"
,
"
resumeSuccess
"
:
"
恢复成功
"
},
"
isSave
"
:
"
正在保存,请稍候...
"
"
isSave
"
:
"
正在保存,请稍候...
"
};
};
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录