1 |
- /* empty css *//* empty css */import{_ as e}from"./index-b284b64a.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import{_ as t}from"./destroy.vue_vue_type_script_setup_true_lang-6551c4ce.js";import{_ as a}from"./update.vue_vue_type_script_setup_true_lang-66560a5a.js";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang-680afce6.js";import{_ as r}from"./operate.vue_vue_type_script_setup_true_lang-7679bbf9.js";import{_ as l}from"./search.vue_vue_type_script_setup_true_lang-4466c507.js";/* empty css *//* empty css */import{_ as o}from"./create.vue_vue_type_script_setup_true_lang-8be1ea1f.js";import{u as p}from"./useGetList-13e33809.js";import{u as i}from"./useDestroy-9e1a9082.js";import{u}from"./useOpen-4ff8cada.js";import{d as m,n as d,z as n,o as _,c,a as j,w as f,f as v,e as y,Z as b,l as h,a9 as w,a5 as g,a6 as V,aa as x,ab as k,a2 as C}from"./index-3bbb91df.js";/* empty css *//* empty css *//* empty css */import"./index-3ea3470b.js";/* empty css */import"./add.vue_vue_type_script_setup_true_lang-b83a5a41.js";/* empty css *//* empty css *//* empty css */import"./useCreate-c4f57aaa.js";import"./useShow-0cfeb25d.js";const U={class:"table-default"},R=m({__name:"index",setup(m){const R="permissions/departments",{data:D,query:G,search:L,reset:O,loading:S}=p(R,!1),{destroy:q,deleted:z}=i(),{open:H,close:I,title:J,visible:K,id:M}=u(),N=d((()=>{var e;return null==(e=D.value)?void 0:e.data}));return n((()=>{L(),z(O)})),(p,i)=>{const u=g,m=V,d=l,n=r,D=x,z=s,P=a,Q=t,T=k,Z=e,A=C;return _(),c("div",null,[j(d,{search:v(L),reset:v(O)},{body:f((()=>[j(m,{label:"部门名称",prop:"department_name"},{default:f((()=>[j(u,{modelValue:v(G).department_name,"onUpdate:modelValue":i[0]||(i[0]=e=>v(G).department_name=e),name:"department_name",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),y("div",U,[j(n,{show:v(H)},null,8,["show"]),b((_(),h(T,{data:v(N),class:"mt-3","row-key":"id","default-expand-all":"","tree-props":{children:"children"}},{default:f((()=>[j(D,{prop:"department_name",label:"部门名称"}),j(D,{prop:"sort",label:"排序"}),j(D,{prop:"status",label:"状态"},{default:f((e=>[j(z,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,id:e.row.id,api:R,onRefresh:v(L)},null,8,["modelValue","onUpdate:modelValue","id","onRefresh"])])),_:1}),j(D,{prop:"created_at",label:"创建时间"}),j(D,{label:"操作",width:"200"},{default:f((e=>[j(P,{onClick:t=>v(H)(e.row.id)},null,8,["onClick"]),j(Q,{onClick:t=>v(q)(R,e.row.id)},null,8,["onClick"])])),_:1})])),_:1},8,["data"])),[[A,v(S)]])]),j(Z,{modelValue:v(K),"onUpdate:modelValue":i[2]||(i[2]=e=>w(K)?K.value=e:null),title:v(J),"destroy-on-close":""},{default:f((()=>[j(o,{onClose:i[1]||(i[1]=e=>v(I)(v(O))),primary:v(M),api:R},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{R as default};
|