(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c7e59"],{5327:function(n,e,t){"use strict";t.r(e);var i=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("Tree",{attrs:{data:n.data,render:n.cascaderRenderContent}})},o=[],a={name:"field-tree",components:{},props:{data:Array},data:function(){return{}},created:function(){},mounted:function(){},computed:{ifText:function(){var n=this;if(this.selectTable.f_if){var e=this.selectTable.f_if;return e=e.map((function(e){return n.data.some((function(n){if(n.id===e.id)return e.name=n.f_name,!0})),e})),e}return[]}},methods:{cascaderRenderContent:function(n,e){var t=this,i=e.root,o=e.node,a=e.data;return n("span",{style:{display:"inline-block",width:"100%"}},[n("span",[n("Input",{props:{value:a.value,size:"small"},style:{width:"200px"},on:{"on-change":function(n){a.value=n.target.value}}})]),n("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[n("Button",{props:{icon:"ios-add",type:"text",size:"small"},style:{marginRight:"8px"},on:{click:function(){var n=i.find((function(n){return n===o})).parent;if(void 0===n)t.data.push({value:""});else{var e=i.find((function(e){return e.nodeKey===n})).node,r=e.children.indexOf(a);e.children.splice(r+1,0,{title:""})}}}},["同级"]),n("Button",{props:{icon:"ios-add",type:"text",size:"small"},style:{marginRight:"8px"},on:{click:function(){var n=a.children||[];n.push({title:""}),t.$set(a,"children",n)}}},["子级"]),n("Button",{props:{icon:"ios-remove",type:"text",size:"small"},on:{click:function(){var n=i.find((function(n){return n===o})).parent;if(void 0===n){var e=t.data.findIndex((function(n){return n.nodeKey===a.nodeKey}));t.data.splice(e,1)}else{var r=i.find((function(e){return e.nodeKey===n})).node,c=r.children.indexOf(a);r.children.splice(c,1)}}}},["删除"])])])},optionUp:function(n,e){0===e?n.splice(n.length,0,n.shift()):n[e]=n.splice(e-1,1,n[e])[0]},optionDown:function(n,e){e===n.length-1?n.splice(0,0,n.pop()):n[e+1]=n.splice(e,1,n[e+1])[0]}}},r=a,c=t("9ca4"),l=Object(c["a"])(r,i,o,!1,null,null,null);e["default"]=l.exports}}]);