text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6eb1"],{"156b":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticStyle:{height:"100%",width:"100%",overflow:"hidden"},attrs:{id:"myChart"}})},o=[],n=(r("7f7f"),r("66df")),i={data:function(){return{groupDepartData:[]}},methods:{createDepartTree:function(t){var e=r("313e"),a=e.init(document.getElementById("myChart"));a.setOption({tooltip:{show:!0,trigger:"item",triggerOn:"mousemove"},series:[{type:"tree",roam:!0,data:this.groupDepartData,orient:"TB",layout:"orthogonal",lineStyle:{curveness:"1"},label:{position:"bottom",color:"#1196EE"},symbolSize:12,initialTreeDepth:3}]})},getGroupDepartData:function(){var t=this;n["a"].request({url:"/m/getDeparts.do",data:{},method:"post"}).then(function(e){t.groupDepartData=t.getGroupDepartArray(0,e.data.content),t.createDepartTree(t.groupDepartData)})},getGroupDepartArray:function(t,e){var r=this.getGroupDepartParentArray(t,e);if(r.length>0)for(var a in r)r[a].children=this.getGroupDepartArray(r[a].depart_id,e);return r},getGroupDepartParentArray:function(t,e){var r=new Array;for(var a in e)e[a].depart_fid===t&&r.push({name:e[a].depart_name,value:[e[a].username],depart_fid:e[a].depart_fid,depart_id:e[a].depart_id,tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(t){return"部门名称："+t.name+"<br>部门负责人："+t.value[0]+"<br>"}}});return r}},mounted:function(){this.getGroupDepartData()}},p=i,u=(r("6509"),r("2877")),d=Object(u["a"])(p,a,o,!1,null,null,null);d.options.__file="groupDepart.vue";e["default"]=d.exports},6509:function(t,e,r){"use strict";var a=r("c21a"),o=r.n(a);o.a},c21a:function(t,e,r){}}]);