智慧教务系统
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
15 KiB

import{d as H,v as B,l as F,r as c,h as V,c as S,e,w as u,a as b,t as i,u as l,i as f,k as o,J as z,m as $,M as L,E as N,D as j,G as I,H as R,K as M,O as G,P as J,Q as K,L as O}from"./index-f5d841af.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 */import"./el-form-item-4ed993c7.js";/* empty css */import{_ as Q,g as q,d as A}from"./stat-hour-edit.vue_vue_type_style_index_0_lang-bc957141.js";import{_ as W}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css *//* empty css */const X={class:"main-container"},Y={class:"flex justify-between items-center"},Z={class:"text-lg"},ll={class:"mt-[10px]"},el={class:"mt-[16px] flex justify-end"},ol=H({__name:"stat_hour",setup(al){const v=B().meta.title;let a=F({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{addon:"",field:"",field_total:"",year:"",month:"",day:"",start_time:"",last_time:"",hour_0:"",hour_1:"",hour_2:"",hour_3:"",hour_4:"",hour_5:"",hour_6:"",hour_7:"",hour_8:"",hour_9:"",hour_10:"",hour_11:"",hour_12:"",hour_13:"",hour_14:"",hour_15:"",hour_16:"",hour_17:"",hour_18:"",hour_19:"",hour_20:"",hour_21:"",hour_22:"",hour_23:""}});const w=c();c([]);const n=(m=1)=>{a.loading=!0,a.page=m,q({page:a.page,limit:a.limit,...a.searchParam}).then(r=>{a.loading=!1,a.data=r.data.data,a.total=r.data.total}).catch(()=>{a.loading=!1})};n();const s=c(null),g=()=>{s.value.setFormData(),s.value.showDialog=!0},y=m=>{s.value.setFormData(m),s.value.showDialog=!0},U=m=>{L.confirm(o("statHourDeleteTips"),o("warning"),{confirmButtonText:o("confirm"),cancelButtonText:o("cancel"),type:"warning"}).then(()=>{A(m).then(()=>{n()}).catch(()=>{})})},x=m=>{m&&(m.resetFields(),n())};return(m,r)=>{const _=N,p=j,d=I,T=R,P=M,h=G,k=J,C=K,E=O;return V(),S("div",X,[e(P,{class:"box-card !border-none",shadow:"never"},{default:u(()=>[b("div",Y,[b("span",Z,i(l(v)),1),e(_,{type:"primary",onClick:g},{default:u(()=>[f(i(l(o)("addStatHour")),1)]),_:1})]),e(P,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:u(()=>[e(T,{inline:!0,model:l(a).searchParam,ref_key:"searchFormRef",ref:w},{default:u(()=>[e(d,{label:l(o)("addon"),prop:"addon"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.addon,"onUpdate:modelValue":r[0]||(r[0]=t=>l(a).searchParam.addon=t),placeholder:l(o)("addonPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("field"),prop:"field"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.field,"onUpdate:modelValue":r[1]||(r[1]=t=>l(a).searchParam.field=t),placeholder:l(o)("fieldPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("fieldTotal"),prop:"field_total"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.field_total,"onUpdate:modelValue":r[2]||(r[2]=t=>l(a).searchParam.field_total=t),placeholder:l(o)("fieldTotalPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("year"),prop:"year"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.year,"onUpdate:modelValue":r[3]||(r[3]=t=>l(a).searchParam.year=t),placeholder:l(o)("yearPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("month"),prop:"month"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.month,"onUpdate:modelValue":r[4]||(r[4]=t=>l(a).searchParam.month=t),placeholder:l(o)("monthPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("day"),prop:"day"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.day,"onUpdate:modelValue":r[5]||(r[5]=t=>l(a).searchParam.day=t),placeholder:l(o)("dayPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("startTime"),prop:"start_time"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.start_time,"onUpdate:modelValue":r[6]||(r[6]=t=>l(a).searchParam.start_time=t),placeholder:l(o)("startTimePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("lastTime"),prop:"last_time"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.last_time,"onUpdate:modelValue":r[7]||(r[7]=t=>l(a).searchParam.last_time=t),placeholder:l(o)("lastTimePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour0"),prop:"hour_0"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_0,"onUpdate:modelValue":r[8]||(r[8]=t=>l(a).searchParam.hour_0=t),placeholder:l(o)("hour0Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour1"),prop:"hour_1"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_1,"onUpdate:modelValue":r[9]||(r[9]=t=>l(a).searchParam.hour_1=t),placeholder:l(o)("hour1Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour2"),prop:"hour_2"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_2,"onUpdate:modelValue":r[10]||(r[10]=t=>l(a).searchParam.hour_2=t),placeholder:l(o)("hour2Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour3"),prop:"hour_3"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_3,"onUpdate:modelValue":r[11]||(r[11]=t=>l(a).searchParam.hour_3=t),placeholder:l(o)("hour3Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour4"),prop:"hour_4"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_4,"onUpdate:modelValue":r[12]||(r[12]=t=>l(a).searchParam.hour_4=t),placeholder:l(o)("hour4Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour5"),prop:"hour_5"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_5,"onUpdate:modelValue":r[13]||(r[13]=t=>l(a).searchParam.hour_5=t),placeholder:l(o)("hour5Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour6"),prop:"hour_6"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_6,"onUpdate:modelValue":r[14]||(r[14]=t=>l(a).searchParam.hour_6=t),placeholder:l(o)("hour6Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour7"),prop:"hour_7"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_7,"onUpdate:modelValue":r[15]||(r[15]=t=>l(a).searchParam.hour_7=t),placeholder:l(o)("hour7Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour8"),prop:"hour_8"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_8,"onUpdate:modelValue":r[16]||(r[16]=t=>l(a).searchParam.hour_8=t),placeholder:l(o)("hour8Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour9"),prop:"hour_9"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_9,"onUpdate:modelValue":r[17]||(r[17]=t=>l(a).searchParam.hour_9=t),placeholder:l(o)("hour9Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour10"),prop:"hour_10"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_10,"onUpdate:modelValue":r[18]||(r[18]=t=>l(a).searchParam.hour_10=t),placeholder:l(o)("hour10Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour11"),prop:"hour_11"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_11,"onUpdate:modelValue":r[19]||(r[19]=t=>l(a).searchParam.hour_11=t),placeholder:l(o)("hour11Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour12"),prop:"hour_12"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_12,"onUpdate:modelValue":r[20]||(r[20]=t=>l(a).searchParam.hour_12=t),placeholder:l(o)("hour12Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour13"),prop:"hour_13"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_13,"onUpdate:modelValue":r[21]||(r[21]=t=>l(a).searchParam.hour_13=t),placeholder:l(o)("hour13Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour14"),prop:"hour_14"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_14,"onUpdate:modelValue":r[22]||(r[22]=t=>l(a).searchParam.hour_14=t),placeholder:l(o)("hour14Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour15"),prop:"hour_15"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_15,"onUpdate:modelValue":r[23]||(r[23]=t=>l(a).searchParam.hour_15=t),placeholder:l(o)("hour15Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour16"),prop:"hour_16"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_16,"onUpdate:modelValue":r[24]||(r[24]=t=>l(a).searchParam.hour_16=t),placeholder:l(o)("hour16Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour17"),prop:"hour_17"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_17,"onUpdate:modelValue":r[25]||(r[25]=t=>l(a).searchParam.hour_17=t),placeholder:l(o)("hour17Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour18"),prop:"hour_18"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_18,"onUpdate:modelValue":r[26]||(r[26]=t=>l(a).searchParam.hour_18=t),placeholder:l(o)("hour18Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour19"),prop:"hour_19"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_19,"onUpdate:modelValue":r[27]||(r[27]=t=>l(a).searchParam.hour_19=t),placeholder:l(o)("hour19Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour20"),prop:"hour_20"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_20,"onUpdate:modelValue":r[28]||(r[28]=t=>l(a).searchParam.hour_20=t),placeholder:l(o)("hour20Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour21"),prop:"hour_21"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_21,"onUpdate:modelValue":r[29]||(r[29]=t=>l(a).searchParam.hour_21=t),placeholder:l(o)("hour21Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour22"),prop:"hour_22"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_22,"onUpdate:modelValue":r[30]||(r[30]=t=>l(a).searchParam.hour_22=t),placeholder:l(o)("hour22Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,{label:l(o)("hour23"),prop:"hour_23"},{default:u(()=>[e(p,{modelValue:l(a).searchParam.hour_23,"onUpdate:modelValue":r[31]||(r[31]=t=>l(a).searchParam.hour_23=t),placeholder:l(o)("hour23Placeholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e(d,null,{default:u(()=>[e(_,{type:"primary",onClick:r[32]||(r[32]=t=>n())},{default:u(()=>[f(i(l(o)("search")),1)]),_:1}),e(_,{onClick:r[33]||(r[33]=t=>x(w.value))},{default:u(()=>[f(i(l(o)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),b("div",ll,[z((V(),$(k,{data:l(a).data,size:"large"},{empty:u(()=>[b("span",null,i(l(a).loading?"":l(o)("emptyData")),1)]),default:u(()=>[e(h,{prop:"addon",label:l(o)("addon"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"field",label:l(o)("field"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"field_total",label:l(o)("fieldTotal"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"year",label:l(o)("year"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"month",label:l(o)("month"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"day",label:l(o)("day"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"start_time",label:l(o)("startTime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"last_time",label:l(o)("lastTime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_0",label:l(o)("hour0"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_1",label:l(o)("hour1"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_2",label:l(o)("hour2"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_3",label:l(o)("hour3"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_4",label:l(o)("hour4"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_5",label:l(o)("hour5"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_6",label:l(o)("hour6"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_7",label:l(o)("hour7"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_8",label:l(o)("hour8"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_9",label:l(o)("hour9"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_10",label:l(o)("hour10"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_11",label:l(o)("hour11"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_12",label:l(o)("hour12"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_13",label:l(o)("hour13"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_14",label:l(o)("hour14"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_15",label:l(o)("hour15"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_16",label:l(o)("hour16"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_17",label:l(o)("hour17"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_18",label:l(o)("hour18"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_19",label:l(o)("hour19"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_20",label:l(o)("hour20"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_21",label:l(o)("hour21"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_22",label:l(o)("hour22"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{prop:"hour_23",label:l(o)("hour23"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(h,{label:l(o)("operation"),fixed:"right","min-width":"120"},{default:u(({row:t})=>[e(_,{type:"primary",link:"",onClick:D=>y(t)},{default:u(()=>[f(i(l(o)("edit")),1)]),_:2},1032,["onClick"]),e(_,{type:"primary",link:"",onClick:D=>U(t.id)},{default:u(()=>[f(i(l(o)("delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[E,l(a).loading]]),b("div",el,[e(C,{"current-page":l(a).page,"onUpdate:current-page":r[34]||(r[34]=t=>l(a).page=t),"page-size":l(a).limit,"onUpdate:page-size":r[35]||(r[35]=t=>l(a).limit=t),layout:"total, sizes, prev, pager, next, jumper",total:l(a).total,onSizeChange:r[36]||(r[36]=t=>n()),onCurrentChange:n},null,8,["current-page","page-size","total"])])]),e(Q,{ref_key:"editStatHourDialog",ref:s,onComplete:n},null,512)]),_:1})])}}});const Tl=W(ol,[["__scopeId","data-v-c04febb8"]]);export{Tl as default};