SpringMVC与Activiti网页流程设计器整合(二)

  • 动态获取项目名称

1、modeler.jsp   
获取项目名称
<script type="text/javascript">
	var appContextRoot='${pageContext.request.contextPath}';
</script>
2、editor-app/app-cfg.js
ACTIVITI.CONFIG = {
	'contextRoot' : appContextRoot+'/service',
};
3、editor-app/editor/oryx.debug.js
//ORYX.CONFIG.ROOT_PATH =		"editor/"; //TODO: Remove last slash!!
//ORYX.CONFIG.EXPLORER_PATH =		"explorer";
//ORYX.CONFIG.LIBS_PATH =		"libs";
ORYX.CONFIG.APP_PATH=                   appContextRoot+"/act";
ORYX.CONFIG.ROOT_PATH =		ORYX.CONFIG.APP_PATH+"/editor-app/editor/"; //TODO: Remove last slash!!
ORYX.CONFIG.EXPLORER_PATH =		ORYX.CONFIG.APP_PATH+"/explorer";
ORYX.CONFIG.LIBS_PATH =		ORYX.CONFIG.APP_PATH+"/editor-app/libs";




  • 流程设计页面去掉top

1、注销top代码

<div id="main" class="wrapper full clearfix" style="padding-top:0;" ng-style="{height: window.height + 'px'}" ng-app="activitiModeler" ng-include="'editor-app/editor.html'">
</div>
2、添加样式  style="padding-top:0;" 


修改前:


修改后:

  • 保存并关闭按钮和X直接关闭页面

editor-app/configuration/toolbar-default-actions.js
  closeEditor: function(services) {
//        	window.location.href = "./";
        	if(window.confirm('请确认数据是否已经保存,确定要关闭编辑器吗?'))
    			window.close();//关闭页面
        },
  $scope.saveAndClose = function () {
    	$scope.save(function() {
    		//window.location.href = "./";
//    		if(window.confirm('请确认数据是否已经保存,确定要关闭编辑器吗?'))
    			window.close();//关闭页面
    	});
    };



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值