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

20241213 优化交互保存

上级 92e2c973
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-0e18dbfd.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-0e18dbfd.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};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{c as t}from"./index-299797d9.js";import{w as n}from"./index-0e18dbfd.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-0e18dbfd.js";import{E as p}from"./index-9cfc23a6.js";import{N as _}from"./index-bdde94b5.js";import"./use-id-cea0d38f.js";import"./use-placeholder-c7cba718.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};
:root{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-2);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{-webkit-box-flex:1;-ms-flex:1 auto;flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{-ms-flex-negative:0;flex-shrink:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{-ms-flex-negative:0;flex-shrink:0;font-weight:var(--van-font-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;-ms-flex-negative:0;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-border-color);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;z-index:1;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}.van-checkbox-group--horizontal{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}:root{--van-checkbox-size: 20px;--van-checkbox-border-color: var(--van-gray-5);--van-checkbox-duration: var(--van-duration-fast);--van-checkbox-label-margin: var(--van-padding-xs);--van-checkbox-label-color: var(--van-text-color);--van-checkbox-checked-icon-color: var(--van-primary-color);--van-checkbox-disabled-icon-color: var(--van-gray-5);--van-checkbox-disabled-label-color: var(--van-text-color-3);--van-checkbox-disabled-background: var(--van-border-color)}.van-checkbox{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.van-checkbox--disabled{cursor:not-allowed}.van-checkbox--label-disabled{cursor:default}.van-checkbox--horizontal{margin-right:var(--van-padding-sm)}.van-checkbox__icon{-webkit-box-flex:0;-ms-flex:none;flex:none;height:1em;font-size:var(--van-checkbox-size);line-height:1em;cursor:pointer}.van-checkbox__icon .van-icon{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid var(--van-checkbox-border-color);-webkit-transition-duration:var(--van-checkbox-duration);transition-duration:var(--van-checkbox-duration);-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.van-checkbox__icon--round .van-icon{border-radius:100%}.van-checkbox__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-checkbox-checked-icon-color);border-color:var(--van-checkbox-checked-icon-color)}.van-checkbox__icon--disabled{cursor:not-allowed}.van-checkbox__icon--disabled .van-icon{background-color:var(--van-checkbox-disabled-background);border-color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon{color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__label{margin-left:var(--van-checkbox-label-margin);color:var(--van-checkbox-label-color);line-height:var(--van-checkbox-size)}.van-checkbox__label--left{margin:0 var(--van-checkbox-label-margin) 0 0}.van-checkbox__label--disabled{color:var(--van-checkbox-disabled-label-color)}:root{--van-text-ellipsis-line-height: 1.6;--van-text-ellipsis-action-color: var(--van-blue)}.van-text-ellipsis{line-height:var(--van-text-ellipsis-line-height);white-space:pre-wrap;word-break:break-word}.van-text-ellipsis__action{cursor:pointer;color:var(--van-text-ellipsis-action-color)}.van-text-ellipsis__action:active{opacity:var(--van-active-opacity)}:root{--van-floating-bubble-size: 48px;--van-floating-bubble-initial-gap: 24px;--van-floating-bubble-icon-size: 28px;--van-floating-bubble-background: var(--van-primary-color);--van-floating-bubble-color: var(--van-background-2);--van-floating-bubble-z-index: 999;--van-floating-bubble-border-radius: var(--van-radius-max)}.van-floating-bubble{position:fixed;left:0;top:0;right:var(--van-floating-bubble-initial-gap);bottom:var(--van-floating-bubble-initial-gap);width:var(--van-floating-bubble-size);height:var(--van-floating-bubble-size);-webkit-box-sizing:border-box;box-sizing:border-box;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;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:none;touch-action:none;background:var(--van-floating-bubble-background);color:var(--van-floating-bubble-color);border-radius:var(--van-floating-bubble-border-radius);z-index:var(--van-floating-bubble-z-index);-webkit-transition:-webkit-transform var(--van-duration-base);transition:-webkit-transform var(--van-duration-base);transition:transform var(--van-duration-base);transition:transform var(--van-duration-base),-webkit-transform var(--van-duration-base)}.van-floating-bubble:active{opacity:.8}.van-floating-bubble__icon{font-size:var(--van-floating-bubble-icon-size)}.a[data-v-ff385052]{margin-bottom:50px}.van-floating-bubble[data-v-ff385052]{position:fixed;left:-81px;top:10px;right:var(--van-floating-bubble-initial-gap);bottom:-81px;width:var(--van-floating-bubble-size);height:var(--van-floating-bubble-size);-webkit-box-sizing:border-box;box-sizing:border-box;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;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:none;touch-action:none;background:var(--van-floating-bubble-background);color:var(--van-floating-bubble-color);border-radius:var(--van-floating-bubble-border-radius);z-index:var(--van-floating-bubble-z-index);-webkit-transition:-webkit-transform var(--van-duration-base);transition:-webkit-transform var(--van-duration-base);transition:transform var(--van-duration-base);transition:transform var(--van-duration-base),-webkit-transform var(--van-duration-base)}.container .cardContainer[data-v-ff385052]{margin-top:10px;width:95%;background-color:#fff;height:20%}.container .cardContainer[data-v-ff385052]:nth-last-child(1){background-color:red}.aaa[data-v-ff385052] .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 n,o as c,c as m,a as e,F as s}from"./index-0e18dbfd.js";import{E as p}from"./index-9cfc23a6.js";import{N as _}from"./index-bdde94b5.js";import"./use-id-cea0d38f.js";import"./use-placeholder-c7cba718.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{_ as pe,r as H,k as d,n as o,a7 as ce,e as me,aZ as _e,i as fe,aa as he,o as _,c as O,p,a as t,f as s,q as u,F as G,P as ve,h as g,s as J,t as ye,v as ge,aS as we,a_ as xe,aT as De,aU as Ce,a$ as ke,z as Ye,A as q,B as Se,W as be,C as Me,y as Ve,H as V,E as w,J as Te}from"./index-0e18dbfd.js";import{S as Le,C as Ue,s as Pe,B as Ie,L as ze,F as Be}from"./index-299797d9.js";import{T as Ne,C as Oe,a as Ge}from"./index-b73fe561.js";import{D as Re,P as Fe,a as We}from"./lodash-3c167afb.js";import{N as Ae}from"./index-bdde94b5.js";import{P as Ke}from"./index-16eb4d55.js";import"./use-placeholder-c7cba718.js";import"./use-id-cea0d38f.js";const $e=x=>(ye("data-v-b6bbdaf6"),x=x(),ge(),x),je={style:{width:"100vw",height:"100vh"}},Ee={style:{width:"100%",height:"calc(100% - 158px)",overflow:"auto",background:"#F5F5F7",padding:"0 0 10px 0"}},He=$e(()=>p("div",{class:"w-full h-[60px] bg-gray-100"},null,-1)),Je={style:{position:"fixed","z-index":"2",width:"100%"}},qe={style:{float:"right"}},Ze={__name:"index",setup(x){const Z=()=>history.back();let i=H({minDate:new Date(d().year(),d().month()-1,1),maxDate:new Date(d().year(),d().month()+1,15),addDutySelectList:[],DatePickerKey:1,showCenter:!1,message:"",show:!1,startTime:d().startOf("day").format("YYYY-MM-DD"),endTime:d().startOf("day").format("YYYY-MM-DD"),page_index:1,page_size:5,total:"",deleteSetTimeOut:"",menuKey:1,loading:!1,watchtypeid:"",dept_id:"",watch_hour_id:"",campusid:""});o([]),o(!1),o(!1),o("");const T=o({}),R=o({}),v=o(!1),F=o(""),W=o([]),L=o(!1),Q=async n=>{l.params.start_time=d(n[0]).format("YYYY-MM-DD"),l.params.end_time=d(n[1]).format("YYYY-MM-DD"),await S(),i.menuKey++,X()},X=()=>{i.show=!1},ee=()=>{i.show=!0},ae=()=>{Promise.all([D("dutyType","类型","type_id",we),D("dutyHourTime","时段","watchhour_time",xe),D("campusname","校区","campus_id",De),D("dept_name","部门","dep_id",Ce)]).then(n=>{i.addDutySelectList=n,i.DatePickerKey++})},D=(n,a,c,r)=>new Promise(async(b,I)=>{const z=await r(),m=[];z.response.map((M,j)=>{m.push({text:M.name,value:M.id})}),b([m,a,c])});function A(n){v.value=!0,R.value=n}function te(n){L.value=!0,(C.value&&K.value?ke:Ye)(n).then(c=>{c.code==1?W.value=c.response.map(r=>({...r,text:r.name,value:r.id})):q(c.msg_detail)}).finally(()=>{L.value=!1})}function ne(n){if(n.selectedOptions[0]==null){Se("请选择换班人员");return}Pe({title:"提示",message:"是否确认换班?"}).then(()=>{let a=R.value.watchid,c=n.selectedOptions[0].id;be(a,c).then(r=>{r.code==1?(Me(r.response),v.value=!1,S()):q(r.msg_detail)})}).catch(()=>{})}function se(){v.value=!1}const K=ce(()=>window.localStorage.getItem("user-info").includes("系部干事")),C=o();me(()=>{_e().then(n=>{C.value=!!Number(n.response),console.log("🚀configSwitchValue.value🚀🚀,",C.value)}),ae(),T.value=JSON.parse(fe.get("userInfo")),console.log("获取当前用户信息-我的值班",T.value)});const l=H({params:{dep_id:"",key_name:"",start_time:d().format("YYYY-MM-DD"),end_time:d().format("YYYY-MM-DD"),type_id:"",watchhour_time:"",is_lead:3,campus_id:"",page_index:1,page_size:10}}),k=o([]),y=o(!1),Y=o(!1),f=o(!1),U=()=>{Ve(l.params).then(n=>{f.value&&(k.value=[],f.value=!1),n.response.data.length===0&&(Y.value=!0,f.value=!1),n.response.data.forEach(a=>{k.value.push({...a})}),y.value=!1,l.params.page_index++,f.value=!1})},oe=()=>{Y.value=!1,y.value=!0,l.params.page_index=1,U()};let $=o({});function S(){l.params.page_index=1,k.value=[],Y.value=!1,y.value=!0,clearTimeout($.value),$.value=setTimeout(()=>U(),500)}const P=o("");function le(){l.params={dep_id:"",key_name:"",start_time:d().format("YYYY-MM-DD"),end_time:d().format("YYYY-MM-DD"),type_id:"",watchhour_time:"",is_lead:3,campus_id:"",page_index:1,page_size:10},P.value&&P.value.reset(),S()}return he([()=>l.params.key_name,()=>l.params.type_id,()=>l.params.watchhour_time,()=>l.params.campus_id,()=>l.params.dep_id],(n,a)=>{(n[0]||n[1]||n[2]||n[3]||n[4])&&S()},{deep:!0}),(n,a)=>{const c=Ae,r=Ie,b=Le,I=We,z=Re,m=Ne,h=Oe,M=Ge,j=ze,ie=Fe,re=Be,E=ve,de=Ue,ue=Ke;return _(),O(G,null,[p("div",je,[t(c,{title:"我的值班","left-text":"返回","left-arrow":"",onClickLeft:Z}),t(b,{modelValue:l.params.key_name,"onUpdate:modelValue":a[0]||(a[0]=e=>l.params.key_name=e),"show-action":"",placeholder:"请输入搜索关键词"},{action:s(()=>[t(r,{onClick:le},{default:s(()=>[g(" 重置 ")]),_:1})]),_:1},8,["modelValue"]),t(z,{overlay:!0,class:"aaa"},{default:s(()=>[t(I,{onOpen:ee,title:"日期"}),(_(!0),O(G,null,J(u(i).addDutySelectList,(e,B)=>(_(),V(I,{modelValue:l.params[e[2]],"onUpdate:modelValue":N=>l.params[e[2]]=N,key:B,title:e[1],options:e[0]},null,8,["modelValue","onUpdate:modelValue","title","options"]))),128))]),_:1}),p("div",Ee,[t(ie,{modelValue:f.value,"onUpdate:modelValue":a[2]||(a[2]=e=>f.value=e),onRefresh:oe},{default:s(()=>[t(j,{loading:y.value,"onUpdate:loading":a[1]||(a[1]=e=>y.value=e),finished:Y.value,"finished-text":"没有更多了",onLoad:U},{default:s(()=>[(_(!0),O(G,null,J(k.value,(e,B)=>(_(),V(M,{style:{margin:"10px"},inset:"",class:"cardContainer",key:B},{default:s(()=>[t(h,{class:"cardContent",title:e.username},{extra:s(()=>[t(m,{type:"primary",plain:""},{default:s(()=>[p("span",null,w(e.card_name),1)]),_:2},1024),t(m,{color:["","#7232dd"][e.is_lead],type:"primary",plain:"",style:{"margin-left":"10px"}},{default:s(()=>[p("span",null,w(["值班教师","值班领导"][e.is_lead]),1)]),_:2},1032,["color"])]),_:2},1032,["title"]),t(h,{class:"cardContent",title:"日期"},{extra:s(()=>[t(m,{type:"primary",plain:""},{default:s(()=>[p("span",null,w(e.watch_date),1)]),_:2},1024),t(m,{type:"primary",plain:"",style:{"margin-left":"10px"}},{default:s(()=>[p("span",null,w(e.watch_hour_time),1)]),_:2},1024)]),_:2},1024),t(h,{class:"cardContent",title:"类型"},{extra:s(()=>[t(m,{type:"primary",plain:""},{default:s(()=>[p("span",null,w(e.watchtypename+"-"+e.dept_name+"-"+e.campusname),1)]),_:2},1024)]),_:2},1024),C.value&&K.value?(_(),V(h,{key:0,class:"",title:"换班"},{value:s(()=>[t(r,{plain:"",type:"warning",size:"small",onClick:N=>A(e)},{default:s(()=>[g("换班")]),_:2},1032,["onClick"])]),_:2},1024)):e.card_name==T.value.card_number?(_(),V(h,{key:1,class:"",title:"换班"},{value:s(()=>[t(r,{plain:"",type:"warning",size:"small",onClick:N=>A(e)},{default:s(()=>[g("换班")]),_:2},1032,["onClick"])]),_:2},1024)):Te("",!0)]),_:2},1024))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"]),He])]),p("div",Je,[t(E,{show:u(i).showCenter,"onUpdate:show":a[5]||(a[5]=e=>u(i).showCenter=e),round:"",style:{width:"100%",padding:"10px"}},{default:s(()=>[t(re,{modelValue:u(i).message,"onUpdate:modelValue":a[3]||(a[3]=e=>u(i).message=e),rows:"2",autosize:"",clearable:"",type:"textarea",maxlength:"100",placeholder:"请输入日志","show-word-limit":""},null,8,["modelValue"]),p("div",qe,[t(r,{icon:"close",size:"small",style:{"margin-right":"10px"},onClick:a[4]||(a[4]=e=>u(i).showCenter=!1)},{default:s(()=>[g("取消 ")]),_:1}),t(r,{type:"primary",icon:"passed",size:"small",style:{"margin-right":"10px"}},{default:s(()=>[g("提交")]),_:1})])]),_:1},8,["show"])]),t(de,{minDate:u(i).minDate,"allow-same-day":!0,ref_key:"dateRangeRef",ref:P,maxDate:u(i).maxDate,show:u(i).show,"onUpdate:show":a[6]||(a[6]=e=>u(i).show=e),type:"range",onConfirm:Q},null,8,["minDate","maxDate","show"]),t(E,{show:v.value,"onUpdate:show":a[8]||(a[8]=e=>v.value=e),round:"",position:"bottom"},{default:s(()=>[t(b,{modelValue:F.value,"onUpdate:modelValue":[a[7]||(a[7]=e=>F.value=e),te],placeholder:"请输入姓名或工号"},null,8,["modelValue"]),t(ue,{columns:W.value,loading:L.value,onCancel:se,onConfirm:ne},null,8,["columns","loading"])]),_:1},8,["show"])],64)}}},la=pe(Ze,[["__scopeId","data-v-b6bbdaf6"]]);export{la as default};
import{b as t}from"./index-299797d9.js";import{w as a}from"./index-0e18dbfd.js";a(t);
import{u as v}from"./use-id-cea0d38f.js";import{b as w,d as G,a as e,g as k,m as M,w as B}from"./index-0e18dbfd.js";const[S,s]=w("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var b=G({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=v(),l=r=>`${f}-${r}`,t=r=>`url(#${l(r)})`,i=(r,d,D)=>e("stop",{"stop-color":r,offset:`${d}%`,"stop-opacity":D},null),n=(r,d)=>[i(r,0),i(d,100)],x=r=>[e("defs",null,[e("radialGradient",{id:l(r),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:t(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:l("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:t("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:t("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:l("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#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:t("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:t("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:l(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:l(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:l(3),x1:"100%",x2:"100%",y2:"100%"},[n("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:l(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:t(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:t(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:t(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:t(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:t(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:t(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)])])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:l(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:l(7)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),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:t(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:t(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:t(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)])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(8)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),x("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:t(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:l(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:l(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:t(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:t(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:t(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:t(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:t(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var r;if(a.image)return a.image();const d={error:E,search:p,network:y,default:g};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const I=B(b);export{I as E};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{aF as L,b as k,K as A,d as w,a as l,m as D,a4 as h,N as B,ay as S,ar as P,I as x,w as y,bq as O,U as R,F as z,R as F,as as V}from"./index-0e18dbfd.js";const q={to:[String,Object],url:String,replace:Boolean};function E({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()=>E(e)}const[N,s]=k("cell"),K={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({},K,q);var H=w({name:N,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,_={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 Z=y(H),[M,$]=k("tag"),U={size:String,mark:Boolean,show:B,type:D("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var J=w({name:M,props:U,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(O,{name:e.closeable?"van-fade":void 0},{default:()=>[e.show?c():null]})}});const p=y(J),[Q,I]=k("cell-group"),W={title:String,inset:Boolean,border:B};var X=w({name:Q,inheritAttrs:!1,props:W,setup(e,{slots:n,attrs:r}){const a=()=>{var c;return l("div",F({class:[I({inset:e.inset}),{[V]: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,q as b,K as c,E as r,G as u};
import{u as b}from"./use-placeholder-c7cba718.js";import{b as I,d as R,n as w,a4 as A,N as s,a9 as C,a as n,U as o,bp as N,I as P,w as L}from"./index-0e18dbfd.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=r=>l("clickLeft",r),h=r=>l("clickRight",r),x=()=>a.left?a.left():[e.leftArrow&&n(P,{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}),{[N]: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=L(E);export{z as N};
import{_ as le,r as A,k as d,n as f,e as re,o as D,c as Y,p as i,a as r,f as u,F as L,P as ie,q as h,s as W,t as ce,v as de,i as ue,x as B,y as fe,z as pe,A as G,B as me,W as _e,C as he,I as ye,D as ge,E as y,H as N,h as De,J as ve}from"./index-0e18dbfd.js";import{L as ke,s as we,C as xe,S as Ye,B as Ce}from"./index-299797d9.js";import{C as Me,a as Te,T as Le}from"./index-b73fe561.js";import{P as Se}from"./index-16eb4d55.js";import"./index-9c6a8fd2.js";import"./use-placeholder-c7cba718.js";import"./use-id-cea0d38f.js";function be(){const m=window.localStorage.getItem("user-info");return m?m.includes("管理员"):!1}const z=m=>(ce("data-v-84e5af84"),m=m(),de(),m),Ie={class:"container1",style:{position:"relative",background:"#F5F5F7"}},Fe={class:"dateContainer"},Oe={class:"SlideButton"},Ae=["onClick"],We={style:{"font-size":"14px",display:"flex","justify-content":"center","align-items":"flex-end"}},Be={class:"SlideButton"},Ge=z(()=>i("div",{class:""},null,-1)),Ne=z(()=>i("div",{style:{position:"absolute",bottom:"20px",width:"100%",color:"#D0CECF"}},[i("div",{style:{display:"flex",width:"100%",height:"50px","justify-content":"center","align-items":"center"}},[i("span",{style:{"font-size":"12px"}},"build v241213 1.0.1")])],-1)),ze={__name:"index",setup(m){let e=A({minDate:new Date(d().year(),d().month()-1,1),maxDate:new Date(d().year(),d().month()+1,15),array:[],dateFlag:!1,addDateFlag:!0,week:["周日","周一","周二","周三","周四","周五","周六"],center:!0,right:!1,left:!1,isShow:!0,toDay:"",dateBackgroundText:[],loading:!1});const w=f(!1),v=f(!1),S=f(!1),b=f({}),k=f(!1),I=f(""),F=f([]),C=f(!1);let E=f(""),p=f(1),c=A({page_index:0,page_size:30,startTime:"",endTime:"",GetWatchListInitArray:[]});const j=t=>{const a=Number(d(t.date).format("M")),l=Number(d(t.date).format("D"));return JSON.parse(ue.get("userDutyDate")).forEach((o,g)=>{const _=Number(d(o).format("M")),T=Number(d(o).format("D"));a===_&&l===T&&(t.bottomInfo="值班")}),t};function U(){c.GetWatchListInitArray=[],c.page_index=1,w.value=!1}const V=t=>{O(d(t).format("YYYY-MM-DD"))},O=t=>{U(),c.endTime=t,c.startTime=t,M()},P=()=>{const t=d().startOf("week"),a=[];e.array=[],e.dateFlag===!1&&e.addDateFlag===!0?p.value=p.value-2:p.value--;const l=p.value;for(let s=0+7*l;s<7+7*l;s++){const o=t.add(s,"day");a.push({date:o.format("YYYY-MM-DD"),dateDay:o.format("D"),week:e.week})}e.dateFlag=!0,e.array=a,e.center=!1,e.right=!1,setTimeout(()=>{e.left=!0},10),e.left=!1},$=()=>{e.dateFlag===!0&&e.addDateFlag,p.value++,e.dateFlag===!1&&e.addDateFlag===!0&&(p.value=1);let t=p.value;const l=d().startOf("week"),s=[];for(let o=0+7*t;o<7+7*t;o++){const g=l.add(o,"day");s.push({date:g.format("YYYY-MM-DD"),dateDay:g.format("D"),week:e.week})}e.addDateFlag=!1,e.array=s,e.center=!1,e.left=!1,setTimeout(()=>{e.right=!0},10),e.right=!1},J=()=>{const a=d().startOf("week"),l=[];for(let s=0;s<7;s++){const o=a.add(s,"day");l.push(o.format("YYYY-MM-DD")),e.array.push({date:o.format("YYYY-MM-DD"),dateDay:o.format("D"),week:e.week})}console.log("🚀🚀🚀,",d().format("YYYY-MM-DD"),e.array),E.value=e.array.length},q=()=>{B.push({name:"myDuty"})},H=()=>{B.push({name:"signList"})},M=async()=>{v.value=!0;let t={is_lead:3,page_index:c.page_index,page_size:c.page_size,start_time:c.startTime,end_time:c.endTime};fe(t).then(a=>{a.response.data.length===0&&(w.value=!0),a.response.data.forEach(s=>{c.GetWatchListInitArray.push(s)});let l=1;l===1&&(c.GetWatchListInitArray.forEach((s,o)=>{e.dateBackgroundText.push(s.watch_date)}),l++),v.value=!1}).finally(()=>{v.value=!1})};function R(){c.page_index++,M()}const K=()=>{const t=d();t.startOf("day").format("YYYY-MM-DD"),t.endOf("month").format("YYYY-MM-DD"),c.startTime=d().format("YYYY-MM-DD"),c.endTime=d().format("YYYY-MM-DD")};function Q(t){k.value=!0,b.value=t}function X(t){C.value=!0,pe(t).then(a=>{a.code==1?F.value=a.response.map(l=>({...l,text:l.name,value:l.id})):G(a.msg_detail)}).finally(()=>{C.value=!1})}function Z(t){if(t.selectedOptions[0]==null){me("请选择换班人员");return}we({title:"提示",message:"是否确认换班?"}).then(()=>{let a=b.value.watchid,l=t.selectedOptions[0].id;_e(a,l).then(s=>{s.code==1?(he(s.response),k.value=!1,c.page_index=1,c.GetWatchListInitArray=[],M()):G(s.msg_detail)})}).catch(()=>{})}function ee(){k.value=!1}return re(()=>{K(),J()}),(t,a)=>{const l=xe,s=ye,o=Me,g=Te,_=Le,T=Ce,te=ke,ae=Ye,ne=Se,se=ie;return D(),Y(L,null,[i("div",Ie,[r(te,{class:"container",loading:v.value,"onUpdate:loading":a[0]||(a[0]=n=>v.value=n),error:S.value,"onUpdate:error":a[1]||(a[1]=n=>S.value=n),finished:w.value,"onUpdate:finished":a[2]||(a[2]=n=>w.value=n),"error-text":"请求失败,点击重新加载","finished-text":"数据全部加载完成",onLoad:R},{default:u(()=>[r(l,{type:"single","show-subtitle":!1,poppable:!1,"show-confirm":!1,style:{height:"350px"},"show-title":!1,onConfirm:V,formatter:j,minDate:h(e).minDate,maxDate:h(e).maxDate},null,8,["minDate","maxDate"]),r(g,{style:{width:"100%","margin-top":"10px"}},{default:u(()=>[i("div",Fe,[i("div",{class:"left",onClick:P},[i("span",Oe,[r(s,{name:"arrow-left"})])]),(D(!0),Y(L,null,W(h(e).array,(n,x)=>(D(),Y("div",{class:ge(h(e).center?"content animate__animated animate__heartBeat":h(e).right?"content animate__animated animate__backInLeft":h(e).left?"content animate__animated animate__backInRight":"content animate__animated animate__heartBeat"),key:x},[i("span",{onClick:oe=>O(n.date),style:{display:"flex","justify-content":"center"}},y(n.dateDay)+"号",9,Ae),i("span",We,y(n.week[x]),1)],2))),128)),i("div",{class:"right",onClick:$},[i("span",Be,[r(s,{name:"arrow"})])])]),r(o,{icon:"manager-o",onClick:q,"is-link":"",class:"cardTitle",title:"我的值班",value:"值班记录"}),r(o,{icon:"label-o",onClick:H,"is-link":"",class:"cardTitle",title:"签到列表",value:"教师签到"})]),_:1}),(D(!0),Y(L,null,W(h(c).GetWatchListInitArray,(n,x)=>(D(),N(g,{key:x,inset:"",class:"cardContainer w-full mb-12"},{default:u(()=>[r(o,{class:"cardContent",title:n.username},{extra:u(()=>[r(_,{type:"primary",plain:""},{default:u(()=>[i("span",null,y(n.card_name),1)]),_:2},1024),r(_,{color:["","#7232dd"][n.is_lead],type:"primary",plain:"",style:{"margin-left":"10px"}},{default:u(()=>[i("span",null,y(["值班教师","值班领导"][n.is_lead]),1)]),_:2},1032,["color"])]),_:2},1032,["title"]),r(o,{class:"cardContent",title:"日期"},{extra:u(()=>[r(_,{type:"primary",plain:""},{default:u(()=>[i("span",null,y(n.watch_date),1)]),_:2},1024),r(_,{type:"primary",plain:"",style:{"margin-left":"10px"}},{default:u(()=>[i("span",null,y(n.watch_hour_time),1)]),_:2},1024)]),_:2},1024),r(o,{class:"cardContent",title:"类型"},{extra:u(()=>[r(_,{type:"primary",plain:""},{default:u(()=>[i("span",null,y(n.watchtypename+"-"+n.dept_name+"-"+n.campusname),1)]),_:2},1024)]),_:2},1024),be()?(D(),N(o,{key:0,class:"",title:"换班"},{value:u(()=>[r(T,{plain:"",type:"warning",size:"small",onClick:oe=>Q(n)},{default:u(()=>[De("换班")]),_:2},1032,["onClick"])]),_:2},1024)):ve("",!0)]),_:2},1024))),128)),Ge]),_:1},8,["loading","error","finished"]),Ne]),r(se,{show:k.value,"onUpdate:show":a[4]||(a[4]=n=>k.value=n),round:"",position:"bottom"},{default:u(()=>[r(ae,{modelValue:I.value,"onUpdate:modelValue":[a[3]||(a[3]=n=>I.value=n),X],placeholder:"请输入姓名或工号"},null,8,["modelValue"]),r(ne,{columns:F.value,loading:C.value,onCancel:ee,onConfirm:Z},null,8,["columns","loading"])]),_:1},8,["show"])],64)}}},qe=le(ze,[["__scopeId","data-v-84e5af84"]]);export{qe as default};
import{u as y,r as f,e as x,o as C,c as g,a,p as l,f as t,F as v,bo as h,q as n,E as r,h as w}from"./index-0e18dbfd.js";import{a as N,T as b,C as k}from"./index-b73fe561.js";import{N as B}from"./index-bdde94b5.js";import"./use-placeholder-c7cba718.js";const L={class:"container"},F={__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{F as default};
此差异已折叠。
import{aF as e}from"./index-0e18dbfd.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,e as h,V as i,al as u,aa as r,ae as c,af as l,ad as d,a as g}from"./index-0e18dbfd.js";const p=(a,s)=>{const t=n(),e=()=>{t.value=d(a).height};return h(()=>{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-0e18dbfd.js"></script> <script type="module" crossorigin src="./assets/index-379ef31e.js"></script>
<link rel="stylesheet" href="./assets/index-b8c6013c.css"> <link rel="stylesheet" href="./assets/index-b8c6013c.css">
</head> </head>
<body> <body>
......
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
<div style="width: 100%;height: calc(100% - 110px);overflow: auto"> <div style="width: 100%;height: calc(100% - 110px);overflow: auto">
<van-field <van-field
v-model="signList.message" v-model="signList.message"
clearable
maxlength="1000" maxlength="1000"
placeholder="请输入日志" placeholder="请输入日志"
rows="20" rows="20"
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或