index-47ddd725.js 3.0 KB

1
  1. /* empty css *//* empty css */import{u as e,_ as t}from"./useOpen-a24750bc.js";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang-8d4d2c2d.js";import{u as a}from"./useGetList-10bd17fb.js";/* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import{_ as o}from"./destroy.vue_vue_type_script_setup_true_lang-3e425698.js";import{_ as l}from"./update.vue_vue_type_script_setup_true_lang-03546537.js";import{_ as r}from"./index.vue_vue_type_script_setup_true_lang-a6bb1841.js";import{_ as p}from"./operate.vue_vue_type_script_setup_true_lang-e1034c0d.js";import{_ as i}from"./search.vue_vue_type_script_setup_true_lang-5fdc06f2.js";/* empty css *//* empty css */import{_ as u}from"./create.vue_vue_type_script_setup_true_lang-cf4ddfb9.js";import{u as _}from"./useDestroy-ee426241.js";import{d as m,n as d,z as n,o as j,c,a as b,w as v,f,e as y,Z as g,l as w,a9 as h,a5 as V,a6 as x,aa as C,ab as k,a2 as U}from"./index-fe6c8641.js";/* empty css *//* empty css *//* empty css */import"./index-7cd89372.js";/* empty css *//* empty css */import"./add.vue_vue_type_script_setup_true_lang-ff3ef2bf.js";/* empty css *//* empty css *//* empty css */import"./useCreate-21e18dc5.js";import"./useShow-401252b0.js";const G={class:"table-default"},L=m({__name:"index",setup(m){const L="permissions/jobs",{data:O,query:S,search:Z,reset:q,loading:z}=a(L),{destroy:D,deleted:F}=_(),H=d((()=>{var e;return null==(e=O.value)?void 0:e.data})),{open:I,close:K,title:M,visible:P,id:R}=e();return n((()=>{Z(),F(q)})),(e,a)=>{const _=V,m=x,d=i,n=p,O=C,F=r,Y=l,A=o,B=k,E=s,J=t,N=U;return j(),c("div",null,[b(d,{search:f(Z),reset:f(q)},{body:v((()=>[b(m,{label:"岗位名称",prop:"job_name"},{default:v((()=>[b(_,{modelValue:f(S).job_name,"onUpdate:modelValue":a[0]||(a[0]=e=>f(S).job_name=e),name:"job_name",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),y("div",G,[b(n,{show:f(I)},null,8,["show"]),g((j(),w(B,{data:f(H),class:"mt-3"},{default:v((()=>[b(O,{prop:"job_name",label:"岗位名称"}),b(O,{prop:"coding",label:"岗位编码"}),b(O,{prop:"status",label:"状态"},{default:v((e=>[b(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}),b(O,{prop:"sort",label:"排序"}),b(O,{prop:"description",label:"岗位描述"}),b(O,{label:"操作",width:"200"},{default:v((e=>[b(Y,{onClick:t=>f(I)(e.row.id)},null,8,["onClick"]),b(A,{onClick:t=>f(D)(L,e.row.id)},null,8,["onClick"])])),_:1})])),_:1},8,["data"])),[[N,f(z)]]),b(E)]),b(J,{modelValue:f(P),"onUpdate:modelValue":a[2]||(a[2]=e=>h(P)?P.value=e:null),title:f(M),"destroy-on-close":""},{default:v((()=>[b(u,{onClose:a[1]||(a[1]=e=>f(K)(f(q))),primary:f(R),api:L},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{L as default};