import{a5 as b,W as g}from"./index.CL7yl-Wb.js";import{a as D,r as k,w as v,c as y,o as T,Q as C,s as Y}from"./vue.D1BjjNmv.js";const x=D({__name:"index",props:{modelValue:{type:Number||String}},setup(a){const i=a,o=k();return v(()=>i.modelValue,async l=>{const r=await b().getParentDeptById(l);if(r!=null&&r.nodes){let m="";console.log(r),r.nodes.forEach((c,d)=>{m+=d>0?`/${c.name}`:c.name}),o.value=m}},{immediate:!0}),(l,n)=>(T(),y("div",null,C(o.value),1))}}),F=(a={create_datetime:{form:!1,table:!1,search:!1},update_datetime:{form:!1,table:!1,search:!1},creator_name:{form:!1,table:!1,search:!1},modifier_name:{form:!1,table:!1,search:!1},dept_belong_id:{form:!1,table:!1,search:!1},description:{form:!1,table:!1,search:!1}})=>{var i,o,l,n,r,m,c,d,f,h,p,w,u,_;return{dept_belong_id:{title:"所属部门",type:"dict-tree",search:{show:((i=a.dept_belong_id)==null?void 0:i.search)||!1},dict:g({url:"/api/system/dept/all_dept/",isTree:!0,value:"id",label:"name",children:"children"}),column:{align:"center",width:300,show:((o=a.dept_belong_id)==null?void 0:o.table)||!1,component:{name:Y(x),vModel:"modelValue"}},form:{show:((l=a.dept_belong_id)==null?void 0:l.form)||!1,component:{multiple:!1,clearable:!0,props:{checkStrictly:!0,props:{label:"name",value:"id"}}},helper:"默认不填则为当前创建用户的部门ID"}},description:{title:"备注",search:{show:((n=a.description)==null?void 0:n.search)||!1},type:"textarea",column:{width:100,show:((r=a.description)==null?void 0:r.table)||!1},form:{show:((m=a.description)==null?void 0:m.form)||!1,component:{placeholder:"请输入内容",showWordLimit:!0,maxlength:"200"}},viewForm:{show:!0}},modifier_name:{title:"修改人",search:{show:((c=a.modifier_name)==null?void 0:c.search)||!1},column:{width:100,show:((d=a.modifier_name)==null?void 0:d.table)||!1},form:{show:!1},viewForm:{show:!0}},creator_name:{title:"创建人",search:{show:((f=a.creator_name)==null?void 0:f.search)||!1},column:{width:100,show:((h=a.creator_name)==null?void 0:h.table)||!1},form:{show:!1},viewForm:{show:!0}},update_datetime:{title:"更新时间",type:"datetime",search:{show:((p=a.update_datetime)==null?void 0:p.search)||!1,col:{span:8},component:{type:"datetimerange",props:{"start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD HH:mm:ss","picker-options":{shortcuts:[{text:"最近一周",onClick(t){const s=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*7),t.$emit("pick",[e,s])}},{text:"最近一个月",onClick(t){const s=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*30),t.$emit("pick",[e,s])}},{text:"最近三个月",onClick(t){const s=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*90),t.$emit("pick",[e,s])}}]}}},valueResolve(t){const{key:s,value:e}=t;e&&(t.form.update_datetime_after=e[0],t.form.update_datetime_before=e[1])}},column:{width:160,show:((w=a.update_datetime)==null?void 0:w.table)||!1},form:{show:!1},viewForm:{show:!0}},create_datetime:{title:"创建时间",type:"datetime",search:{show:((u=a.create_datetime)==null?void 0:u.search)||!1,col:{span:8},component:{type:"datetimerange",props:{"start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD HH:mm:ss","picker-options":{shortcuts:[{text:"最近一周",onClick(t){const s=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*7),t.$emit("pick",[e,s])}},{text:"最近一个月",onClick(t){const s=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*30),t.$emit("pick",[e,s])}},{text:"最近三个月",onClick(t){const s=new Date,e=new Date;e.setTime(e.getTime()-3600*1e3*24*90),t.$emit("pick",[e,s])}}]}}},valueResolve(t){const{key:s,value:e}=t;e&&(t.form.create_datetime_after=e[0],t.form.create_datetime_before=e[1])}},column:{width:160,show:((_=a.create_datetime)==null?void 0:_.table)||!1},form:{show:!1},viewForm:{show:!0}}}};export{F as c};
