/* empty css             *//* empty css                   */import{_ as e}from"./index-ec277c8c.js";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-e601cfd0.js";/* empty css                        *//* empty css                    *//* empty css               */import"./el-tooltip-4ed993c7.js";/* empty css                     */import{_ as s}from"./destroy.vue_vue_type_script_setup_true_lang-80684085.js";import{_ as a}from"./update.vue_vue_type_script_setup_true_lang-2f3455ac.js";import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-f20025cf.js";import{_ as l}from"./operate.vue_vue_type_script_setup_true_lang-6b1c85b1.js";import{_ as r}from"./search.vue_vue_type_script_setup_true_lang-8a36466d.js";/* empty css                     *//* empty css                 */import{_ as p}from"./create.vue_vue_type_script_setup_true_lang-6686e12b.js";import{u as i}from"./useGetList-33a80877.js";import{u}from"./useDestroy-f8db9248.js";import{u as m}from"./useOpen-ae3f1df9.js";import{d as _,n,z as d,o as j,c,a as v,w as b,f,e as y,Z as g,l as h,a9 as w,a5 as V,a6 as x,aa as C,ab as k,a2 as U}from"./index-545c1a76.js";/* empty css                  *//* empty css                   *//* empty css                  */import"./index-b347df0b.js";/* empty css                  *//* empty css                  */import"./add.vue_vue_type_script_setup_true_lang-90917888.js";/* empty css                        *//* empty css                       *//* empty css                 */import"./useCreate-4cdcc37e.js";import"./useShow-897a1bd7.js";const q={class:"table-default"},z=_({__name:"index",setup(_){const z="permissions/jobs",{data:G,query:L,search:O,reset:S,loading:A}=i(z),{destroy:D,deleted:E}=u(),F=n((()=>{var e;return null==(e=G.value)?void 0:e.data})),{open:H,close:I,title:J,visible:K,id:M}=m();return d((()=>{O(),E(S)})),(i,u)=>{const m=V,_=x,n=r,d=l,G=C,E=o,N=a,P=s,Q=k,R=t,T=e,Z=U;return j(),c("div",null,[v(n,{search:f(O),reset:f(S)},{body:b((()=>[v(_,{label:"岗位名称",prop:"job_name"},{default:b((()=>[v(m,{modelValue:f(L).job_name,"onUpdate:modelValue":u[0]||(u[0]=e=>f(L).job_name=e),name:"job_name",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),y("div",q,[v(d,{show:f(H)},null,8,["show"]),g((j(),h(Q,{data:f(F),class:"mt-3"},{default:b((()=>[v(G,{prop:"job_name",label:"岗位名称"}),v(G,{prop:"coding",label:"岗位编码"}),v(G,{prop:"status",label:"状态"},{default:b((e=>[v(E,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,id:e.row.id,api:z},null,8,["modelValue","onUpdate:modelValue","id"])])),_:1}),v(G,{prop:"sort",label:"排序"}),v(G,{prop:"description",label:"岗位描述"}),v(G,{label:"操作",width:"200"},{default:b((e=>[v(N,{onClick:t=>f(H)(e.row.id)},null,8,["onClick"]),v(P,{onClick:t=>f(D)(z,e.row.id)},null,8,["onClick"])])),_:1})])),_:1},8,["data"])),[[Z,f(A)]]),v(R)]),v(T,{modelValue:f(K),"onUpdate:modelValue":u[2]||(u[2]=e=>w(K)?K.value=e:null),title:f(J),"destroy-on-close":""},{default:b((()=>[v(p,{onClose:u[1]||(u[1]=e=>f(I)(f(S))),primary:f(M),api:z},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{z as default};
