提交 7749792c 编写于 作者: 刘英杰's avatar 刘英杰

V20240308 保存

上级 d3bd5b4c
流水线 #24473 已通过 ,包含阶段
in 29 second
import{g as ke,a as L,h as p,m as H,n as X,d as G,i as Se,c as u,I as xe,p as Te,L as Re,w as ve,r as E,j as Be,k as J,t as C,l as re,q as K,s as Me,v as _,x as _e,y as Pe,z as De,A as le,C as Oe,D as Q,E as ae,G as Ce,P as Ae,J as se,K as Ie,M as oe,N as $e,O as ge,Q as Ne,R as ie,S as Fe,T as He,o as Ye,f as We,U as ze,V as he}from"./index-135ee00a.js";import{u as Ve}from"./use-height-61ef1bfa.js";const Ee={to:[String,Object],url:String,replace:Boolean};function Ue({to:e,url:a,replace:o,$router:s}){e&&s?s[o?"replace":"push"](e):a&&(o?location.replace(a):location.href=a)}function je(){const e=ke().proxy;return()=>Ue(e)}const[qe,q]=L("button"),Le=p({},Ee,{tag:H("button"),text:String,icon:String,type:H("default"),size:H("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:H("button"),loadingSize:X,loadingText:String,loadingType:String,iconPosition:H("left")});var Ge=G({name:qe,props:Le,emits:["click"],setup(e,{emit:a,slots:o}){const s=je(),f=()=>o.loading?o.loading():u(Re,{size:e.loadingSize,type:e.loadingType,class:q("loading")},null),m=()=>{if(e.loading)return f();if(o.icon)return u("div",{class:q("icon")},[o.icon()]);if(e.icon)return u(xe,{name:e.icon,class:q("icon"),classPrefix:e.iconPrefix},null)},T=()=>{let r;if(e.loading?r=e.loadingText:r=o.default?o.default():e.text,r)return u("span",{class:q("text")},[r])},g=()=>{const{color:r,plain:w}=e;if(r){const v={color:w?r:"white"};return w||(v.background=r),r.includes("gradient")?v.border=0:v.borderColor=r,v}},i=r=>{e.loading?Te(r):e.disabled||(a("click",r),s())};return()=>{const{tag:r,type:w,size:v,block:R,round:$,plain:M,square:Y,loading:U,disabled:F,hairline:W,nativeType:j,iconPosition:z}=e,V=[q([w,v,{plain:M,block:R,round:$,square:Y,loading:U,disabled:F,hairline:W}]),{[Se]:W}];return u(r,{type:j,class:V,style:g(),disabled:F,onClick:i},{default:()=>[u("div",{class:q("content")},[z==="left"&&m(),T(),z==="right"&&m()])]})}}});const Je=ve(Ge);L("picker-toolbar");const Ke={title:String,cancelButtonText:String,confirmButtonText:String};function Qe(){const e=E([]),a=[];return Be(()=>{e.value=[]}),[e,s=>(a[s]||(a[s]=f=>{e.value[s]=f}),a[s])]}const be=p({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:J(44),showToolbar:C,swipeDuration:J(1e3),visibleOptionNum:J(6)},Ke);p({},be,{columns:re(),modelValue:re(),toolbarPosition:H("top"),columnsFieldNames:Object});const[Xe,y,N]=L("calendar"),Ze=e=>N("monthTitle",e.getFullYear(),e.getMonth()+1);function ce(e,a){const o=e.getFullYear(),s=a.getFullYear();if(o===s){const f=e.getMonth(),m=a.getMonth();return f===m?0:f>m?1:-1}return o>s?1:-1}function P(e,a){const o=ce(e,a);if(o===0){const s=e.getDate(),f=a.getDate();return s===f?0:s>f?1:-1}return o}const Z=e=>new Date(e),ye=e=>Array.isArray(e)?e.map(Z):Z(e);function fe(e,a){const o=Z(e);return o.setDate(o.getDate()+a),o}const ue=e=>fe(e,-1),we=e=>fe(e,1),de=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function pe(e){const a=e[0].getTime();return(e[1].getTime()-a)/(1e3*60*60*24)+1}p({},be,{modelValue:re(),filter:Function,formatter:{type:Function,default:(e,a)=>a}});const et=(e,a)=>32-new Date(e,a-1,32).getDate(),[tt]=L("calendar-day");var nt=G({name:tt,props:{item:K(Object),color:String,index:Number,offset:Me(0),rowHeight:String},emits:["click"],setup(e,{emit:a,slots:o}){const s=_(()=>{var i;const{item:r,index:w,color:v,offset:R,rowHeight:$}=e,M={height:$};if(r.type==="placeholder")return M.width="100%",M;if(w===0&&(M.marginLeft=`${100*R/7}%`),v)switch(r.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":M.background=v;break;case"middle":M.color=v;break}return R+(((i=r.date)==null?void 0:i.getDate())||1)>28&&(M.marginBottom=0),M}),f=()=>{e.item.type!=="disabled"&&a("click",e.item)},m=()=>{const{topInfo:i}=e.item;if(i||o["top-info"])return u("div",{class:y("top-info")},[o["top-info"]?o["top-info"](e.item):i])},T=()=>{const{bottomInfo:i}=e.item;if(i||o["bottom-info"])return u("div",{class:y("bottom-info")},[o["bottom-info"]?o["bottom-info"](e.item):i])},g=()=>{const{item:i,color:r,rowHeight:w}=e,{type:v,text:R}=i,$=[m(),R,T()];return v==="selected"?u("div",{class:y("selected-day"),style:{width:w,height:w,background:r}},[$]):$};return()=>{const{type:i,className:r}=e.item;return i==="placeholder"?u("div",{class:y("day"),style:s.value},null):u("div",{role:"gridcell",style:s.value,class:[y("day",i),r],tabindex:i==="disabled"?void 0:-1,onClick:f},[g()])}}});const[at]=L("calendar-month"),ot={date:K(Date),type:String,color:String,minDate:K(Date),maxDate:K(Date),showMark:Boolean,rowHeight:X,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var it=G({name:at,props:ot,emits:["click"],setup(e,{emit:a,slots:o}){const[s,f]=_e(),m=E(),T=E(),g=Ve(T),i=_(()=>Ze(e.date)),r=_(()=>Pe(e.rowHeight)),w=_(()=>{const l=e.date.getDay();return e.firstDayOfWeek?(l+7-e.firstDayOfWeek)%7:l}),v=_(()=>et(e.date.getFullYear(),e.date.getMonth()+1)),R=_(()=>s.value||!e.lazyRender),$=()=>i.value,M=l=>{const D=k=>e.currentDate.some(h=>P(h,k)===0);if(D(l)){const k=ue(l),h=we(l),S=D(k),t=D(h);return S&&t?"multiple-middle":S?"end":t?"start":"multiple-selected"}return""},Y=l=>{const[D,k]=e.currentDate;if(!D)return"";const h=P(l,D);if(!k)return h===0?"start":"";const S=P(l,k);return e.allowSameDay&&h===0&&S===0?"start-end":h===0?"start":S===0?"end":h>0&&S<0?"middle":""},U=l=>{const{type:D,minDate:k,maxDate:h,currentDate:S}=e;if(P(l,k)<0||P(l,h)>0)return"disabled";if(S===null)return"";if(Array.isArray(S)){if(D==="multiple")return M(l);if(D==="range")return Y(l)}else if(D==="single")return P(l,S)===0?"selected":"";return""},F=l=>{if(e.type==="range"){if(l==="start"||l==="end")return N(l);if(l==="start-end")return`${N("start")}/${N("end")}`}},W=()=>{if(e.showMonthTitle)return u("div",{class:y("month-title")},[o["month-title"]?o["month-title"]({date:e.date,text:i.value}):i.value])},j=()=>{if(e.showMark&&R.value)return u("div",{class:y("month-mark")},[e.date.getMonth()+1])},z=_(()=>{const l=Math.ceil((v.value+w.value)/7);return Array(l).fill({type:"placeholder"})}),V=_(()=>{const l=[],D=e.date.getFullYear(),k=e.date.getMonth();for(let h=1;h<=v.value;h++){const S=new Date(D,k,h),t=U(S);let n={date:S,type:t,text:h,bottomInfo:F(t)};e.formatter&&(n=e.formatter(n)),l.push(n)}return l}),O=_(()=>V.value.filter(l=>l.type==="disabled")),ee=(l,D)=>{if(m.value){const k=le(m.value),h=z.value.length,t=(Math.ceil((D.getDate()+w.value)/7)-1)*k.height/h;Oe(l,k.top+t+l.scrollTop-le(l).top)}},te=(l,D)=>u(nt,{item:l,index:D,color:e.color,offset:w.value,rowHeight:r.value,onClick:k=>a("click",k)},Q(o,["top-info","bottom-info"])),ne=()=>u("div",{ref:m,role:"grid",class:y("days")},[j(),(R.value?V:z).value.map(te)]);return De({getTitle:$,getHeight:()=>g.value,setVisible:f,scrollToDate:ee,disabledDays:O}),()=>u("div",{class:y("month"),ref:T},[W(),ne()])}});const[rt]=L("calendar-header");var lt=G({name:rt,props:{date:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},emits:["clickSubtitle"],setup(e,{slots:a,emit:o}){const s=()=>{if(e.showTitle){const g=e.title||N("title"),i=a.title?a.title():g;return u("div",{class:y("header-title")},[i])}},f=g=>o("clickSubtitle",g),m=()=>{if(e.showSubtitle){const g=a.subtitle?a.subtitle({date:e.date,text:e.subtitle}):e.subtitle;return u("div",{class:y("header-subtitle"),onClick:f},[g])}},T=()=>{const{firstDayOfWeek:g}=e,i=N("weekdays"),r=[...i.slice(g,7),...i.slice(0,g)];return u("div",{class:y("weekdays")},[r.map(w=>u("span",{class:y("weekday")},[w]))])};return()=>u("div",{class:y("header")},[s(),m(),T()])}});const st={show:Boolean,type:H("single"),title:String,color:String,round:C,readonly:Boolean,poppable:C,maxRange:J(null),position:H("bottom"),teleport:[String,Object],showMark:C,showTitle:C,formatter:Function,rowHeight:X,confirmText:String,rangePrompt:String,lazyRender:C,showConfirm:C,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:C,closeOnPopstate:C,showRangePrompt:C,confirmDisabledText:String,closeOnClickOverlay:C,safeAreaInsetTop:Boolean,safeAreaInsetBottom:C,minDate:{type:Date,validator:se,default:de},maxDate:{type:Date,validator:se,default:()=>{const e=de();return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},firstDayOfWeek:{type:X,default:0,validator:e=>e>=0&&e<=6}};var ct=G({name:Xe,props:st,emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle"],setup(e,{emit:a,slots:o}){const s=(t,n=e.minDate,c=e.maxDate)=>P(t,n)===-1?n:P(t,c)===1?c:t,f=(t=e.defaultDate)=>{const{type:n,minDate:c,maxDate:d,allowSameDay:B}=e;if(t===null)return t;const x=de();if(n==="range"){Array.isArray(t)||(t=[]);const A=s(t[0]||x,c,B?d:ue(d)),b=s(t[1]||x,B?c:we(c));return[A,b]}return n==="multiple"?Array.isArray(t)?t.map(A=>s(A)):[s(x)]:((!t||Array.isArray(t))&&(t=x),s(t))};let m;const T=E(),g=E({text:"",date:void 0}),i=E(f()),[r,w]=Qe(),v=_(()=>e.firstDayOfWeek?+e.firstDayOfWeek%7:0),R=_(()=>{const t=[],n=new Date(e.minDate);n.setDate(1);do t.push(new Date(n)),n.setMonth(n.getMonth()+1);while(ce(n,e.maxDate)!==1);return t}),$=_(()=>{if(i.value){if(e.type==="range")return!i.value[0]||!i.value[1];if(e.type==="multiple")return!i.value.length}return!i.value}),M=()=>i.value,Y=()=>{const t=Ie(T.value),n=t+m,c=R.value.map((b,I)=>r.value[I].getHeight()),d=c.reduce((b,I)=>b+I,0);if(n>d&&t>0)return;let B=0,x;const A=[-1,-1];for(let b=0;b<R.value.length;b++){const I=r.value[b];B<=n&&B+c[b]>=t&&(A[1]=b,x||(x=I,A[0]=b),r.value[b].showed||(r.value[b].showed=!0,a("monthShow",{date:I.date,title:I.getTitle()}))),B+=c[b]}R.value.forEach((b,I)=>{const me=I>=A[0]-1&&I<=A[1]+1;r.value[I].setVisible(me)}),x&&(g.value={text:x.getTitle(),date:x.date})},U=t=>{oe(()=>{R.value.some((n,c)=>ce(n,t)===0?(T.value&&r.value[c].scrollToDate(T.value,t),!0):!1),Y()})},F=()=>{if(!(e.poppable&&!e.show))if(i.value){const t=e.type==="single"?i.value:i.value[0];se(t)&&U(t)}else oe(Y)},W=()=>{e.poppable&&!e.show||(oe(()=>{m=Math.floor(le(T).height)}),F())},j=(t=f())=>{i.value=t,F()},z=t=>{const{maxRange:n,rangePrompt:c,showRangePrompt:d}=e;return n&&pe(t)>+n?(d&&ge(c||N("rangePrompt",n)),a("overRange"),!1):!0},V=()=>{var t;return a("confirm",(t=i.value)!=null?t:ye(i.value))},O=(t,n)=>{const c=d=>{i.value=d,a("select",ye(d))};if(n&&e.type==="range"&&!z(t)){c([t[0],fe(t[0],+e.maxRange-1)]);return}c(t),n&&!e.showConfirm&&V()},ee=(t,n,c)=>{var d;return(d=t.find(B=>P(n,B.date)===-1&&P(B.date,c)===-1))==null?void 0:d.date},te=_(()=>r.value.reduce((t,n)=>{var c,d;return t.push(...(d=(c=n.disabledDays)==null?void 0:c.value)!=null?d:[]),t},[])),ne=t=>{if(e.readonly||!t.date)return;const{date:n}=t,{type:c}=e;if(c==="range"){if(!i.value){O([n]);return}const[d,B]=i.value;if(d&&!B){const x=P(n,d);if(x===1){const A=ee(te.value,d,n);if(A){const b=ue(A);P(d,b)===-1?O([d,b]):O([n])}else O([d,n],!0)}else x===-1?O([n]):e.allowSameDay&&O([n,n],!0)}else O([n])}else if(c==="multiple"){if(!i.value){O([n]);return}const d=i.value,B=d.findIndex(x=>P(x,n)===0);if(B!==-1){const[x]=d.splice(B,1);a("unselect",Z(x))}else e.maxRange&&d.length>=+e.maxRange?ge(e.rangePrompt||N("rangePrompt",e.maxRange)):O([...d,n])}else O(n,!0)},l=t=>a("update:show",t),D=(t,n)=>{const c=n!==0||!e.showSubtitle;return u(it,$e({ref:w(n),date:t,currentDate:i.value,showMonthTitle:c,firstDayOfWeek:v.value},Q(e,["type","color","minDate","maxDate","showMark","formatter","rowHeight","lazyRender","showSubtitle","allowSameDay"]),{onClick:ne}),Q(o,["top-info","bottom-info","month-title"]))},k=()=>{if(o.footer)return o.footer();if(e.showConfirm){const t=o["confirm-text"],n=$.value,c=n?e.confirmDisabledText:e.confirmText;return u(Je,{round:!0,block:!0,type:"primary",color:e.color,class:y("confirm"),disabled:n,nativeType:"button",onClick:V},{default:()=>[t?t({disabled:n}):c||N("confirm")]})}},h=()=>u("div",{class:[y("footer"),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[k()]),S=()=>u("div",{class:y()},[u(lt,{date:g.value.date,title:e.title,subtitle:g.value.text,showTitle:e.showTitle,showSubtitle:e.showSubtitle,firstDayOfWeek:v.value,onClickSubtitle:t=>a("clickSubtitle",t)},Q(o,["title","subtitle"])),u("div",{ref:T,class:y("body"),onScroll:Y},[R.value.map(D)]),h()]);return ae(()=>e.show,W),ae(()=>[e.type,e.minDate,e.maxDate],()=>j(f(i.value))),ae(()=>e.defaultDate,(t=null)=>{i.value=t,F()}),De({reset:j,scrollToDate:U,getSelectedDate:M}),Ce(W),()=>e.poppable?u(Ae,{show:e.show,class:y("popup"),round:e.round,position:e.position,closeable:e.showTitle||e.showSubtitle,teleport:e.teleport,closeOnPopstate:e.closeOnPopstate,safeAreaInsetTop:e.safeAreaInsetTop,closeOnClickOverlay:e.closeOnClickOverlay,"onUpdate:show":l},{default:S}):S()}});const ut=ve(ct);function dt(e,a){const o={card:e.card,begin_time:e.begin_time,end_time:e.end_time};return Ne.get("/api/Flow/TeacherDateVerify",{params:o,...a})}async function ft(e){let a=await e();try{switch(a.code){case 1:ie({type:"success",message:a.msg});break;default:ie({type:"danger",message:a.msg_detail})}return a}catch{ie({type:"danger",message:a.msg_detail||"报错,无msg_detail"})}}const mt={class:"w-screen h-screen"},gt={class:"w-full h-full"},vt={__name:"index",setup(e){const a=E(!0),o=Fe({data:{card:"",begin_time:"",end_time:""}}),s=f=>{[o.data.begin_time,o.data.end_time]=[he(f[0]).format("YYYY-MM-DD"),he(f[1]).format("YYYY-MM-DD")],ft(()=>dt(o.data).then(m=>(m.code===1&&window.parent.returnVal(o.data.begin_time,o.data.end_time),m)))};return He(()=>{}),(f,m)=>{const T=ut;return Ye(),We("div",mt,[ze("div",gt,[u(T,{show:a.value,"onUpdate:show":m[0]||(m[0]=g=>a.value=g),type:"range",onConfirm:s},null,8,["show"])])])}}};export{vt as default};
import{g as ke,a as L,h as p,m as H,n as X,d as G,i as Se,c as u,I as xe,p as Te,L as Re,w as ve,r as E,j as Be,k as J,t as C,l as re,q as K,s as Me,v as _,x as _e,y as Pe,z as De,A as le,C as Oe,D as Q,E as ae,G as Ce,P as Ae,J as se,K as Ie,M as oe,N as $e,O as ge,Q as Ne,R as ie,u as Fe,S as He,T as Ye,o as We,f as ze,U as Ve,V as he}from"./index-ddd3d06d.js";import{u as Ee}from"./use-height-4230402e.js";const Ue={to:[String,Object],url:String,replace:Boolean};function je({to:e,url:a,replace:i,$router:r}){e&&r?r[i?"replace":"push"](e):a&&(i?location.replace(a):location.href=a)}function qe(){const e=ke().proxy;return()=>je(e)}const[Le,q]=L("button"),Ge=p({},Ue,{tag:H("button"),text:String,icon:String,type:H("default"),size:H("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:H("button"),loadingSize:X,loadingText:String,loadingType:String,iconPosition:H("left")});var Je=G({name:Le,props:Ge,emits:["click"],setup(e,{emit:a,slots:i}){const r=qe(),f=()=>i.loading?i.loading():u(Re,{size:e.loadingSize,type:e.loadingType,class:q("loading")},null),m=()=>{if(e.loading)return f();if(i.icon)return u("div",{class:q("icon")},[i.icon()]);if(e.icon)return u(xe,{name:e.icon,class:q("icon"),classPrefix:e.iconPrefix},null)},g=()=>{let l;if(e.loading?l=e.loadingText:l=i.default?i.default():e.text,l)return u("span",{class:q("text")},[l])},h=()=>{const{color:l,plain:k}=e;if(l){const D={color:k?l:"white"};return k||(D.background=l),l.includes("gradient")?D.border=0:D.borderColor=l,D}},o=l=>{e.loading?Te(l):e.disabled||(a("click",l),r())};return()=>{const{tag:l,type:k,size:D,block:R,round:$,plain:M,square:Y,loading:U,disabled:F,hairline:W,nativeType:j,iconPosition:z}=e,V=[q([k,D,{plain:M,block:R,round:$,square:Y,loading:U,disabled:F,hairline:W}]),{[Se]:W}];return u(l,{type:j,class:V,style:h(),disabled:F,onClick:o},{default:()=>[u("div",{class:q("content")},[z==="left"&&m(),g(),z==="right"&&m()])]})}}});const Ke=ve(Je);L("picker-toolbar");const Qe={title:String,cancelButtonText:String,confirmButtonText:String};function Xe(){const e=E([]),a=[];return Be(()=>{e.value=[]}),[e,r=>(a[r]||(a[r]=f=>{e.value[r]=f}),a[r])]}const be=p({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:J(44),showToolbar:C,swipeDuration:J(1e3),visibleOptionNum:J(6)},Qe);p({},be,{columns:re(),modelValue:re(),toolbarPosition:H("top"),columnsFieldNames:Object});const[Ze,v,N]=L("calendar"),pe=e=>N("monthTitle",e.getFullYear(),e.getMonth()+1);function ce(e,a){const i=e.getFullYear(),r=a.getFullYear();if(i===r){const f=e.getMonth(),m=a.getMonth();return f===m?0:f>m?1:-1}return i>r?1:-1}function P(e,a){const i=ce(e,a);if(i===0){const r=e.getDate(),f=a.getDate();return r===f?0:r>f?1:-1}return i}const Z=e=>new Date(e),ye=e=>Array.isArray(e)?e.map(Z):Z(e);function fe(e,a){const i=Z(e);return i.setDate(i.getDate()+a),i}const ue=e=>fe(e,-1),we=e=>fe(e,1),de=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function et(e){const a=e[0].getTime();return(e[1].getTime()-a)/(1e3*60*60*24)+1}p({},be,{modelValue:re(),filter:Function,formatter:{type:Function,default:(e,a)=>a}});const tt=(e,a)=>32-new Date(e,a-1,32).getDate(),[nt]=L("calendar-day");var at=G({name:nt,props:{item:K(Object),color:String,index:Number,offset:Me(0),rowHeight:String},emits:["click"],setup(e,{emit:a,slots:i}){const r=_(()=>{var o;const{item:l,index:k,color:D,offset:R,rowHeight:$}=e,M={height:$};if(l.type==="placeholder")return M.width="100%",M;if(k===0&&(M.marginLeft=`${100*R/7}%`),D)switch(l.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":M.background=D;break;case"middle":M.color=D;break}return R+(((o=l.date)==null?void 0:o.getDate())||1)>28&&(M.marginBottom=0),M}),f=()=>{e.item.type!=="disabled"&&a("click",e.item)},m=()=>{const{topInfo:o}=e.item;if(o||i["top-info"])return u("div",{class:v("top-info")},[i["top-info"]?i["top-info"](e.item):o])},g=()=>{const{bottomInfo:o}=e.item;if(o||i["bottom-info"])return u("div",{class:v("bottom-info")},[i["bottom-info"]?i["bottom-info"](e.item):o])},h=()=>{const{item:o,color:l,rowHeight:k}=e,{type:D,text:R}=o,$=[m(),R,g()];return D==="selected"?u("div",{class:v("selected-day"),style:{width:k,height:k,background:l}},[$]):$};return()=>{const{type:o,className:l}=e.item;return o==="placeholder"?u("div",{class:v("day"),style:r.value},null):u("div",{role:"gridcell",style:r.value,class:[v("day",o),l],tabindex:o==="disabled"?void 0:-1,onClick:f},[h()])}}});const[ot]=L("calendar-month"),it={date:K(Date),type:String,color:String,minDate:K(Date),maxDate:K(Date),showMark:Boolean,rowHeight:X,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var rt=G({name:ot,props:it,emits:["click"],setup(e,{emit:a,slots:i}){const[r,f]=_e(),m=E(),g=E(),h=Ee(g),o=_(()=>pe(e.date)),l=_(()=>Pe(e.rowHeight)),k=_(()=>{const s=e.date.getDay();return e.firstDayOfWeek?(s+7-e.firstDayOfWeek)%7:s}),D=_(()=>tt(e.date.getFullYear(),e.date.getMonth()+1)),R=_(()=>r.value||!e.lazyRender),$=()=>o.value,M=s=>{const b=S=>e.currentDate.some(y=>P(y,S)===0);if(b(s)){const S=ue(s),y=we(s),x=b(S),t=b(y);return x&&t?"multiple-middle":x?"end":t?"start":"multiple-selected"}return""},Y=s=>{const[b,S]=e.currentDate;if(!b)return"";const y=P(s,b);if(!S)return y===0?"start":"";const x=P(s,S);return e.allowSameDay&&y===0&&x===0?"start-end":y===0?"start":x===0?"end":y>0&&x<0?"middle":""},U=s=>{const{type:b,minDate:S,maxDate:y,currentDate:x}=e;if(P(s,S)<0||P(s,y)>0)return"disabled";if(x===null)return"";if(Array.isArray(x)){if(b==="multiple")return M(s);if(b==="range")return Y(s)}else if(b==="single")return P(s,x)===0?"selected":"";return""},F=s=>{if(e.type==="range"){if(s==="start"||s==="end")return N(s);if(s==="start-end")return`${N("start")}/${N("end")}`}},W=()=>{if(e.showMonthTitle)return u("div",{class:v("month-title")},[i["month-title"]?i["month-title"]({date:e.date,text:o.value}):o.value])},j=()=>{if(e.showMark&&R.value)return u("div",{class:v("month-mark")},[e.date.getMonth()+1])},z=_(()=>{const s=Math.ceil((D.value+k.value)/7);return Array(s).fill({type:"placeholder"})}),V=_(()=>{const s=[],b=e.date.getFullYear(),S=e.date.getMonth();for(let y=1;y<=D.value;y++){const x=new Date(b,S,y),t=U(x);let n={date:x,type:t,text:y,bottomInfo:F(t)};e.formatter&&(n=e.formatter(n)),s.push(n)}return s}),O=_(()=>V.value.filter(s=>s.type==="disabled")),ee=(s,b)=>{if(m.value){const S=le(m.value),y=z.value.length,t=(Math.ceil((b.getDate()+k.value)/7)-1)*S.height/y;Oe(s,S.top+t+s.scrollTop-le(s).top)}},te=(s,b)=>u(at,{item:s,index:b,color:e.color,offset:k.value,rowHeight:l.value,onClick:S=>a("click",S)},Q(i,["top-info","bottom-info"])),ne=()=>u("div",{ref:m,role:"grid",class:v("days")},[j(),(R.value?V:z).value.map(te)]);return De({getTitle:$,getHeight:()=>h.value,setVisible:f,scrollToDate:ee,disabledDays:O}),()=>u("div",{class:v("month"),ref:g},[W(),ne()])}});const[lt]=L("calendar-header");var st=G({name:lt,props:{date:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},emits:["clickSubtitle"],setup(e,{slots:a,emit:i}){const r=()=>{if(e.showTitle){const h=e.title||N("title"),o=a.title?a.title():h;return u("div",{class:v("header-title")},[o])}},f=h=>i("clickSubtitle",h),m=()=>{if(e.showSubtitle){const h=a.subtitle?a.subtitle({date:e.date,text:e.subtitle}):e.subtitle;return u("div",{class:v("header-subtitle"),onClick:f},[h])}},g=()=>{const{firstDayOfWeek:h}=e,o=N("weekdays"),l=[...o.slice(h,7),...o.slice(0,h)];return u("div",{class:v("weekdays")},[l.map(k=>u("span",{class:v("weekday")},[k]))])};return()=>u("div",{class:v("header")},[r(),m(),g()])}});const ct={show:Boolean,type:H("single"),title:String,color:String,round:C,readonly:Boolean,poppable:C,maxRange:J(null),position:H("bottom"),teleport:[String,Object],showMark:C,showTitle:C,formatter:Function,rowHeight:X,confirmText:String,rangePrompt:String,lazyRender:C,showConfirm:C,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:C,closeOnPopstate:C,showRangePrompt:C,confirmDisabledText:String,closeOnClickOverlay:C,safeAreaInsetTop:Boolean,safeAreaInsetBottom:C,minDate:{type:Date,validator:se,default:de},maxDate:{type:Date,validator:se,default:()=>{const e=de();return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},firstDayOfWeek:{type:X,default:0,validator:e=>e>=0&&e<=6}};var ut=G({name:Ze,props:ct,emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle"],setup(e,{emit:a,slots:i}){const r=(t,n=e.minDate,c=e.maxDate)=>P(t,n)===-1?n:P(t,c)===1?c:t,f=(t=e.defaultDate)=>{const{type:n,minDate:c,maxDate:d,allowSameDay:B}=e;if(t===null)return t;const T=de();if(n==="range"){Array.isArray(t)||(t=[]);const A=r(t[0]||T,c,B?d:ue(d)),w=r(t[1]||T,B?c:we(c));return[A,w]}return n==="multiple"?Array.isArray(t)?t.map(A=>r(A)):[r(T)]:((!t||Array.isArray(t))&&(t=T),r(t))};let m;const g=E(),h=E({text:"",date:void 0}),o=E(f()),[l,k]=Xe(),D=_(()=>e.firstDayOfWeek?+e.firstDayOfWeek%7:0),R=_(()=>{const t=[],n=new Date(e.minDate);n.setDate(1);do t.push(new Date(n)),n.setMonth(n.getMonth()+1);while(ce(n,e.maxDate)!==1);return t}),$=_(()=>{if(o.value){if(e.type==="range")return!o.value[0]||!o.value[1];if(e.type==="multiple")return!o.value.length}return!o.value}),M=()=>o.value,Y=()=>{const t=Ie(g.value),n=t+m,c=R.value.map((w,I)=>l.value[I].getHeight()),d=c.reduce((w,I)=>w+I,0);if(n>d&&t>0)return;let B=0,T;const A=[-1,-1];for(let w=0;w<R.value.length;w++){const I=l.value[w];B<=n&&B+c[w]>=t&&(A[1]=w,T||(T=I,A[0]=w),l.value[w].showed||(l.value[w].showed=!0,a("monthShow",{date:I.date,title:I.getTitle()}))),B+=c[w]}R.value.forEach((w,I)=>{const me=I>=A[0]-1&&I<=A[1]+1;l.value[I].setVisible(me)}),T&&(h.value={text:T.getTitle(),date:T.date})},U=t=>{oe(()=>{R.value.some((n,c)=>ce(n,t)===0?(g.value&&l.value[c].scrollToDate(g.value,t),!0):!1),Y()})},F=()=>{if(!(e.poppable&&!e.show))if(o.value){const t=e.type==="single"?o.value:o.value[0];se(t)&&U(t)}else oe(Y)},W=()=>{e.poppable&&!e.show||(oe(()=>{m=Math.floor(le(g).height)}),F())},j=(t=f())=>{o.value=t,F()},z=t=>{const{maxRange:n,rangePrompt:c,showRangePrompt:d}=e;return n&&et(t)>+n?(d&&ge(c||N("rangePrompt",n)),a("overRange"),!1):!0},V=()=>{var t;return a("confirm",(t=o.value)!=null?t:ye(o.value))},O=(t,n)=>{const c=d=>{o.value=d,a("select",ye(d))};if(n&&e.type==="range"&&!z(t)){c([t[0],fe(t[0],+e.maxRange-1)]);return}c(t),n&&!e.showConfirm&&V()},ee=(t,n,c)=>{var d;return(d=t.find(B=>P(n,B.date)===-1&&P(B.date,c)===-1))==null?void 0:d.date},te=_(()=>l.value.reduce((t,n)=>{var c,d;return t.push(...(d=(c=n.disabledDays)==null?void 0:c.value)!=null?d:[]),t},[])),ne=t=>{if(e.readonly||!t.date)return;const{date:n}=t,{type:c}=e;if(c==="range"){if(!o.value){O([n]);return}const[d,B]=o.value;if(d&&!B){const T=P(n,d);if(T===1){const A=ee(te.value,d,n);if(A){const w=ue(A);P(d,w)===-1?O([d,w]):O([n])}else O([d,n],!0)}else T===-1?O([n]):e.allowSameDay&&O([n,n],!0)}else O([n])}else if(c==="multiple"){if(!o.value){O([n]);return}const d=o.value,B=d.findIndex(T=>P(T,n)===0);if(B!==-1){const[T]=d.splice(B,1);a("unselect",Z(T))}else e.maxRange&&d.length>=+e.maxRange?ge(e.rangePrompt||N("rangePrompt",e.maxRange)):O([...d,n])}else O(n,!0)},s=t=>a("update:show",t),b=(t,n)=>{const c=n!==0||!e.showSubtitle;return u(rt,$e({ref:k(n),date:t,currentDate:o.value,showMonthTitle:c,firstDayOfWeek:D.value},Q(e,["type","color","minDate","maxDate","showMark","formatter","rowHeight","lazyRender","showSubtitle","allowSameDay"]),{onClick:ne}),Q(i,["top-info","bottom-info","month-title"]))},S=()=>{if(i.footer)return i.footer();if(e.showConfirm){const t=i["confirm-text"],n=$.value,c=n?e.confirmDisabledText:e.confirmText;return u(Ke,{round:!0,block:!0,type:"primary",color:e.color,class:v("confirm"),disabled:n,nativeType:"button",onClick:V},{default:()=>[t?t({disabled:n}):c||N("confirm")]})}},y=()=>u("div",{class:[v("footer"),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[S()]),x=()=>u("div",{class:v()},[u(st,{date:h.value.date,title:e.title,subtitle:h.value.text,showTitle:e.showTitle,showSubtitle:e.showSubtitle,firstDayOfWeek:D.value,onClickSubtitle:t=>a("clickSubtitle",t)},Q(i,["title","subtitle"])),u("div",{ref:g,class:v("body"),onScroll:Y},[R.value.map(b)]),y()]);return ae(()=>e.show,W),ae(()=>[e.type,e.minDate,e.maxDate],()=>j(f(o.value))),ae(()=>e.defaultDate,(t=null)=>{o.value=t,F()}),De({reset:j,scrollToDate:U,getSelectedDate:M}),Ce(W),()=>e.poppable?u(Ae,{show:e.show,class:v("popup"),round:e.round,position:e.position,closeable:e.showTitle||e.showSubtitle,teleport:e.teleport,closeOnPopstate:e.closeOnPopstate,safeAreaInsetTop:e.safeAreaInsetTop,closeOnClickOverlay:e.closeOnClickOverlay,"onUpdate:show":s},{default:x}):x()}});const dt=ve(ut);function ft(e,a){const i={card:e.card,begin_time:e.begin_time,end_time:e.end_time};return Ne.get("/api/Flow/TeacherDateVerify",{params:i,...a})}async function mt(e){let a=await e();try{switch(a.code){case 1:ie({type:"success",message:a.msg});break;default:ie({type:"danger",message:a.msg_detail})}return a}catch{ie({type:"danger",message:a.msg_detail||"报错,无msg_detail"})}}const gt={class:"w-screen h-screen"},ht={class:"w-full h-full"},Dt={__name:"index",setup(e){const a=Fe(),i=E(!0),r=He({data:{card:"",begin_time:"",end_time:""}}),f=m=>{[r.data.begin_time,r.data.end_time]=[he(m[0]).format("YYYY-MM-DD"),he(m[1]).format("YYYY-MM-DD")],mt(()=>ft(r.data).then(g=>(g.code===1&&window.parent.returnVal(r.data.begin_time,r.data.end_time),g)))};return Ye(()=>{r.data.card=a.currentRoute.value.query.card}),(m,g)=>{const h=dt;return We(),ze("div",gt,[Ve("div",ht,[u(h,{show:i.value,"onUpdate:show":g[0]||(g[0]=o=>i.value=o),type:"range",onConfirm:f},null,8,["show"])])])}}};export{Dt as default};
import{c as e,g as S,a as k,d as B,b,m as G,w as _,r as I,n as A,t as w,H as D,B as M,I as T,e as $,u as z,o as R,f as P,F as H}from"./index-135ee00a.js";import{u as L}from"./use-height-61ef1bfa.js";function N(t,a){const c=L(t,!0);return h=>e("div",{class:a("placeholder"),style:{height:c.value?`${c.value}px`:void 0}},[h()])}let V=0;function Z(){const t=S(),{name:a="unknown"}=(t==null?void 0:t.type)||{};return`${a}-${++V}`}const[O,F]=k("empty"),K={image:G("default"),imageSize:[Number,String,Array],description:String};var U=B({name:O,props:K,setup(t,{slots:a}){const c=()=>{const i=a.description?a.description():t.description;if(i)return e("p",{class:F("description")},[i])},h=()=>{if(a.default)return e("div",{class:F("bottom")},[a.default()])},g=Z(),n=i=>`${g}-${i}`,r=i=>`url(#${n(i)})`,l=(i,f,C)=>e("stop",{"stop-color":i,offset:`${f}%`,"stop-opacity":C},null),o=(i,f)=>[l(i,0),l(f,100)],u=i=>[e("defs",null,[e("radialGradient",{id:n(i),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[l("#EBEDF0",0),l("#F2F3F5",100,.3)])]),e("ellipse",{fill:r(i),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],d=()=>[e("defs",null,[e("linearGradient",{id:n("a"),x1:"64%",y1:"100%",x2:"64%"},[l("#FFF",0,.5),l("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:r("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:r("a")},null)])],x=()=>[e("defs",null,[e("linearGradient",{id:n("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[l("#F2F3F5",0,.3),l("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:r("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:r("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:n(1),x1:"64%",y1:"100%",x2:"64%"},[l("#FFF",0,.5),l("#F2F3F5",100)]),e("linearGradient",{id:n(2),x1:"50%",x2:"50%",y2:"84%"},[l("#EBEDF0",0),l("#DCDEE0",100,0)]),e("linearGradient",{id:n(3),x1:"100%",x2:"100%",y2:"100%"},[o("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:n(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[l("#EBEDF0",0),l("#FFF",100,0)])]),e("g",{fill:"none"},[d(),e("path",{fill:r(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:r(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:r(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:r(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:r(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:r(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),m=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:n(5)},[o("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:n(6)},[o("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:n(7)},[o("#EAEDF1","#DCDEE0")])]),d(),x(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:r(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:r(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:r(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),v=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:n(8)},[o("#EAEDF1","#DCDEE0")])]),d(),x(),u("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:r(8)},null)]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:n(9)},[o("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:n(10)},[o("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:n(11)},[o("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:n(12)},[o("#FFF","#F7F8FA")])]),d(),x(),u("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:r(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:r(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:r(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:r(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:r(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),p=()=>{var i;if(a.image)return a.image();const f={error:v,search:E,network:y,default:m};return((i=f[t.image])==null?void 0:i.call(f))||e("img",{src:t.image},null)};return()=>e("div",{class:F()},[e("div",{class:F("image"),style:b(t.imageSize)},[p()]),c(),h()])}});const j=_(U),[q,s]=k("nav-bar"),J={title:String,fixed:Boolean,zIndex:A,border:w,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:w};var Q=B({name:q,props:J,emits:["clickLeft","clickRight"],setup(t,{emit:a,slots:c}){const h=I(),g=N(h,s),n=d=>a("clickLeft",d),r=d=>a("clickRight",d),l=()=>c.left?c.left():[t.leftArrow&&e(T,{class:s("arrow"),name:"arrow-left"},null),t.leftText&&e("span",{class:s("text")},[t.leftText])],o=()=>c.right?c.right():e("span",{class:s("text")},[t.rightText]),u=()=>{const{title:d,fixed:x,border:y,zIndex:m}=t,v=$(m),E=t.leftArrow||t.leftText||c.left,p=t.rightText||c.right;return e("div",{ref:h,style:v,class:[s({fixed:x}),{[M]:y,"van-safe-area-top":t.safeAreaInsetTop}]},[e("div",{class:s("content")},[E&&e("div",{class:[s("left"),t.clickable?D:""],onClick:n},[l()]),e("div",{class:[s("title"),"van-ellipsis"]},[c.title?c.title():d]),p&&e("div",{class:[s("right"),t.clickable?D:""],onClick:r},[o()])])])};return()=>t.fixed&&t.placeholder?g(u):u()}});const W=_(Q);const ee={__name:"index",setup(t){const a=z(),c=()=>a.replace({name:"welcome"});return(h,g)=>{const n=W,r=j;return R(),P(H,null,[e(n,{"left-text":"返回","left-arrow":"",onClickLeft:c}),e(r,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{ee as default};
import{c as e,g as S,a as k,d as B,b,m as G,w as _,r as I,n as A,t as w,H as D,B as M,I as T,e as $,u as z,o as R,f as P,F as H}from"./index-ddd3d06d.js";import{u as L}from"./use-height-4230402e.js";function N(t,a){const c=L(t,!0);return h=>e("div",{class:a("placeholder"),style:{height:c.value?`${c.value}px`:void 0}},[h()])}let V=0;function Z(){const t=S(),{name:a="unknown"}=(t==null?void 0:t.type)||{};return`${a}-${++V}`}const[O,F]=k("empty"),K={image:G("default"),imageSize:[Number,String,Array],description:String};var U=B({name:O,props:K,setup(t,{slots:a}){const c=()=>{const i=a.description?a.description():t.description;if(i)return e("p",{class:F("description")},[i])},h=()=>{if(a.default)return e("div",{class:F("bottom")},[a.default()])},g=Z(),n=i=>`${g}-${i}`,r=i=>`url(#${n(i)})`,l=(i,f,C)=>e("stop",{"stop-color":i,offset:`${f}%`,"stop-opacity":C},null),o=(i,f)=>[l(i,0),l(f,100)],u=i=>[e("defs",null,[e("radialGradient",{id:n(i),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[l("#EBEDF0",0),l("#F2F3F5",100,.3)])]),e("ellipse",{fill:r(i),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],d=()=>[e("defs",null,[e("linearGradient",{id:n("a"),x1:"64%",y1:"100%",x2:"64%"},[l("#FFF",0,.5),l("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:r("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:r("a")},null)])],x=()=>[e("defs",null,[e("linearGradient",{id:n("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[l("#F2F3F5",0,.3),l("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:r("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:r("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:n(1),x1:"64%",y1:"100%",x2:"64%"},[l("#FFF",0,.5),l("#F2F3F5",100)]),e("linearGradient",{id:n(2),x1:"50%",x2:"50%",y2:"84%"},[l("#EBEDF0",0),l("#DCDEE0",100,0)]),e("linearGradient",{id:n(3),x1:"100%",x2:"100%",y2:"100%"},[o("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:n(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[l("#EBEDF0",0),l("#FFF",100,0)])]),e("g",{fill:"none"},[d(),e("path",{fill:r(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:r(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:r(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:r(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:r(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:r(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),m=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:n(5)},[o("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:n(6)},[o("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:n(7)},[o("#EAEDF1","#DCDEE0")])]),d(),x(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:r(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:r(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:r(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),v=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:n(8)},[o("#EAEDF1","#DCDEE0")])]),d(),x(),u("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:r(8)},null)]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:n(9)},[o("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:n(10)},[o("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:n(11)},[o("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:n(12)},[o("#FFF","#F7F8FA")])]),d(),x(),u("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:r(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:r(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:r(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:r(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:r(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),p=()=>{var i;if(a.image)return a.image();const f={error:v,search:E,network:y,default:m};return((i=f[t.image])==null?void 0:i.call(f))||e("img",{src:t.image},null)};return()=>e("div",{class:F()},[e("div",{class:F("image"),style:b(t.imageSize)},[p()]),c(),h()])}});const j=_(U),[q,s]=k("nav-bar"),J={title:String,fixed:Boolean,zIndex:A,border:w,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:w};var Q=B({name:q,props:J,emits:["clickLeft","clickRight"],setup(t,{emit:a,slots:c}){const h=I(),g=N(h,s),n=d=>a("clickLeft",d),r=d=>a("clickRight",d),l=()=>c.left?c.left():[t.leftArrow&&e(T,{class:s("arrow"),name:"arrow-left"},null),t.leftText&&e("span",{class:s("text")},[t.leftText])],o=()=>c.right?c.right():e("span",{class:s("text")},[t.rightText]),u=()=>{const{title:d,fixed:x,border:y,zIndex:m}=t,v=$(m),E=t.leftArrow||t.leftText||c.left,p=t.rightText||c.right;return e("div",{ref:h,style:v,class:[s({fixed:x}),{[M]:y,"van-safe-area-top":t.safeAreaInsetTop}]},[e("div",{class:s("content")},[E&&e("div",{class:[s("left"),t.clickable?D:""],onClick:n},[l()]),e("div",{class:[s("title"),"van-ellipsis"]},[c.title?c.title():d]),p&&e("div",{class:[s("right"),t.clickable?D:""],onClick:r},[o()])])])};return()=>t.fixed&&t.placeholder?g(u):u()}});const W=_(Q);const ee={__name:"index",setup(t){const a=z(),c=()=>a.replace({name:"welcome"});return(h,g)=>{const n=W,r=j;return R(),P(H,null,[e(n,{"left-text":"返回","left-arrow":"",onClickLeft:c}),e(r,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{ee as default};
import{r as n,T as h,W as o,X as r,E as u,Y as c,Z as g,A as p}from"./index-135ee00a.js";const d=(i,a)=>{const s=n(),e=()=>{s.value=p(i).height};return h(()=>{if(o(e),a)for(let t=1;t<=3;t++)setTimeout(e,100*t)}),r(()=>o(e)),u([c,g],e),s};export{d as u};
import{r as n,T as h,W as o,X as r,E as u,Y as c,Z as g,A as p}from"./index-ddd3d06d.js";const d=(i,a)=>{const s=n(),e=()=>{s.value=p(i).height};return h(()=>{if(o(e),a)for(let t=1;t<=3;t++)setTimeout(e,100*t)}),r(()=>o(e)),u([c,g],e),s};export{d as u};
......@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>教师下企业</title>
<script type="module" crossorigin src="./assets/index-135ee00a.js"></script>
<script type="module" crossorigin src="./assets/index-ddd3d06d.js"></script>
<link rel="stylesheet" href="./assets/index-df16faa4.css">
</head>
<body>
......
......@@ -11,7 +11,9 @@ import {onMounted, reactive, ref} from 'vue';
import dayjs from "dayjs";
import * as api from '../../api/dist/controller/index.js'
import * as hooks from '../../hooks/index.js'
import {useRouter} from "vue-router";
const router = useRouter()
const show = ref(true);
const init = reactive({
data: {
......@@ -36,7 +38,7 @@ const onConfirm = (values) => {
};
onMounted(() => {
init.data.card = router.currentRoute.value.query.card
})
</script>
<style scoped>
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或