index-a3d89094.js 3.2 KB

1
  1. /* empty css *//* empty css */import{_ as e}from"./index-e2105010.js";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-447a7761.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-b7153bc5.js";import{_ as a}from"./update.vue_vue_type_script_setup_true_lang-99cb73d3.js";import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-a37f0320.js";import{_ as l}from"./operate.vue_vue_type_script_setup_true_lang-5c3ad0d6.js";import{_ as r}from"./search.vue_vue_type_script_setup_true_lang-ff519a0e.js";/* empty css *//* empty css */import{_ as p}from"./create.vue_vue_type_script_setup_true_lang-1c76a0df.js";import{u as i}from"./useGetList-ce3a51d9.js";import{u}from"./useDestroy-b70ce06f.js";import{u as m}from"./useOpen-1e277c91.js";import{d as _,p as n,x as d,o as j,c,a as v,w as b,f,e as y,Z as g,l as w,a9 as V,a5 as h,a6 as x,aa as k,ab as C,a2 as U}from"./index-0256eb8b.js";/* empty css *//* empty css *//* empty css */import"./index-b28419e9.js";/* empty css *//* empty css *//* empty css */import"./add.vue_vue_type_script_setup_true_lang-fd94bd6b.js";/* empty css *//* empty css *//* empty css */import"./useCreate-2a7324e2.js";import"./useShow-9e780382.js";const q={class:"table-default"},z=_({__name:"index",setup(_){const z="permissions/jobs",{data:A,query:B,search:D,reset:G,loading:L}=i(z),{destroy:O,deleted:S}=u(),W=n((()=>{var e;return null==(e=A.value)?void 0:e.data})),{open:X,close:Y,title:Z,visible:$,id:E}=m();return d((()=>{D(),S(G)})),(i,u)=>{const m=h,_=x,n=r,d=l,A=k,S=o,F=a,H=s,I=C,J=t,K=e,M=U;return j(),c("div",null,[v(n,{search:f(D),reset:f(G)},{body:b((()=>[v(_,{label:"岗位名称",prop:"job_name"},{default:b((()=>[v(m,{modelValue:f(B).job_name,"onUpdate:modelValue":u[0]||(u[0]=e=>f(B).job_name=e),name:"job_name",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),y("div",q,[v(d,{show:f(X)},null,8,["show"]),g((j(),w(I,{data:f(W),class:"mt-3"},{default:b((()=>[v(A,{prop:"job_name",label:"岗位名称"}),v(A,{prop:"coding",label:"岗位编码"}),v(A,{prop:"status",label:"状态"},{default:b((e=>[v(S,{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(A,{prop:"sort",label:"排序"}),v(A,{prop:"description",label:"岗位描述"}),v(A,{label:"操作",width:"200"},{default:b((e=>[v(F,{onClick:t=>f(X)(e.row.id)},null,8,["onClick"]),v(H,{onClick:t=>f(O)(z,e.row.id)},null,8,["onClick"])])),_:1})])),_:1},8,["data"])),[[M,f(L)]]),v(J)]),v(K,{modelValue:f($),"onUpdate:modelValue":u[2]||(u[2]=e=>V($)?$.value=e:null),title:f(Z),"destroy-on-close":""},{default:b((()=>[v(p,{onClose:u[1]||(u[1]=e=>f(Y)(f(G))),primary:f(E),api:z},null,8,["primary"])])),_:1},8,["modelValue","title"])])}}});export{z as default};