yili-apps/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.portal.htm
2022-06-27 23:38:56 +08:00

310 lines
8.3 KiB
HTML
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!Doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>流程分级portal</title>
<script src="../commons/js/jquery/scripts/jquery.js"></script>
<link href="../commons/css/awsui.css" rel="stylesheet">
<link href="../apps/com.actionsoft.apps.coe.pal/css/pal.ws.portal.css" rel="stylesheet" type='text/css'/>
<script src="../commons/js/awsui.js"></script>
<script src='../apps/com.actionsoft.apps.coe.pal/js/coe.commons.js'></script>
<script src="../apps/com.actionsoft.apps.coe.pal/js/coe.pal.pl.repository.js"></script>
<style>
/*角标样式*/
.awsui-grid2 {
top: 50%;
overflow: hidden;
}
.awsui-halve{
position: absolute;
bottom: 0;
z-index: 9;
height: 16px;
font-size: 10px;
white-space: nowrap;
color: #fff;
padding: 0px 50px;
}
.awsui-halve-left{
left:0;
transform: rotate(35deg) translate(-33%, 150%);
}
.layout-tile .affiliate{
margin-bottom: -42px;
}
.layout-tile .affiliate:hover{
margin:-42px 0 0;
}
.pltitle{
}
.pltitle:hover{
cursor:pointer;
text-decoration:underline;
}
.clear{
clear: both;
}
.layout_tile_div {
width: 280px;
padding: 10px;
}
.layout_tile_div:hover {
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1), 0 4px 8px 0 rgba(0,0,0,0.2);
}
.layout_tile_div li:before {
content: "·";
margin-right: 5px;
}
.mark {
height: 24px;
width: 24px;
position: absolute;
left: 4px;
background-image: url("../apps/com.actionsoft.apps.coe.pal/img/icon/pal-to-link.png");
}
.each-layout-left{
width:160px;
}
.each-layout-left-title{
display:inline-block;
width:230px;
line-height:20px;
height:20px;
}
.each-layout-left-info{
display:inline-block;
line-height:20px;
height:20px;
}
.each-layout-div{
width:230px;
height:135px;
}
.each-layout-div-top{
width:100%;
line-height:20px;
height:20px;
display:inline-block;
}
.each-layout-div-center .processicon{
float:left;
display:inline-block;
width:70px;
font-size:55px;
color:#e8e8e8;
cursor:pointer;
}
.each-layout-div-center img{
cursor:pointer;
}
.sub-process-list{
width:150px;
float:left;
display:inline-block;
line-height:18px;
height:18px;
font-size:12px;
padding-left:5px;
}
.each-layout-div-center{
width:100%;
height: 82px;
line-height: 82px;
padding: 5px 0px;
}
.each-layout-div-bottom{
width:100%;
line-height:20px;
height:20px;
display:inline-block;
}
.each-layout-div-bottom .userinfo{
line-height:20px;
height:20px;
display:inline-block;
float:left;
}
.publish-text{
line-height:20px;
height: 20px;
width: 40px;
position: absolute;
right: 10px;
bottom: 3px;
}
</style>
<script>
function inFile(o)
{
//event.stopPropagation();
o=$(o);
//var obj = parent.repositoryTree.getNodeDomById(o.attr("uuid"));
parent.repositoryTree.selectNode(o.attr("uuid"), true);
var url="./w?sid=" + encodeURIComponent(parent.jQuery('#sid').val()) + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_portal_page&ruuid=" + o.attr("uuid") + "&type=1&wsid=" + parent.jQuery("#wsId").val();
parent.awsTabs.setTitle("main",o.attr("name"));
parent.document.getElementById("main").src=url;
parent.document.getElementById("main").url=url;
}
var jsonBpnMarkAndAssgin = <#jsonBpnMarkAndAssgin>;
var invalidCorrelate = "<#invalidCorrelate>";
$(document).ready(function(){
if(invalidCorrelate != '') {
var msg = "<b>" + invalidCorrelate + "</b> 在AWS端没有检测到流程源文件已断开关联如需要请重新关联";
parent.$('#invalidCorrelateDialog').html(msg);
parent.$('#invalidCorrelateDialog').dialog({
title : '提示',
closable : false,
buttons:[
{text:'确定',cls:"blue",handler:function(){
parent.$("#invalidCorrelateDialog").dialog("close");
return;
}
}
]
});
}
});
// 组织结构查询
function exportOrgData(wsId, ruuid) {
$.simpleAlert('请稍等', 'loading');
var params = {
cmd : "com.actionsoft.apps.coe.pal_pl_repository_export_org_data",
sid : encodeURI(sid),
ruuid : ruuid,
wsId : wsId
};
jQuery.ajax({
type : "POST",
url : "./jd",
data : params,
success : function(r) {
if (r.result == 'ok') {
$.simpleAlert("close");
var html = '<textarea type="text" style="width:100%;height:300px;" readonly class="awsui-input awsui-textarea">' + r.data.data + '</textarea>';
$('#exportOrgData').empty();
$('#exportOrgData').append(html);
$("#exportOrgData").dialog({
buttons:[
{text:'关闭',handler:function(){$("#exportOrgData").dialog("close");}}
]
});
} else {
$.simpleAlert("close");
$.simpleAlert(r.msg, 'error');
}
}
});
}
//打开组织下的导入菜单
function showImportMenu() {
$("#menuImport").menu({ //初始化菜单
target:$("#importButton")
});
//修改菜单的位置
$("#menuImport").css("left", "");
$("#menuImport").css("top", "");
}
</script>
<#batch-js>
</head>
<body style="background-color: #F1F2F4; padding: 5px 0px 5px 20px;">
<div class="toolbar" style="width: auto; min-height: 30px; padding-bottom: 10px;">
<span style="font-size: 15px;margin-left: 2px; color: #222; float:left; padding-top:5px;"><#name></span>
</div>
<div style="position: absolute; right: 10px; top: 8px;">
<#batch-button>
<#createButton>
<#importButton>
<#importMenu>
<#exportButton>
<span id="show_style_icon" style="float: right; font-size:0;">
<span class="span_icon current" icontype="tile">
<img src="../apps/com.actionsoft.apps.coe.pal/img/icon/tile.png" style="height: 10px;">
</span>
<span class="span_icon" icontype="list" style="border-left: none;">
<img src="../apps/com.actionsoft.apps.coe.pal/img/icon/list.png" style="width: 10px; height: 10px;">
</span>
</span>
</div>
<div class="layout_tile" id="layout_tile">
<#pane>
</div>
<div class="layout_list" id="layout_list" style="display: none;">
<table class="awsui-ux">
<tr>
<td>
<table class="table table-thin table-hover layout_table" style="box-shadow: 0 0 15px rgb(221, 221, 221);">
<thead>
<tr style="background-color: #F5F5F5;">
<th style='width:30%;'>流程名称</th>
<th style='width:20%;'>流程分类</th>
<th style='width:10%;'>创建人</th>
<th style='width:10%;'>创建时间</th>
<th style='width:10%;'>更多</th>
</tr>
</thead>
<tbody><#list></tbody>
</table></td>
</tr>
</table>
</div>
<div id="attr_dialog-normal" style="width:332px;display:none;" title="">
<div id='attr_content' style='margin:10px;height:422px;'>
<iframe allowfullscreen="true" frameBorder="0" id="attr_content_iframe" name="attr_content_iframe" style="width:100%; height: 420px;" webkitallowfullscreen="true" ></iframe>
</div>
</div>
<!-- 导入Dialog -->
<div id="importDlg" style="display: none; width: 500px; height: 200px;">
<div style="width: 100%; height: 55%; text-align: center;">
<table class="awsui-ux">
<tbody>
<tr>
<td class="awsui-ux-title" style="width: 60px;">文件名</td>
<td>
<span class="required"><input class="awsui-textbox" id="importFileName" readonly="true" style="width: 250px;" type="text"></span>
<span class="button blue" id="upfileImport" onclick="return false;" style="margin-left: 10px;">上传文件</span>
</td>
</tr>
</tbody>
</table>
<span class="button" id="downloadTmp" onclick="return false;">下载模板</span>
<span class="button green" id="importFile" onclick="return false;">导入</span>
</div>
</div>
<!-- 组织导出查询Dialog -->
<div id="exportOrgData" style="display:none;width:500px;height:400px;" title="组织结构">
</div>
<#batch-dlg>
<input id="sid" name="sid" type="hidden" value="<#sid>" >
<input id="uuid" name="uuid" type="hidden" value="<#uuid>" >
<input id="parentid" name="parentid" type="hidden" value="<#parentid>" >
</body>
<script>
function showGuide3(){
top.window.showGuide(3);
}
$(function(){
$(window).mousedown(function(e) {
$("#contextMenu", parent.document).menu("close");
});
})
</script>
</html>