You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
5.6 KiB
1 lines
5.6 KiB
import{d as S,v as $,l as A,r as c,h as r,c as u,e as l,w as n,a as f,t as b,u as e,k as s,F as h,O as g,m as w,i as C,J as Y,B as j,_ as O,$ as R,G as M,a0 as W,E as q,H as G,K as H,a1 as J,a2 as K,a3 as Q,L as X}from"./index-4c331f20.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{u as Z}from"./dict-6dd77593.js";import{_ as ee,g as ae,a as te,b as le}from"./attendance-edit.vue_vue_type_style_index_0_lang-f804b76d.js";import{_ as oe}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css *//* empty css */const se={class:"main-container"},ne={class:"flex justify-between items-center"},re={class:"text-lg"},de={class:"mt-[10px]"},ie={key:0},ue={class:"mt-[16px] flex justify-end"},pe=S({__name:"attendance",setup(ce){const D=$().meta.title;let a=A({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{campus_id:"",staff_id:"",attendance_date:"",status:""}});const x=c();c([]);const y=c([]);(async()=>{y.value=await(await Z("kq_status")).data.dictionary})();const p=(m=1)=>{a.loading=!0,a.page=m,ae({page:a.page,limit:a.limit,...a.searchParam}).then(o=>{a.loading=!1,a.data=o.data.data,a.total=o.data.total}).catch(()=>{a.loading=!1})};p();const E=c(null),P=c([]);(async()=>{P.value=await(await te({})).data})();const L=c([]);(async()=>{L.value=await(await le({})).data})();const F=m=>{m&&(m.resetFields(),p())};return(m,o)=>{const v=O,k=R,_=M,z=W,V=q,B=G,I=H,i=J,T=K,U=Q,N=X;return r(),u("div",se,[l(I,{class:"box-card !border-none",shadow:"never"},{default:n(()=>[f("div",ne,[f("span",re,b(e(D)),1)]),l(I,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:n(()=>[l(B,{inline:!0,model:e(a).searchParam,ref_key:"searchFormRef",ref:x},{default:n(()=>[l(_,{label:e(s)("campusId"),prop:"campus_id"},{default:n(()=>[l(k,{class:"w-[280px]",modelValue:e(a).searchParam.campus_id,"onUpdate:modelValue":o[0]||(o[0]=t=>e(a).searchParam.campus_id=t),clearable:"",placeholder:e(s)("campusIdPlaceholder")},{default:n(()=>[(r(!0),u(h,null,g(P.value,(t,d)=>(r(),w(v,{key:d,label:t.campus_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l(_,{label:e(s)("staffId"),prop:"staff_id"},{default:n(()=>[l(k,{class:"w-[280px]",modelValue:e(a).searchParam.staff_id,"onUpdate:modelValue":o[1]||(o[1]=t=>e(a).searchParam.staff_id=t),clearable:"",placeholder:e(s)("staffIdPlaceholder")},{default:n(()=>[(r(!0),u(h,null,g(L.value,(t,d)=>(r(),w(v,{key:d,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l(_,{label:e(s)("attendanceDate"),prop:"attendance_date"},{default:n(()=>[l(z,{class:"flex-1 !flex",modelValue:e(a).searchParam.attendance_date,"onUpdate:modelValue":o[2]||(o[2]=t=>e(a).searchParam.attendance_date=t),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:e(s)("attendanceDate")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(_,{label:e(s)("status"),prop:"status"},{default:n(()=>[l(k,{class:"w-[280px]",modelValue:e(a).searchParam.status,"onUpdate:modelValue":o[3]||(o[3]=t=>e(a).searchParam.status=t),clearable:"",placeholder:e(s)("statusPlaceholder")},{default:n(()=>[l(v,{label:"全部",value:""}),(r(!0),u(h,null,g(y.value,(t,d)=>(r(),w(v,{key:d,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l(_,null,{default:n(()=>[l(V,{type:"primary",onClick:o[4]||(o[4]=t=>p())},{default:n(()=>[C(b(e(s)("search")),1)]),_:1}),l(V,{onClick:o[5]||(o[5]=t=>F(x.value))},{default:n(()=>[C(b(e(s)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),f("div",de,[Y((r(),w(T,{data:e(a).data,size:"large"},{empty:n(()=>[f("span",null,b(e(a).loading?"":e(s)("emptyData")),1)]),default:n(()=>[l(i,{prop:"campus_id_name",label:e(s)("campusId"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),l(i,{prop:"staff_id_name",label:e(s)("staffId"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),l(i,{prop:"attendance_date",label:e(s)("attendanceDate"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),l(i,{prop:"check_in_time",label:e(s)("checkInTime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),l(i,{prop:"check_out_time",label:e(s)("checkOutTime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),l(i,{prop:"remarks",label:e(s)("remarks"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),l(i,{label:e(s)("status"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:n(({row:t})=>[(r(!0),u(h,null,g(y.value,(d,ve)=>(r(),u("div",null,[d.value==t.status?(r(),u("div",ie,b(d.name),1)):j("",!0)]))),256))]),_:1},8,["label"])]),_:1},8,["data"])),[[N,e(a).loading]]),f("div",ue,[l(U,{"current-page":e(a).page,"onUpdate:current-page":o[6]||(o[6]=t=>e(a).page=t),"page-size":e(a).limit,"onUpdate:page-size":o[7]||(o[7]=t=>e(a).limit=t),layout:"total, sizes, prev, pager, next, jumper",total:e(a).total,onSizeChange:o[8]||(o[8]=t=>p()),onCurrentChange:p},null,8,["current-page","page-size","total"])])]),l(ee,{ref_key:"editAttendanceDialog",ref:E,onComplete:p},null,512)]),_:1})])}}});const je=oe(pe,[["__scopeId","data-v-dbde52ef"]]);export{je as default};
|
|
|