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

来源:互联网 发布:自动软件安装 编辑:程序博客网 时间:2024/06/06 11:34

  • 动态获取项目名称

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 0
原创粉丝点击