(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e55aaa40"],{"6f3b":function(e,n,t){"use strict";var a=t("a6e7"),c=t.n(a);c.a},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("6f3b"),t("2877")),o=Object(u["a"])(s,a,c,!1,null,"e93f0ef4",null);n["default"]=o.exports},a6e7:function(e,n,t){}}]);