/* empty css             *//* empty css                   */import{_ as e}from"./index-30b81ccf.js";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-bc7fd1e2.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-e37713d5.js";import{_ as o}from"./update.vue_vue_type_script_setup_true_lang-f3e31b71.js";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-90abd883.js";import{_ as l}from"./operate.vue_vue_type_script_setup_true_lang-61480e03.js";import{_ as r}from"./search.vue_vue_type_script_setup_true_lang-946854ba.js";/* empty css                     *//* empty css                 */import{_ as p}from"./create.vue_vue_type_script_setup_true_lang-89192a31.js";import{u as i}from"./useGetList-927e47a1.js";import{u}from"./useDestroy-e8ee11d1.js";import{u as m}from"./useOpen-7c44bdc3.js";import{d as _,p as n,x as d,o as j,c,a as v,w as b,f,e as y,W as g,l as w,a6 as h,a2 as x,a3 as V,a7 as C,a8 as k,$ as U}from"./index-2b50ecca.js";/* empty css                  *//* empty css                   *//* empty css                  */import"./index-a921dba7.js";/* empty css                      *//* empty css                  *//* empty css                  */import"./add.vue_vue_type_script_setup_true_lang-028aa8f1.js";/* empty css                        *//* empty css                       *//* empty css                 */import"./useCreate-d1a919fb.js";import"./useShow-5d0f85e9.js";const q={class:"table-default"},D="permissions/jobs",$=_({__name:"index",setup(_){const{data:$,query:z,search:A,reset:B,loading:G}=i(D),{destroy:L,deleted:O}=u(),S=n((()=>{var e;return null==(e=$.value)?void 0:e.data})),{open:W,close:X,title:Y,visible:Z,id:E}=m();return d((()=>{A(),O(B)})),(i,u)=>{const m=x,_=V,n=r,d=l,$=C,O=a,F=o,H=s,I=k,J=t,K=e,M=U;return j(),c("div",null,[v(n,{search:f(A),reset:f(B)},{body:b((()=>[v(_,{label:"岗位名称",prop:"job_name"},{default:b((()=>[v(m,{modelValue:f(z).job_name,"onUpdate:modelValue":u[0]||(u[0]=e=>f(z).job_name=e),name:"job_name",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),y("div",q,[v(d,{show:f(W)},null,8,["show"]),g((j(),w(I,{data:S.value,class:"mt-3"},{default:b((()=>[v($,{prop:"job_name",label:"岗位名称"}),v($,{prop:"coding",label:"岗位编码"}),v($,{prop:"status",label:"状态"},{default:b((e=>[v(O,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,id:e.row.id,api:D},null,8,["modelValue","onUpdate:modelValue","id"])])),_:1}),v($,{prop:"sort",label:"排序"}),v($,{prop:"description",label:"岗位描述"}),v($,{label:"操作",width:"200"},{default:b((e=>[v(F,{onClick:t=>f(W)(e.row.id)},null,8,["onClick"]),v(H,{onClick:t=>f(L)(D,e.row.id)},null,8,["onClick"])])),_:1})])),_:1},8,["data"])),[[M,f(G)]]),v(J)]),v(K,{modelValue:f(Z),"onUpdate:modelValue":u[2]||(u[2]=e=>h(Z)?Z.value=e:null),title:f(Y),"destroy-on-close":""},{default:b((()=>[v(p,{onClose:u[1]||(u[1]=e=>f(X)(f(B))),primary:f(E),api:D},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{$ as default};
