提交 0f163e2e 编写于 作者: 刘英杰's avatar 刘英杰

20241128 签到列表》日志保存接口换成post

上级 46856a71
流水线 #31334 已通过 ,包含阶段
in 40 second
import{u,e as l,o as p,c as m,a as _,f,L as k,h as d,S as y,i as n,G as a,j as w}from"./index-411046ae.js";const g={style:{display:"flex","justify-content":"center","margin-top":"50%"}},x={__name:"SSO",setup(S){const e=u(),r=async o=>{const t=await y(o);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){n.set("admin-token",t.response.access_token.token_content),n.set("time",t.response.access_token.expires);const s=await a();n.set("user-info",s.response.role),localStorage.setItem("user-info",s.response.role),n.set("userInfo",JSON.stringify(s.response)),await e.replace({name:"welcome"})}},c=async o=>{const t=await w(o);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){n.set("admin-token",t.response.access_token.token_content),n.set("time",t.response.access_token.expires);const s=await a();n.set("user-info",s.response.role),localStorage.setItem("user-info",s.response.role),n.set("userInfo",JSON.stringify(s.response)),await e.replace({name:"welcome"})}},i=async()=>{if(Number(e.currentRoute.value.query.type)===2){let o={token:e.currentRoute.value.query.token};await r(o)}else if(Number(e.currentRoute.value.query.type)===1){let o={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await c(o)}};return l(()=>{i()}),(o,t)=>{const s=k;return p(),m("div",g,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:f(()=>[d(" 登录中")]),_:1})])}}};export{x as default};
import{u,e as l,o as p,c as m,a as _,f,L as k,h as d,S as y,i as n,G as a,j as w}from"./index-84e22df6.js";const g={style:{display:"flex","justify-content":"center","margin-top":"50%"}},x={__name:"SSO",setup(S){const e=u(),r=async o=>{const t=await y(o);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){n.set("admin-token",t.response.access_token.token_content),n.set("time",t.response.access_token.expires);const s=await a();n.set("user-info",s.response.role),localStorage.setItem("user-info",s.response.role),n.set("userInfo",JSON.stringify(s.response)),await e.replace({name:"welcome"})}},c=async o=>{const t=await w(o);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){n.set("admin-token",t.response.access_token.token_content),n.set("time",t.response.access_token.expires);const s=await a();n.set("user-info",s.response.role),localStorage.setItem("user-info",s.response.role),n.set("userInfo",JSON.stringify(s.response)),await e.replace({name:"welcome"})}},i=async()=>{if(Number(e.currentRoute.value.query.type)===2){let o={token:e.currentRoute.value.query.token};await r(o)}else if(Number(e.currentRoute.value.query.type)===1){let o={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await c(o)}};return l(()=>{i()}),(o,t)=>{const s=k;return p(),m("div",g,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:f(()=>[d(" 登录中")]),_:1})])}}};export{x as default};
import{u as p,e as k,o as f,c as _,a as d,f as m,i as t,G as c,L as y,h as g,S as v,j as w}from"./index-411046ae.js";const S={style:{display:"flex","justify-content":"center","margin-top":"50%"}},h={__name:"SSOInfo",setup(q){const e=p(),u=async s=>{const n=await v(s);if(n.code!==1)await e.replace({name:"403"});else if(n.response.access_token.token_content!==""){t.set("admin-token",n.response.access_token.token_content),t.set("time",n.response.access_token.expires);let o=e.currentRoute.value.query.links,a=e.currentRoute.value.query.id;const r=await c();t.set("user-info",r.response.role),localStorage.setItem("user-info",r.response.role),t.set("userInfo",JSON.stringify(r.response)),await e.push({path:`/${o}`,query:{id:a}})}},i=async s=>{const n=await w(s);if(n.code!==1)await e.replace({name:"403"});else if(n.response.access_token.token_content!==""){t.set("admin-token",n.response.access_token.token_content),t.set("time",n.response.access_token.expires);let o=e.currentRoute.value.query.links;const a=await c();t.set("user-info",a.response.role),localStorage.setItem("user-info",a.response.role),t.set("userInfo",JSON.stringify(a.response)),await e.push({path:`/${o}`})}},l=async()=>{if(Number(e.currentRoute.value.query.type)===2){t.set("token",e.currentRoute.value.query.token);let s={token:t.get("token")};await u(s)}else if(Number(e.currentRoute.value.query.type)===1){let s={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await i(s)}c(t.get("admin-token")).then(s=>{t.set("userInfo",JSON.stringify(s.response))})};return k(()=>{l()}),(s,n)=>{const o=y;return f(),_("div",S,[d(o,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[g(" 登录中")]),_:1})])}}};export{h as default};
import{u as p,e as k,o as f,c as _,a as d,f as m,i as t,G as c,L as y,h as g,S as v,j as w}from"./index-84e22df6.js";const S={style:{display:"flex","justify-content":"center","margin-top":"50%"}},h={__name:"SSOInfo",setup(q){const e=p(),u=async s=>{const n=await v(s);if(n.code!==1)await e.replace({name:"403"});else if(n.response.access_token.token_content!==""){t.set("admin-token",n.response.access_token.token_content),t.set("time",n.response.access_token.expires);let o=e.currentRoute.value.query.links,a=e.currentRoute.value.query.id;const r=await c();t.set("user-info",r.response.role),localStorage.setItem("user-info",r.response.role),t.set("userInfo",JSON.stringify(r.response)),await e.push({path:`/${o}`,query:{id:a}})}},i=async s=>{const n=await w(s);if(n.code!==1)await e.replace({name:"403"});else if(n.response.access_token.token_content!==""){t.set("admin-token",n.response.access_token.token_content),t.set("time",n.response.access_token.expires);let o=e.currentRoute.value.query.links;const a=await c();t.set("user-info",a.response.role),localStorage.setItem("user-info",a.response.role),t.set("userInfo",JSON.stringify(a.response)),await e.push({path:`/${o}`})}},l=async()=>{if(Number(e.currentRoute.value.query.type)===2){t.set("token",e.currentRoute.value.query.token);let s={token:t.get("token")};await u(s)}else if(Number(e.currentRoute.value.query.type)===1){let s={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await i(s)}c(t.get("admin-token")).then(s=>{t.set("userInfo",JSON.stringify(s.response))})};return k(()=>{l()}),(s,n)=>{const o=y;return f(),_("div",S,[d(o,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[g(" 登录中")]),_:1})])}}};export{h as default};
import{c as t}from"./index-1908e3a2.js";import{w as n}from"./index-84e22df6.js";const i=n(t);export{i as P};
import{aE as L,b as k,J as A,d as w,a as l,m as D,a3 as h,M as B,ax as S,aq as P,I as x,w as y,bq as O,T as q,F as z,Q as E,ar as R}from"./index-411046ae.js";const V={to:[String,Object],url:String,replace:Boolean};function F({to:e,url:n,replace:r,$router:a}){e&&a?a[r?"replace":"push"](e):n&&(r?location.replace(n):location.href=n)}function G(){const e=L().proxy;return()=>F(e)}const[M,s]=k("cell"),N={tag:D("div"),icon:String,size:String,title:h,value:h,label:h,center:Boolean,isLink:Boolean,border:B,required:Boolean,iconPrefix:String,valueClass:S,labelClass:S,titleClass:S,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}},j=A({},N,V);var H=w({name:M,props:j,setup(e,{slots:n}){const r=G(),a=()=>{if(n.label||P(e.label))return l("div",{class:[s("label"),e.labelClass]},[n.label?n.label():e.label])},u=()=>{var t;if(n.title||P(e.title)){const i=(t=n.title)==null?void 0:t.call(n);return Array.isArray(i)&&i.length===0?void 0:l("div",{class:[s("title"),e.titleClass],style:e.titleStyle},[i||l("span",null,[e.title]),a()])}},c=()=>{const t=n.value||n.default;if(t||P(e.value))return l("div",{class:[s("value"),e.valueClass]},[t?t():l("span",null,[e.value])])},o=()=>{if(n.icon)return n.icon();if(e.icon)return l(x,{name:e.icon,class:s("left-icon"),classPrefix:e.iconPrefix},null)},g=()=>{if(n["right-icon"])return n["right-icon"]();if(e.isLink){const t=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return l(x,{name:t,class:s("right-icon")},null)}};return()=>{var t;const{tag:i,size:d,center:f,border:v,isLink:b,required:m}=e,C=(t=e.clickable)!=null?t:b,T={center:f,required:m,clickable:C,borderless:!v};return d&&(T[d]=!!d),l(i,{class:s(T),role:C?"button":void 0,tabindex:C?0:void 0,onClick:r},{default:()=>{var _;return[o(),u(),c(),g(),(_=n.extra)==null?void 0:_.call(n)]}})}}});const Z=y(H),[J,$]=k("tag"),K={size:String,mark:Boolean,show:B,type:D("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var Q=w({name:J,props:K,emits:["close"],setup(e,{slots:n,emit:r}){const a=o=>{o.stopPropagation(),r("close",o)},u=()=>e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},c=()=>{var o;const{type:g,mark:t,plain:i,round:d,size:f,closeable:v}=e,b={mark:t,plain:i,round:d};f&&(b[f]=f);const m=v&&l(x,{name:"cross",class:[$("close"),q],onClick:a},null);return l("span",{style:u(),class:$([b,g])},[(o=n.default)==null?void 0:o.call(n),m])};return()=>l(O,{name:e.closeable?"van-fade":void 0},{default:()=>[e.show?c():null]})}});const p=y(Q),[U,I]=k("cell-group"),W={title:String,inset:Boolean,border:B};var X=w({name:U,inheritAttrs:!1,props:W,setup(e,{slots:n,attrs:r}){const a=()=>{var c;return l("div",E({class:[I({inset:e.inset}),{[R]:e.border&&!e.inset}]},r),[(c=n.default)==null?void 0:c.call(n)])},u=()=>l("div",{class:I("title",{inset:e.inset})},[n.title?n.title():e.title]);return()=>e.title||n.title?l(z,null,[u(),a()]):a()}});const ee=y(X);export{Z as C,p as T,ee as a,V as b,N as c,F as r,G as u};
import{aE as L,b as k,J as A,d as w,a as l,m as D,a3 as h,M as B,ax as S,aq as P,I as x,w as y,bq as O,T as q,F as z,Q as E,ar as R}from"./index-84e22df6.js";const V={to:[String,Object],url:String,replace:Boolean};function F({to:e,url:n,replace:r,$router:a}){e&&a?a[r?"replace":"push"](e):n&&(r?location.replace(n):location.href=n)}function G(){const e=L().proxy;return()=>F(e)}const[M,s]=k("cell"),N={tag:D("div"),icon:String,size:String,title:h,value:h,label:h,center:Boolean,isLink:Boolean,border:B,required:Boolean,iconPrefix:String,valueClass:S,labelClass:S,titleClass:S,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}},j=A({},N,V);var H=w({name:M,props:j,setup(e,{slots:n}){const r=G(),a=()=>{if(n.label||P(e.label))return l("div",{class:[s("label"),e.labelClass]},[n.label?n.label():e.label])},u=()=>{var t;if(n.title||P(e.title)){const i=(t=n.title)==null?void 0:t.call(n);return Array.isArray(i)&&i.length===0?void 0:l("div",{class:[s("title"),e.titleClass],style:e.titleStyle},[i||l("span",null,[e.title]),a()])}},c=()=>{const t=n.value||n.default;if(t||P(e.value))return l("div",{class:[s("value"),e.valueClass]},[t?t():l("span",null,[e.value])])},o=()=>{if(n.icon)return n.icon();if(e.icon)return l(x,{name:e.icon,class:s("left-icon"),classPrefix:e.iconPrefix},null)},g=()=>{if(n["right-icon"])return n["right-icon"]();if(e.isLink){const t=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return l(x,{name:t,class:s("right-icon")},null)}};return()=>{var t;const{tag:i,size:d,center:f,border:v,isLink:b,required:m}=e,C=(t=e.clickable)!=null?t:b,T={center:f,required:m,clickable:C,borderless:!v};return d&&(T[d]=!!d),l(i,{class:s(T),role:C?"button":void 0,tabindex:C?0:void 0,onClick:r},{default:()=>{var _;return[o(),u(),c(),g(),(_=n.extra)==null?void 0:_.call(n)]}})}}});const Z=y(H),[J,$]=k("tag"),K={size:String,mark:Boolean,show:B,type:D("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var Q=w({name:J,props:K,emits:["close"],setup(e,{slots:n,emit:r}){const a=o=>{o.stopPropagation(),r("close",o)},u=()=>e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},c=()=>{var o;const{type:g,mark:t,plain:i,round:d,size:f,closeable:v}=e,b={mark:t,plain:i,round:d};f&&(b[f]=f);const m=v&&l(x,{name:"cross",class:[$("close"),q],onClick:a},null);return l("span",{style:u(),class:$([b,g])},[(o=n.default)==null?void 0:o.call(n),m])};return()=>l(O,{name:e.closeable?"van-fade":void 0},{default:()=>[e.show?c():null]})}});const p=y(Q),[U,I]=k("cell-group"),W={title:String,inset:Boolean,border:B};var X=w({name:U,inheritAttrs:!1,props:W,setup(e,{slots:n,attrs:r}){const a=()=>{var c;return l("div",E({class:[I({inset:e.inset}),{[R]:e.border&&!e.inset}]},r),[(c=n.default)==null?void 0:c.call(n)])},u=()=>l("div",{class:I("title",{inset:e.inset})},[n.title?n.title():e.title]);return()=>e.title||n.title?l(z,null,[u(),a()]):a()}});const ee=y(X);export{Z as C,p as T,ee as a,V as b,N as c,F as r,G as u};
import{u as y,r as f,e as x,o as C,c as g,a,n as l,f as t,F as v,bo as h,p as n,D as r,h as w}from"./index-411046ae.js";import{a as N,T as b,C as k}from"./index-b2908b97.js";import{N as B}from"./index-fdbc5e65.js";import"./use-placeholder-50732a56.js";const D={class:"container"},M={__name:"index",setup(L){const c=y();let e=f({data:{}});const p=async()=>{let _={id:c.currentRoute.value.query.id};const i=await h(_);e.data=i.response};x(()=>{p()});const d=()=>c.push({name:"signList"});return(_,i)=>{const u=B,s=b,o=k,m=N;return C(),g(v,null,[a(u,{title:"值班信息","left-text":"返回","left-arrow":"",onClickLeft:d}),l("div",D,[a(m,{class:"cardContainer",inset:""},{default:t(()=>[a(o,{class:"cardContent",title:n(e).data.username},{extra:t(()=>[a(s,{type:"primary",plain:""},{default:t(()=>[l("span",null,r(n(e).data.card_name),1)]),_:1}),a(s,{color:"#7232dd",type:"primary",plain:"",style:{"margin-left":"10px"}},{default:t(()=>[w(r(["值班教师","值班领导"][n(e).data.is_lead]),1)]),_:1})]),_:1},8,["title"]),a(o,{class:"cardContent",title:"手机号"},{extra:t(()=>[a(s,{type:"primary",plain:""},{default:t(()=>[l("span",null,r(n(e).data.mobile),1)]),_:1})]),_:1}),a(o,{class:"cardContent",title:"日期"},{extra:t(()=>[a(s,{type:"primary",plain:""},{default:t(()=>[l("span",null,r(n(e).data.watch_date),1)]),_:1})]),_:1}),a(o,{class:"cardContent",title:"时段"},{extra:t(()=>[a(s,{type:"primary",plain:"",style:{"margin-left":"10px"}},{default:t(()=>[l("span",null,r(n(e).data.watch_hour_time),1)]),_:1})]),_:1}),a(o,{class:"cardContent",title:"类型"},{extra:t(()=>[a(s,{type:"primary",plain:""},{default:t(()=>[l("span",null,r(n(e).data.watchtypename+"-"+n(e).data.dept_name+"-"+n(e).data.campusname),1)]),_:1})]),_:1})]),_:1})])],64)}}};export{M as default};
import{u as y,r as f,e as x,o as C,c as g,a,n as l,f as t,F as v,bo as h,p as n,D as r,h as w}from"./index-84e22df6.js";import{a as N,T as b,C as k}from"./index-231c9ce1.js";import{N as B}from"./index-74573e94.js";import"./use-placeholder-736a4680.js";const D={class:"container"},M={__name:"index",setup(L){const c=y();let e=f({data:{}});const p=async()=>{let _={id:c.currentRoute.value.query.id};const i=await h(_);e.data=i.response};x(()=>{p()});const d=()=>c.push({name:"signList"});return(_,i)=>{const u=B,s=b,o=k,m=N;return C(),g(v,null,[a(u,{title:"值班信息","left-text":"返回","left-arrow":"",onClickLeft:d}),l("div",D,[a(m,{class:"cardContainer",inset:""},{default:t(()=>[a(o,{class:"cardContent",title:n(e).data.username},{extra:t(()=>[a(s,{type:"primary",plain:""},{default:t(()=>[l("span",null,r(n(e).data.card_name),1)]),_:1}),a(s,{color:"#7232dd",type:"primary",plain:"",style:{"margin-left":"10px"}},{default:t(()=>[w(r(["值班教师","值班领导"][n(e).data.is_lead]),1)]),_:1})]),_:1},8,["title"]),a(o,{class:"cardContent",title:"手机号"},{extra:t(()=>[a(s,{type:"primary",plain:""},{default:t(()=>[l("span",null,r(n(e).data.mobile),1)]),_:1})]),_:1}),a(o,{class:"cardContent",title:"日期"},{extra:t(()=>[a(s,{type:"primary",plain:""},{default:t(()=>[l("span",null,r(n(e).data.watch_date),1)]),_:1})]),_:1}),a(o,{class:"cardContent",title:"时段"},{extra:t(()=>[a(s,{type:"primary",plain:"",style:{"margin-left":"10px"}},{default:t(()=>[l("span",null,r(n(e).data.watch_hour_time),1)]),_:1})]),_:1}),a(o,{class:"cardContent",title:"类型"},{extra:t(()=>[a(s,{type:"primary",plain:""},{default:t(()=>[l("span",null,r(n(e).data.watchtypename+"-"+n(e).data.dept_name+"-"+n(e).data.campusname),1)]),_:1})]),_:1})]),_:1})])],64)}}};export{M as default};
import{c as t}from"./index-a4cf47af.js";import{w as n}from"./index-411046ae.js";const i=n(t);export{i as P};
import{u as n,o as c,c as m,a as e,F as s}from"./index-411046ae.js";import{E as p}from"./index-5287b7d8.js";import{N as _}from"./index-fdbc5e65.js";import"./use-id-efcf163b.js";import"./use-placeholder-50732a56.js";const x={__name:"index",setup(i){const t=n(),o=()=>t.replace({name:"welcome"});return(l,f)=>{const r=_,a=p;return c(),m(s,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{x as default};
import{u as n,o as c,c as m,a as e,F as s}from"./index-84e22df6.js";import{E as p}from"./index-87b934bb.js";import{N as _}from"./index-74573e94.js";import"./use-id-e69eac7f.js";import"./use-placeholder-736a4680.js";const x={__name:"index",setup(i){const t=n(),o=()=>t.replace({name:"welcome"});return(l,f)=>{const r=_,a=p;return c(),m(s,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{x as default};
import{b as t}from"./index-a4cf47af.js";import{w as a}from"./index-411046ae.js";a(t);
import{u as b}from"./use-placeholder-50732a56.js";import{b as I,d as R,l as w,a3 as A,M as s,a8 as C,a as r,T as o,bp as P,I as L,w as N}from"./index-411046ae.js";const[S,t]=I("nav-bar"),y={title:String,fixed:Boolean,zIndex:A,border:s,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:s};var E=R({name:S,props:y,emits:["clickLeft","clickRight"],setup(e,{emit:l,slots:a}){const c=w(),f=b(c,t),d=n=>l("clickLeft",n),h=n=>l("clickRight",n),x=()=>a.left?a.left():[e.leftArrow&&r(L,{class:t("arrow"),name:"arrow-left"},null),e.leftText&&r("span",{class:t("text")},[e.leftText])],g=()=>a.right?a.right():r("span",{class:t("text")},[e.rightText]),i=()=>{const{title:n,fixed:u,border:v,zIndex:T}=e,k=C(T),B=e.leftArrow||e.leftText||a.left,m=e.rightText||a.right;return r("div",{ref:c,style:k,class:[t({fixed:u}),{[P]:v,"van-safe-area-top":e.safeAreaInsetTop}]},[r("div",{class:t("content")},[B&&r("div",{class:[t("left"),e.clickable?o:""],onClick:d},[x()]),r("div",{class:[t("title"),"van-ellipsis"]},[a.title?a.title():n]),m&&r("div",{class:[t("right"),e.clickable?o:""],onClick:h},[g()])])])};return()=>e.fixed&&e.placeholder?f(i):i()}});const z=N(E);export{z as N};
import{u as b}from"./use-placeholder-736a4680.js";import{b as I,d as R,l as w,a3 as A,M as s,a8 as C,a as r,T as o,bp as P,I as L,w as N}from"./index-84e22df6.js";const[S,t]=I("nav-bar"),y={title:String,fixed:Boolean,zIndex:A,border:s,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:s};var E=R({name:S,props:y,emits:["clickLeft","clickRight"],setup(e,{emit:l,slots:a}){const c=w(),f=b(c,t),d=n=>l("clickLeft",n),h=n=>l("clickRight",n),x=()=>a.left?a.left():[e.leftArrow&&r(L,{class:t("arrow"),name:"arrow-left"},null),e.leftText&&r("span",{class:t("text")},[e.leftText])],g=()=>a.right?a.right():r("span",{class:t("text")},[e.rightText]),i=()=>{const{title:n,fixed:u,border:v,zIndex:T}=e,k=C(T),B=e.leftArrow||e.leftText||a.left,m=e.rightText||a.right;return r("div",{ref:c,style:k,class:[t({fixed:u}),{[P]:v,"van-safe-area-top":e.safeAreaInsetTop}]},[r("div",{class:t("content")},[B&&r("div",{class:[t("left"),e.clickable?o:""],onClick:d},[x()]),r("div",{class:[t("title"),"van-ellipsis"]},[a.title?a.title():n]),m&&r("div",{class:[t("right"),e.clickable?o:""],onClick:h},[g()])])])};return()=>e.fixed&&e.placeholder?f(i):i()}});const z=N(E);export{z as N};
import{b as t}from"./index-1908e3a2.js";import{w as a}from"./index-84e22df6.js";a(t);
import{u as n,o as c,c as m,a as e,F as s}from"./index-411046ae.js";import{E as p}from"./index-5287b7d8.js";import{N as _}from"./index-fdbc5e65.js";import"./use-id-efcf163b.js";import"./use-placeholder-50732a56.js";const x={__name:"index",setup(i){const t=n(),o=()=>t.replace({name:"welcome"});return(l,f)=>{const r=_,a=p;return c(),m(s,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{x as default};
import{u as n,o as c,c as m,a as e,F as s}from"./index-84e22df6.js";import{E as p}from"./index-87b934bb.js";import{N as _}from"./index-74573e94.js";import"./use-id-e69eac7f.js";import"./use-placeholder-736a4680.js";const x={__name:"index",setup(i){const t=n(),o=()=>t.replace({name:"welcome"});return(l,f)=>{const r=_,a=p;return c(),m(s,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{x as default};
import{aE as e}from"./index-411046ae.js";let r=0;function u(){const n=e(),{name:t="unknown"}=(n==null?void 0:n.type)||{};return`${t}-${++r}`}export{u};
import{aE as e}from"./index-84e22df6.js";let r=0;function u(){const n=e(),{name:t="unknown"}=(n==null?void 0:n.type)||{};return`${t}-${++r}`}export{u};
import{l as h,e as n,U as i,ak as u,a9 as c,ad as r,ae as l,ac as d,a as g}from"./index-411046ae.js";const p=(a,s)=>{const t=h(),e=()=>{t.value=d(a).height};return n(()=>{if(i(e),s)for(let o=1;o<=3;o++)setTimeout(e,100*o)}),u(()=>i(e)),c([r,l],e),t};function v(a,s){const t=p(a,!0);return e=>g("div",{class:s("placeholder"),style:{height:t.value?`${t.value}px`:void 0}},[e()])}export{p as a,v as u};
import{l as h,e as n,U as i,ak as u,a9 as c,ad as r,ae as l,ac as d,a as g}from"./index-84e22df6.js";const p=(a,s)=>{const t=h(),e=()=>{t.value=d(a).height};return n(()=>{if(i(e),s)for(let o=1;o<=3;o++)setTimeout(e,100*o)}),u(()=>i(e)),c([r,l],e),t};function v(a,s){const t=p(a,!0);return e=>g("div",{class:s("placeholder"),style:{height:t.value?`${t.value}px`:void 0}},[e()])}export{p as a,v 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, maximum-scale=1.0, user-scalable=no"/>
<title>值班管理</title>
<script type="module" crossorigin src="./assets/index-411046ae.js"></script>
<script type="module" crossorigin src="./assets/index-84e22df6.js"></script>
<link rel="stylesheet" href="./assets/index-7ba837ea.css">
</head>
<body>
......
......@@ -471,7 +471,7 @@ const onRefresh = async () => {
}
const submitLog = async () => {
let data = {
signId: signList.logId,
sign_id: signList.logId,
content: signList.message,
}
const res = await api.SignLogSave(data)
......
<template>
<div>
<div style="position: fixed;z-index: 2;width: 100%">
<!-- &lt;!&ndash; 圆角弹窗(居中) &ndash;&gt;-->
<van-popup v-model:show="signList.showCenter" round style="width: 100%; padding: 10px;">
<template v-slot:default>
<van-field
v-model="signList.message"
autosize
clearable
maxlength="1000"
placeholder="请输入日志"
rows="2"
show-word-limit
type="textarea"
/>
<div style="float: right;margin-top: 5px">
<van-button icon="close" size="small" style="margin-right: 10px" @click="signList.showCenter = false">取消
</van-button>
<van-button icon="passed" size="small" style="margin-right: 10px" type="primary" @click="submitLog">提交
</van-button>
</div>
</template>
</van-popup>
<van-nav-bar
left-arrow
left-text="返回"
title="签到列表"
@click-left="onClickLeft"
>
<template v-slot:title><span style="margin-right: 20vw">签到列表</span></template>
<template v-slot:right>
<van-tabs v-model:active="signList.is_lead" shrink type="card" @click-tab="tabs">
<van-tab title="教师">
<template v-slot:title>
<span style="">值班教师</span>
</template>
</van-tab>
<van-tab title="领导">
<template v-slot:title>
<span style="">值班领导</span>
</template>
</van-tab>
</van-tabs>
</template>
</van-nav-bar>
<van-search
v-model="searchValue"
placeholder="请输入搜索关键词"
shape="round"
/>
<van-dropdown-menu :overlay="false" class="aaa">
<van-dropdown-item v-model="signList.sign" :options="signList.signClass"
title="状态"></van-dropdown-item>
<van-dropdown-item title="日期" @open="openMenu">
<!-- <template #default>-->
<!-- <van-calendar :max-date="signList.maxDate" :minDate="signList.minDate" v-model:show="signList.show"-->
<!-- type="range" @confirm="dateRange"/>-->
<!-- </template>-->
</van-dropdown-item>
<van-dropdown-item v-for="(item,index) in signList.addDutySelectList" :key="index" v-model="signList[item[2]]"
:options="item[0]" :title="item[1]"/>
</van-dropdown-menu>
</div>
<van-pull-refresh v-model="signList.loading" :disabled="signList.show ? true :false" @refresh="onRefresh">
<van-floating-bubble
......@@ -27,74 +96,7 @@
</template>
</van-floating-bubble>
<div style="position: fixed;z-index: 2;width: 100%">
<!-- &lt;!&ndash; 圆角弹窗(居中) &ndash;&gt;-->
<van-popup v-model:show="signList.showCenter" round style="width: 100%; padding: 10px;">
<template v-slot:default>
<van-field
v-model="signList.message"
autosize
clearable
maxlength="1000"
placeholder="请输入日志"
rows="2"
show-word-limit
type="textarea"
/>
<div style="float: right;margin-top: 5px">
<van-button icon="close" size="small" style="margin-right: 10px" @click="signList.showCenter = false">取消
</van-button>
<van-button icon="passed" size="small" style="margin-right: 10px" type="primary" @click="submitLog">提交
</van-button>
</div>
</template>
</van-popup>
<van-nav-bar
left-arrow
left-text="返回"
title="签到列表"
@click-left="onClickLeft"
>
<template v-slot:title><span style="margin-right: 20vw">签到列表</span></template>
<template v-slot:right>
<van-tabs v-model:active="signList.is_lead" shrink type="card" @click-tab="tabs">
<van-tab title="教师">
<template v-slot:title>
<span style="">值班教师</span>
</template>
</van-tab>
<van-tab title="领导">
<template v-slot:title>
<span style="">值班领导</span>
</template>
</van-tab>
</van-tabs>
</template>
</van-nav-bar>
<van-search
v-model="searchValue"
placeholder="请输入搜索关键词"
shape="round"
/>
<van-dropdown-menu :overlay="false" class="aaa">
<van-dropdown-item v-model="signList.sign" :options="signList.signClass"
title="状态"></van-dropdown-item>
<van-dropdown-item title="日期" @open="openMenu">
<!-- <template #default>-->
<!-- <van-calendar :max-date="signList.maxDate" :minDate="signList.minDate" v-model:show="signList.show"-->
<!-- type="range" @confirm="dateRange"/>-->
<!-- </template>-->
</van-dropdown-item>
<van-dropdown-item v-for="(item,index) in signList.addDutySelectList" :key="index" v-model="signList[item[2]]"
:options="item[0]" :title="item[1]"/>
</van-dropdown-menu>
</div>
<!-- 底部弹出日期选择器 -->
<van-popup
v-model:show="signList.show"
......@@ -260,6 +262,7 @@
</van-sticky>
</div>
</van-action-sheet>
</div>
</template>
<style lang="less" scoped>
.a {
......@@ -476,7 +479,7 @@ const onRefresh = async () => {
}
const submitLog = async () => {
let data = {
signId: signList.logId,
sign_id: signList.logId,
content: signList.message,
}
const res = await api.SignLogSave(data)
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或