1 |
- import{P as C}from"./page-auth.324b6f34.js";import{_ as B}from"./organize-tree.vue_vue_type_script_setup_true_lang.b5777743.js";import{b as E,p as d,k as _,o as u,h as V,A as f,c,a as t,l as m,F as b,r as y,J as z,t as S,E as g,j as r,f as D}from"./index.4d3e3847.js";import"./btnList.6c44b4ef.js";import"./useAsync.24db85a6.js";import"./useNav.afbe69e0.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]"},A={class:"flex gap-1"},j={class:"flex gap-[10px]"},I={class:"flex-1"},G=E({__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(),V(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(b,null,y(a.value,(s,p)=>(u(),c("li",{class:z({"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",A,[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",j,[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{G as default};
|