/* empty css             *//* empty css                   */import{_ as e}from"./index-9f9af49f.js";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-66f33117.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-150648af.js";import{_ as o}from"./update.vue_vue_type_script_setup_true_lang-6ca4c467.js";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-efc92764.js";import{_ as l}from"./operate.vue_vue_type_script_setup_true_lang-13d1e748.js";import{_ as r}from"./search.vue_vue_type_script_setup_true_lang-72910575.js";/* empty css                     *//* empty css                 */import{_ as p}from"./create.vue_vue_type_script_setup_true_lang-dd87c803.js";import{u as i}from"./useGetList-07470d8e.js";import{u}from"./useDestroy-9187955f.js";import{u as m}from"./useOpen-0461a747.js";import{d as _,p as n,x as d,o as j,c,a as v,w as b,f,e as y,X as g,l as w,a7 as V,a3 as h,a4 as x,a8 as k,a9 as C,a0 as U}from"./index-0ffeeea6.js";/* empty css                  *//* empty css                   *//* empty css                  */import"./index-44ccf907.js";/* empty css                      *//* empty css                  *//* empty css                  */import"./add.vue_vue_type_script_setup_true_lang-cf082d7f.js";/* empty css                        *//* empty css                       *//* empty css                 */import"./useCreate-74e0ef9a.js";import"./useShow-02d4fd72.js";const q={class:"table-default"},L=_({__name:"index",setup(_){const L="permissions/jobs",{data:O,query:S,search:X,reset:A,loading:D}=i(L),{destroy:E,deleted:F}=u(),G=n((()=>{var e;return null==(e=O.value)?void 0:e.data})),{open:K,close:M,title:N,visible:P,id:Q}=m();return d((()=>{X(),F(A)})),(i,u)=>{const m=h,_=x,n=r,d=l,O=k,F=a,R=o,T=s,W=C,Y=t,Z=e,$=U;return j(),c("div",null,[v(n,{search:f(X),reset:f(A)},{body:b((()=>[v(_,{label:"岗位名称",prop:"job_name"},{default:b((()=>[v(m,{modelValue:f(S).job_name,"onUpdate:modelValue":u[0]||(u[0]=e=>f(S).job_name=e),name:"job_name",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),y("div",q,[v(d,{show:f(K)},null,8,["show"]),g((j(),w(W,{data:f(G),class:"mt-3"},{default:b((()=>[v(O,{prop:"job_name",label:"岗位名称"}),v(O,{prop:"coding",label:"岗位编码"}),v(O,{prop:"status",label:"状态"},{default:b((e=>[v(F,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,id:e.row.id,api:L},null,8,["modelValue","onUpdate:modelValue","id"])])),_:1}),v(O,{prop:"sort",label:"排序"}),v(O,{prop:"description",label:"岗位描述"}),v(O,{label:"操作",width:"200"},{default:b((e=>[v(R,{onClick:t=>f(K)(e.row.id)},null,8,["onClick"]),v(T,{onClick:t=>f(E)(L,e.row.id)},null,8,["onClick"])])),_:1})])),_:1},8,["data"])),[[$,f(D)]]),v(Y)]),v(Z,{modelValue:f(P),"onUpdate:modelValue":u[2]||(u[2]=e=>V(P)?P.value=e:null),title:f(N),"destroy-on-close":""},{default:b((()=>[v(p,{onClose:u[1]||(u[1]=e=>f(M)(f(A))),primary:f(Q),api:L},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{L as default};
