(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-415dce90"],{"73d9":function(e,n,t){},"8fd1":function(e,n,t){"use strict";t("73d9")},a088:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"menu-tree"},[t("ul",{staticClass:"first-menu"},[0==e.menuList.length?t("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(n){return t("li",{key:n.menuId,class:["first-menu-item",{active:n.menuId==e.activeMenuId}],on:{click:function(t){return e.onMenuChange(n)}}},[e.isApp?t("el-checkbox",{attrs:{value:e.appIds.some((function(e){return e.appId==n.project&&1==e.openFlag}))},on:{change:function(t){return e.onAppOpenChange(n.project,t)}}}):e._e(),e._v("\n        "+e._s(n.menuName)+"\n    ")],1)}))],2),t("div",{staticClass:"all-menu"},[t("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},c=[],i=(t("c5f6"),t("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object,appIds:Array,isApp:Boolean},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var n=this,t=[];return e.forEach((function(e){t.push(e.menuId),Array.isArray(e.children)&&(t=t.concat(n.getAllMenuId(e.children)))})),t},onChange:function(e){var n={};n[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,n))},onAppOpenChange:function(e,n){var t=this.appIds.map((function(t){var a=Object.assign({},t);return a.appId==e&&(a.openFlag=Number(n)),a}));this.$emit("app-open-change",t)}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),s=i,u=(t("8fd1"),t("2877")),o=Object(u["a"])(s,a,c,!1,null,"67e08250",null);n["default"]=o.exports}}]);