webpackJsonp([19],{V5eg:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.tdClass},[0!==t.root&&1!==t.nodes?n("span",{staticClass:"before-line",style:{left:t.model.bLeft+"px"}}):t._e(),t._v(" "),n("table",[n("tr",[n("td",{attrs:{colspan:t.colSpan}},[n("table",[n("tr",{staticClass:"leve",class:t.levelClass},[n("td",{staticClass:"td2"},[n("div",{staticClass:"td-title",on:{dblclick:function(e){return t.handlerExpand(t.model)}}},[t.model.childrens.length>0?n("span",{staticClass:"tree-close",class:{"tree-open":t.model.isExpand},on:{click:function(e){return t.handlerExpand(t.model)}}}):t._e(),t._v(" "),n("a",{staticClass:"ellipsis"},[n("i",{staticClass:"t-icon m-dep"}),t._v(" "),n("span",{attrs:{title:t.model.org_name}},[t._v(t._s(t.model.org_name))])])])]),t._v(" "),n("td",{staticClass:"td3"},[t._v(t._s(t.model.create_time))]),t._v(" "),n("td",{staticClass:"td4"},[n("span",{staticClass:"ellipsis",attrs:{title:t.model.modify_time}},[t._v(t._s(t.model.modify_time))])]),t._v(" "),n("td",{staticClass:"td6"},[n("a",{staticClass:"reset",attrs:{href:"javascript:;"},on:{click:function(e){return t.actionFunc(t.model)}}},[t._v("编辑")]),t._v(" "),n("i",{staticClass:"line"}),t._v(" "),n("a",{staticClass:"delete",attrs:{href:"javascript:;"},on:{click:function(e){return t.deleteFunc(t.model)}}},[t._v("删除")]),t._v(" "),n("i",{staticClass:"line"}),t._v(" "),n("a",{staticClass:"addr",attrs:{href:"javascript:;"},on:{click:function(e){return t.addOrganizationFunc(t.model)}}},[t._v("添加下级组织")])])])])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.model.isExpand,expression:"model.isExpand"}],staticClass:"other-node",class:t.otherNodeClass},t._l(t.model.childrens,function(e,s){return n("tree-item",{key:String("child_node"+s),attrs:{num:s,root:1,nodes:t.model.childrens.length,trees:t.trees,model:e},on:{actionFunc:t.actionFunc,deleteFunc:t.deleteFunc,addOrganization:t.addOrganizationFunc,handlerExpand:t.handlerExpand,"update:nodes":function(e){return t.$set(t.model.childrens,"length",e)},"update:trees":function(e){t.trees=e},"update:model":function(t){e=t}}})}),1)])},staticRenderFns:[]},a=n("VU/8")({name:"treeItem",props:["model","num","nodes","root","trees"],data:function(){return{parentNodeModel:null}},computed:{colSpan:function(){return 0===this.root?"":6},tdClass:function(){return 0===this.root?"td-border":"not-border"},levelClass:function(){return this.model?"leve-"+this.model.level:""},childNodeClass:function(){return 0===this.root?"":"child-node"},otherNodeClass:function(){return this.model?"other-node-"+this.model.level:""}},watch:{},methods:{getParentNode:function(t){var e=this;!function n(s,a){s.forEach(function(s){s.id===t.id&&(e.parentNodeModel=a),s.childrens&&n(s.childrens,s)})}(this.trees,this.trees)},handlerExpand:function(t){this.$emit("handlerExpand",t)},deleteFunc:function(t){this.$emit("deleteFunc",t)},actionFunc:function(t){this.$emit("actionFunc",t)},addOrganizationFunc:function(t){this.$emit("addOrganization",t)}},filters:{formatDate:function(t){return t}}},s,!1,null,null,null);e.default=a.exports}});
//# sourceMappingURL=19.55d29469c315bb154c20.js.map