1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view>
<a:link id="reload_priviledge_without_jms_link" url="${/request/@context_path}/modules/sys/reload_priviledge_without_jms.lsc"/>
<a:link id="reload_service_without_jms_link" url="${/request/@context_path}/modules/sys/reload_service_without_jms.lsc"/>
<a:link id="reload_priviledge_link" url="${/request/@context_path}/modules/sys/SYS1040/reload_priviledge.lsc"/>
<a:link id="reload_service_link" url="${/request/@context_path}/modules/sys/SYS1040/reload_service.lsc"/>
<script type="text/javascript"><![CDATA[
function onSuccess(res){
}
function reloadService(svc_url){
var url = /*${/request/@context_path}/modules/sys/reload_service.svc*/$('reload_service_link').getUrl();
Leaf.request({url:url, success:onSuccess, scope:this});
}
function reloadPriviledge(svc_url){
var url = /*${/request/@context_path}/modules/sys/reload_priviledge.svc*/$('reload_priviledge_link').getUrl();
Leaf.request({url:url, success:onSuccess, scope:this});
}
function reloadServiceWithOutJMS(){
var url = /*${/request/@context_path}/modules/sys/reload_service_without_jms.svc*/$('reload_service_without_jms_link').getUrl();
Leaf.request({url:url, success:onSuccess, scope:this});
}
function reloadPriviledgeWithOutJMS(){
var url = /*${/request/@context_path}/modules/sys/reload_priviledge_without_jms.svc*/$('reload_priviledge_without_jms_link').getUrl();
Leaf.request({url:url, success:onSuccess, scope:this});
}
]]></script>
<a:fieldSet style="margin:10px;" title="多Tomcat">
<a:hBox>
<a:button click="reloadService" style="margin-left:15px;margin-right:10px;" text="重载service"/>
<a:button click="reloadPriviledge" style="margin-left:15px;margin-right:10px;" text="重载权限配置"/>
</a:hBox>
</a:fieldSet>
<a:fieldSet style="margin:10px;" title="单Tomcat">
<a:hBox>
<a:button click="reloadServiceWithOutJMS" style="margin-left:15px;margin-right:10px;" text="重载service"/>
<a:button click="reloadPriviledgeWithOutJMS" style="margin-left:15px;margin-right:10px;" text="重载权限配置"/>
</a:hBox>
</a:fieldSet>
</a:view>
</a:screen>