提交 9b9bb1c2 编写于 作者: 刘英杰's avatar 刘英杰

feat(welcome): 首页实现值班列表筛选功能

- 新增搜索框和下拉菜单,支持按关键词、日期、类型等条件筛选值班记录
- 优化页面布局,调整日历和值班列表的显示方式
- 更新路由配置,设置欢迎页为默认跳转页面- 调整脚本和样式文件引用,更新相关功能实现
上级 08722769
流水线 #33251 已通过 ,包含阶段
in 1 minute 和 22 second
import{u as f,e as m,o as _,c as d,a as k,f as y,L as g,h as S,S as w,i as s,G as r,j as c,k as i,l as v}from"./index-1d1790c1.js";const x={style:{display:"flex","justify-content":"center","margin-top":"50%"}},Y={__name:"SSO",setup(N){const e=f(),u=async n=>{const t=await w(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("admin-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);const o=await r();s.set("user-info",o.response.role),localStorage.setItem("user-info",o.response.role),s.set("userInfo",JSON.stringify(o.response)),c({date:i().format("YYYY-MM-DD")}).then(a=>{s.set("userDutyDate",JSON.stringify(a.response)),e.replace({name:"welcome"})})}},l=async n=>{const t=await v(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("admin-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);const o=await r();s.set("user-info",o.response.role),localStorage.setItem("user-info",o.response.role),s.set("userInfo",JSON.stringify(o.response)),c({date:i().format("YYYY-MM-DD")}).then(a=>{s.set("userDutyDate",JSON.stringify(a.response)),e.replace({name:"welcome"})})}},p=async()=>{if(Number(e.currentRoute.value.query.type)===2){let n={token:e.currentRoute.value.query.token};await u(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await l(n)}};return m(()=>{p()}),(n,t)=>{const o=g;return _(),d("div",x,[k(o,{size:"38px",color:"#1989fa",vertical:""},{default:y(()=>[S(" 登录中")]),_:1})])}}};export{Y as default}; import{u as f,e as m,o as _,c as d,a as k,f as y,L as g,h as S,S as w,i as s,G as r,j as c,k as i,l as v}from"./index-f724de11.js";const x={style:{display:"flex","justify-content":"center","margin-top":"50%"}},Y={__name:"SSO",setup(N){const e=f(),u=async n=>{const t=await w(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("admin-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);const o=await r();s.set("user-info",o.response.role),localStorage.setItem("user-info",o.response.role),s.set("userInfo",JSON.stringify(o.response)),c({date:i().format("YYYY-MM-DD")}).then(a=>{s.set("userDutyDate",JSON.stringify(a.response)),e.replace({name:"welcome"})})}},l=async n=>{const t=await v(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("admin-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);const o=await r();s.set("user-info",o.response.role),localStorage.setItem("user-info",o.response.role),s.set("userInfo",JSON.stringify(o.response)),c({date:i().format("YYYY-MM-DD")}).then(a=>{s.set("userDutyDate",JSON.stringify(a.response)),e.replace({name:"welcome"})})}},p=async()=>{if(Number(e.currentRoute.value.query.type)===2){let n={token:e.currentRoute.value.query.token};await u(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await l(n)}};return m(()=>{p()}),(n,t)=>{const o=g;return _(),d("div",x,[k(o,{size:"38px",color:"#1989fa",vertical:""},{default:y(()=>[S(" 登录中")]),_:1})])}}};export{Y as default};
import{u as y,e as d,o as m,c as _,a as g,f as S,i as e,G as u,L as h,h as v,S as q,j as c,k as i,l as w}from"./index-1d1790c1.js";const N={style:{display:"flex","justify-content":"center","margin-top":"50%"}},D={__name:"SSOInfo",setup(R){const t=y(),l=async s=>{const n=await q(s);if(n.code!==1)await t.replace({name:"403"});else if(n.response.access_token.token_content!==""){e.set("admin-token",n.response.access_token.token_content),e.set("time",n.response.access_token.expires);let o=t.currentRoute.value.query.links,r=t.currentRoute.value.query.id;const a=await u();e.set("user-info",a.response.role),localStorage.setItem("user-info",a.response.role),e.set("userInfo",JSON.stringify(a.response)),c({date:i().format("YYYY-MM-DD")}).then(k=>{e.set("userDutyDate",JSON.stringify(k.response)),t.push({path:`/${o}`,query:{id:r}})})}},p=async s=>{const n=await w(s);if(n.code!==1)await t.replace({name:"403"});else if(n.response.access_token.token_content!==""){e.set("admin-token",n.response.access_token.token_content),e.set("time",n.response.access_token.expires);let o=t.currentRoute.value.query.links;const r=await u();e.set("user-info",r.response.role),localStorage.setItem("user-info",r.response.role),e.set("userInfo",JSON.stringify(r.response)),c({date:i().format("YYYY-MM-DD")}).then(a=>{e.set("userDutyDate",JSON.stringify(a.response)),t.push({path:`/${o}`})})}},f=async()=>{if(Number(t.currentRoute.value.query.type)===2){e.set("token",t.currentRoute.value.query.token);let s={token:e.get("token")};await l(s)}else if(Number(t.currentRoute.value.query.type)===1){let s={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await p(s)}u(e.get("admin-token")).then(s=>{e.set("userInfo",JSON.stringify(s.response))})};return d(()=>{f()}),(s,n)=>{const o=h;return m(),_("div",N,[g(o,{size:"38px",color:"#1989fa",vertical:""},{default:S(()=>[v(" 登录中")]),_:1})])}}};export{D as default}; import{u as y,e as d,o as m,c as _,a as g,f as S,i as e,G as u,L as h,h as v,S as q,j as c,k as i,l as w}from"./index-f724de11.js";const N={style:{display:"flex","justify-content":"center","margin-top":"50%"}},D={__name:"SSOInfo",setup(R){const t=y(),l=async s=>{const n=await q(s);if(n.code!==1)await t.replace({name:"403"});else if(n.response.access_token.token_content!==""){e.set("admin-token",n.response.access_token.token_content),e.set("time",n.response.access_token.expires);let o=t.currentRoute.value.query.links,r=t.currentRoute.value.query.id;const a=await u();e.set("user-info",a.response.role),localStorage.setItem("user-info",a.response.role),e.set("userInfo",JSON.stringify(a.response)),c({date:i().format("YYYY-MM-DD")}).then(k=>{e.set("userDutyDate",JSON.stringify(k.response)),t.push({path:`/${o}`,query:{id:r}})})}},p=async s=>{const n=await w(s);if(n.code!==1)await t.replace({name:"403"});else if(n.response.access_token.token_content!==""){e.set("admin-token",n.response.access_token.token_content),e.set("time",n.response.access_token.expires);let o=t.currentRoute.value.query.links;const r=await u();e.set("user-info",r.response.role),localStorage.setItem("user-info",r.response.role),e.set("userInfo",JSON.stringify(r.response)),c({date:i().format("YYYY-MM-DD")}).then(a=>{e.set("userDutyDate",JSON.stringify(a.response)),t.push({path:`/${o}`})})}},f=async()=>{if(Number(t.currentRoute.value.query.type)===2){e.set("token",t.currentRoute.value.query.token);let s={token:e.get("token")};await l(s)}else if(Number(t.currentRoute.value.query.type)===1){let s={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await p(s)}u(e.get("admin-token")).then(s=>{e.set("userInfo",JSON.stringify(s.response))})};return d(()=>{f()}),(s,n)=>{const o=h;return m(),_("div",N,[g(o,{size:"38px",color:"#1989fa",vertical:""},{default:S(()=>[v(" 登录中")]),_:1})])}}};export{D as default};
import{u as n,o as c,c as m,a as e,F as s}from"./index-1d1790c1.js";import{E as p}from"./index-09dd044a.js";import{N as _}from"./index-511e0299.js";import"./use-id-41cc1007.js";import"./use-placeholder-f1dc03c8.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-f724de11.js";import{E as p}from"./index-d4dfd09a.js";import{N as _}from"./index-f25c9e45.js";import"./use-id-13932a5d.js";import"./use-placeholder-4a89225e.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{d as t}from"./index-9fd02c25.js";import{w as n}from"./index-f724de11.js";const i=n(t);export{i as P};
import{aJ as L,b as B,O,d as k,a as l,m as I,a8 as h,R as w,aB as S,au as P,Y as x,w as y,bp as A,Z as R,F as V,V as z,av as E}from"./index-1d1790c1.js";const F={to:[String,Object],url:String,replace:Boolean};function G({to:e,url:n,replace:r,$router:a}){e&&a?a[r?"replace":"push"](e):n&&(r?location.replace(n):location.href=n)}function q(){const e=L().proxy;return()=>G(e)}const[N,s]=B("cell"),j={tag:I("div"),icon:String,size:String,title:h,value:h,label:h,center:Boolean,isLink:Boolean,border:w,required:Boolean,iconPrefix:String,valueClass:S,labelClass:S,titleClass:S,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}},H=O({},j,F);var J=k({name:N,props:H,setup(e,{slots:n}){const r=q(),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,_={center:f,required:m,clickable:C,borderless:!v};return d&&(_[d]=!!d),l(i,{class:s(_),role:C?"button":void 0,tabindex:C?0:void 0,onClick:r},{default:()=>{var T;return[o(),u(),c(),g(),(T=n.extra)==null?void 0:T.call(n)]}})}}});const X=y(J),[K,$]=B("tag"),M={size:String,mark:Boolean,show:w,type:I("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var Y=k({name:K,props:M,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"),R],onClick:a},null);return l("span",{style:u(),class:$([b,g])},[(o=n.default)==null?void 0:o.call(n),m])};return()=>l(A,{name:e.closeable?"van-fade":void 0},{default:()=>[e.show?c():null]})}});const p=y(Y),[Z,D]=B("cell-group"),Q={title:String,inset:Boolean,border:w};var U=k({name:Z,inheritAttrs:!1,props:Q,setup(e,{slots:n,attrs:r}){const a=()=>{var c;return l("div",z({class:[D({inset:e.inset}),{[E]:e.border&&!e.inset}]},r),[(c=n.default)==null?void 0:c.call(n)])},u=()=>l("div",{class:D("title",{inset:e.inset})},[n.title?n.title():e.title]);return()=>e.title||n.title?l(V,null,[u(),a()]):a()}});const ee=y(U);export{X as C,p as T,ee as a,F as b,j as c,G as r,q as u}; import{aJ as L,b as B,O,d as k,a as l,m as I,a8 as h,R as w,aB as S,au as P,Y as x,w as y,bp as A,Z as R,F as V,V as z,av as E}from"./index-f724de11.js";const F={to:[String,Object],url:String,replace:Boolean};function G({to:e,url:n,replace:r,$router:a}){e&&a?a[r?"replace":"push"](e):n&&(r?location.replace(n):location.href=n)}function q(){const e=L().proxy;return()=>G(e)}const[N,s]=B("cell"),j={tag:I("div"),icon:String,size:String,title:h,value:h,label:h,center:Boolean,isLink:Boolean,border:w,required:Boolean,iconPrefix:String,valueClass:S,labelClass:S,titleClass:S,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}},H=O({},j,F);var J=k({name:N,props:H,setup(e,{slots:n}){const r=q(),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,_={center:f,required:m,clickable:C,borderless:!v};return d&&(_[d]=!!d),l(i,{class:s(_),role:C?"button":void 0,tabindex:C?0:void 0,onClick:r},{default:()=>{var T;return[o(),u(),c(),g(),(T=n.extra)==null?void 0:T.call(n)]}})}}});const X=y(J),[K,$]=B("tag"),M={size:String,mark:Boolean,show:w,type:I("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var Y=k({name:K,props:M,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"),R],onClick:a},null);return l("span",{style:u(),class:$([b,g])},[(o=n.default)==null?void 0:o.call(n),m])};return()=>l(A,{name:e.closeable?"van-fade":void 0},{default:()=>[e.show?c():null]})}});const p=y(Y),[Z,D]=B("cell-group"),Q={title:String,inset:Boolean,border:w};var U=k({name:Z,inheritAttrs:!1,props:Q,setup(e,{slots:n,attrs:r}){const a=()=>{var c;return l("div",z({class:[D({inset:e.inset}),{[E]:e.border&&!e.inset}]},r),[(c=n.default)==null?void 0:c.call(n)])},u=()=>l("div",{class:D("title",{inset:e.inset})},[n.title?n.title():e.title]);return()=>e.title||n.title?l(V,null,[u(),a()]):a()}});const ee=y(U);export{X as C,p as T,ee as a,F as b,j as c,G as r,q as u};
import{u as y,r as f,e as x,o as C,c as g,a,q as l,f as t,F as v,bn as h,s as n,N as r,h as w}from"./index-1d1790c1.js";import{a as N,T as b,C as k}from"./index-590e992f.js";import{N as B}from"./index-511e0299.js";import"./use-placeholder-f1dc03c8.js";const L={class:"container"},G={__name:"index",setup(T){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",L,[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{G as default}; import{u as y,r as f,e as x,o as C,c as g,a,q as l,f as t,F as v,bn as h,s as n,N as r,h as w}from"./index-f724de11.js";import{a as N,T as b,C as k}from"./index-5013e55f.js";import{N as B}from"./index-f25c9e45.js";import"./use-placeholder-4a89225e.js";const L={class:"container"},G={__name:"index",setup(T){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",L,[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{G as default};
import{d as t}from"./index-f16374b3.js";import{w as n}from"./index-1d1790c1.js";const i=n(t);export{i as P};
import{c as t}from"./index-9fd02c25.js";import{w as a}from"./index-f724de11.js";a(t);
.my-swipe .van-swipe-item[data-v-db7f18cd]{width:100px;color:#fff;font-size:20px;line-height:150px;text-align:center;background-color:#39ed81}.container .dateContainer[data-v-db7f18cd]{width:100%;height:auto;background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;margin-top:10px}.container .dateContainer .left[data-v-db7f18cd],.container .dateContainer .right[data-v-db7f18cd]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:10%;height:50px;font-size:25px}.container .dateContainer .left[data-v-db7f18cd]:hover,.container .dateContainer .right[data-v-db7f18cd]:hover{color:#1989fa}.container .dateContainer .content[data-v-db7f18cd]{width:11.42%;height:50px}.container .dateContainer .content[data-v-db7f18cd]:hover{background-color:#1989fa;border-radius:10%;color:#fff}.container .cardContainer[data-v-db7f18cd]{margin-top:10px;width:95%;background-color:#fff;height:20%;margin-bottom:10px}.aaa[data-v-db7f18cd] .van-dropdown-menu__bar{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;height:var(--van-dropdown-menu-height);background:var(--van-dropdown-menu-background);-webkit-box-shadow:unset;box-shadow:unset} .my-swipe .van-swipe-item[data-v-8797d514]{width:100px;color:#fff;font-size:20px;line-height:150px;text-align:center;background-color:#39ed81}.container .dateContainer[data-v-8797d514]{width:100%;height:auto;background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;margin-top:10px}.container .dateContainer .left[data-v-8797d514],.container .dateContainer .right[data-v-8797d514]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:10%;height:50px;font-size:25px}.container .dateContainer .left[data-v-8797d514]:hover,.container .dateContainer .right[data-v-8797d514]:hover{color:#1989fa}.container .dateContainer .content[data-v-8797d514]{width:11.42%;height:50px}.container .dateContainer .content[data-v-8797d514]:hover{background-color:#1989fa;border-radius:10%;color:#fff}.container .cardContainer[data-v-8797d514]{margin-top:10px;width:95%;background-color:#fff;height:20%;margin-bottom:10px}.aaa[data-v-8797d514] .van-dropdown-menu__bar{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;height:var(--van-dropdown-menu-height);background:var(--van-dropdown-menu-background);-webkit-box-shadow:unset;box-shadow:unset}
import{u as b}from"./use-placeholder-f1dc03c8.js";import{b as R,d as I,n as w,a8 as A,R as s,ad as C,a as n,Z as o,bo as P,Y as L,w as N}from"./index-1d1790c1.js";const[S,t]=R("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=I({name:S,props:y,emits:["clickLeft","clickRight"],setup(e,{emit:l,slots:a}){const c=w(),f=b(c,t),d=r=>l("clickLeft",r),h=r=>l("clickRight",r),x=()=>a.left?a.left():[e.leftArrow&&n(L,{class:t("arrow"),name:"arrow-left"},null),e.leftText&&n("span",{class:t("text")},[e.leftText])],g=()=>a.right?a.right():n("span",{class:t("text")},[e.rightText]),i=()=>{const{title:r,fixed:u,border:v,zIndex:T}=e,k=C(T),B=e.leftArrow||e.leftText||a.left,m=e.rightText||a.right;return n("div",{ref:c,style:k,class:[t({fixed:u}),{[P]:v,"van-safe-area-top":e.safeAreaInsetTop}]},[n("div",{class:t("content")},[B&&n("div",{class:[t("left"),e.clickable?o:""],onClick:d},[x()]),n("div",{class:[t("title"),"van-ellipsis"]},[a.title?a.title():r]),m&&n("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-4a89225e.js";import{b as R,d as I,n as w,a8 as A,R as s,ad as C,a as n,Z as o,bo as P,Y as L,w as N}from"./index-f724de11.js";const[S,t]=R("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=I({name:S,props:y,emits:["clickLeft","clickRight"],setup(e,{emit:l,slots:a}){const c=w(),f=b(c,t),d=r=>l("clickLeft",r),h=r=>l("clickRight",r),x=()=>a.left?a.left():[e.leftArrow&&n(L,{class:t("arrow"),name:"arrow-left"},null),e.leftText&&n("span",{class:t("text")},[e.leftText])],g=()=>a.right?a.right():n("span",{class:t("text")},[e.rightText]),i=()=>{const{title:r,fixed:u,border:v,zIndex:T}=e,k=C(T),B=e.leftArrow||e.leftText||a.left,m=e.rightText||a.right;return n("div",{ref:c,style:k,class:[t({fixed:u}),{[P]:v,"van-safe-area-top":e.safeAreaInsetTop}]},[n("div",{class:t("content")},[B&&n("div",{class:[t("left"),e.clickable?o:""],onClick:d},[x()]),n("div",{class:[t("title"),"van-ellipsis"]},[a.title?a.title():r]),m&&n("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 n,o as c,c as m,a as e,F as s}from"./index-1d1790c1.js";import{E as p}from"./index-09dd044a.js";import{N as _}from"./index-511e0299.js";import"./use-id-41cc1007.js";import"./use-placeholder-f1dc03c8.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-f724de11.js";import{E as p}from"./index-d4dfd09a.js";import{N as _}from"./index-f25c9e45.js";import"./use-id-13932a5d.js";import"./use-placeholder-4a89225e.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{c as t}from"./index-f16374b3.js";import{w as a}from"./index-1d1790c1.js";a(t);
import{b as o0,a9 as Oi,a8 as s0,d as a0,n as al,aa as c0,r as h0,aj as g0,p as _0,ae as p0,a as oe,L as v0,$ as d0,a2 as w0,aq as x0,w as A0,aP as se}from"./index-1d1790c1.js";const[T0,ae,S0]=o0("pull-refresh"),cl=50,m0=["pulling","loosing","success"],R0={disabled:Boolean,modelValue:Boolean,headHeight:Oi(cl),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:s0,successDuration:Oi(500),animationDuration:Oi(300)};var I0=a0({name:T0,props:R0,emits:["change","refresh","update:modelValue"],setup(z,{emit:st,slots:o}){let at;const Tt=al(),ce=al(),rn=c0(Tt),K=h0({status:"normal",distance:0,duration:0}),Fn=g0(),lr=()=>{if(z.headHeight!==cl)return{height:`${z.headHeight}px`}},Vn=()=>K.status!=="loading"&&K.status!=="success"&&!z.disabled,Pn=I=>{const F=+(z.pullDistance||z.headHeight);return I>F&&(I<F*2?I=F+(I-F)/2:I=F*1.5+(I-F*2)/4),Math.round(I)},Mn=(I,F)=>{const vn=+(z.pullDistance||z.headHeight);K.distance=I,F?K.status="loading":I===0?K.status="normal":I<vn?K.status="pulling":K.status="loosing",st("change",{status:K.status,distance:I})},Un=()=>{const{status:I}=K;return I==="normal"?"":z[`${I}Text`]||S0(I)},kn=()=>{const{status:I,distance:F}=K;if(o[I])return o[I]({distance:F});const vn=[];return m0.includes(I)&&vn.push(oe("div",{class:ae("text")},[Un()])),I==="loading"&&vn.push(oe(v0,{class:ae("loading")},{default:Un})),vn},St=()=>{K.status="success",setTimeout(()=>{Mn(0)},+z.successDuration)},j=I=>{at=w0(rn.value)===0,at&&(K.duration=0,Fn.start(I))},Nn=I=>{Vn()&&j(I)},he=I=>{if(Vn()){at||j(I);const{deltaY:F}=Fn;Fn.move(I),at&&F.value>=0&&Fn.isVertical()&&(x0(I),Mn(Pn(F.value)))}},sn=()=>{at&&Fn.deltaY.value&&Vn()&&(K.duration=+z.animationDuration,K.status==="loosing"?(Mn(+z.headHeight,!0),st("update:modelValue",!0),d0(()=>st("refresh"))):Mn(0))};return _0(()=>z.modelValue,I=>{K.duration=+z.animationDuration,I?Mn(+z.headHeight,!0):o.success||z.successText?St():Mn(0,!1)}),p0("touchmove",he,{target:ce}),()=>{var I;const F={transitionDuration:`${K.duration}ms`,transform:K.distance?`translate3d(0,${K.distance}px, 0)`:""};return oe("div",{ref:Tt,class:ae()},[oe("div",{ref:ce,class:ae("track"),style:F,onTouchstartPassive:Nn,onTouchend:sn,onTouchcancel:sn},[oe("div",{class:ae("head"),style:lr()},[kn()]),(I=o.default)==null?void 0:I.call(o)])])}}});const L0=A0(I0);var fr={exports:{}};/** import{b as o0,a9 as Oi,a8 as s0,d as a0,n as al,aa as c0,r as h0,aj as g0,p as _0,ae as p0,a as oe,L as v0,$ as d0,a2 as w0,aq as x0,w as A0,aP as se}from"./index-f724de11.js";const[T0,ae,S0]=o0("pull-refresh"),cl=50,m0=["pulling","loosing","success"],R0={disabled:Boolean,modelValue:Boolean,headHeight:Oi(cl),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:s0,successDuration:Oi(500),animationDuration:Oi(300)};var I0=a0({name:T0,props:R0,emits:["change","refresh","update:modelValue"],setup(z,{emit:st,slots:o}){let at;const Tt=al(),ce=al(),rn=c0(Tt),K=h0({status:"normal",distance:0,duration:0}),Fn=g0(),lr=()=>{if(z.headHeight!==cl)return{height:`${z.headHeight}px`}},Vn=()=>K.status!=="loading"&&K.status!=="success"&&!z.disabled,Pn=I=>{const F=+(z.pullDistance||z.headHeight);return I>F&&(I<F*2?I=F+(I-F)/2:I=F*1.5+(I-F*2)/4),Math.round(I)},Mn=(I,F)=>{const vn=+(z.pullDistance||z.headHeight);K.distance=I,F?K.status="loading":I===0?K.status="normal":I<vn?K.status="pulling":K.status="loosing",st("change",{status:K.status,distance:I})},Un=()=>{const{status:I}=K;return I==="normal"?"":z[`${I}Text`]||S0(I)},kn=()=>{const{status:I,distance:F}=K;if(o[I])return o[I]({distance:F});const vn=[];return m0.includes(I)&&vn.push(oe("div",{class:ae("text")},[Un()])),I==="loading"&&vn.push(oe(v0,{class:ae("loading")},{default:Un})),vn},St=()=>{K.status="success",setTimeout(()=>{Mn(0)},+z.successDuration)},j=I=>{at=w0(rn.value)===0,at&&(K.duration=0,Fn.start(I))},Nn=I=>{Vn()&&j(I)},he=I=>{if(Vn()){at||j(I);const{deltaY:F}=Fn;Fn.move(I),at&&F.value>=0&&Fn.isVertical()&&(x0(I),Mn(Pn(F.value)))}},sn=()=>{at&&Fn.deltaY.value&&Vn()&&(K.duration=+z.animationDuration,K.status==="loosing"?(Mn(+z.headHeight,!0),st("update:modelValue",!0),d0(()=>st("refresh"))):Mn(0))};return _0(()=>z.modelValue,I=>{K.duration=+z.animationDuration,I?Mn(+z.headHeight,!0):o.success||z.successText?St():Mn(0,!1)}),p0("touchmove",he,{target:ce}),()=>{var I;const F={transitionDuration:`${K.duration}ms`,transform:K.distance?`translate3d(0,${K.distance}px, 0)`:""};return oe("div",{ref:Tt,class:ae()},[oe("div",{ref:ce,class:ae("track"),style:F,onTouchstartPassive:Nn,onTouchend:sn,onTouchcancel:sn},[oe("div",{class:ae("head"),style:lr()},[kn()]),(I=o.default)==null?void 0:I.call(o)])])}}});const L0=A0(I0);var fr={exports:{}};/**
* @license * @license
* Lodash <https://lodash.com/> * Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
......
import{aJ as e}from"./index-1d1790c1.js";let r=0;function u(){const n=e(),{name:t="unknown"}=(n==null?void 0:n.type)||{};return`${t}-${++r}`}export{u}; import{aJ as e}from"./index-f724de11.js";let r=0;function u(){const n=e(),{name:t="unknown"}=(n==null?void 0:n.type)||{};return`${t}-${++r}`}export{u};
import{n as h,e as n,$ as i,ao as u,p as r,ah as c,ai as l,ag as d,a as g}from"./index-1d1790c1.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)),r([c,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{n as h,e as n,$ as i,ao as u,p as r,ah as c,ai as l,ag as d,a as g}from"./index-f724de11.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)),r([c,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 @@ ...@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg"/> <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"/> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>值班管理</title> <title>值班管理</title>
<script type="module" crossorigin src="./assets/index-1d1790c1.js"></script> <script type="module" crossorigin src="./assets/index-f724de11.js"></script>
<link rel="stylesheet" href="./assets/index-b8c6013c.css"> <link rel="stylesheet" href="./assets/index-b8c6013c.css">
</head> </head>
<body> <body>
......
...@@ -107,8 +107,8 @@ ...@@ -107,8 +107,8 @@
<!-- <div style="width: 100%;height: 50px;"></div>--> <!-- <div style="width: 100%;height: 50px;"></div>-->
</van-list> </van-list>
<div style="position: absolute ;bottom: 20px;width: 100%;color: #D0CECF"> <div style="position: absolute ;bottom: 10px;width: 100%;color: #D0CECF">
<div style="display: flex;width:100%;height: 50px; justify-content: center;align-items: center;"> <div style="display: flex;width:100%;height: 30px; justify-content: center;align-items: center;">
<span <span
style="text-align: center; style="text-align: center;
color: #b1b1b1; color: #b1b1b1;
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或