70 lines
2.7 KiB
HTML
70 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>流程管理门户-流程通知公告</title>
|
||
<script type="text/javascript" src="../commons/js/jquery/scripts/jquery.js"></script>
|
||
<link rel="stylesheet" type="text/css" href="../commons/css/awsui.css"/>
|
||
<script type="text/javascript" src="../commons/js/awsui.js"></script>
|
||
<link rel="stylesheet" href="../apps/com.actionsoft.apps.coe.pal.publisher/css/publish.client.xpages.css">
|
||
<script type="text/javascript" src="../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.general.js"></script>
|
||
<script type="text/javascript">
|
||
var sid = "<#sid>";
|
||
var uid = "<#uid>";
|
||
var data = <#data>;
|
||
$(function() {
|
||
var content = '<ul>';
|
||
for(var i = 0; i < data.length; i++) {
|
||
var current = data[i];
|
||
content += '<li style="height:' + liHeight + 'px;">';
|
||
content += '<span class="awsui-iconfont" style="color:#C2C2C2"></span>';
|
||
if (current.isPublish == 0) {
|
||
content += '<span awsui-qtip="text:\''+ current.name +'\',position:\'bottom\'" style="margin-left:5px;">' + current.name + ' [' + current.intro + ']</span>';
|
||
} else {
|
||
content += '<a awsui-qtip="text:\''+ current.name +'\',position:\'bottom\'" id="' + current.id + '" data-ispublish="' + current.isPublish + '" href="javascript:void(0);" onclick="openDetail(this);">';
|
||
content += '<span style="margin-left:5px;">' + current.name + ' [' + current.intro + ']</span>';
|
||
content += '</a>';
|
||
}
|
||
content += '<span style="color: #808080; float: right; font-size: 14px;">' + transferDateFormat(current.date) + '</span>';
|
||
content += '</li>';
|
||
}
|
||
content += '</ul>';
|
||
if (data.length == 0) {
|
||
$('#noContent').show();
|
||
} else {
|
||
$('#common').html(content);
|
||
}
|
||
})
|
||
|
||
function openDetail(obj) {
|
||
var id = $(obj).attr('id');
|
||
var ispublish = $(obj).attr('data-ispublish');// 1:当前状态已发布;0:当前未发布,不允许打开
|
||
$(obj).addClass('clicked');
|
||
if(ispublish == 0) {
|
||
$.simpleAlert('当前流程是未发布状态,不允许打开');
|
||
} else {
|
||
for(var i = 0; i < data.length; i++) {
|
||
if (id == data[i].id && data[i].isPublish == 1) {
|
||
method = data[i].method;
|
||
taskId = data[i].taskId;
|
||
break;
|
||
}
|
||
}
|
||
openPortal(sid, id, taskId);// 打开流程
|
||
}
|
||
}
|
||
</script>
|
||
|
||
</head>
|
||
<body style="background-color: #FFF;color:rgb(96,96,96)">
|
||
<div id="common" class="div-style">
|
||
</div>
|
||
<div id="noContent" style="display:none;" class="awsui-message-page">
|
||
<div class="content">
|
||
<span class="icon" message-type="no_content"></span><span
|
||
class="title">无数据</span>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html>
|