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 @@
<!-- -->
<!-- <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>
<input
type=
"checkbox"
value=
"autoSave"
id=
"MWFScriptAutoSaveCheck"
>
自动保存
...
...
o2web/source/x_component_process_ScriptDesigner/Main.js
浏览文件 @
62afe130
...
...
@@ -848,5 +848,83 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
return
status
;
}
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 = {
"
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...
"
};
o2web/source/x_component_process_ScriptDesigner/lp/zh-cn.js
浏览文件 @
62afe130
...
...
@@ -27,5 +27,16 @@ MWF.xApplication.process.ScriptDesigner.LP = {
"
inputName
"
:
"
请输入脚本名称
"
},
"
version
"
:
{
"
title
"
:
"
查看脚本版本记录
"
,
"
close
"
:
"
关闭
"
,
"
no
"
:
"
序号
"
,
"
updateTime
"
:
"
更新时间
"
,
"
op
"
:
"
操作
"
,
"
resume
"
:
"
恢复
"
,
"
resumeConfirm
"
:
"
恢复确认
"
,
"
resumeInfo
"
:
"
您确认是否需要执行脚本恢复操作?确认恢复后当前脚本会更新,需要手动保存当前脚本才会生效。
"
,
"
resumeSuccess
"
:
"
恢复成功
"
},
"
isSave
"
:
"
正在保存,请稍候...
"
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录