97 lines
2.6 KiB
HTML
97 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title>标准化体系</title>
|
|
<!-- js -->
|
|
<script type="text/javascript" src="../commons/js/jquery/scripts/jquery.js"></script>
|
|
<script type="text/javascript" src="../commons/js/awsui.js"></script>
|
|
<!-- css -->
|
|
<link rel="stylesheet" href="../commons/css/awsui.css">
|
|
<link rel="stylesheet" href="../apps/com.actionsoft.apps.coe.pal.publisher/css/publish.client.sso1.css">
|
|
|
|
</head>
|
|
<body>
|
|
<div id="tab2_left" style="background-color: rgb(245, 245, 245); color: rgb(150, 150, 150);">
|
|
<div style="padding-top: 10px; overflow: auto;">
|
|
<ul id="orgTree" style="overflow: visible; margin-top: 10px; padding: 0 20px;"></ul>
|
|
</div>
|
|
</div>
|
|
<div id="tab2_separater"></div>
|
|
<div id="tab2_right">
|
|
<div class="awsui-tabs-panel" style="height: 100%;">
|
|
<iframe id="org_iframe" name="org_iframe" frameborder="0" class="awsui-layout-iframe" style="height: 100%;" allowtransparency="true"
|
|
src="./w?sid=<#sid>&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_org_relation_main_page"></iframe>
|
|
</div>
|
|
</div>
|
|
|
|
<input type="hidden" name="sid" id="sid" value="<#sid>" />
|
|
</body>
|
|
|
|
<script type="text/javascript">
|
|
var orgTree;
|
|
$(function($){
|
|
var options2 = {
|
|
left:{
|
|
target:"#tab2_left",
|
|
title:""
|
|
},
|
|
separater:{
|
|
target :"#tab2_separater",
|
|
width: 0
|
|
},
|
|
right:{
|
|
target:"#tab2_right"
|
|
}
|
|
};
|
|
$(window).layout(options2);
|
|
initOrgTree(function(){
|
|
$("#org_iframe").attr("src", "./w?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_org_relation_main_page");
|
|
});
|
|
|
|
$(window).resize();
|
|
})
|
|
|
|
$(window).resize(function(){
|
|
$("#orgTree").parent().height($(window).height() - 20);
|
|
})
|
|
|
|
//初始化标准化体系资产库树结构
|
|
function initOrgTree(callback) {
|
|
$("#orgTree").empty();
|
|
|
|
awsui.ajax.request({
|
|
url : "./jd",
|
|
method : "POST",
|
|
data : {
|
|
sid: $("#sid").val(),
|
|
cmd: "com.actionsoft.apps.coe.pal.publisher_client_sso_org_ws_treedata"
|
|
},
|
|
ok : function(r) {
|
|
var wsOrgTreeData = r.data.wsTreeData;
|
|
var setting = {
|
|
dblClickToExpand:true,
|
|
autoHeight:true,
|
|
event : {
|
|
onClick : clickOrgNode
|
|
}
|
|
};
|
|
setting.dataModel = {
|
|
data:wsOrgTreeData
|
|
};
|
|
orgTree = awsui.tree.init($("#orgTree"), setting);
|
|
if (callback) {
|
|
callback();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
//点击组织模型树节点
|
|
function clickOrgNode(treeNode) {
|
|
if (treeNode.id.length == 36 && treeNode.pid != undefined) {
|
|
window.frames["org_iframe"].refreshData();
|
|
}
|
|
}
|
|
</script>
|
|
</html> |