webpackJsonp([57],{"7b9o":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r("4YfN"),n=r.n(i),o=r("9rMa"),s={data:function(){return{props:{label:"name",children:"children",isLeaf:"isLeaf"}}},computed:n()({},Object(o.c)({parentTree:function(t){return t.shopProduct.parentTree},childrenTree:function(t){return t.shopProduct.childrenTree}})),created:function(){this.getTreeData()},methods:{getTreeData:function(){this.$store.dispatch("shop/product/sortlist",{id:0})},handleNodeClick:function(t){this.$store.dispatch("shop/product/sortlist",{id:t.id})},loadNode:function(t,e){if(console.log(t),0===t.level)return e(this.parentTree);for(var r in t.parent.childNodes){var i=t.parent.childNodes[r].data.id;t.data.id==i&&this.$store.dispatch("shop/product/sortlist",{id:t.data.id}).then(function(t){e(t)})}}}},a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"side-tree",staticStyle:{width:"15%",float:"left","margin-right":"20px"}},[e("el-tree",{attrs:{"highlight-current":"",data:this.parentTree,props:this.props,lazy:"",load:this.loadNode},on:{"node-click":this.handleNodeClick}})],1)},staticRenderFns:[]},d=r("C7Lr")(s,a,!1,null,null,null);e.default=d.exports}});