/* empty css             *//* empty css                   */import{_ as e}from"./index-e025ca33.js";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-e74be938.js";/* empty css                        *//* empty css                    *//* empty css               */import"./el-tooltip-4ed993c7.js";/* empty css                  *//* empty css                     */import{_ as s}from"./destroy.vue_vue_type_script_setup_true_lang-35bf4cb0.js";import{_ as a}from"./update.vue_vue_type_script_setup_true_lang-b418af91.js";import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-0d8f66cc.js";import{_ as l}from"./operate.vue_vue_type_script_setup_true_lang-ffb863d5.js";import{_ as r}from"./search.vue_vue_type_script_setup_true_lang-8edf6ccf.js";/* empty css                     *//* empty css                 */import{_ as p}from"./create.vue_vue_type_script_setup_true_lang-80167917.js";import{u as i}from"./useGetList-d550ec92.js";import{u}from"./useDestroy-eecfd4a1.js";import{u as m}from"./useOpen-8f14d39d.js";import{d as _,p as d,x as n,o as j,c,a as b,w as v,f,e as y,Z as g,l as h,a9 as w,a5 as V,a6 as x,aa as k,ab as C,a2 as U}from"./index-41bf27b7.js";/* empty css                  *//* empty css                   *//* empty css                  */import"./index-2a89b0c2.js";/* empty css                  *//* empty css                  */import"./add.vue_vue_type_script_setup_true_lang-ddaf2b26.js";/* empty css                        *//* empty css                       *//* empty css                 */import"./useCreate-9054a19b.js";import"./useShow-b44df7c8.js";const q={class:"table-default"},S=_({__name:"index",setup(_){const S="permissions/jobs",{data:D,query:G,search:L,reset:O,loading:Q}=i(S),{destroy:R,deleted:T}=u(),W=d((()=>{var e;return null==(e=D.value)?void 0:e.data})),{open:X,close:Y,title:Z,visible:$,id:z}=m();return n((()=>{L(),T(O)})),(i,u)=>{const m=V,_=x,d=r,n=l,D=k,T=o,A=a,B=s,E=C,F=t,H=e,I=U;return j(),c("div",null,[b(d,{search:f(L),reset:f(O)},{body:v((()=>[b(_,{label:"岗位名称",prop:"job_name"},{default:v((()=>[b(m,{modelValue:f(G).job_name,"onUpdate:modelValue":u[0]||(u[0]=e=>f(G).job_name=e),name:"job_name",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),y("div",q,[b(n,{show:f(X)},null,8,["show"]),g((j(),h(E,{data:f(W),class:"mt-3"},{default:v((()=>[b(D,{prop:"job_name",label:"岗位名称"}),b(D,{prop:"coding",label:"岗位编码"}),b(D,{prop:"status",label:"状态"},{default:v((e=>[b(T,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,id:e.row.id,api:S},null,8,["modelValue","onUpdate:modelValue","id"])])),_:1}),b(D,{prop:"sort",label:"排序"}),b(D,{prop:"description",label:"岗位描述"}),b(D,{label:"操作",width:"200"},{default:v((e=>[b(A,{onClick:t=>f(X)(e.row.id)},null,8,["onClick"]),b(B,{onClick:t=>f(R)(S,e.row.id)},null,8,["onClick"])])),_:1})])),_:1},8,["data"])),[[I,f(Q)]]),b(F)]),b(H,{modelValue:f($),"onUpdate:modelValue":u[2]||(u[2]=e=>w($)?$.value=e:null),title:f(Z),"destroy-on-close":""},{default:v((()=>[b(p,{onClose:u[1]||(u[1]=e=>f(Y)(f(O))),primary:f(z),api:S},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{S as default};
