1import{r as m}from"./rolldown-runtime-BNNRdYrd.js";import{A as i,At as n,Ct as d,L as u,it as c}from"./vue.runtime.esm-bundler-BXOQDxND.js";import{a as f}from"./useUserStore-akqeyJtm.js";import{St as _}from"./index-DbIsMhdV.js";var x=m({default:()=>b});u();d();function b(s="add",e,r,l){const p=n(),t=n([]),o=_(r);return s==="add"&&(r.parent_id=0),f().get("/admin/department/list?level=1").then(a=>{t.value=a.data.list,t.value.unshift({id:0,name:"顶级é¨é¨",value:0})}),[{label:()=>e("baseDepartment.parentDepartment"),prop:"parent_id",render:()=>i(c("el-tree-select"),{ref:p,data:t.value,props:{value:"id",label:"name"},"check-strictly":!0,"default-expand-all":!0,clearable:!0,onChange:a=>{a===r.id&&(l.error(e("baseDepartment.error.selfNotParent")),r.parent_id=o.parent_id)}},null),renderProps:{class:"w-full",placeholder:e("baseDepartment.placeholder.parentDepartment")}},{label:()=>e("baseDepartment.name"),prop:"name",render:"input",renderProps:{placeholder:e("form.pleaseInput",{msg:e("baseDepartment.name")})},itemProps:{rules:[{required:!0,message:e("form.requiredInput",{msg:e("baseDepartment.placeholder.name")})}]}}]}export{x as n,b as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.