activiti在线编辑器 关闭路径
2016-07-17 16:57
169 查看
activiti自身的modeler跳转是返回modeler.html页面的上一级地址,然而官方却把modeler放在了WEB-INF下,所以大家点关闭看到的都是直接返回首页。
经过断点研究js这个大坑,终于找到了关闭按钮的指向地址:editor-app——configuration——toolbar-default-actions.js
这个js就是modeler页面,editor-header 部分调用的执行js。
找到这个js中的
假如你的路劲是:http://localhost:8080/workflow/modeler.html?Model=1025,这个方法得到的路径就是http://localhost:8080/workflow,相当于系统首页了。
将方法改为自己的路劲
同样的,点击保存并关闭也是在这个js文件,找到
经过断点研究js这个大坑,终于找到了关闭按钮的指向地址:editor-app——configuration——toolbar-default-actions.js
这个js就是modeler页面,editor-header 部分调用的执行js。
找到这个js中的
closeEditor: function(services) { window.location.href = "./"; }
假如你的路劲是:http://localhost:8080/workflow/modeler.html?Model=1025,这个方法得到的路径就是http://localhost:8080/workflow,相当于系统首页了。
将方法改为自己的路劲
closeEditor: function(services) { window.location.href = "./bpm/model/index"; }得到的路劲就是:http://localhost:8080/workflow/bpm/model/index (这是我自身项目,模型列表页面),如果需要跳转其它页面,自己改路径就行了。
同样的,点击保存并关闭也是在这个js文件,找到
$scope.saveAndClose = function () { $scope.save(function() { window.location.href = "./"; }); };改为
$scope.saveAndClose = function () { $scope.save(function() { window.location.href = "./bpm/model/index"; }); };就可以了。
相关文章推荐
- CentOS7 Keepalived+LVS 负载均衡 后台节点健康检查
- 判断网络状态工具类
- Linux 命令小记
- 用C语言实现二分查找
- HTTP的协议解析
- Visual Studio 2013中中文出现红色下划线解决方法
- 解决Android studio华为真机运行LogCat日志不断输出问题
- Apache Kafka编程入门指南:设置分区数和复制因子
- 基于python的双色球程序
- Java 小知识(1)
- Apache Kafka编程入门指南:Producer篇
- start—py(2、高阶函数)
- Strlen()与sizeof()
- ActionScript3.0反射遇到的问题
- Css3 Media Query实现响应式的方法总结
- 影像融合方法
- 40. Combination Sum II
- 开始的安卓
- Kafka设计解析:Kafka Consumer解析
- 监听菜单列表点击事件