apps/com.actionsoft.apps.coe.pal.publisher/template/page/publish.client.sso.processmap.org.dialog.html
2022-07-20 13:59:04 +08:00

70 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>流程地图-组织架构-流程列表</title>
<link rel="stylesheet" href="../commons/js/jquery/themes/default/public.css">
<link rel="stylesheet" href="../commons/css/awsui.css">
<script type="text/javascript" src="../commons/js/jquery/scripts/jquery.js"></script>
<script type="text/javascript" src="../commons/js/awsui.js"></script>
<script type="text/javascript" src="../commons/js/public.js"></script>
<script type="text/javascript" src="../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.general.js"></script>
<style type="text/css">
a:link{color:#666}
a:hover{color:blue}
#head{
position: -webkit-sticky;
position: sticky;
top: 0px;
background:#fff
}
.awsui-message-page .content {
width: 100%;
position: absolute;
left: 50%;
top: 20%;
left: 0\9;
text-align: center;
transform: translate(-50%,-50%);
}
</style>
<script>
var uid = '<#uid>';
var sid = '<#sid>';
var deptId = '<#deptId>';
var data = <#data>;
</script>
</head>
<body style="padding:10px;">
<div id="head" style="height:50px;">
<span class="title1" style="font-size:18px;color:#666;"><#deptName></span>
<hr style="color:#666;">
</div>
<div id="content" style="padding:0px 10px;"></div>
<div id="alertIcon" style="padding:0px 10px;display:none;">
<div class="awsui-message-page">
<div class="content">
<span class="icon" message-type="no_content"></span>
<span class="title">没有相关流程</span>
</div>
</div>
</div>
</body>
<script type="text/javascript">
$(function() {
var html = '';
for (var i = 0; i < data.length; i++) {
html += '<span style="display:inline-block;font-size:13px;padding:10px 0;">';
html += '<a href="javascript:void(0);" onclick="openPortal(\'' + sid + '\', \'' + data[i].id + '\', \'\');">';
html += (i + 1) + '. ' + data[i].name;
html += '</a></span>';
html += '<br/>';
}
if(data.length == 0) {
$('#alertIcon').show();
} else {
$('#content').append(html);
}
})
</script>
</html>