Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa
提交
65e547b2
o2oa
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa
通知
338
Star
10
Fork
6
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
65e547b2
编写于
9月 27, 2022
作者:
NoSubject
2
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除不需要的文件
上级
5efa2daa
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
127 deletion
+0
-127
o2web/source/x_component_Common/Actions/RestActions.js
o2web/source/x_component_Common/Actions/RestActions.js
+0
-113
o2web/source/x_component_Common/Actions/properties.jsp
o2web/source/x_component_Common/Actions/properties.jsp
+0
-14
未找到文件。
o2web/source/x_component_Common/Actions/RestActions.js
已删除
100644 → 0
浏览文件 @
5efa2daa
MWF
.
xApplication
.
Common
.
Actions
=
MWF
.
xApplication
.
Common
.
Actions
||
{};
MWF
.
xApplication
.
Common
.
Actions
.
RestActions
=
new
Class
({
initialize
:
function
(){
this
.
designAddress
=
""
;
MWF
.
getJSON
(
"
../x_component_Common/Actions/properties.jsp
"
,
function
(
json
){
this
.
actions
=
json
;
}.
bind
(
this
),
false
);
},
listApplicationAddress
:
function
(
success
,
failure
){
var
url
=
this
.
actions
.
listAddress
;
url
=
this
.
actions
.
slotHost
+
url
;
var
callback
=
new
MWF
.
xApplication
.
Common
.
Actions
.
RestActions
.
Callback
(
success
,
failure
);
MWF
.
getJSON
(
url
,
callback
);
},
getDesignAddress
:
function
(
success
,
failure
){
// var name = "x_processplatform_core_designer";
// var url = this.actions.getAddress.replace(/{id}/g, name);
// url = this.actions.slotHost+url;
// var callback = new MWF.process.RestActions.Callback(success, failure, function(data){
// this.designAddress = data.data.url;
// }.bind(this));
// MWF.getJSON(url, callback);
this
.
designAddress
=
"
http://xa01.zoneland.net:9080/x_processplatform_assemble_designer
"
;
//this.designAddress = "http://localhost:9080/x_processplatform_front_designer";
if
(
success
)
success
.
apply
();
},
request
:
function
(
success
,
failure
,
type
,
arg
){
if
(
this
.
designAddress
){
this
[
"
_
"
+
type
](
success
,
failure
,
arg
);
}
else
{
this
.
getDesignAddress
(
function
(
data
){
this
[
"
_
"
+
type
](
success
,
failure
,
arg
);
}.
bind
(
this
),
failure
);
}
},
_getId
:
function
(
success
,
failure
,
count
){
var
url
=
this
.
designAddress
+
this
.
actions
.
getId
;
url
=
url
.
replace
(
/{count}/g
,
count
);
var
callback
=
new
MWF
.
xApplication
.
Common
.
Actions
.
RestActions
.
Callback
(
success
,
failure
);
MWF
.
getJSON
(
url
,
callback
);
},
getId
:
function
(
count
,
success
,
failure
){
this
.
request
(
success
,
failure
,
"
getId
"
,
count
);
},
getUUID
:
function
(){
if
(
!
this
.
designAddress
)
this
.
getDesignAddress
();
var
url
=
this
.
designAddress
+
this
.
actions
.
getId
;
url
=
url
.
replace
(
/{count}/g
,
"
1
"
);
var
id
=
""
;
var
callback
=
new
MWF
.
xApplication
.
Common
.
Actions
.
RestActions
.
Callback
(
function
(
ids
){
id
=
ids
.
data
[
0
].
id
;
},
null
);
MWF
.
getJSON
(
url
,
callback
,
false
);
return
id
;
}
});
MWF
.
xApplication
.
Common
.
Actions
.
RestActions
.
Callback
=
new
Class
({
initialize
:
function
(
success
,
failure
,
appendSuccess
,
appendFailure
){
this
.
success
=
success
;
this
.
failure
=
failure
;
this
.
appendSuccess
=
appendSuccess
;
this
.
appendFailure
=
appendFailure
;
},
onSuccess
:
function
(
responseJSON
,
responseText
){
switch
(
responseJSON
.
type
)
{
case
"
success
"
:
if
(
this
.
appendSuccess
)
this
.
appendSuccess
(
responseJSON
);
if
(
this
.
success
)
this
.
success
(
responseJSON
);
break
;
case
"
warn
"
:
MWF
.
xDesktop
.
notice
(
"
info
"
,
{
x
:
"
right
"
,
y
:
"
top
"
},
responseJSON
.
errorMessage
.
join
(
"
\n
"
));
if
(
this
.
appendSuccess
)
this
.
appendSuccess
(
responseJSON
);
if
(
this
.
success
)
this
.
success
(
responseJSON
);
break
;
case
"
error
"
:
this
.
doError
(
null
,
responseText
,
responseJSON
.
message
);
break
;
}
},
onRequestFailure
:
function
(
xhr
){
this
.
doError
(
xhr
,
""
,
""
);
},
onFailure
:
function
(
xhr
){
this
.
doError
(
xhr
,
""
,
""
);
},
onError
:
function
(
text
,
error
){
this
.
doError
(
null
,
text
,
error
);
},
doError
:
function
(
xhr
,
text
,
error
){
if
(
this
.
appendFailure
)
this
.
appendFailure
(
xhr
,
text
,
error
);
if
(
this
.
failure
)
this
.
failure
(
xhr
,
text
,
error
);
if
(
!
this
.
failure
&&
!
this
.
appendFailure
){
var
errorText
=
error
;
if
(
xhr
)
errorText
=
xhr
.
responseText
;
MWF
.
xDesktop
.
notice
(
"
error
"
,
{
x
:
"
right
"
,
y
:
"
top
"
},
"
request json error:
"
+
errorText
);
// throw "request error: "+errorText;
}
}
});
o2web/source/x_component_Common/Actions/properties.jsp
已删除
100644 → 0
浏览文件 @
5efa2daa
<%@ page
language=
"java"
contentType=
"application/json; charset=UTF-8"
import=
"java.io.FileInputStream, java.util.Properties"
%>
<%
String
propertiesPath
=
this
.
getClass
().
getClassLoader
().
getResource
(
"slot_prop.properties"
).
getPath
();
FileInputStream
fis
=
new
FileInputStream
(
propertiesPath
);
Properties
prop
=
new
Properties
();
prop
.
load
(
fis
);
%>
{
"slotHost": "
<%=
prop
.
getProperty
(
"platform_slot_host"
)
%>
",
"listAddress": "
<%=
prop
.
getProperty
(
"platform_slot_list_address"
)
%>
",
"getAddress": "
<%=
prop
.
getProperty
(
"platform_slot_get_address"
)
%>
",
"getId": "
<%=
prop
.
getProperty
(
"platform_uuid"
)
%>
"
}
<%
fis
.
close
();
%>
\ No newline at end of file
NoSubject
@NoSubject
mentioned in commit
a4725776
·
9月 27, 2022
mentioned in commit
a4725776
mentioned in commit a4725776f8af754242170cc97779f90219201400
开关提交列表
NoSubject
@NoSubject
mentioned in commit
d6ff7ba8
·
9月 27, 2022
mentioned in commit
d6ff7ba8
mentioned in commit d6ff7ba89b5338e277ed420f51fff4b36a0144c5
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录