import{_ as e}from"./index-7266ee79.js";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-a66505b9.js";import{_ as t}from"./destroy.vue_vue_type_script_setup_true_lang-03aacc43.js";import{_ as s}from"./update.vue_vue_type_script_setup_true_lang-34cf7a97.js";import{_ as l}from"./index.vue_vue_type_script_setup_true_lang-5d221a19.js";import{_ as o}from"./operate.vue_vue_type_script_setup_true_lang-b52831fd.js";import{_ as r}from"./search.vue_vue_type_script_setup_true_lang-bbdf4bb9.js";import{_ as u}from"./create.vue_vue_type_script_setup_true_lang-f430fac6.js";import{u as p}from"./useGetList-4b13a7ea.js";import{u as _}from"./useDestroy-7132f8f0.js";import{u as i}from"./useOpen-280ec4e6.js";import{d,m as n,p as m,r as c,K as j,o as v,c as f,a as b,w as y,f as g,e as V,J as w,j as h,Q as x}from"./index-018fb6dd.js";import"./index-765bf96c.js";import"./add.vue_vue_type_script_setup_true_lang-9cf41186.js";import"./useCreate-b3492f2b.js";import"./useShow-ca493df3.js";const C={class:"table-default"},U=d({__name:"index",setup(d){const U="permissions/jobs",{data:k,query:L,search:O,reset:Q,loading:S}=p(U),{destroy:q,deleted:D}=_(),E=n((()=>{var e;return null==(e=k.value)?void 0:e.data})),{open:G,close:J,title:K,visible:M,id:N}=i();return m((()=>{O(),D(Q)})),(p,_)=>{const i=c("el-input"),d=c("el-form-item"),n=r,m=o,k=c("el-table-column"),D=l,P=s,R=t,T=c("el-table"),W=a,X=e,Y=j("loading");return v(),f("div",null,[b(n,{search:g(O),reset:g(Q)},{body:y((()=>[b(d,{label:"岗位名称",prop:"job_name"},{default:y((()=>[b(i,{modelValue:g(L).job_name,"onUpdate:modelValue":_[0]||(_[0]=e=>g(L).job_name=e),name:"job_name",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),V("div",C,[b(m,{show:g(G)},null,8,["show"]),w((v(),h(T,{data:g(E),class:"mt-3"},{default:y((()=>[b(k,{prop:"job_name",label:"岗位名称"}),b(k,{prop:"coding",label:"岗位编码"}),b(k,{prop:"status",label:"状态"},{default:y((e=>[b(D,{modelValue:e.row.status,"onUpdate:modelValue":a=>e.row.status=a,id:e.row.id,api:U},null,8,["modelValue","onUpdate:modelValue","id"])])),_:1}),b(k,{prop:"sort",label:"排序"}),b(k,{prop:"description",label:"岗位描述"}),b(k,{label:"操作",width:"200"},{default:y((e=>[b(P,{onClick:a=>g(G)(e.row.id)},null,8,["onClick"]),b(R,{onClick:a=>g(q)(U,e.row.id)},null,8,["onClick"])])),_:1})])),_:1},8,["data"])),[[Y,g(S)]]),b(W)]),b(X,{modelValue:g(M),"onUpdate:modelValue":_[2]||(_[2]=e=>x(M)?M.value=e:null),title:g(K),"destroy-on-close":""},{default:y((()=>[b(u,{onClose:_[1]||(_[1]=e=>g(J)(g(Q))),primary:g(N),api:U},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{U as default};
