|
@@ -138,8 +138,6 @@ export default {
|
|
|
this.menus = this.permissionMenuList
|
|
|
// 根据后台配置菜单,重新排序加载路由信息
|
|
|
// console.log('----加载菜单逻辑----')
|
|
|
- console.log(this.mainRouters)
|
|
|
- console.log(this.permissionMenuList)
|
|
|
// console.log('----navTheme------' + this.navTheme)
|
|
|
// --update-end----author:scott---date:20190320------for:根据后台菜单配置,判断是否路由菜单字段,动态选择是否生成路由(为了支持参数URL菜单)------
|
|
|
},
|
|
@@ -174,9 +172,25 @@ export default {
|
|
|
this.findMenuBykey(i.children, key)
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ // 发起流程申请
|
|
|
+ startApply(param){
|
|
|
+ this.$router.push({
|
|
|
+ path:"/process-center/applyouter",
|
|
|
+ query:param
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
// update-end-author:taoyan date:20190430 for:动态路由title显示配置的菜单title而不是其对应路由的title
|
|
|
- }
|
|
|
+ },
|
|
|
+ mounted(){
|
|
|
+ // 监控iframe发起流程
|
|
|
+ window.addEventListener('message',({data})=>{
|
|
|
+ if (data.msg == "startApply"){
|
|
|
+ this.startApply(data.data);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|