webpackJsonp([6],{"7QvG":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"administrativeFrame",components:{searchMenu:s("ATfr").a},data:function(){return{}},computed:{},methods:{},mounted:function(){}},n={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"administrative-wrap"},[e("div",{staticClass:"inline-block administrative-wrap__left common-wrap__left"}),this._v(" "),e("search-menu"),this._v(" "),e("div",{staticClass:"inline-block administrative-wrap__right common-wrap__right"})],1)},staticRenderFns:[]};var a=s("VU/8")(i,n,!1,function(t){s("TZUj")},"data-v-22965699",null);e.default=a.exports},ATfr:function(t,e,s){"use strict";var i=s("woOf"),n=s.n(i),a={name:"searchMenu",components:{},props:{treeData:{type:Array,required:!0}},data:function(){return{searchKey:"",searchResultShow:!1,myProps:{children:"childrens",label:"label",disabled:"disabled"},menuData:[],defaultOpen:[]}},created:function(){},methods:{clearFn:function(){this.searchResultShow=!1},searchFn:function(){if(""==this.searchKey)return this.searchResultShow=!1,!1;this.searchResultShow=!0,this.$emit("handleSearchKey",this.searchKey)},handleNodeClick:function(t,e){this.$emit("handleTreeSelection",t,e)},sortGroupByLevel:function(t){var e,s,i,a,l={list0:{},list1:{},list2:{},list3:{},list4:{},list5:{},list6:{},list:t,listObj:{}};t.length&&t.forEach(function(t){t.name=t.name||"",t.disabled=!0,t.label=t.name||"",t.id=t.groupId||"",t.englishName=t.englishName||"",t.level=t.level,t.groupId=t.groupId||"",t.parentId=t.parentId||"",e=t.groupId,l["list"+t.level]&&(l["list"+t.level][e]=t,l["list"+t.level][e].children={}),0==t.level&&t.groupId});for(var r=6;r>0;r--)for(var c in l["list"+r])s=l["list"+r][c],(a=l["list"+(r-1)][s.parentId])&&(i=s.groupId,a.hasOwnProperty("childrens")||(a.childrens=[]),a.children[i]=s,a.childrens.push(s));l.listObj=n()({},l.list0,l.list1,l.list2,l.list3,l.list4,l.list5,l.list6);var o=[];for(var u in l.list0)o.push(l.list0[u]),this.defaultOpen.push(u);this.menuData=o,console.log(this.menuData)}},filter:{},computed:{},watch:{treeData:function(t,e){this.sortGroupByLevel(t)}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"searh-menu-container"},[s("div",{staticClass:"p-0-15"},[s("el-input",{attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入内容",clearable:""},on:{clear:t.clearFn},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchFn(e):null}},model:{value:t.searchKey,callback:function(e){t.searchKey=e},expression:"searchKey"}}),t._v(" "),t.searchResultShow?t._e():s("el-tree",{staticClass:"search-menu",attrs:{"node-key":"id","default-expanded-keys":t.defaultOpen,data:t.menuData,"highlight-current":!0,"expand-on-click-node":!1,props:t.myProps},on:{"node-click":t.handleNodeClick},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.node;return e.data,s("span",{staticClass:"custom-tree-node"},[s("i",{staticClass:"iconfont",class:1==i.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),t._v(" "),s("span",[t._v(t._s(i.label))])])}}])})],1),t._v(" "),t.searchResultShow?s("div",{staticClass:"search-result-container"},[t._m(0),t._v(" "),t._m(1)]):t._e()])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"search-result-ul"},[e("p",{staticClass:"title"},[this._v("部门列表")]),this._v(" "),e("li",{staticClass:"group-item items"},[e("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),this._v("\n                人事部\n            ")]),this._v(" "),e("li",{staticClass:"group-item items"},[e("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),this._v("\n                人事部\n            ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"search-result-ul"},[e("p",{staticClass:"title"},[this._v("人员列表")]),this._v(" "),e("li",{staticClass:"person-item items"},[e("i",{staticClass:"iconfont icon-chengyuan"}),this._v("\n                陈景良\n                "),e("span",{staticClass:"from-group"},[this._v("人事部")])]),this._v(" "),e("li",{staticClass:"person-item items"},[e("i",{staticClass:"iconfont icon-chengyuan"}),this._v("\n                陈景良\n                "),e("span",{staticClass:"from-group"},[this._v("人事部")])])])}]};var r=s("VU/8")(a,l,!1,function(t){s("V3EC")},null,null);e.a=r.exports},TZUj:function(t,e){},V3EC:function(t,e){}});
//# sourceMappingURL=6.1f821f83de71f205fb49.js.map