177 lines
6.9 KiB
Plaintext
177 lines
6.9 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
<%@ include file="/commons/taglibs.jsp"%>
|
|
<%
|
|
String path = request.getContextPath();
|
|
String basePath = request.getScheme() + "://"
|
|
+ request.getServerName() + ":" + request.getServerPort()
|
|
+ path + "/";
|
|
%>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<%@ include file="/commons/meta.jsp"%>
|
|
<base href="<%=basePath%>">
|
|
<title>流程设置</title>
|
|
<link href="${ctx}/resource/js/plugins/loadmask/jquery.loadmask.css" rel="stylesheet" type="text/css" />
|
|
<script type='text/javascript' src='${ctx}/resource/js/plugins/loadmask/jquery.loadmask.js'></script>
|
|
<script>
|
|
function changeHref(id, srcStr) {
|
|
var currentId = $(".active").find("a").attr("id");
|
|
var isChange = $("#isChange").val();
|
|
var isRedirect = true;//是否跳转页面
|
|
if("UserContract"==currentId){//当前是基础配置,点击别的菜单会出现提示是否保存的按钮
|
|
if("1"==isChange){//内容有更改
|
|
//提示是否保存前面的操作
|
|
if(confirm("是否保存当前数据?")){
|
|
document.getElementById(id).contentWindow.save();
|
|
isRedirect = false;//当选择确认保存后 留在当前页面
|
|
$("#"+currentId).parent().addClass("active");
|
|
}else{
|
|
$("#isChange").val("0");//保存完毕后把是否已修改还原成未修改
|
|
}
|
|
}
|
|
}
|
|
//if(isRedirect){
|
|
//返回时跳转步数+1
|
|
var backSteps = $("#backSteps").val();
|
|
$("#backSteps").val(parseInt(backSteps)+1);
|
|
|
|
document.getElementById(id).src = srcStr;
|
|
//}
|
|
//$("#myTab3").find('li').removeClass("active");
|
|
}
|
|
function iframeHeight(down){
|
|
var height = "";
|
|
var imgHeight = $("#imgHeight").val();
|
|
if(imgHeight==""){
|
|
height = $("#"+down).contents().find("body").height();
|
|
}else{
|
|
height = imgHeight;
|
|
}
|
|
$("#"+down).height(height+20);
|
|
}
|
|
|
|
function gobacktolist(){
|
|
var isRedirect = true;//是否跳转页面
|
|
var isChange = $("#isChange").val();
|
|
if("1"==isChange){//内容有更改
|
|
//提示是否保存前面的操作
|
|
if(confirm("是否保存当前数据?")){
|
|
document.getElementById(id).contentWindow.save();
|
|
isRedirect = false;//当选择确认保存后 留在当前页面
|
|
}else{
|
|
$("#isChange").val("0");//保存完毕后把是否已修改还原成未修改
|
|
}
|
|
}
|
|
document.getElementById(id).src = srcStr;
|
|
}
|
|
|
|
function goback(){
|
|
var backSteps = $("#backSteps").val();
|
|
history.go(-parseInt(backSteps));
|
|
}
|
|
|
|
function publishProcess(url){
|
|
postAjax(url,'发布成功!',false,true);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<input type="hidden" id="imgHeight" value=""/>
|
|
<input type="hidden" id="backSteps" value="1"/>
|
|
<div class="main-container" id="main-container">
|
|
<%--<div class="panel-heading" style="background: #F5F5F5;color: #333;border: 0 !important;padding: 10px 20px;">
|
|
<span style="font-size: 14px;">流程名称:${processDefinition.procDefName}</span>
|
|
</div> --%>
|
|
<div class="row" style="margin-right:0;">
|
|
<div class="col-xs-12">
|
|
|
|
<div class="tabbable">
|
|
<input type="hidden" id="isChange" value="0"/>
|
|
|
|
<ul class="nav nav-tabs padding-12 tab-color-blue background-blue"
|
|
id="myTab3">
|
|
<li class="active"><a id="UserContract" data-toggle="tab"
|
|
onclick="changeHref('frmrightChild','${ctx}/processInfo/edit.do?userId=${model.userId}&procDefId=${processDefinition.procDefId }');"
|
|
href="" target="frmrightChild" class="current">基础配置</a></li>
|
|
|
|
<li><a id="UserEvent" href=""
|
|
data-toggle="tab"
|
|
onclick="changeHref('frmrightChild','${ctx}/activityInfo/actSet.do?processDefId=${processDefinition.procDefId }&appId=${sys}&mAppId=${mAppId}');"
|
|
target="frmrightChild">环节配置</a></li>
|
|
<!--
|
|
<li><a id="UserEvent" href="" data-toggle="tab"
|
|
onclick="changeHref('frmrightChild','${ctx}/activityInfo/list.do?processDefId=${processDefinition.procDefId }');"
|
|
target="frmrightChild">环节配置(列表)</a></li>
|
|
-->
|
|
<c:if test="${customSso != '1'}">
|
|
<li><a id="UserEducation" href="" data-toggle="tab"
|
|
onclick="changeHref('frmrightChild','${ctx}/dataObjectRelation/processList.do?processDefId=${processDefinition.procDefId }')"
|
|
target="frmrightChild">扩展属性配置</a></li>
|
|
<li>
|
|
</c:if>
|
|
<li><a id="UserPersonn" href="" data-toggle="tab"
|
|
onclick="changeHref('frmrightChild','${ctx}/actInfo/setActResource/setAllResourcelist.do?processDefId=${processDefinition.procDefId}')"
|
|
target="frmrightChild">环节人员配置</a></li>
|
|
|
|
<li>
|
|
<!--
|
|
<li><a id="NoticeRemind" href="" data-toggle="tab"
|
|
onclick="changeHref('frmrightChild','${ctx}/noticeRemindConfig/edit.do?procDefId=${processDefinition.procDefId}')"
|
|
target="frmrightChild">通知提醒规则配置</a></li>
|
|
|
|
<li> -->
|
|
|
|
<%-- <li>--%>
|
|
<!-- <button type="button"
|
|
class="btn btn-success" style="padding: 3px 3px 3px 0px;"
|
|
data-toggle="dropdown"
|
|
onclick="art.dialog.close();">
|
|
发布流程
|
|
</button> -->
|
|
<%-- <a id="UserPersonn" href="" data-toggle="tab"--%>
|
|
<%-- style="background-color: #87B97F;"--%>
|
|
<%-- onclick="publishProcess('${ctx}/procDefMgr/releaseProcess.do?procDefId=${processDefinition.procDefId}');"--%>
|
|
<%-- target="frmrightChild"> <i class="ace-icon fa fa-check-square-o bigger-110"></i>发布流程</a>--%>
|
|
<%-- </li>--%>
|
|
|
|
<li class="right-btn">
|
|
<button class="btn btn-sm bigger btn-yellow dropdown-toggle"
|
|
data-toggle="dropdown"
|
|
type="button"
|
|
onclick="publishProcess('${ctx}/procDefMgr/releaseProcess.do?procDefId=${processDefinition.procDefId}');">
|
|
<i class="ace-icon fa fa-check-square-o bigger-110"></i>
|
|
发布流程
|
|
</button>
|
|
<c:choose>
|
|
<c:when test="${not empty isSubProcess}">
|
|
<button class="btn btn-sm bigger btn-yellow dropdown-toggle"
|
|
data-toggle="dropdown" type="button"
|
|
onclick="art.dialog.close();">
|
|
<i class="ace-icon fa fa-arrow-left"></i>关闭
|
|
</button>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<button class="btn btn-sm bigger btn-yellow dropdown-toggle"
|
|
data-toggle="dropdown" type="submit"
|
|
onclick="window.location='${ctx}/procDefMgr/list.do?${queryParams}';">
|
|
<i class="ace-icon fa fa-arrow-left"></i>返回
|
|
</button>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
<div class="tab-content" style="width: 100%; height: 100%;">
|
|
<IFRAME style="width: 100%; height: 800px;" scrolling="no"
|
|
src="${ctx}/processInfo/edit.do?procDefId=${processDefinition.procDefId }"
|
|
frameBorder="0" id="frmrightChild" name="frmrightChild"
|
|
onload="iframeHeight('frmrightChild')" allowTransparency="true"></IFRAME>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |