Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_42566577
o2oa
提交
7ab6add8
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,发现更多精彩内容 >>
提交
7ab6add8
编写于
8月 23, 2022
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复代理和接口在浏览器模式不能正常打开的问题
上级
945ec001
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
51 addition
and
24 deletion
+51
-24
o2web/source/x_component_service_AgentDesigner/Agent.js
o2web/source/x_component_service_AgentDesigner/Agent.js
+26
-12
o2web/source/x_component_service_InvokeDesigner/Invoke.js
o2web/source/x_component_service_InvokeDesigner/Invoke.js
+25
-12
未找到文件。
o2web/source/x_component_service_AgentDesigner/Agent.js
浏览文件 @
7ab6add8
...
@@ -81,22 +81,35 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
...
@@ -81,22 +81,35 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
this
.
setPropertyContent
();
this
.
setPropertyContent
();
//this.setIncludeNode();
//this.setIncludeNode();
if
(
this
.
editor
){
this
.
editor
.
focus
();
}
else
{
this
.
loadEditor
();
}
this
.
setAreaNodeSize
();
if
(
this
.
editor
.
editor
){
//
if (this.editor.editor){
this
.
editor
.
editor
.
focus
();
//
this.editor.editor.focus();
//this.editor.editor.navigateFileStart();
//this.editor.editor.navigateFileStart();
}
//
}
}.
bind
(
this
));
}.
bind
(
this
));
var
_self
=
this
;
this
.
page
.
addEvent
(
"
queryClose
"
,
function
(){
this
.
page
.
addEvent
(
"
queryClose
"
,
function
(){
if
(
this
.
autoSaveTimerID
)
window
.
clearInterval
(
this
.
autoSaveTimerID
);
if
(
_self
.
autoSaveTimerID
)
window
.
clearInterval
(
_self
.
autoSaveTimerID
);
this
.
showIm
();
//this.saveSilence();
//this.saveSilence();
if
(
this
.
lisNode
)
this
.
lisNode
.
setStyles
(
this
.
designer
.
css
.
listAgentItem
);
if
(
_self
.
lisNode
)
_self
.
lisNode
.
setStyles
(
_self
.
designer
.
css
.
listAgentItem
);
}
.
bind
(
this
)
);
});
this
.
page
.
tabNode
.
addEvent
(
"
dblclick
"
,
this
.
designer
.
maxOrReturnEditor
.
bind
(
this
.
designer
));
this
.
page
.
tabNode
.
addEvent
(
"
dblclick
"
,
this
.
designer
.
maxOrReturnEditor
.
bind
(
this
.
designer
));
if
(
this
.
options
.
showTab
)
this
.
page
.
showTabIm
();
},
loadEditor
:
function
(){
this
.
editor
=
new
MWF
.
widget
.
JavascriptEditor
(
this
.
areaNode
,
{
"
runtime
"
:
"
service
"
,
"
option
"
:
{
"
value
"
:
this
.
data
.
text
}});
this
.
editor
=
new
MWF
.
widget
.
JavascriptEditor
(
this
.
areaNode
,
{
"
runtime
"
:
"
service
"
});
this
.
editor
.
load
(
function
(){
this
.
editor
.
load
(
function
(){
if
(
this
.
data
.
text
){
if
(
this
.
data
.
text
){
this
.
editor
.
editor
.
setValue
(
this
.
data
.
text
);
this
.
editor
.
editor
.
setValue
(
this
.
data
.
text
);
...
@@ -123,7 +136,7 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
...
@@ -123,7 +136,7 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
defaultText
+=
"
********************/
\n
"
;
defaultText
+=
"
********************/
\n
"
;
this
.
editor
.
editor
.
setValue
(
defaultText
);
this
.
editor
.
editor
.
setValue
(
defaultText
);
}
}
this
.
editor
.
addEditorEvent
(
"
change
"
,
function
(){
this
.
editor
.
addEditorEvent
(
"
change
"
,
function
(
e
){
if
(
!
this
.
isChanged
){
if
(
!
this
.
isChanged
){
this
.
isChanged
=
true
;
this
.
isChanged
=
true
;
this
.
page
.
textNode
.
set
(
"
text
"
,
"
*
"
+
this
.
page
.
textNode
.
get
(
"
text
"
));
this
.
page
.
textNode
.
set
(
"
text
"
,
"
*
"
+
this
.
page
.
textNode
.
get
(
"
text
"
));
...
@@ -197,8 +210,6 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
...
@@ -197,8 +210,6 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
this
.
designer
.
styleSelectNode
.
hide
();
this
.
designer
.
styleSelectNode
.
hide
();
}
}
}.
bind
(
this
));
}.
bind
(
this
));
if
(
this
.
options
.
showTab
)
this
.
page
.
showTabIm
();
},
},
showReferenceMenu
:
function
(){
showReferenceMenu
:
function
(){
var
pos
=
this
.
editor
.
getCursorPixelPosition
();
var
pos
=
this
.
editor
.
getCursorPixelPosition
();
...
@@ -244,7 +255,10 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
...
@@ -244,7 +255,10 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
}
}
},
},
setAreaNodeSize
:
function
(){
setAreaNodeSize
:
function
(){
var
size
=
this
.
node
.
getSize
();
if
(
!
this
.
areaNode
.
offsetParent
)
return
;
//var size = this.node.getSize();
var
size
=
this
.
node
.
getComputedSize
();
size
.
y
=
size
.
height
;
var
tabSize
=
this
.
tab
.
tabNodeContainer
.
getSize
();
var
tabSize
=
this
.
tab
.
tabNodeContainer
.
getSize
();
var
y
=
size
.
y
-
tabSize
.
y
;
var
y
=
size
.
y
-
tabSize
.
y
;
this
.
areaNode
.
setStyle
(
"
height
"
,
""
+
y
+
"
px
"
);
this
.
areaNode
.
setStyle
(
"
height
"
,
""
+
y
+
"
px
"
);
...
...
o2web/source/x_component_service_InvokeDesigner/Invoke.js
浏览文件 @
7ab6add8
...
@@ -82,21 +82,33 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
...
@@ -82,21 +82,33 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
this
.
setPropertyContent
();
this
.
setPropertyContent
();
//this.setIncludeNode();
//this.setIncludeNode();
if
(
this
.
editor
.
editor
){
if
(
this
.
editor
){
this
.
editor
.
editor
.
focus
();
this
.
editor
.
focus
();
//this.editor.editor.navigateFileStart();
}
else
{
this
.
loadEditor
();
}
}
this
.
setAreaNodeSize
();
//if (this.editor.editor){
// this.editor.editor.focus();
//}
}.
bind
(
this
));
}.
bind
(
this
));
var
_self
=
this
;
this
.
page
.
addEvent
(
"
queryClose
"
,
function
(){
this
.
page
.
addEvent
(
"
queryClose
"
,
function
(){
if
(
this
.
autoSaveTimerID
)
window
.
clearInterval
(
this
.
autoSaveTimerID
);
if
(
_self
.
autoSaveTimerID
)
window
.
clearInterval
(
_self
.
autoSaveTimerID
);
this
.
showIm
();
//this.saveSilence();
//this.saveSilence();
if
(
this
.
lisNode
)
this
.
lisNode
.
setStyles
(
this
.
designer
.
css
.
listInvokeItem
);
if
(
_self
.
lisNode
)
_self
.
lisNode
.
setStyles
(
_self
.
designer
.
css
.
listInvokeItem
);
}
.
bind
(
this
)
);
});
this
.
page
.
tabNode
.
addEvent
(
"
dblclick
"
,
this
.
designer
.
maxOrReturnEditor
.
bind
(
this
.
designer
));
this
.
page
.
tabNode
.
addEvent
(
"
dblclick
"
,
this
.
designer
.
maxOrReturnEditor
.
bind
(
this
.
designer
));
if
(
this
.
options
.
showTab
)
this
.
page
.
showTabIm
();
},
loadEditor
:
function
(){
this
.
editor
=
new
MWF
.
widget
.
JavascriptEditor
(
this
.
areaNode
,
{
"
runtime
"
:
"
service
"
,
"
option
"
:
{
"
value
"
:
this
.
data
.
text
}});
this
.
editor
=
new
MWF
.
widget
.
JavascriptEditor
(
this
.
areaNode
,
{
"
runtime
"
:
"
service
"
});
this
.
editor
.
load
(
function
(){
this
.
editor
.
load
(
function
(){
if
(
this
.
data
.
text
){
if
(
this
.
data
.
text
){
this
.
editor
.
editor
.
setValue
(
this
.
data
.
text
);
this
.
editor
.
editor
.
setValue
(
this
.
data
.
text
);
...
@@ -133,7 +145,7 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
...
@@ -133,7 +145,7 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
defaultText
+=
"
********************/
\n
"
;
defaultText
+=
"
********************/
\n
"
;
this
.
editor
.
editor
.
setValue
(
defaultText
);
this
.
editor
.
editor
.
setValue
(
defaultText
);
}
}
this
.
editor
.
addEditorEvent
(
"
change
"
,
function
(){
this
.
editor
.
addEditorEvent
(
"
change
"
,
function
(
e
){
if
(
!
this
.
isChanged
){
if
(
!
this
.
isChanged
){
this
.
isChanged
=
true
;
this
.
isChanged
=
true
;
this
.
page
.
textNode
.
set
(
"
text
"
,
"
*
"
+
this
.
page
.
textNode
.
get
(
"
text
"
));
this
.
page
.
textNode
.
set
(
"
text
"
,
"
*
"
+
this
.
page
.
textNode
.
get
(
"
text
"
));
...
@@ -205,8 +217,6 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
...
@@ -205,8 +217,6 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
this
.
designer
.
styleSelectNode
.
hide
();
this
.
designer
.
styleSelectNode
.
hide
();
}
}
}.
bind
(
this
));
}.
bind
(
this
));
if
(
this
.
options
.
showTab
)
this
.
page
.
showTabIm
();
},
},
showReferenceMenu
:
function
(){
showReferenceMenu
:
function
(){
var
pos
=
this
.
editor
.
getCursorPixelPosition
();
var
pos
=
this
.
editor
.
getCursorPixelPosition
();
...
@@ -293,7 +303,10 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
...
@@ -293,7 +303,10 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
},
},
setAreaNodeSize
:
function
(){
setAreaNodeSize
:
function
(){
var
size
=
this
.
node
.
getSize
();
if
(
!
this
.
areaNode
.
offsetParent
)
return
;
//var size = this.node.getSize();
var
size
=
this
.
node
.
getComputedSize
();
size
.
y
=
size
.
height
;
var
tabSize
=
this
.
tab
.
tabNodeContainer
.
getSize
();
var
tabSize
=
this
.
tab
.
tabNodeContainer
.
getSize
();
var
y
=
size
.
y
-
tabSize
.
y
;
var
y
=
size
.
y
-
tabSize
.
y
;
this
.
areaNode
.
setStyle
(
"
height
"
,
""
+
y
+
"
px
"
);
this
.
areaNode
.
setStyle
(
"
height
"
,
""
+
y
+
"
px
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录