import{P as C}from"./page-auth.ffc7568b.js";import{_ as B}from"./organize-tree.vue_vue_type_script_setup_true_lang.32951c56.js";import{a as V,r as d,b as _,c as u,j as b,h as f,e as c,m as t,x as m,F as y,i as z,n as E,p as S,l as g,f as r,u as D}from"./index.4d061c66.js";import"./usePermission.8064505c.js";import"./btnList.6c44b4ef.js";import"./useAsync.df7387ce.js";import"./useNav.5e73c372.js";const F={key:0,class:"flex cursor-pointer"},N=t("span",{class:"mx-[5px]"},"/",-1),P=["onClick"],T={key:0,class:"mx-[5px]"},w={class:"flex justify-between pt-[20px]"},j={class:"flex gap-1"},A={class:"flex gap-[10px]"},I={class:"flex-1"},J=V({__name:"index",setup(R){const x="organize",a=d([]),o=d({name:"",nickname:""}),l=d(null);function k(n){a.value.push(n)}function v(n){if(n===a.value.length-1)return;const e=a.value[n],i=e?e.value:"";l.value.changePid(i),l.value.onSearch(),a.value.splice(n+1)}return(n,e)=>{const i=_("ElInput"),h=_("ElButton");return u(),b(D(C),{class:"px-[10px] h-[calc(100vh-60px)] bg-white",pageName:x,margin:!1},{default:f(()=>[a.value.length>0?(u(),c("ul",F,[t("li",{onClick:e[0]||(e[0]=()=>v())},[m(" \u5168\u90E8\u5206\u7C7B "),N]),(u(!0),c(y,null,z(a.value,(s,p)=>(u(),c("li",{class:E({"cursor-pointer":!0,"text-[#ccc]":p===a.value.length-1}),key:s.value,onClick:()=>v(p)},[m(S(s.name)+" ",1),p!==a.value.length-1?(u(),c("span",T,"/")):g("",!0)],10,P))),128))])):g("",!0),t("div",w,[t("div",j,[r(i,{modelValue:o.value.name,"onUpdate:modelValue":e[1]||(e[1]=s=>o.value.name=s),placeholder:"\u90E8\u95E8\u540D\u79F0",clearable:"",size:"small",onChange:e[2]||(e[2]=()=>l.value.onSearch())},null,8,["modelValue"]),r(i,{modelValue:o.value.nickname,"onUpdate:modelValue":e[3]||(e[3]=s=>o.value.nickname=s),placeholder:"\u5458\u5DE5\u540D\u79F0",clearable:"",size:"small",onChange:e[4]||(e[4]=()=>l.value.onSearch())},null,8,["modelValue"])]),t("div",A,[r(h,{type:"success",size:"small",plain:""},{default:f(()=>[m("\u6DFB\u52A0")]),_:1}),r(h,{type:"primary",size:"small",plain:"",onClick:e[5]||(e[5]=()=>l.value.onSearch())},{default:f(()=>[m("\u5237\u65B0")]),_:1})])]),t("div",I,[r(B,{ref_key:"organizeTreeRef",ref:l,otherParms:o.value,onBreadcrumbChange:k},null,8,["otherParms"])])]),_:1})}}});export{J as default};
