(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-50bf5053"],{4331:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Search",{on:{Func:e.SearchFunc}}),n("el-tree",{ref:"tree",attrs:{data:e.data,props:e.defaultProps,"filter-node-method":e.filterNode},on:{"node-click":e.handleNodeClick}})],1)},a=[],c=(n("d3b7"),n("3ca3"),n("ddb0"),n("4de4"),n("d81d"),n("b0c0"),n("3191")),d=function(){return n.e("chunk-11d7e5e0").then(n.bind(null,"9d59"))},i={components:{Search:d},props:{Data:{type:Object,default:function(){return{}}}},data:function(){return{data:[],defaultProps:{children:"children",label:"label"}}},created:function(){this.TreeData()},methods:{SearchFunc:function(e){this.$refs.tree.filter(e)},filterNode:function(e,t){return!e||-1!==t.label.indexOf(e)},TreeData:function(){var e=this;try{c["a"].knowledgebase_tree().then((function(t){var n=t.data;n=n.map((function(e){var t={id:e.id,label:e.name};return t["children"]=e.chapters.map((function(e){var t={id:e.id,label:e.name,subject_id:e.subject_id};return t})),t})),e.data=n}))}catch(t){console.error("数据处理错误：".concat(t))}},handleNodeClick:function(e){e.children||this.$emit("Func",{chapter:e.id,limit:1,page:1})}}},o=i,l=n("2877"),u=Object(l["a"])(o,r,a,!1,null,null,null);t["default"]=u.exports},d81d:function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").map,c=n("1dde"),d=c("map");r({target:"Array",proto:!0,forced:!d},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})}}]);
//# sourceMappingURL=chunk-50bf5053.62091fb1.js.map