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

V1.0.1.250205-250325

1.首页管理员权限支持》增加 “相互换班功能”
2.我的值班列表〉支持相互换班
上级 56d81f96
流水线 #33903 已失败 ,包含阶段
in 35 second
import{u as f,f as _,o as d,c as k,a as y,h as g,L as w,i as S,S as D,j as n,G as r,k as c,l as u,n as i,p as v}from"./index-ac73a25a.js";const x={style:{display:"flex","justify-content":"center","margin-top":"50%"}},R={__name:"SSO",setup(Y){const t=f(),l=async o=>{const e=await D(o);if(e.code!==1)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("admin-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await r();n.set("user-info",s.response.role),localStorage.setItem("user-info",s.response.role),n.set("userInfo",JSON.stringify(s.response)),c({date:u().format("YYYY-MM-DD")}).then(a=>{i().setDutyDate(a.response),t.replace({name:"welcome"})})}},p=async o=>{const e=await v(o);if(e.code!==1)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("admin-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await r();n.set("user-info",s.response.role),localStorage.setItem("user-info",s.response.role),n.set("userInfo",JSON.stringify(s.response)),c({date:u().format("YYYY-MM-DD")}).then(a=>{i().setDutyDate(a.response),t.replace({name:"welcome"})})}},m=async()=>{if(Number(t.currentRoute.value.query.type)===2){let o={token:t.currentRoute.value.query.token};await l(o)}else if(Number(t.currentRoute.value.query.type)===1){let o={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await p(o)}};return _(()=>{m()}),(o,e)=>{const s=w;return d(),k("div",x,[y(s,{size:"38px",color:"#1989fa",vertical:""},{default:g(()=>e[0]||(e[0]=[S(" 登录中")])),_:1})])}}};export{R as default};
import{u as f,f as m,o as _,c as d,a as k,h as y,L as g,i as S,S as w,j as s,G as r,k as c,l as i,n as v}from"./index-fa0494eb.js";const x={style:{display:"flex","justify-content":"center","margin-top":"50%"}},Y={__name:"SSO",setup(N){const e=f(),u=async o=>{const t=await w(o);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 n=await r();s.set("user-info",n.response.role),localStorage.setItem("user-info",n.response.role),s.set("userInfo",JSON.stringify(n.response)),c({date:i().format("YYYY-MM-DD")}).then(a=>{s.set("userDutyDate",JSON.stringify(a.response)),e.replace({name:"welcome"})})}},l=async o=>{const t=await v(o);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 n=await r();s.set("user-info",n.response.role),localStorage.setItem("user-info",n.response.role),s.set("userInfo",JSON.stringify(n.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 o={token:e.currentRoute.value.query.token};await u(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 l(o)}};return m(()=>{p()}),(o,t)=>{const n=g;return _(),d("div",x,[k(n,{size:"38px",color:"#1989fa",vertical:""},{default:y(()=>[S(" 登录中")]),_:1})])}}};export{Y as default};
import{u as y,f as m,o as _,c as g,a as v,h as S,j as s,G as u,L as h,i as q,S as w,k as c,l as i,n as l,p as D}from"./index-ac73a25a.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},Y={__name:"SSOInfo",setup(x){const e=y(),p=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);let o=e.currentRoute.value.query.links,a=e.currentRoute.value.query.id;const r=await u();s.set("user-info",r.response.role),localStorage.setItem("user-info",r.response.role),s.set("userInfo",JSON.stringify(r.response)),c({date:i().format("YYYY-MM-DD")}).then(d=>{l().setDutyDate(d.response),e.push({path:`/${o}`,query:{id:a}})})}},f=async n=>{const t=await D(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);let o=e.currentRoute.value.query.links;const a=await u();s.set("user-info",a.response.role),localStorage.setItem("user-info",a.response.role),s.set("userInfo",JSON.stringify(a.response)),c({date:i().format("YYYY-MM-DD")}).then(r=>{l().setDutyDate(r.response),e.push({path:`/${o}`})})}},k=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await p(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 f(n)}u(s.get("admin-token")).then(n=>{s.set("userInfo",JSON.stringify(n.response))})};return m(()=>{k()}),(n,t)=>{const o=h;return _(),g("div",R,[v(o,{size:"38px",color:"#1989fa",vertical:""},{default:S(()=>t[0]||(t[0]=[q(" 登录中")])),_:1})])}}};export{Y as default};
import{u as y,f as d,o as m,c as _,a as g,h as S,j as e,G as u,L as h,i as v,S as q,k as c,l as i,n as w}from"./index-fa0494eb.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,r as f,f as x,o as g,c as v,a,s as l,h as t,F as C,a6 as h,V as w,t as n,a3 as r,i as N,N as k,a5 as B,U as V}from"./index-fa0494eb.js";const b={class:"container"},F={__name:"index",setup(L){const o=y();let e=f({data:{}});const d=async()=>{let _={id:o.currentRoute.value.query.id};const i=await h(_);e.data=i.response};x(()=>{d()});const p=()=>o.push({name:"signList"});return(_,i)=>{const u=k,s=B,c=V,m=w;return g(),v(C,null,[a(u,{title:"值班信息","left-text":"返回","left-arrow":"",onClickLeft:p}),l("div",b,[a(m,{class:"cardContainer",inset:""},{default:t(()=>[a(c,{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(()=>[N(r(["值班教师","值班领导"][n(e).data.is_lead]),1)]),_:1})]),_:1},8,["title"]),a(c,{class:"cardContent",title:"手机号"},{extra:t(()=>[a(s,{type:"primary",plain:""},{default:t(()=>[l("span",null,r(n(e).data.mobile),1)]),_:1})]),_:1}),a(c,{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(c,{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(c,{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};
.my-swipe .van-swipe-item[data-v-50fae170]{width:100px;color:#fff;font-size:20px;line-height:150px;text-align:center;background-color:#39ed81}.container .dateContainer[data-v-50fae170]{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-50fae170],.container .dateContainer .right[data-v-50fae170]{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-50fae170]:hover,.container .dateContainer .right[data-v-50fae170]:hover{color:#1989fa}.container .dateContainer .content[data-v-50fae170]{width:11.42%;height:50px}.container .dateContainer .content[data-v-50fae170]:hover{background-color:#1989fa;border-radius:10%;color:#fff}.container .cardContainer[data-v-50fae170]{margin-top:10px;width:95%;background-color:#fff;height:20%;margin-bottom:10px}.aaa[data-v-50fae170] .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-1d26581d]{width:100px;color:#fff;font-size:20px;line-height:150px;text-align:center;background-color:#39ed81}.container .dateContainer[data-v-1d26581d]{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-1d26581d],.container .dateContainer .right[data-v-1d26581d]{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-1d26581d]:hover,.container .dateContainer .right[data-v-1d26581d]:hover{color:#1989fa}.container .dateContainer .content[data-v-1d26581d]{width:11.42%;height:50px}.container .dateContainer .content[data-v-1d26581d]:hover{background-color:#1989fa;border-radius:10%;color:#fff}.container .cardContainer[data-v-1d26581d]{margin-top:10px;width:95%;background-color:#fff;height:20%;margin-bottom:10px}.aaa[data-v-1d26581d] .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 y,r as f,f as x,o as v,c as g,a,t as l,h as t,F as C,ac as h,X as w,v as n,a5 as r,i as N,N as k,aa as B,V}from"./index-ac73a25a.js";const b={class:"container"},F={__name:"index",setup(L){const o=y();let e=f({data:{}});const d=async()=>{let _={id:o.currentRoute.value.query.id};const i=await h(_);e.data=i.response};x(()=>{d()});const p=()=>o.push({name:"signList"});return(_,i)=>{const u=k,s=B,c=V,m=w;return v(),g(C,null,[a(u,{title:"值班信息","left-text":"返回","left-arrow":"",onClickLeft:p}),l("div",b,[a(m,{class:"cardContainer",inset:""},{default:t(()=>[a(c,{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(()=>[N(r(["值班教师","值班领导"][n(e).data.is_lead]),1)]),_:1})]),_:1},8,["title"]),a(c,{class:"cardContent",title:"手机号"},{extra:t(()=>[a(s,{type:"primary",plain:""},{default:t(()=>[l("span",null,r(n(e).data.mobile),1)]),_:1})]),_:1}),a(c,{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(c,{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(c,{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{b as v,d as w,e as G,a as e,g as k,m as M,w as B}from"./index-fa0494eb.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var b=w({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=G(),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 A=B(b);export{A as E};
import{b as v,d as w,e as G,a as e,g as k,m as M,w as B}from"./index-ac73a25a.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var b=w({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=G(),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 A=B(b);export{A as E};
import{_ as Pe,r as F,l as r,p as d,q as Ce,f as Me,o as w,c as A,s as p,a as n,h as s,t as m,F as N,j as be,C as Le,v as Ve,P as Te,i as Y,x as U,y as X,z as Z,A as Fe,B as Ue,D as ee,E as Ie,H as te,I as $,J as ae,K as Ge,W as We,M as Ae,O as Ne,Q as $e,R as je,T as ze,U as Be,V as Ee,X as Re,Y as Ke,Z as He,$ as Je,a0 as qe,a1 as Qe,a2 as Xe,a3 as C,a4 as Ze,a5 as et}from"./index-fa0494eb.js";function tt(){const y=window.localStorage.getItem("user-info");return y?y.includes("管理员"):!1}const j=y=>(Fe("data-v-50fae170"),y=y(),Ue(),y),at={class:"container1",style:{position:"relative",background:"#F5F5F7"}},ot={style:{width:"100%"}},nt=j(()=>p("div",{class:""},null,-1)),lt=j(()=>p("div",{style:{position:"absolute",bottom:"20px",width:"100%",color:"#D0CECF"}},[p("div",{style:{display:"flex",width:"100%",height:"50px","justify-content":"center","align-items":"center"}},[p("span",{style:{"text-align":"center",color:"#b1b1b1","font-size":"12px",width:"100%"}}," V1.0.1.250221-250225 ")])],-1)),st={style:{height:"90%",width:"100%","background-color":"#f5f5f5","overflow-y":"auto",display:"flex","flex-direction":"column","align-items":"center"}},rt=j(()=>p("div",{style:{height:"54px",width:"100%",display:"flex","align-items":"center","justify-content":"center","background-color":"#fff"}},[p("div",{style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center"}},[p("span",null,"相互换班")])],-1)),it={style:{width:"100%",height:"calc(100% - 54px)","overflow-y":"auto"}},pt={style:{width:"100%",height:"60px","background-color":"#fff",display:"flex","align-items":"center","justify-content":"center"}},dt={style:{"background-color":"white",width:"100%",height:"10%",display:"flex","align-items":"center","justify-content":"space-between",padding:"12px"}},ut={__name:"index",setup(y){let g=F({minDate:new Date(r().year(),r().month()-1,1),maxDate:new Date(r().year(),r().month()+2,0),array:[],dateFlag:!1,addDateFlag:!0,week:["周日","周一","周二","周三","周四","周五","周六"],center:!0,right:!1,left:!1,isShow:!0,toDay:"",dateBackgroundText:[],loading:!1});const M=d(!1),k=d(!1),z=d(!1),B=d({}),S=d(!1),E=d(""),R=d([]),x=d(!1);let oe=d("");d(1);let f=F({page_index:0,page_size:1e3,startTime:"",endTime:"",GetWatchListInitArray:[]});const K=o=>{const t=Number(r(o.date).format("M")),i=Number(r(o.date).format("D"));return JSON.parse(be.get("userDutyDate")).forEach((u,D)=>{const _=Number(r(u).format("M")),v=Number(r(u).format("D"));t===_&&i===v&&(o.bottomInfo="值班")}),o};function b(){f.GetWatchListInitArray=[],e.params.page_index=1,M.value=!1}const ne=o=>{le(r(o).format("YYYY-MM-DD"))},le=o=>{b(),e.params.end_time=o,e.params.start_time=o,O()},se=()=>{const t=r().startOf("week"),i=[];for(let l=0;l<7;l++){const u=t.add(l,"day");i.push(u.format("YYYY-MM-DD")),g.array.push({date:u.format("YYYY-MM-DD"),dateDay:u.format("D"),week:g.week})}console.log("🚀🚀🚀,",r().format("YYYY-MM-DD"),g.array),oe.value=g.array.length},re=()=>{ee.push({name:"myDuty"})},ie=()=>{ee.push({name:"signList"})},O=async()=>{k.value=!0;let o={is_lead:3,...e.params};Ie(o).then(t=>{t.response.data.length===0&&(M.value=!0),t.response.data.forEach(l=>{f.GetWatchListInitArray.push(l)});let i=1;i===1&&(f.GetWatchListInitArray.forEach((l,u)=>{g.dateBackgroundText.push(l.watch_date)}),i++),k.value=!1}).finally(()=>{e.params.page_index++,k.value=!1})};function pe(){O(),e.params.page_index++}const de=()=>{const o=r();o.startOf("day").format("YYYY-MM-DD"),o.endOf("month").format("YYYY-MM-DD"),f.startTime=r().format("YYYY-MM-DD"),f.endTime=r().format("YYYY-MM-DD")};function ue(o){S.value=!0,B.value=o}function ce(o){x.value=!0,te(o).then(t=>{t.code==1?R.value=t.response.map(i=>({...i,text:i.name,value:i.id})):$(t.msg_detail)}).finally(()=>{x.value=!1})}function me(o){if(o.selectedOptions[0]==null){ae("请选择换班人员");return}Ge({title:"提示",message:"是否确认换班?"}).then(()=>{let t=B.value.watchid,i=o.selectedOptions[0].id;We(t,i).then(l=>{l.code==1?(Ae(l.response),S.value=!1,f.page_index=1,f.GetWatchListInitArray=[],O()):$(l.msg_detail)})}).catch(()=>{})}function fe(){S.value=!1}function he(o){console.log("打开相互换班",o),e.operatorOnDuty.people.value=o.username+"-"+o.card_name,e.operatorOnDuty.date.value=o.watch_date,e.personnelData.show=!0}function ye(o){x.value=!0,te(o).then(t=>{t.code==1?{operatorOnDutyPeople:()=>{e.operatorOnDuty.people.columns=t.response.map(l=>({...l,text:l.name,value:l.id}))},changeShiftsPeoplePeople:()=>{e.operatorOnDuty.people.columns=t.response.map(l=>({...l,text:l.name,value:l.id}))}}[e.changeFlag]():$(t.msg_detail)}).finally(()=>{x.value=!1})}function ge(o){if(o.selectedOptions[0]==null){ae("请选择换班人员");return}({operatorOnDutyPeople:()=>{e.operatorOnDuty.people.value=o.selectedOptions[0].name,e.operatorOnDuty.people.show=!1,H()},changeShiftsPeoplePeople:()=>{e.changeShiftsPeople.people.value=o.selectedOptions[0].name,e.operatorOnDuty.people.show=!1,H()}})[e.changeFlag]()}function De(){e.operatorOnDuty.people.show=!1}function H(o){console.log("获取值班日期",e.operatorOnDuty.people.value),{operatorOnDutyPeople:()=>{e.operatorOnDuty.date.columns=[{text:"2025-03-11",value:"2025-03-11"},{text:"2025-03-12",value:"2025-03-12"},{text:"2025-03-13",value:"2025-03-13"},{text:"2025-03-14",value:"2025-03-14"},{text:"2025-03-15",value:"2025-03-15"},{text:"2025-03-16",value:"2025-03-16"},{text:"2025-03-17",value:"2025-03-17"}]},changeShiftsPeoplePeople:()=>{e.changeShiftsPeople.date.columns=[{text:"2025-03-11",value:"2025-03-11"},{text:"2025-03-12",value:"2025-03-12"},{text:"2025-03-13",value:"2025-03-13"},{text:"2025-03-14",value:"2025-03-14"},{text:"2025-03-15",value:"2025-03-15"},{text:"2025-03-16",value:"2025-03-16"},{text:"2025-03-17",value:"2025-03-17"}]}}[e.changeFlag]()}function J(o){console.log("选择器确认",o),{operatorOnDutyPeople:()=>{e.operatorOnDuty.date.value=o.selectedOptions[0].value,e.operatorOnDuty.date.show=!1},changeShiftsPeoplePeople:()=>{e.changeShiftsPeople.date.value=o.selectedOptions[0].value,e.changeShiftsPeople.date.show=!1}}[e.changeFlag]()}function _e(){console.log("提交相互换班",e.operatorOnDuty.people.value,e.operatorOnDuty.date.value,e.changeShiftsPeople.people.value,e.changeShiftsPeople.date.value)}const e=F({changeFlag:"",userDutyDate:[],operatorOnDuty:{people:{params:{condition:""},value:"",columns:[],showPicker:!1},date:{columns:[],value:"",show:!1}},changeShiftsPeople:{people:{params:{condition:""},value:"",columns:[],showPicker:!1},date:{columns:[],value:"",show:!1}},personnelData:{initList:[],formData:{duty_type_id:"",date:"",record_id:"",duty_daytime_people_id:[],duty_night_people_id:[],originalList:[]},show:!1,params:{page_index:1,page_size:10,keyword:""},list:[],loading:!1,finished:!1,refreshing:!1,timer:{}},date:{value:"",show:!1},params:{dep_id:"",key_name:"",start_time:r().format("YYYY-MM-DD"),end_time:r().format("YYYY-MM-DD"),type_id:"",watchhour_time:"",is_lead:3,campus_id:"",page_index:1,page_size:1e3}});let c=F({minDate:new Date(r().year(),r().month()-1,1),maxDate:new Date(r().year(),r().month()+2,0),addDutySelectList:[],DatePickerKey:1,showCenter:!1,message:"",show:!1,startTime:r().startOf("day").format("YYYY-MM-DD"),endTime:r().startOf("day").format("YYYY-MM-DD"),page_index:1,page_size:1e3,total:"",deleteSetTimeOut:"",menuKey:1,loading:!1,watchtypeid:"",dept_id:"",watch_hour_id:"",campusid:""});d([]),d(!1),d(!1),d(!1),d({});const I=d("");function ve(){e.params={dep_id:"",key_name:"",start_time:r().format("YYYY-MM-DD"),end_time:r().format("YYYY-MM-DD"),type_id:"",watchhour_time:"",is_lead:3,campus_id:"",page_index:1,page_size:1e3},I.value&&I.value.reset(),b(),O()}const we=async o=>{e.params.start_time=r(o).format("YYYY-MM-DD"),e.params.end_time=r(o).format("YYYY-MM-DD"),b(),O(),c.menuKey++,xe()},xe=()=>{c.show=!1},Oe=()=>{c.show=!0},Ye=()=>{Promise.all([L("dutyType","类型","type_id",Ne),L("dutyHourTime","时段","watchhour_time",$e),L("campusname","校区","campus_id",je),L("dept_name","部门","dep_id",ze)]).then(o=>{c.addDutySelectList=o,c.DatePickerKey++})},L=(o,t,i,l)=>new Promise(async(u,D)=>{const _=await l(),v=[];_.response.map((h,Q)=>{v.push({text:h.name,value:h.id})}),u([v,t,i])});return Ce([()=>e.params.key_name,()=>e.params.type_id,()=>e.params.watchhour_time,()=>e.params.campus_id,()=>e.params.dep_id],(o,t)=>{(o[0]||o[1]||o[2]||o[3]||o[4])&&(b(),O())},{deep:!0}),Me(()=>{de(),se(),Ye()}),(o,t)=>{const i=Le,l=Be,u=Ee,D=Re,_=Ke,v=Ze,q=He,h=et,Q=Ve,V=Je,P=Te,ke=qe,T=Qe,Se=Xe;return w(),A(N,null,[p("div",at,[n(Q,{class:"container",loading:k.value,"onUpdate:loading":t[1]||(t[1]=a=>k.value=a),error:z.value,"onUpdate:error":t[2]||(t[2]=a=>z.value=a),finished:M.value,"onUpdate:finished":t[3]||(t[3]=a=>M.value=a),"error-text":"请求失败,点击重新加载","finished-text":"数据全部加载完成",onLoad:pe},{default:s(()=>[n(i,{type:"single","show-subtitle":!1,poppable:!1,"show-confirm":!1,style:{height:"350px"},"show-title":!1,onConfirm:ne,formatter:K,minDate:m(g).minDate,maxDate:m(g).maxDate},null,8,["minDate","maxDate"]),n(u,{style:{width:"100%","margin-top":"10px"}},{default:s(()=>[n(l,{icon:"manager-o",onClick:re,"is-link":"",class:"cardTitle",title:"我的值班",value:"值班记录"}),n(l,{icon:"label-o",onClick:ie,"is-link":"",class:"cardTitle",title:"签到列表",value:"教师签到"})]),_:1}),p("div",ot,[n(_,{modelValue:e.params.key_name,"onUpdate:modelValue":t[0]||(t[0]=a=>e.params.key_name=a),"show-action":"",placeholder:"请输入搜索关键词"},{action:s(()=>[n(D,{onClick:ve},{default:s(()=>[Y(" 重置 ")]),_:1})]),_:1},8,["modelValue"]),n(q,{overlay:!0,class:"aaa"},{default:s(()=>[m(c).addDutySelectList.length>0?(w(),U(v,{key:0,onOpen:Oe,title:"日期"})):X("",!0),(w(!0),A(N,null,Z(m(c).addDutySelectList,(a,G)=>(w(),U(v,{modelValue:e.params[a[2]],"onUpdate:modelValue":W=>e.params[a[2]]=W,key:G,title:a[1],options:a[0]},null,8,["modelValue","onUpdate:modelValue","title","options"]))),128))]),_:1})]),(w(!0),A(N,null,Z(m(f).GetWatchListInitArray,(a,G)=>(w(),U(u,{key:G,inset:"",class:"cardContainer w-full mb-12"},{default:s(()=>[n(l,{class:"cardContent",title:a.username},{extra:s(()=>[n(h,{type:"primary",plain:""},{default:s(()=>[p("span",null,C(a.card_name),1)]),_:2},1024),n(h,{color:["","#7232dd"][a.is_lead],type:"primary",plain:"",style:{"margin-left":"10px"}},{default:s(()=>[p("span",null,C(["值班教师","值班领导"][a.is_lead]),1)]),_:2},1032,["color"])]),_:2},1032,["title"]),n(l,{class:"cardContent",title:"日期"},{extra:s(()=>[n(h,{type:"primary",plain:""},{default:s(()=>[p("span",null,C(a.watch_date),1)]),_:2},1024),n(h,{type:"primary",plain:"",style:{"margin-left":"10px"}},{default:s(()=>[p("span",null,C(a.watch_hour_time),1)]),_:2},1024)]),_:2},1024),n(l,{class:"cardContent",title:"类型"},{extra:s(()=>[n(h,{type:"primary",plain:""},{default:s(()=>[p("span",null,C(a.watchtypename+"-"+a.dept_name+"-"+a.campusname),1)]),_:2},1024)]),_:2},1024),tt()?(w(),U(l,{key:0,class:"",title:"换班"},{value:s(()=>[n(D,{style:{"margin-right":"10px"},plain:"",type:"warning",size:"small",onClick:W=>he(a)},{default:s(()=>[Y("相互换班")]),_:2},1032,["onClick"]),n(D,{plain:"",type:"warning",size:"small",onClick:W=>ue(a)},{default:s(()=>[Y("换班")]),_:2},1032,["onClick"])]),_:2},1024)):X("",!0)]),_:2},1024))),128)),nt]),_:1},8,["loading","error","finished"]),lt]),n(i,{minDate:m(c).minDate,"allow-same-day":!0,ref_key:"dateRangeRef",ref:I,maxDate:m(c).maxDate,show:m(c).show,"onUpdate:show":t[4]||(t[4]=a=>m(c).show=a),formatter:K,onConfirm:we},null,8,["minDate","maxDate","show"]),n(P,{show:S.value,"onUpdate:show":t[6]||(t[6]=a=>S.value=a),round:"",position:"bottom"},{default:s(()=>[n(_,{modelValue:E.value,"onUpdate:modelValue":[t[5]||(t[5]=a=>E.value=a),ce],placeholder:"请输入姓名或工号"},null,8,["modelValue"]),n(V,{columns:R.value,loading:x.value,onCancel:fe,onConfirm:me},null,8,["columns","loading"])]),_:1},8,["show"]),n(P,{show:e.operatorOnDuty.people.show,"onUpdate:show":t[8]||(t[8]=a=>e.operatorOnDuty.people.show=a),round:"",position:"bottom"},{default:s(()=>[n(_,{modelValue:e.operatorOnDuty.people.params.condition,"onUpdate:modelValue":[t[7]||(t[7]=a=>e.operatorOnDuty.people.params.condition=a),ye],placeholder:"请输入姓名或工号"},null,8,["modelValue"]),n(V,{columns:e.operatorOnDuty.people.columns,loading:x.value,onCancel:De,onConfirm:ge},null,8,["columns","loading"])]),_:1},8,["show"]),n(P,{show:e.personnelData.show,"onUpdate:show":t[22]||(t[22]=a=>e.personnelData.show=a),position:"bottom",style:{height:"70%"}},{default:s(()=>[p("div",st,[rt,p("div",it,[n(ke,{color:"#1989fa",background:"#ecf9ff","left-icon":"info-o"},{default:s(()=>[Y(" 温馨提示:选择人员及日期,提交进行相互换班。 ")]),_:1}),n(u,{style:{width:"100%","margin-top":"12px"}},{default:s(()=>[n(T,{modelValue:e.operatorOnDuty.people.value,"onUpdate:modelValue":t[9]||(t[9]=a=>e.operatorOnDuty.people.value=a),"is-link":"",readonly:"",name:"operatorOnDutyPeople",label:"值班人员",placeholder:"点击选择值班人员",onClick:t[10]||(t[10]=a=>{e.changeFlag="operatorOnDutyPeople",e.operatorOnDuty.people.show=!0})},null,8,["modelValue"]),n(T,{modelValue:e.operatorOnDuty.date.value,"onUpdate:modelValue":t[11]||(t[11]=a=>e.operatorOnDuty.date.value=a),"is-link":"",readonly:"",name:"operatorOnDutyDate",label:"值班日期",placeholder:"点击选择值班日期",onClick:t[12]||(t[12]=a=>{e.changeFlag="operatorOnDutyPeople",e.operatorOnDuty.date.show=!0})},null,8,["modelValue"]),n(P,{show:e.operatorOnDuty.date.show,"onUpdate:show":t[14]||(t[14]=a=>e.operatorOnDuty.date.show=a),round:"",position:"bottom"},{default:s(()=>[n(V,{title:"值班日期","show-toolbar":"",columns:e.operatorOnDuty.date.columns,onConfirm:J,onCancel:t[13]||(t[13]=a=>e.operatorOnDuty.date.show=!1)},null,8,["columns"])]),_:1},8,["show"])]),_:1}),p("div",pt,[n(Se,{name:"sort",color:"#3287F8",size:"30px"})]),n(u,{style:{width:"100%"}},{default:s(()=>[n(T,{modelValue:e.changeShiftsPeople.people.value,"onUpdate:modelValue":t[15]||(t[15]=a=>e.changeShiftsPeople.people.value=a),"is-link":"",readonly:"",name:"changeShiftsPeoplePeople",label:"换班人员",placeholder:"点击选择换班人员",onClick:t[16]||(t[16]=a=>{e.changeFlag="changeShiftsPeoplePeople",e.operatorOnDuty.people.show=!0})},null,8,["modelValue"]),n(T,{modelValue:e.changeShiftsPeople.date.value,"onUpdate:modelValue":t[17]||(t[17]=a=>e.changeShiftsPeople.date.value=a),"is-link":"",readonly:"",name:"changeShiftsPeopleDate",label:"换班日期",placeholder:"点击选择换班日期",onClick:t[18]||(t[18]=a=>{e.changeFlag="changeShiftsPeoplePeople",e.changeShiftsPeople.date.show=!0})},null,8,["modelValue"]),n(P,{show:e.changeShiftsPeople.date.show,"onUpdate:show":t[20]||(t[20]=a=>e.changeShiftsPeople.date.show=a),round:"",position:"bottom"},{default:s(()=>[n(V,{title:"换班日期","show-toolbar":"",columns:e.changeShiftsPeople.date.columns,onConfirm:J,onCancel:t[19]||(t[19]=a=>e.changeShiftsPeople.date.show=!1)},null,8,["columns"])]),_:1},8,["show"])]),_:1})])]),p("div",dt,[n(D,{style:{width:"30%"},round:"",onClick:t[21]||(t[21]=a=>e.personnelData.show=!1)},{default:s(()=>[Y("关闭")]),_:1}),n(D,{style:{width:"65%"},round:"",type:"primary",onClick:_e},{default:s(()=>[Y("提交")]),_:1})])]),_:1},8,["show"])],64)}}},mt=Pe(ut,[["__scopeId","data-v-50fae170"]]);export{mt as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{u as r,o as c,c as s,a as e,F as m,N as _}from"./index-fa0494eb.js";import{E as l}from"./index-08c498b4.js";const h={__name:"index",setup(p){const t=r(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,n=l;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(n,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{h as default};
import{u as r,o as c,c as s,a as e,F as m,N as _}from"./index-ac73a25a.js";import{E as l}from"./index-90e01033.js";const h={__name:"index",setup(p){const t=r(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,n=l;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(n,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{h as default};
import{u as r,o as c,c as s,a as e,F as m,N as _}from"./index-fa0494eb.js";import{E as l}from"./index-08c498b4.js";const h={__name:"index",setup(p){const t=r(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,n=l;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(n,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{h as default};
import{u as r,o as c,c as s,a as e,F as m,N as _}from"./index-ac73a25a.js";import{E as l}from"./index-90e01033.js";const h={__name:"index",setup(p){const t=r(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,n=l;return c(),s(m,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(n,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{h as default};
import{_ as Se,r as W,l as r,q as f,s as Te,f as Ue,o as p,c as P,t as s,a as o,h as i,v as h,F as O,n as J,C as We,x as Oe,P as Ge,y as k,i as _,z as Q,A as I,B as X,D as ze,E as Ae,H as Z,I as ee,J as je,W as Ie,K as Ee,M as te,O as Ne,Q as $e,R as Be,T as Re,U as Ke,V as He,X as qe,Y as Je,Z as Qe,$ as Xe,a0 as Ze,a1 as et,a2 as tt,a3 as at,a4 as nt,a5 as D,a6 as ot,a7 as st,a8 as it,k as rt,a9 as lt,aa as dt,ab as ft}from"./index-ac73a25a.js";const mt={class:"container1",style:{position:"relative",background:"#F5F5F7"}},ut={style:{width:"100%"}},pt={style:{height:"90%",width:"100%","background-color":"#f5f5f5","overflow-y":"auto",display:"flex","flex-direction":"column","align-items":"center"}},ht={style:{width:"100%",height:"calc(100% - 54px)","overflow-y":"auto"}},ct={style:{width:"100%",height:"60px","background-color":"#fff",display:"flex","align-items":"center","justify-content":"center"}},gt={style:{"background-color":"white",width:"100%",height:"10%",display:"flex","align-items":"center","justify-content":"space-between",padding:"12px"}},yt={style:{width:"100%",height:"100%","background-color":"#fff","overflow-y":"auto",position:"relative"}},_t={style:{width:"100%",height:"94px","z-index":"100",position:"sticky",top:"0"}},Dt={style:{"border-top":"1px solid #ebedf0"}},wt={style:{width:"100%",height:"calc(100% - 164px)","z-index":"40",padding:"0 12px","background-color":"#F3F4F6",position:"relative","overflow-y":"auto"}},vt=["onClick"],xt={style:{width:"70%"}},Vt={style:{"font-size":"20px",color:"#323233"}},kt={style:{"font-size":"14px",color:"#969799",display:"flex","align-items":"center"}},Ct={style:{width:"30%",display:"flex","justify-content":"flex-end","align-items":"center"}},Yt={style:{width:"100%",height:"70px",padding:"0 12px",display:"flex","justify-content":"space-between","align-items":"center",position:"sticky",bottom:"0","border-top":"1px solid #fff"}},bt={__name:"index",setup(Pt){let w=W({minDate:new Date(r().year(),r().month()-1,1),maxDate:new Date(r().year(),r().month()+2,0),array:[],dateFlag:!1,addDateFlag:!0,week:["周日","周一","周二","周三","周四","周五","周六"],center:!0,right:!1,left:!1,isShow:!0,toDay:"",dateBackgroundText:[],loading:!1});const F=f(!1),C=f(!1),E=f(!1),N=f({}),Y=f(!1),$=f(""),B=f([]),G=f(!1);let ae=f("");f(1);let c=W({page_index:0,page_size:1e3,startTime:"",endTime:"",GetWatchListInitArray:[]});const R=n=>{const e=Number(r(n.date).format("M")),l=Number(r(n.date).format("D"));return J().getDutyDate().forEach((m,g)=>{const v=Number(r(m).format("M")),x=Number(r(m).format("D"));e===v&&l===x&&(n.bottomInfo="值班")}),n};function M(){c.GetWatchListInitArray=[],t.params.page_index=1,F.value=!1}const ne=n=>{oe(r(n).format("YYYY-MM-DD"))},oe=n=>{M(),t.params.end_time=n,t.params.start_time=n,V()},se=()=>{const e=r().startOf("week"),l=[];for(let d=0;d<7;d++){const m=e.add(d,"day");l.push(m.format("YYYY-MM-DD")),w.array.push({date:m.format("YYYY-MM-DD"),dateDay:m.format("D"),week:w.week})}console.log("🚀🚀🚀,",r().format("YYYY-MM-DD"),w.array),ae.value=w.array.length},ie=()=>{X.push({name:"myDuty"})},re=()=>{X.push({name:"signList"})},V=async()=>{C.value=!0;let n={is_lead:3,...t.params};ze(n).then(e=>{e.response.data.length===0&&(F.value=!0),e.response.data.forEach(d=>{c.GetWatchListInitArray.push(d)});let l=1;l===1&&(c.GetWatchListInitArray.forEach((d,m)=>{w.dateBackgroundText.push(d.watch_date)}),l++),C.value=!1}).finally(()=>{t.params.page_index++,C.value=!1})};function le(){V(),t.params.page_index++}const de=()=>{const n=r();n.startOf("day").format("YYYY-MM-DD"),n.endOf("month").format("YYYY-MM-DD"),c.startTime=r().format("YYYY-MM-DD"),c.endTime=r().format("YYYY-MM-DD")};function fe(n){Y.value=!0,N.value=n}function me(n){G.value=!0,Ae(n).then(e=>{e.code==1?B.value=e.response.map(l=>({...l,text:l.name,value:l.id})):Z(e.msg_detail)}).finally(()=>{G.value=!1})}function ue(n){if(n.selectedOptions[0]==null){ee("请选择换班人员");return}je({title:"提示",message:"是否确认换班?"}).then(()=>{let e=N.value.watchid,l=n.selectedOptions[0].id;Ie(e,l).then(d=>{d.code==1?(Ee(d.response),Y.value=!1,c.page_index=1,c.GetWatchListInitArray=[],V()):Z(d.msg_detail)})}).catch(()=>{})}function pe(){Y.value=!1}function he(n){console.log("打开相互换班",n),t.intershiftFormDateV2.formData.top={...n,username:`${n.username}(${n.card_name})`},t.intershiftFormDateV2.show=!0,t.intershiftFormDateV2.formData.bottom={watchid:"",watch_date:"",dept_id:"",card_name:"",username:"",dept_name:""}}function ce(n){t.shiftChangerPersonV2.show=!0,te(()=>st().then(e=>(t.shiftChangerPersonV2.originalList=e.response,t.shiftChangerPersonV2.initData=e.response,L(),e)),!0)}function L(){t.shiftChangerPersonV2.kkkk++,t.shiftChangerPersonV2.loading=!0;let n=t.shiftChangerPersonV2.list.length,e=n+t.shiftChangerPersonV2.params.page_size;const l=t.shiftChangerPersonV2.originalList.filter(d=>d.watchid!==t.intershiftFormDateV2.formData.top.watchid);t.shiftChangerPersonV2.list=t.shiftChangerPersonV2.list.concat(l.slice(n,e)),t.shiftChangerPersonV2.loading=!1,t.shiftChangerPersonV2.list.length>=l.length&&(t.shiftChangerPersonV2.finished=!0)}function ge(n){if(!n){t.shiftChangerPersonV2.originalList=t.shiftChangerPersonV2.initData,t.shiftChangerPersonV2.finished=!1,t.shiftChangerPersonV2.list=[],L();return}const e=n.toLowerCase();t.shiftChangerPersonV2.originalList=t.shiftChangerPersonV2.initData.filter(l=>l.username&&l.username.toLowerCase().includes(e)||l.card_name&&l.card_name.toLowerCase().includes(e)),t.shiftChangerPersonV2.finished=!1,t.shiftChangerPersonV2.list=[],L()}function ye(n){t.intershiftFormDateV2.formData.bottom=n}function _e(){if(!t.intershiftFormDateV2.formData.bottom.watchid){ee("请选择换班人员");return}Ne(()=>{te(()=>it({first_id:t.intershiftFormDateV2.formData.top.watchid,second_id:t.intershiftFormDateV2.formData.bottom.watchid}).then(n=>{if(n.code===1)return t.intershiftFormDateV2.show=!1,rt({date:r().format("YYYY-MM-DD")}).then(e=>{J().setDutyDate(e.response)}),xe(),n}))})}const t=W({intershiftFormDateV2:{cascaderKey:321,addOrEditFlag:"",show:!1,formData:{top:{watchid:"",watch_date:"",dept_id:"",card_name:"",username:"",dept_name:""},bottom:{watchid:"",watch_date:"",dept_id:"",card_name:"",username:"",dept_name:""}},dutyDateList:[],rules:{name:[{required:!0,message:"请选择人员",trigger:"change"}],date:[{required:!0,message:"请选择换班日期",trigger:"change"}]}},shiftChangerPersonV2:{initData:[],originalList:[],kkkk:123123,initList:[],show:!1,params:{page_index:1,page_size:10,keyword:""},list:[],loading:!1,finished:!1,refreshing:!1,timer:{}},changeFlag:"",userDutyDate:[],operatorOnDuty:{people:{params:{condition:""},value:"",columns:[],showPicker:!1},date:{columns:[],value:"",show:!1}},changeShiftsPeople:{people:{params:{condition:""},value:"",columns:[],showPicker:!1},date:{columns:[],value:"",show:!1}},personnelData:{initList:[],formData:{duty_type_id:"",date:"",record_id:"",duty_daytime_people_id:[],duty_night_people_id:[],originalList:[]},show:!1,params:{page_index:1,page_size:10,keyword:""},list:[],loading:!1,finished:!1,refreshing:!1,timer:{}},date:{value:"",show:!1},params:{dep_id:"",key_name:"",start_time:r().format("YYYY-MM-DD"),end_time:r().format("YYYY-MM-DD"),type_id:"",watchhour_time:"",is_lead:3,campus_id:"",page_index:1,page_size:1e3}});let u=W({minDate:new Date(r().year(),r().month()-1,1),maxDate:new Date(r().year(),r().month()+2,0),addDutySelectList:[],DatePickerKey:1,showCenter:!1,message:"",show:!1,startTime:r().startOf("day").format("YYYY-MM-DD"),endTime:r().startOf("day").format("YYYY-MM-DD"),page_index:1,page_size:1e3,total:"",deleteSetTimeOut:"",menuKey:1,loading:!1,watchtypeid:"",dept_id:"",watch_hour_id:"",campusid:""});const De=f([]),we=f(!1),ve=f(!1);f(!1);let K=f({});function xe(){t.params.page_index=1,De.value=[],ve.value=!1,we.value=!0,clearTimeout(K.value),K.value=setTimeout(()=>onLoad1(),500)}const z=f("");function Ve(){t.params={dep_id:"",key_name:"",start_time:r().format("YYYY-MM-DD"),end_time:r().format("YYYY-MM-DD"),type_id:"",watchhour_time:"",is_lead:3,campus_id:"",page_index:1,page_size:1e3},z.value&&z.value.reset(),M(),V()}const ke=async n=>{t.params.start_time=r(n).format("YYYY-MM-DD"),t.params.end_time=r(n).format("YYYY-MM-DD"),M(),V(),u.menuKey++,Ce()},Ce=()=>{u.show=!1},Ye=()=>{u.show=!0},be=()=>{Promise.all([S("dutyType","类型","type_id",$e),S("dutyHourTime","时段","watchhour_time",Be),S("campusname","校区","campus_id",Re),S("dept_name","部门","dep_id",Ke)]).then(n=>{u.addDutySelectList=n,u.DatePickerKey++})},S=(n,e,l,d)=>new Promise(async(m,g)=>{const v=await d(),x=[];v.response.map((y,A)=>{x.push({text:y.name,value:y.id})}),m([x,e,l])});return Te([()=>t.params.key_name,()=>t.params.type_id,()=>t.params.watchhour_time,()=>t.params.campus_id,()=>t.params.dep_id],(n,e)=>{(n[0]||n[1]||n[2]||n[3]||n[4])&&(M(),V())},{deep:!0}),Ue(()=>{de(),se(),be()}),(n,e)=>{const l=We,d=He,m=qe,g=Je,v=Qe,x=lt,H=Xe,y=dt,A=Oe,Pe=Ze,j=Ge,Fe=et,T=tt,q=at,Me=ft,Le=nt;return p(),P(O,null,[s("div",mt,[o(A,{class:"container",loading:C.value,"onUpdate:loading":e[1]||(e[1]=a=>C.value=a),error:E.value,"onUpdate:error":e[2]||(e[2]=a=>E.value=a),finished:F.value,"onUpdate:finished":e[3]||(e[3]=a=>F.value=a),"error-text":"请求失败,点击重新加载","finished-text":"数据全部加载完成",onLoad:le},{default:i(()=>[(p(),k(l,{key:t.cascaderKey,type:"single","show-subtitle":!1,poppable:!1,"show-confirm":!1,style:{height:"350px"},"show-title":!1,onConfirm:ne,formatter:R,minDate:h(w).minDate,maxDate:h(w).maxDate},null,8,["minDate","maxDate"])),o(m,{style:{width:"100%","margin-top":"10px"}},{default:i(()=>[o(d,{icon:"manager-o",onClick:ie,"is-link":"",class:"cardTitle",title:"我的值班",value:"值班记录"}),o(d,{icon:"label-o",onClick:re,"is-link":"",class:"cardTitle",title:"签到列表",value:"教师签到"})]),_:1}),s("div",ut,[o(v,{modelValue:t.params.key_name,"onUpdate:modelValue":e[0]||(e[0]=a=>t.params.key_name=a),"show-action":"",placeholder:"请输入搜索关键词"},{action:i(()=>[o(g,{onClick:Ve},{default:i(()=>e[19]||(e[19]=[_(" 重置 ")])),_:1})]),_:1},8,["modelValue"]),o(H,{overlay:!0,class:"aaa"},{default:i(()=>[h(u).addDutySelectList.length>0?(p(),k(x,{key:0,onOpen:Ye,title:"日期"})):Q("",!0),(p(!0),P(O,null,I(h(u).addDutySelectList,(a,b)=>(p(),k(x,{modelValue:t.params[a[2]],"onUpdate:modelValue":U=>t.params[a[2]]=U,key:b,title:a[1],options:a[0]},null,8,["modelValue","onUpdate:modelValue","title","options"]))),128))]),_:1})]),(p(!0),P(O,null,I(h(c).GetWatchListInitArray,(a,b)=>(p(),k(m,{key:b,inset:"",class:"cardContainer w-full mb-12"},{default:i(()=>[o(d,{class:"cardContent",title:a.username},{extra:i(()=>[o(y,{type:"primary",plain:""},{default:i(()=>[s("span",null,D(a.card_name),1)]),_:2},1024),o(y,{color:["","#7232dd"][a.is_lead],type:"primary",plain:"",style:{"margin-left":"10px"}},{default:i(()=>[s("span",null,D(["值班教师","值班领导"][a.is_lead]),1)]),_:2},1032,["color"])]),_:2},1032,["title"]),o(d,{class:"cardContent",title:"日期"},{extra:i(()=>[o(y,{type:"primary",plain:""},{default:i(()=>[s("span",null,D(a.watch_date),1)]),_:2},1024),o(y,{type:"primary",plain:"",style:{"margin-left":"10px"}},{default:i(()=>[s("span",null,D(a.watch_hour_time),1)]),_:2},1024)]),_:2},1024),o(d,{class:"cardContent",title:"类型"},{extra:i(()=>[o(y,{type:"primary",plain:""},{default:i(()=>[s("span",null,D(a.watchtypename+"-"+a.dept_name+"-"+a.campusname),1)]),_:2},1024)]),_:2},1024),ot()?(p(),k(d,{key:0,class:"",title:"换班"},{value:i(()=>[o(g,{style:{"margin-right":"10px"},plain:"",type:"warning",size:"small",onClick:U=>he(a)},{default:i(()=>e[20]||(e[20]=[_(" 相互换班 ")])),_:2},1032,["onClick"]),o(g,{plain:"",type:"warning",size:"small",onClick:U=>fe(a)},{default:i(()=>e[21]||(e[21]=[_("换班")])),_:2},1032,["onClick"])]),_:2},1024)):Q("",!0)]),_:2},1024))),128)),e[22]||(e[22]=s("div",{class:""},null,-1))]),_:1},8,["loading","error","finished"]),e[23]||(e[23]=s("div",{style:{position:"absolute",bottom:"20px",width:"100%",color:"#D0CECF"}},[s("div",{style:{display:"flex",width:"100%",height:"50px","justify-content":"center","align-items":"center"}},[s("span",{style:{"text-align":"center",color:"#b1b1b1","font-size":"12px",width:"100%"}}," V1.0.1.250205-250325 ")])],-1))]),o(l,{minDate:h(u).minDate,"allow-same-day":!0,ref_key:"dateRangeRef",ref:z,maxDate:h(u).maxDate,show:h(u).show,"onUpdate:show":e[4]||(e[4]=a=>h(u).show=a),formatter:R,onConfirm:ke},null,8,["minDate","maxDate","show"]),o(j,{show:Y.value,"onUpdate:show":e[6]||(e[6]=a=>Y.value=a),round:"",position:"bottom"},{default:i(()=>[o(v,{modelValue:$.value,"onUpdate:modelValue":[e[5]||(e[5]=a=>$.value=a),me],placeholder:"请输入姓名或工号"},null,8,["modelValue"]),o(Pe,{columns:B.value,loading:G.value,onCancel:pe,onConfirm:ue},null,8,["columns","loading"])]),_:1},8,["show"]),o(j,{show:t.intershiftFormDateV2.show,"onUpdate:show":e[13]||(e[13]=a=>t.intershiftFormDateV2.show=a),position:"bottom",style:{height:"70%"}},{default:i(()=>[s("div",pt,[e[25]||(e[25]=s("div",{style:{height:"54px",width:"100%",display:"flex","align-items":"center","justify-content":"center","background-color":"#fff"}},[s("div",{style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center"}},[s("span",null,"相互换班")])],-1)),s("div",ht,[o(Fe,{color:"#1989fa",background:"#ecf9ff","left-icon":"info-o"},{default:i(()=>e[24]||(e[24]=[_(" 温馨提示:选择换班人员,提交进行相互换班。 ")])),_:1}),o(m,{style:{width:"100%","margin-top":"12px"}},{default:i(()=>[o(T,{modelValue:t.intershiftFormDateV2.formData.top.username,"onUpdate:modelValue":e[7]||(e[7]=a=>t.intershiftFormDateV2.formData.top.username=a),readonly:"",name:"operatorOnDutyPeople",label:"姓名",placeholder:"点击选择值班人员"},null,8,["modelValue"]),o(T,{modelValue:t.intershiftFormDateV2.formData.top.watch_date,"onUpdate:modelValue":e[8]||(e[8]=a=>t.intershiftFormDateV2.formData.top.watch_date=a),readonly:"",name:"operatorOnDutyDate",label:"值班日期",placeholder:"暂无值班日期"},null,8,["modelValue"])]),_:1}),s("div",ct,[o(q,{name:"sort",color:"#3287F8",size:"30px"})]),o(m,{style:{width:"100%"}},{default:i(()=>[o(T,{modelValue:t.intershiftFormDateV2.formData.bottom.username,"onUpdate:modelValue":e[9]||(e[9]=a=>t.intershiftFormDateV2.formData.bottom.username=a),"is-link":"",readonly:"",name:"changeShiftsPeoplePeople",label:"姓名",placeholder:"点击选择换班人员",onClick:e[10]||(e[10]=a=>ce())},null,8,["modelValue"]),o(T,{modelValue:t.intershiftFormDateV2.formData.bottom.watch_date,"onUpdate:modelValue":e[11]||(e[11]=a=>t.intershiftFormDateV2.formData.bottom.watch_date=a),readonly:"",name:"changeShiftsPeopleDate",label:"换班日期",placeholder:"暂无换班日期"},null,8,["modelValue"])]),_:1})])]),s("div",gt,[o(g,{style:{width:"30%"},round:"",onClick:e[12]||(e[12]=a=>t.intershiftFormDateV2.show=!1)},{default:i(()=>e[26]||(e[26]=[_("关闭")])),_:1}),o(g,{style:{width:"65%"},round:"",type:"primary",onClick:_e},{default:i(()=>e[27]||(e[27]=[_("提交")])),_:1})])]),_:1},8,["show"]),o(j,{show:t.shiftChangerPersonV2.show,"onUpdate:show":e[18]||(e[18]=a=>t.shiftChangerPersonV2.show=a),position:"bottom",style:{height:"100%"}},{default:i(()=>[s("div",yt,[s("div",_t,[e[28]||(e[28]=s("div",{style:{width:"100%",height:"40px",display:"flex","justify-content":"space-between","align-items":"center"}},[s("div",{style:{width:"100%",height:"100%",display:"flex","justify-content":"center","align-items":"center","font-size":"18px"}}," 选择相互换班人员 ")],-1)),s("div",Dt,[o(v,{modelValue:t.shiftChangerPersonV2.params.keyword,"onUpdate:modelValue":[e[14]||(e[14]=a=>t.shiftChangerPersonV2.params.keyword=a),ge],placeholder:"请输入人员名称",style:{display:"flex","justify-content":"center","align-items":"center"}},null,8,["modelValue"])])]),s("div",wt,[(p(),k(A,{key:t.shiftChangerPersonV2.kkkk,modelValue:t.shiftChangerPersonV2.loading,"onUpdate:modelValue":e[16]||(e[16]=a=>t.shiftChangerPersonV2.loading=a),finished:t.shiftChangerPersonV2.finished,"finished-text":"没有更多了",onLoad:L,offset:"400"},{default:i(()=>[o(Le,{modelValue:t.intershiftFormDateV2.formData.bottom.watchid,"onUpdate:modelValue":e[15]||(e[15]=a=>t.intershiftFormDateV2.formData.bottom.watchid=a)},{default:i(()=>[(p(!0),P(O,null,I(t.shiftChangerPersonV2.list,(a,b)=>(p(),P("div",{key:b,style:{width:"100%",height:"100%","background-color":"#FFFFFF","border-radius":"8px",margin:"10px 0",padding:"10px",display:"flex","justify-content":"space-between","align-items":"center"},class:"relative",onClick:U=>ye(a)},[s("div",xt,[s("div",Vt,D(a.username)+" - "+D(a.card_name),1),s("div",kt,[o(q,{name:"calendar-o",style:{"margin-right":"4px"}}),_(" "+D(a.watch_date),1)])]),s("div",Ct,[o(Me,{ref_for:!0,ref:"checkboxRefs",name:a.watchid,class:"mr-1"},null,8,["name"])])],8,vt))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue","finished"]))]),s("div",Yt,[o(g,{style:{width:"100%"},type:"default",round:"",onClick:e[17]||(e[17]=a=>t.shiftChangerPersonV2.show=!1)},{default:i(()=>e[29]||(e[29]=[_("关闭 ")])),_:1})])])]),_:1},8,["show"])],64)}}},Mt=Se(bt,[["__scopeId","data-v-1d26581d"]]);export{Mt as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
......@@ -5,8 +5,8 @@
<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-fa0494eb.js"></script>
<link rel="stylesheet" href="./assets/index-db6cbade.css">
<script type="module" crossorigin src="./assets/index-ac73a25a.js"></script>
<link rel="stylesheet" href="./assets/index-d66e36b8.css">
</head>
<body>
<div id="app"></div>
......
......@@ -15,6 +15,8 @@
"js-cookie": "^3.0.5",
"jweixin-module": "^1.6.0",
"lodash": "^4.17.21",
"pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.1",
"vant": "^4.6.6",
"vconsole": "^3.15.1",
"vue": "^3.3.4",
......@@ -47,10 +49,29 @@
"integrity": "sha512-pvFiLP2BeOKA/ZOS6jxx4XhKzdVLHDhGlFEaZ2flWWYf2xOqVniqpk38I04DFRyz+L0ASggl7SkItTc+ZLju4w==",
"dev": true
},
"node_modules/@babel/helper-string-parser": {
"version": "7.25.9",
"resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",
"integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/helper-validator-identifier": {
"version": "7.25.9",
"resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",
"integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/parser": {
"version": "7.22.13",
"resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.22.13.tgz",
"integrity": "sha512-3l6+4YOvc9wx7VlCSw4yQfcBo01ECA8TicQfbnCPuCEpRQrf+gTUyGdxNw+pyTUyywp6JRD1w0YQs9TpBXYlkw==",
"version": "7.26.10",
"resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.26.10.tgz",
"integrity": "sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA==",
"dependencies": {
"@babel/types": "^7.26.10"
},
"bin": {
"parser": "bin/babel-parser.js"
},
......@@ -69,6 +90,18 @@
"node": ">=6.9.0"
}
},
"node_modules/@babel/types": {
"version": "7.26.10",
"resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.26.10.tgz",
"integrity": "sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==",
"dependencies": {
"@babel/helper-string-parser": "^7.25.9",
"@babel/helper-validator-identifier": "^7.25.9"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@esbuild/android-arm": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.18.20.tgz",
......@@ -471,9 +504,9 @@
}
},
"node_modules/@jridgewell/sourcemap-codec": {
"version": "1.4.15",
"resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg=="
"version": "1.5.0",
"resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
"integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="
},
"node_modules/@jridgewell/trace-mapping": {
"version": "0.3.20",
......@@ -585,111 +618,100 @@
}
},
"node_modules/@vue/compiler-core": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.3.4.tgz",
"integrity": "sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.13.tgz",
"integrity": "sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==",
"dependencies": {
"@babel/parser": "^7.21.3",
"@vue/shared": "3.3.4",
"@babel/parser": "^7.25.3",
"@vue/shared": "3.5.13",
"entities": "^4.5.0",
"estree-walker": "^2.0.2",
"source-map-js": "^1.0.2"
"source-map-js": "^1.2.0"
}
},
"node_modules/@vue/compiler-dom": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz",
"integrity": "sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.13.tgz",
"integrity": "sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==",
"dependencies": {
"@vue/compiler-core": "3.3.4",
"@vue/shared": "3.3.4"
"@vue/compiler-core": "3.5.13",
"@vue/shared": "3.5.13"
}
},
"node_modules/@vue/compiler-sfc": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.3.4.tgz",
"integrity": "sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.13.tgz",
"integrity": "sha512-6VdaljMpD82w6c2749Zhf5T9u5uLBWKnVue6XWxprDobftnletJ8+oel7sexFfM3qIxNmVE7LSFGTpv6obNyaQ==",
"dependencies": {
"@babel/parser": "^7.20.15",
"@vue/compiler-core": "3.3.4",
"@vue/compiler-dom": "3.3.4",
"@vue/compiler-ssr": "3.3.4",
"@vue/reactivity-transform": "3.3.4",
"@vue/shared": "3.3.4",
"@babel/parser": "^7.25.3",
"@vue/compiler-core": "3.5.13",
"@vue/compiler-dom": "3.5.13",
"@vue/compiler-ssr": "3.5.13",
"@vue/shared": "3.5.13",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.0",
"postcss": "^8.1.10",
"source-map-js": "^1.0.2"
"magic-string": "^0.30.11",
"postcss": "^8.4.48",
"source-map-js": "^1.2.0"
}
},
"node_modules/@vue/compiler-ssr": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz",
"integrity": "sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.13.tgz",
"integrity": "sha512-wMH6vrYHxQl/IybKJagqbquvxpWCuVYpoUJfCqFZwa/JY1GdATAQ+TgVtgrwwMZ0D07QhA99rs/EAAWfvG6KpA==",
"dependencies": {
"@vue/compiler-dom": "3.3.4",
"@vue/shared": "3.3.4"
"@vue/compiler-dom": "3.5.13",
"@vue/shared": "3.5.13"
}
},
"node_modules/@vue/devtools-api": {
"version": "6.5.0",
"resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.5.0.tgz",
"integrity": "sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q=="
"version": "6.6.4",
"resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.6.4.tgz",
"integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g=="
},
"node_modules/@vue/reactivity": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.3.4.tgz",
"integrity": "sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.13.tgz",
"integrity": "sha512-NaCwtw8o48B9I6L1zl2p41OHo/2Z4wqYGGIK1Khu5T7yxrn+ATOixn/Udn2m+6kZKB/J7cuT9DbWWhRxqixACg==",
"dependencies": {
"@vue/shared": "3.3.4"
}
},
"node_modules/@vue/reactivity-transform": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/reactivity-transform/-/reactivity-transform-3.3.4.tgz",
"integrity": "sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==",
"dependencies": {
"@babel/parser": "^7.20.15",
"@vue/compiler-core": "3.3.4",
"@vue/shared": "3.3.4",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.0"
"@vue/shared": "3.5.13"
}
},
"node_modules/@vue/runtime-core": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.3.4.tgz",
"integrity": "sha512-R+bqxMN6pWO7zGI4OMlmvePOdP2c93GsHFM/siJI7O2nxFRzj55pLwkpCedEY+bTMgp5miZ8CxfIZo3S+gFqvA==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.13.tgz",
"integrity": "sha512-Fj4YRQ3Az0WTZw1sFe+QDb0aXCerigEpw418pw1HBUKFtnQHWzwojaukAs2X/c9DQz4MQ4bsXTGlcpGxU/RCIw==",
"dependencies": {
"@vue/reactivity": "3.3.4",
"@vue/shared": "3.3.4"
"@vue/reactivity": "3.5.13",
"@vue/shared": "3.5.13"
}
},
"node_modules/@vue/runtime-dom": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.3.4.tgz",
"integrity": "sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.13.tgz",
"integrity": "sha512-dLaj94s93NYLqjLiyFzVs9X6dWhTdAlEAciC3Moq7gzAc13VJUdCnjjRurNM6uTLFATRHexHCTu/Xp3eW6yoog==",
"dependencies": {
"@vue/runtime-core": "3.3.4",
"@vue/shared": "3.3.4",
"csstype": "^3.1.1"
"@vue/reactivity": "3.5.13",
"@vue/runtime-core": "3.5.13",
"@vue/shared": "3.5.13",
"csstype": "^3.1.3"
}
},
"node_modules/@vue/server-renderer": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.3.4.tgz",
"integrity": "sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.13.tgz",
"integrity": "sha512-wAi4IRJV/2SAW3htkTlB+dHeRmpTiVIK1OGLWV1yeStVSebSQQOwGwIq0D3ZIoBj2C2qpgz5+vX9iEBkTdk5YA==",
"dependencies": {
"@vue/compiler-ssr": "3.3.4",
"@vue/shared": "3.3.4"
"@vue/compiler-ssr": "3.5.13",
"@vue/shared": "3.5.13"
},
"peerDependencies": {
"vue": "3.3.4"
"vue": "3.5.13"
}
},
"node_modules/@vue/shared": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.3.4.tgz",
"integrity": "sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ=="
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.13.tgz",
"integrity": "sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ=="
},
"node_modules/acorn": {
"version": "8.10.0",
......@@ -967,9 +989,9 @@
}
},
"node_modules/csstype": {
"version": "3.1.2",
"resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.2.tgz",
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
"version": "3.1.3",
"resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.3.tgz",
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
},
"node_modules/dayjs": {
"version": "1.11.9",
......@@ -1031,6 +1053,17 @@
"integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
"dev": true
},
"node_modules/entities": {
"version": "4.5.0",
"resolved": "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz",
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
"engines": {
"node": ">=0.12"
},
"funding": {
"url": "https://github.com/fb55/entities?sponsor=1"
}
},
"node_modules/errno": {
"version": "0.1.8",
"resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz",
......@@ -1455,14 +1488,11 @@
}
},
"node_modules/magic-string": {
"version": "0.30.3",
"resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.3.tgz",
"integrity": "sha512-B7xGbll2fG/VjP+SWg4sX3JynwIU0mjoTc6MPpKNuIvftk6u6vqhDnk1R80b8C2GBR6ywqy+1DcKBrevBg+bmw==",
"version": "0.30.17",
"resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.17.tgz",
"integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.4.15"
},
"engines": {
"node": ">=12"
"@jridgewell/sourcemap-codec": "^1.5.0"
}
},
"node_modules/make-dir": {
......@@ -1577,9 +1607,15 @@
}
},
"node_modules/nanoid": {
"version": "3.3.7",
"resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.7.tgz",
"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.11.tgz",
"integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"bin": {
"nanoid": "bin/nanoid.cjs"
},
......@@ -1695,9 +1731,9 @@
}
},
"node_modules/picocolors": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.0.0.tgz",
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="
"version": "1.1.1",
"resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz",
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="
},
"node_modules/picomatch": {
"version": "2.3.1",
......@@ -1718,6 +1754,35 @@
"node": ">=6"
}
},
"node_modules/pinia": {
"version": "2.3.1",
"resolved": "https://registry.npmmirror.com/pinia/-/pinia-2.3.1.tgz",
"integrity": "sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug==",
"dependencies": {
"@vue/devtools-api": "^6.6.3",
"vue-demi": "^0.14.10"
},
"funding": {
"url": "https://github.com/sponsors/posva"
},
"peerDependencies": {
"typescript": ">=4.4.4",
"vue": "^2.7.0 || ^3.5.11"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
}
},
"node_modules/pinia-plugin-persistedstate": {
"version": "3.2.3",
"resolved": "https://registry.npmmirror.com/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-3.2.3.tgz",
"integrity": "sha512-Cm819WBj/s5K5DGw55EwbXDtx+EZzM0YR5AZbq9XE3u0xvXwvX2JnWoFpWIcdzISBHqy9H1UiSIUmXyXqWsQRQ==",
"peerDependencies": {
"pinia": "^2.0.0"
}
},
"node_modules/pirates": {
"version": "4.0.6",
"resolved": "https://registry.npmmirror.com/pirates/-/pirates-4.0.6.tgz",
......@@ -1728,13 +1793,27 @@
}
},
"node_modules/postcss": {
"version": "8.4.32",
"resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.32.tgz",
"integrity": "sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==",
"version": "8.5.3",
"resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.3.tgz",
"integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/postcss"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"dependencies": {
"nanoid": "^3.3.7",
"picocolors": "^1.0.0",
"source-map-js": "^1.0.2"
"nanoid": "^3.3.8",
"picocolors": "^1.1.1",
"source-map-js": "^1.2.1"
},
"engines": {
"node": "^10 || ^12 || >=14"
......@@ -2007,9 +2086,9 @@
}
},
"node_modules/source-map-js": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz",
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
"version": "1.2.1",
"resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz",
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
"engines": {
"node": ">=0.10.0"
}
......@@ -2374,15 +2453,23 @@
}
},
"node_modules/vue": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.3.4.tgz",
"integrity": "sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.13.tgz",
"integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==",
"dependencies": {
"@vue/compiler-dom": "3.3.4",
"@vue/compiler-sfc": "3.3.4",
"@vue/runtime-dom": "3.3.4",
"@vue/server-renderer": "3.3.4",
"@vue/shared": "3.3.4"
"@vue/compiler-dom": "3.5.13",
"@vue/compiler-sfc": "3.5.13",
"@vue/runtime-dom": "3.5.13",
"@vue/server-renderer": "3.5.13",
"@vue/shared": "3.5.13"
},
"peerDependencies": {
"typescript": "*"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
}
},
"node_modules/vue-cookies": {
......@@ -2390,6 +2477,31 @@
"resolved": "https://registry.npmmirror.com/vue-cookies/-/vue-cookies-1.8.3.tgz",
"integrity": "sha512-VBRsyRMVdahBgFfh389TMHPmDdr4URDJNMk4FKSCfuNITs7+jitBDhwyL4RJd3WUsfOYNNjPAkfbehyH9AFuoA=="
},
"node_modules/vue-demi": {
"version": "0.14.10",
"resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz",
"integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==",
"hasInstallScript": true,
"bin": {
"vue-demi-fix": "bin/vue-demi-fix.js",
"vue-demi-switch": "bin/vue-demi-switch.js"
},
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/antfu"
},
"peerDependencies": {
"@vue/composition-api": "^1.0.0-rc.1",
"vue": "^3.0.0-0 || ^2.6.0"
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
}
}
},
"node_modules/vue-router": {
"version": "4.2.4",
"resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.2.4.tgz",
......@@ -2541,10 +2653,23 @@
"integrity": "sha512-pvFiLP2BeOKA/ZOS6jxx4XhKzdVLHDhGlFEaZ2flWWYf2xOqVniqpk38I04DFRyz+L0ASggl7SkItTc+ZLju4w==",
"dev": true
},
"@babel/helper-string-parser": {
"version": "7.25.9",
"resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",
"integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA=="
},
"@babel/helper-validator-identifier": {
"version": "7.25.9",
"resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",
"integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ=="
},
"@babel/parser": {
"version": "7.22.13",
"resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.22.13.tgz",
"integrity": "sha512-3l6+4YOvc9wx7VlCSw4yQfcBo01ECA8TicQfbnCPuCEpRQrf+gTUyGdxNw+pyTUyywp6JRD1w0YQs9TpBXYlkw=="
"version": "7.26.10",
"resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.26.10.tgz",
"integrity": "sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA==",
"requires": {
"@babel/types": "^7.26.10"
}
},
"@babel/runtime": {
"version": "7.23.2",
......@@ -2554,6 +2679,15 @@
"regenerator-runtime": "^0.14.0"
}
},
"@babel/types": {
"version": "7.26.10",
"resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.26.10.tgz",
"integrity": "sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==",
"requires": {
"@babel/helper-string-parser": "^7.25.9",
"@babel/helper-validator-identifier": "^7.25.9"
}
},
"@esbuild/android-arm": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.18.20.tgz",
......@@ -2746,9 +2880,9 @@
"dev": true
},
"@jridgewell/sourcemap-codec": {
"version": "1.4.15",
"resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg=="
"version": "1.5.0",
"resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
"integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="
},
"@jridgewell/trace-mapping": {
"version": "0.3.20",
......@@ -2829,108 +2963,97 @@
"requires": {}
},
"@vue/compiler-core": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.3.4.tgz",
"integrity": "sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.13.tgz",
"integrity": "sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==",
"requires": {
"@babel/parser": "^7.21.3",
"@vue/shared": "3.3.4",
"@babel/parser": "^7.25.3",
"@vue/shared": "3.5.13",
"entities": "^4.5.0",
"estree-walker": "^2.0.2",
"source-map-js": "^1.0.2"
"source-map-js": "^1.2.0"
}
},
"@vue/compiler-dom": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz",
"integrity": "sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.13.tgz",
"integrity": "sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==",
"requires": {
"@vue/compiler-core": "3.3.4",
"@vue/shared": "3.3.4"
"@vue/compiler-core": "3.5.13",
"@vue/shared": "3.5.13"
}
},
"@vue/compiler-sfc": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.3.4.tgz",
"integrity": "sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.13.tgz",
"integrity": "sha512-6VdaljMpD82w6c2749Zhf5T9u5uLBWKnVue6XWxprDobftnletJ8+oel7sexFfM3qIxNmVE7LSFGTpv6obNyaQ==",
"requires": {
"@babel/parser": "^7.20.15",
"@vue/compiler-core": "3.3.4",
"@vue/compiler-dom": "3.3.4",
"@vue/compiler-ssr": "3.3.4",
"@vue/reactivity-transform": "3.3.4",
"@vue/shared": "3.3.4",
"@babel/parser": "^7.25.3",
"@vue/compiler-core": "3.5.13",
"@vue/compiler-dom": "3.5.13",
"@vue/compiler-ssr": "3.5.13",
"@vue/shared": "3.5.13",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.0",
"postcss": "^8.1.10",
"source-map-js": "^1.0.2"
"magic-string": "^0.30.11",
"postcss": "^8.4.48",
"source-map-js": "^1.2.0"
}
},
"@vue/compiler-ssr": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz",
"integrity": "sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.13.tgz",
"integrity": "sha512-wMH6vrYHxQl/IybKJagqbquvxpWCuVYpoUJfCqFZwa/JY1GdATAQ+TgVtgrwwMZ0D07QhA99rs/EAAWfvG6KpA==",
"requires": {
"@vue/compiler-dom": "3.3.4",
"@vue/shared": "3.3.4"
"@vue/compiler-dom": "3.5.13",
"@vue/shared": "3.5.13"
}
},
"@vue/devtools-api": {
"version": "6.5.0",
"resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.5.0.tgz",
"integrity": "sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q=="
"version": "6.6.4",
"resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.6.4.tgz",
"integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g=="
},
"@vue/reactivity": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.3.4.tgz",
"integrity": "sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.13.tgz",
"integrity": "sha512-NaCwtw8o48B9I6L1zl2p41OHo/2Z4wqYGGIK1Khu5T7yxrn+ATOixn/Udn2m+6kZKB/J7cuT9DbWWhRxqixACg==",
"requires": {
"@vue/shared": "3.3.4"
}
},
"@vue/reactivity-transform": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/reactivity-transform/-/reactivity-transform-3.3.4.tgz",
"integrity": "sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==",
"requires": {
"@babel/parser": "^7.20.15",
"@vue/compiler-core": "3.3.4",
"@vue/shared": "3.3.4",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.0"
"@vue/shared": "3.5.13"
}
},
"@vue/runtime-core": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.3.4.tgz",
"integrity": "sha512-R+bqxMN6pWO7zGI4OMlmvePOdP2c93GsHFM/siJI7O2nxFRzj55pLwkpCedEY+bTMgp5miZ8CxfIZo3S+gFqvA==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.13.tgz",
"integrity": "sha512-Fj4YRQ3Az0WTZw1sFe+QDb0aXCerigEpw418pw1HBUKFtnQHWzwojaukAs2X/c9DQz4MQ4bsXTGlcpGxU/RCIw==",
"requires": {
"@vue/reactivity": "3.3.4",
"@vue/shared": "3.3.4"
"@vue/reactivity": "3.5.13",
"@vue/shared": "3.5.13"
}
},
"@vue/runtime-dom": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.3.4.tgz",
"integrity": "sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.13.tgz",
"integrity": "sha512-dLaj94s93NYLqjLiyFzVs9X6dWhTdAlEAciC3Moq7gzAc13VJUdCnjjRurNM6uTLFATRHexHCTu/Xp3eW6yoog==",
"requires": {
"@vue/runtime-core": "3.3.4",
"@vue/shared": "3.3.4",
"csstype": "^3.1.1"
"@vue/reactivity": "3.5.13",
"@vue/runtime-core": "3.5.13",
"@vue/shared": "3.5.13",
"csstype": "^3.1.3"
}
},
"@vue/server-renderer": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.3.4.tgz",
"integrity": "sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.13.tgz",
"integrity": "sha512-wAi4IRJV/2SAW3htkTlB+dHeRmpTiVIK1OGLWV1yeStVSebSQQOwGwIq0D3ZIoBj2C2qpgz5+vX9iEBkTdk5YA==",
"requires": {
"@vue/compiler-ssr": "3.3.4",
"@vue/shared": "3.3.4"
"@vue/compiler-ssr": "3.5.13",
"@vue/shared": "3.5.13"
}
},
"@vue/shared": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.3.4.tgz",
"integrity": "sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ=="
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.13.tgz",
"integrity": "sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ=="
},
"acorn": {
"version": "8.10.0",
......@@ -3142,9 +3265,9 @@
"dev": true
},
"csstype": {
"version": "3.1.2",
"resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.2.tgz",
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
"version": "3.1.3",
"resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.3.tgz",
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
},
"dayjs": {
"version": "1.11.9",
......@@ -3195,6 +3318,11 @@
"integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
"dev": true
},
"entities": {
"version": "4.5.0",
"resolved": "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz",
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="
},
"errno": {
"version": "0.1.8",
"resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz",
......@@ -3512,11 +3640,11 @@
"dev": true
},
"magic-string": {
"version": "0.30.3",
"resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.3.tgz",
"integrity": "sha512-B7xGbll2fG/VjP+SWg4sX3JynwIU0mjoTc6MPpKNuIvftk6u6vqhDnk1R80b8C2GBR6ywqy+1DcKBrevBg+bmw==",
"version": "0.30.17",
"resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.17.tgz",
"integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==",
"requires": {
"@jridgewell/sourcemap-codec": "^1.4.15"
"@jridgewell/sourcemap-codec": "^1.5.0"
}
},
"make-dir": {
......@@ -3604,9 +3732,9 @@
}
},
"nanoid": {
"version": "3.3.7",
"resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.7.tgz",
"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g=="
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.11.tgz",
"integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="
},
"needle": {
"version": "3.2.0",
......@@ -3691,9 +3819,9 @@
}
},
"picocolors": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.0.0.tgz",
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="
"version": "1.1.1",
"resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz",
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="
},
"picomatch": {
"version": "2.3.1",
......@@ -3708,6 +3836,21 @@
"dev": true,
"optional": true
},
"pinia": {
"version": "2.3.1",
"resolved": "https://registry.npmmirror.com/pinia/-/pinia-2.3.1.tgz",
"integrity": "sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug==",
"requires": {
"@vue/devtools-api": "^6.6.3",
"vue-demi": "^0.14.10"
}
},
"pinia-plugin-persistedstate": {
"version": "3.2.3",
"resolved": "https://registry.npmmirror.com/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-3.2.3.tgz",
"integrity": "sha512-Cm819WBj/s5K5DGw55EwbXDtx+EZzM0YR5AZbq9XE3u0xvXwvX2JnWoFpWIcdzISBHqy9H1UiSIUmXyXqWsQRQ==",
"requires": {}
},
"pirates": {
"version": "4.0.6",
"resolved": "https://registry.npmmirror.com/pirates/-/pirates-4.0.6.tgz",
......@@ -3715,13 +3858,13 @@
"dev": true
},
"postcss": {
"version": "8.4.32",
"resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.32.tgz",
"integrity": "sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==",
"version": "8.5.3",
"resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.3.tgz",
"integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==",
"requires": {
"nanoid": "^3.3.7",
"picocolors": "^1.0.0",
"source-map-js": "^1.0.2"
"nanoid": "^3.3.8",
"picocolors": "^1.1.1",
"source-map-js": "^1.2.1"
}
},
"postcss-import": {
......@@ -3921,9 +4064,9 @@
"optional": true
},
"source-map-js": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz",
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw=="
"version": "1.2.1",
"resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz",
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="
},
"string-width": {
"version": "5.1.2",
......@@ -4177,15 +4320,15 @@
}
},
"vue": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.3.4.tgz",
"integrity": "sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==",
"version": "3.5.13",
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.13.tgz",
"integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==",
"requires": {
"@vue/compiler-dom": "3.3.4",
"@vue/compiler-sfc": "3.3.4",
"@vue/runtime-dom": "3.3.4",
"@vue/server-renderer": "3.3.4",
"@vue/shared": "3.3.4"
"@vue/compiler-dom": "3.5.13",
"@vue/compiler-sfc": "3.5.13",
"@vue/runtime-dom": "3.5.13",
"@vue/server-renderer": "3.5.13",
"@vue/shared": "3.5.13"
}
},
"vue-cookies": {
......@@ -4193,6 +4336,12 @@
"resolved": "https://registry.npmmirror.com/vue-cookies/-/vue-cookies-1.8.3.tgz",
"integrity": "sha512-VBRsyRMVdahBgFfh389TMHPmDdr4URDJNMk4FKSCfuNITs7+jitBDhwyL4RJd3WUsfOYNNjPAkfbehyH9AFuoA=="
},
"vue-demi": {
"version": "0.14.10",
"resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz",
"integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==",
"requires": {}
},
"vue-router": {
"version": "4.2.4",
"resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.2.4.tgz",
......
import { type AxiosRequestConfig } from "axios";
/**
* 删除考勤
* /api/Attendance/AttendanceDel
*/
export declare function getApiAttendanceAttendanceDel(params: GetApiAttendanceAttendanceDelParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiAttendanceAttendanceDelParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 删除考勤
* /api/Attendance/AttendanceDel
*/
export function getApiAttendanceAttendanceDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/Attendance/AttendanceDel`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取考勤列表
* /api/Attendance/GetAttendanceList
*/
export declare function getApiAttendanceGetAttendanceList(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
attendanceid: string;
title: string;
address: string;
latitude: string;
longitude: string;
offset: number;
accuracy: number;
createtime: string;
}[];
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取考勤列表
* /api/Attendance/GetAttendanceList
*/
export function getApiAttendanceGetAttendanceList(config) {
return request.get(`/api/Attendance/GetAttendanceList`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取考勤时间
* /api/Attendance/GetSignTime
*/
export declare function getApiAttendanceGetSignTime(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
signtimeid: string;
advance_minute: number;
};
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取考勤时间
* /api/Attendance/GetSignTime
*/
export function getApiAttendanceGetSignTime(config) {
return request.get(`/api/Attendance/GetSignTime`, config);
}
export * from "./getApiAttendanceGetAttendanceList";
export * from "./postApiAttendanceAttendanceSave";
export * from "./getApiAttendanceAttendanceDel";
export * from "./getApiAttendanceGetSignTime";
export * from "./postApiAttendanceGetSignTimeSave";
export * from "./postApiAttendanceImageUpLoad";
export * from "./postApiAttendanceAttendanceSubmit";
export * from "./getApiAttendanceGetAttendanceList";
export * from "./postApiAttendanceAttendanceSave";
export * from "./getApiAttendanceAttendanceDel";
export * from "./getApiAttendanceGetSignTime";
export * from "./postApiAttendanceGetSignTimeSave";
export * from "./postApiAttendanceImageUpLoad";
export * from "./postApiAttendanceAttendanceSubmit";
import { type AxiosRequestConfig } from "axios";
import { type Attendance } from "../../interface";
/**
* 保存考勤
* /api/Attendance/AttendanceSave
*/
export declare function postApiAttendanceAttendanceSave(input?: Attendance, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 保存考勤
* /api/Attendance/AttendanceSave
*/
export function postApiAttendanceAttendanceSave(input, config) {
return request.post(`/api/Attendance/AttendanceSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type AttendanceRequests } from "../../interface";
/**
* 考勤打卡
* /api/Attendance/AttendanceSubmit
*/
export declare function postApiAttendanceAttendanceSubmit(input?: AttendanceRequests, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 考勤打卡
* /api/Attendance/AttendanceSubmit
*/
export function postApiAttendanceAttendanceSubmit(input, config) {
return request.post(`/api/Attendance/AttendanceSubmit`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type SignTime } from "../../interface";
/**
* 保存考勤时间
* /api/Attendance/GetSignTimeSave
*/
export declare function postApiAttendanceGetSignTimeSave(input?: SignTime, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 保存考勤时间
* /api/Attendance/GetSignTimeSave
*/
export function postApiAttendanceGetSignTimeSave(input, config) {
return request.post(`/api/Attendance/GetSignTimeSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 照片上传
* /api/Attendance/ImageUpLoad
*/
export declare function postApiAttendanceImageUpLoad(input?: PostApiAttendanceImageUpLoadInput, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
fileName: string;
fileNewName: string;
fileExtension: string;
filePath: string;
fileSize: number;
};
}, any>>;
export interface PostApiAttendanceImageUpLoadInput {
/** 时间 */
time?: string;
/** 日期 */
date?: string;
/** 地点 */
address?: string;
/** 照片 */
file: File;
}
import request from "../../../../util/axios.js";
/**
* 照片上传
* /api/Attendance/ImageUpLoad
*/
export function postApiAttendanceImageUpLoad(input, config) {
return request.post(`/api/Attendance/ImageUpLoad`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除校区
* /api/Campus/api/Campus/CampusDel
*/
export declare function getApiCampusApiCampusCampusDel(params: GetApiCampusApiCampusCampusDelParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiCampusApiCampusCampusDelParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 删除校区
* /api/Campus/api/Campus/CampusDel
*/
export function getApiCampusApiCampusCampusDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/Campus/api/Campus/CampusDel`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取校区详细
* /api/Campus/api/Campus/GetCampusInfo
*/
export declare function getApiCampusApiCampusGetCampusInfo(params: GetApiCampusApiCampusGetCampusInfoParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
campusid: string;
campusname: string;
createtime: string;
};
}, any>>;
export interface GetApiCampusApiCampusGetCampusInfoParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 获取校区详细
* /api/Campus/api/Campus/GetCampusInfo
*/
export function getApiCampusApiCampusGetCampusInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/Campus/api/Campus/GetCampusInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取校区列表
* /api/Campus/api/Campus/GetCampusList
*/
export declare function getApiCampusApiCampusGetCampusList(params: GetApiCampusApiCampusGetCampusListParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
campusid: string;
campusname: string;
createtime: string;
}[];
query: {
[x: string]: any;
};
};
}, any>>;
export interface GetApiCampusApiCampusGetCampusListParams {
name?: string;
page_index?: number;
page_size?: number;
}
import request from "../../../../util/axios.js";
/**
* 获取校区列表
* /api/Campus/api/Campus/GetCampusList
*/
export function getApiCampusApiCampusGetCampusList(params, config) {
const paramsInput = {
name: params.name,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/Campus/api/Campus/GetCampusList`, {
params: paramsInput,
...config,
});
}
export * from "./getApiCampusApiCampusGetCampusList";
export * from "./getApiCampusApiCampusGetCampusInfo";
export * from "./postApiCampusApiCampusCampusSave";
export * from "./getApiCampusApiCampusCampusDel";
export * from "./getApiCampusApiCampusGetCampusList";
export * from "./getApiCampusApiCampusGetCampusInfo";
export * from "./postApiCampusApiCampusCampusSave";
export * from "./getApiCampusApiCampusCampusDel";
import { type AxiosRequestConfig } from "axios";
import { type Campus } from "../../interface";
/**
* 保存校区
* /api/Campus/api/Campus/CampusSave
*/
export declare function postApiCampusApiCampusCampusSave(input?: Campus, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 保存校区
* /api/Campus/api/Campus/CampusSave
*/
export function postApiCampusApiCampusCampusSave(input, config) {
return request.post(`/api/Campus/api/Campus/CampusSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 IRepository 层文件
* /api/DbFirst/GetIRepositoryFiles
*/
export declare function getApiDbFirstGetIRepositoryFiles(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "../../../../util/axios.js";
/**
* 获取 IRepository 层文件
* /api/DbFirst/GetIRepositoryFiles
*/
export function getApiDbFirstGetIRepositoryFiles(config) {
return request.get(`/api/DbFirst/GetIRepositoryFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 IService 层文件
* /api/DbFirst/GetIServiceFiles
*/
export declare function getApiDbFirstGetIServiceFiles(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "../../../../util/axios.js";
/**
* 获取 IService 层文件
* /api/DbFirst/GetIServiceFiles
*/
export function getApiDbFirstGetIServiceFiles(config) {
return request.get(`/api/DbFirst/GetIServiceFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 Model 层文件
* /api/DbFirst/GetModelFiles
*/
export declare function getApiDbFirstGetModelFiles(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "../../../../util/axios.js";
/**
* 获取 Model 层文件
* /api/DbFirst/GetModelFiles
*/
export function getApiDbFirstGetModelFiles(config) {
return request.get(`/api/DbFirst/GetModelFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 Repository 层文件
* /api/DbFirst/GetRepositoryFiles
*/
export declare function getApiDbFirstGetRepositoryFiles(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "../../../../util/axios.js";
/**
* 获取 Repository 层文件
* /api/DbFirst/GetRepositoryFiles
*/
export function getApiDbFirstGetRepositoryFiles(config) {
return request.get(`/api/DbFirst/GetRepositoryFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 Services 层文件
* /api/DbFirst/GetServicesFiles
*/
export declare function getApiDbFirstGetServicesFiles(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "../../../../util/axios.js";
/**
* 获取 Services 层文件
* /api/DbFirst/GetServicesFiles
*/
export function getApiDbFirstGetServicesFiles(config) {
return request.get(`/api/DbFirst/GetServicesFiles`, config);
}
export * from "./postApiDbFirstGetFrameFiles";
export * from "./getApiDbFirstGetModelFiles";
export * from "./getApiDbFirstGetIRepositoryFiles";
export * from "./getApiDbFirstGetIServiceFiles";
export * from "./getApiDbFirstGetRepositoryFiles";
export * from "./getApiDbFirstGetServicesFiles";
export * from "./postApiDbFirstGetFrameFiles";
export * from "./getApiDbFirstGetModelFiles";
export * from "./getApiDbFirstGetIRepositoryFiles";
export * from "./getApiDbFirstGetIServiceFiles";
export * from "./getApiDbFirstGetRepositoryFiles";
export * from "./getApiDbFirstGetServicesFiles";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 整体框架 文件
* /api/DbFirst/GetFrameFiles
*/
export declare function postApiDbFirstGetFrameFiles(input?: string[], config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "../../../../util/axios.js";
/**
* 获取 整体框架 文件
* /api/DbFirst/GetFrameFiles
*/
export function postApiDbFirstGetFrameFiles(input, config) {
return request.post(`/api/DbFirst/GetFrameFiles`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 修改换班配置
* /api/DutyConfig/ChangeModeConfigSave
*/
export declare function getApiDutyConfigChangeModeConfigSave(params: GetApiDutyConfigChangeModeConfigSaveParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiDutyConfigChangeModeConfigSaveParams {
value: string;
}
import request from "../../../../util/axios.js";
/**
* 修改换班配置
* /api/DutyConfig/ChangeModeConfigSave
*/
export function getApiDutyConfigChangeModeConfigSave(params, config) {
const paramsInput = {
value: params.value,
};
return request.get(`/api/DutyConfig/ChangeModeConfigSave`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取换班方式配置
* /api/DutyConfig/GetChangeModeConfig
*/
export declare function getApiDutyConfigGetChangeModeConfig(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取换班方式配置
* /api/DutyConfig/GetChangeModeConfig
*/
export function getApiDutyConfigGetChangeModeConfig(config) {
return request.get(`/api/DutyConfig/GetChangeModeConfig`, config);
}
export * from "./getApiDutyConfigGetChangeModeConfig";
export * from "./getApiDutyConfigChangeModeConfigSave";
export * from "./getApiDutyConfigGetChangeModeConfig";
export * from "./getApiDutyConfigChangeModeConfigSave";
import { type AxiosRequestConfig } from "axios";
/**
* 获取所有接口日志记录
* /api/Log/api/Log/GetLogAll
*/
export declare function getApiLogApiLogGetLogAll(params: GetApiLogApiLogGetLogAllParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
id: string;
module: string;
type: string;
ip: string;
api: string;
method: string;
request: string;
response: string;
user_id: string;
user_name: string;
code: number;
error_msg: string;
createtime: string;
spend_time: number;
};
}[];
query: {
[x: string]: any;
};
}, any>>;
export interface GetApiLogApiLogGetLogAllParams {
key_name?: string;
begin_time?: string;
end_time?: string;
page_index?: number;
page_size?: number;
}
import request from "../../../../util/axios.js";
/**
* 获取所有接口日志记录
* /api/Log/api/Log/GetLogAll
*/
export function getApiLogApiLogGetLogAll(params, config) {
const paramsInput = {
key_name: params.key_name,
begin_time: params.begin_time,
end_time: params.end_time,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/Log/api/Log/GetLogAll`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班日志
* /api/Log/api/Log/GetWatchLogList
*/
export declare function getApiLogApiLogGetWatchLogList(params: GetApiLogApiLogGetWatchLogListParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
watchlogid: string;
card_name: string;
name: string;
remark: string;
createtime: string;
file_link: string;
address: string;
sign: number;
sign_id: string;
address_locatioin: string;
};
}[];
query: {
[x: string]: any;
};
}, any>>;
export interface GetApiLogApiLogGetWatchLogListParams {
name?: string;
page_index?: number;
page_size?: number;
}
import request from "../../../../util/axios.js";
/**
* 获取值班日志
* /api/Log/api/Log/GetWatchLogList
*/
export function getApiLogApiLogGetWatchLogList(params, config) {
const paramsInput = {
name: params.name,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/Log/api/Log/GetWatchLogList`, {
params: paramsInput,
...config,
});
}
export * from "./getApiLogApiLogGetLogAll";
export * from "./getApiLogApiLogGetWatchLogList";
export * from "./getApiLogApiLogGetLogAll";
export * from "./getApiLogApiLogGetWatchLogList";
import { type AxiosRequestConfig } from "axios";
/**
* 生成token --测试
* /api/Login/api/Login/CheckLoginTest
*/
export declare function getApiLoginApiLoginCheckLoginTest(params: GetApiLoginApiLoginCheckLoginTestParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
accessToken: {
tokenContent: string;
expires: string;
};
refreshToken: {
tokenContent: string;
expires: string;
};
};
}, any>>;
export interface GetApiLoginApiLoginCheckLoginTestParams {
name?: string;
}
import request from "../../../../util/axios.js";
/**
* 生成token --测试
* /api/Login/api/Login/CheckLoginTest
*/
export function getApiLoginApiLoginCheckLoginTest(params, config) {
const paramsInput = {
name: params.name,
};
return request.get(`/api/Login/api/Login/CheckLoginTest`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 解析token
* /api/Login/api/Login/GetTokenInfo
*/
export declare function getApiLoginApiLoginGetTokenInfo(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
cardNumber: string;
name: string;
role: string[];
admin_dept: string;
admin_dept_id: string;
};
}, any>>;
import request from "../../../../util/axios.js";
/**
* 解析token
* /api/Login/api/Login/GetTokenInfo
*/
export function getApiLoginApiLoginGetTokenInfo(config) {
return request.get(`/api/Login/api/Login/GetTokenInfo`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* token刷新
* /api/Login/api/Login/RefreshToken
*/
export declare function getApiLoginApiLoginRefreshToken(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
tokenContent: string;
expires: string;
};
}, any>>;
import request from "../../../../util/axios.js";
/**
* token刷新
* /api/Login/api/Login/RefreshToken
*/
export function getApiLoginApiLoginRefreshToken(config) {
return request.get(`/api/Login/api/Login/RefreshToken`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 新版移动端单点
* /api/Login/api/Login/SSONewWX
*/
export declare function getApiLoginApiLoginSsoNewWx(params: GetApiLoginApiLoginSsoNewWxParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
accessToken: {
tokenContent: string;
expires: string;
};
refreshToken: {
tokenContent: string;
expires: string;
};
};
}, any>>;
export interface GetApiLoginApiLoginSsoNewWxParams {
token: string;
}
import request from "../../../../util/axios.js";
/**
* 新版移动端单点
* /api/Login/api/Login/SSONewWX
*/
export function getApiLoginApiLoginSsoNewWx(params, config) {
const paramsInput = {
token: params.token,
};
return request.get(`/api/Login/api/Login/SSONewWX`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* PC单点
* /api/Login/api/Login/SSOPC
*/
export declare function getApiLoginApiLoginSsopc(params: GetApiLoginApiLoginSsopcParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
accessToken: {
tokenContent: string;
expires: string;
};
refreshToken: {
tokenContent: string;
expires: string;
};
};
}, any>>;
export interface GetApiLoginApiLoginSsopcParams {
token: string;
}
import request from "../../../../util/axios.js";
/**
* PC单点
* /api/Login/api/Login/SSOPC
*/
export function getApiLoginApiLoginSsopc(params, config) {
const paramsInput = {
token: params.token,
};
return request.get(`/api/Login/api/Login/SSOPC`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 微信单点
* /api/Login/api/Login/SSOPCWX
*/
export declare function getApiLoginApiLoginSsopcwx(params: GetApiLoginApiLoginSsopcwxParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
accessToken: {
tokenContent: string;
expires: string;
};
refreshToken: {
tokenContent: string;
expires: string;
};
};
}, any>>;
export interface GetApiLoginApiLoginSsopcwxParams {
code: string;
sign: string;
timestamp: string;
}
import request from "../../../../util/axios.js";
/**
* 微信单点
* /api/Login/api/Login/SSOPCWX
*/
export function getApiLoginApiLoginSsopcwx(params, config) {
const paramsInput = {
code: params.code,
sign: params.sign,
timestamp: params.timestamp,
};
return request.get(`/api/Login/api/Login/SSOPCWX`, {
params: paramsInput,
...config,
});
}
export * from "./getApiLoginApiLoginCheckLoginTest";
export * from "./getApiLoginApiLoginSsopc";
export * from "./getApiLoginApiLoginSsoNewWx";
export * from "./getApiLoginApiLoginSsopcwx";
export * from "./getApiLoginApiLoginRefreshToken";
export * from "./getApiLoginApiLoginGetTokenInfo";
export * from "./getApiLoginApiLoginCheckLoginTest";
export * from "./getApiLoginApiLoginSsopc";
export * from "./getApiLoginApiLoginSsoNewWx";
export * from "./getApiLoginApiLoginSsopcwx";
export * from "./getApiLoginApiLoginRefreshToken";
export * from "./getApiLoginApiLoginGetTokenInfo";
import { type AxiosRequestConfig } from "axios";
/**
* 获取消息日志列表
* /api/Message/api/Message/GetMessageList
*/
export declare function getApiMessageApiMessageGetMessageList(params: GetApiMessageApiMessageGetMessageListParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
msgid: string;
messageinfo: string;
send_time: string;
createtime: string;
reception_user_id: string;
reception_man: string;
reception_num: string;
send_state: number;
is_succeed: number;
meg_link: string;
remark: string;
watchid: string;
};
}[];
query: {
[x: string]: any;
};
}, any>>;
export interface GetApiMessageApiMessageGetMessageListParams {
reception_man?: string;
begin_time?: string;
end_time?: string;
/** 发送状态 0-未发送,1-已发送 */
send_state?: string;
/** 是否成功 1-失败,2-成功 */
is_succeed?: string;
page_index?: number;
page_size?: number;
}
import request from "../../../../util/axios.js";
/**
* 获取消息日志列表
* /api/Message/api/Message/GetMessageList
*/
export function getApiMessageApiMessageGetMessageList(params, config) {
const paramsInput = {
reception_man: params.reception_man,
begin_time: params.begin_time,
end_time: params.end_time,
send_state: params.send_state,
is_succeed: params.is_succeed,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/Message/api/Message/GetMessageList`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 重发
* /api/Message/api/Message/Messageretry
*/
export declare function getApiMessageApiMessageMessageretry(params: GetApiMessageApiMessageMessageretryParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiMessageApiMessageMessageretryParams {
megid?: string;
}
import request from "../../../../util/axios.js";
/**
* 重发
* /api/Message/api/Message/Messageretry
*/
export function getApiMessageApiMessageMessageretry(params, config) {
const paramsInput = {
megid: params.megid,
};
return request.get(`/api/Message/api/Message/Messageretry`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* /api/Message/api/Message/SendTest
*/
export declare function getApiMessageApiMessageSendTest(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* /api/Message/api/Message/SendTest
*/
export function getApiMessageApiMessageSendTest(config) {
return request.get(`/api/Message/api/Message/SendTest`, config);
}
export * from "./getApiMessageApiMessageGetMessageList";
export * from "./getApiMessageApiMessageMessageretry";
export * from "./getApiMessageApiMessageSendTest";
export * from "./getApiMessageApiMessageGetMessageList";
export * from "./getApiMessageApiMessageMessageretry";
export * from "./getApiMessageApiMessageSendTest";
import { type AxiosRequestConfig } from "axios";
/**
* 获取当前消息提醒配置
* /api/MessageConfig/api/MessageConfig/GetMessageConfigInfo
*/
export declare function getApiMessageConfigApiMessageConfigGetMessageConfigInfo(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
megconfigid: string;
advance_day: number;
remind_time: string;
createtime: string;
time_task_id: string;
};
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取当前消息提醒配置
* /api/MessageConfig/api/MessageConfig/GetMessageConfigInfo
*/
export function getApiMessageConfigApiMessageConfigGetMessageConfigInfo(config) {
return request.get(`/api/MessageConfig/api/MessageConfig/GetMessageConfigInfo`, config);
}
export * from "./getApiMessageConfigApiMessageConfigGetMessageConfigInfo";
export * from "./postApiMessageConfigApiMessageConfigGetMessageConfigSave";
export * from "./getApiMessageConfigApiMessageConfigGetMessageConfigInfo";
export * from "./postApiMessageConfigApiMessageConfigGetMessageConfigSave";
import { type AxiosRequestConfig } from "axios";
import { type MessageConfig } from "../../interface";
/**
* 保存消息提醒配置
* /api/MessageConfig/api/MessageConfig/GetMessageConfigSave
*/
export declare function postApiMessageConfigApiMessageConfigGetMessageConfigSave(input?: MessageConfig, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 保存消息提醒配置
* /api/MessageConfig/api/MessageConfig/GetMessageConfigSave
*/
export function postApiMessageConfigApiMessageConfigGetMessageConfigSave(input, config) {
return request.post(`/api/MessageConfig/api/MessageConfig/GetMessageConfigSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 领导日志初始化
* /api/SignRecord/api/SignRecord/LeadLogInit
*/
export declare function getApiSignRecordApiSignRecordLeadLogInit(params: GetApiSignRecordApiSignRecordLeadLogInitParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiSignRecordApiSignRecordLeadLogInitParams {
signid?: string;
}
import request from "../../../../util/axios.js";
/**
* 领导日志初始化
* /api/SignRecord/api/SignRecord/LeadLogInit
*/
export function getApiSignRecordApiSignRecordLeadLogInit(params, config) {
const paramsInput = {
signid: params.signid,
};
return request.get(`/api/SignRecord/api/SignRecord/LeadLogInit`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 设置是否需要签到签退
* /api/SignRecord/api/SignRecord/SignSetSave
*/
export declare function getApiSignRecordApiSignRecordSignSetSave(params: GetApiSignRecordApiSignRecordSignSetSaveParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiSignRecordApiSignRecordSignSetSaveParams {
signid?: string;
sign_set?: number;
}
import request from "../../../../util/axios.js";
/**
* 设置是否需要签到签退
* /api/SignRecord/api/SignRecord/SignSetSave
*/
export function getApiSignRecordApiSignRecordSignSetSave(params, config) {
const paramsInput = {
signid: params.signid,
sign_set: params.sign_set,
};
return request.get(`/api/SignRecord/api/SignRecord/SignSetSave`, {
params: paramsInput,
...config,
});
}
export * from "./postApiSignRecordApiSignRecordGetSignRecordList";
export * from "./postApiSignRecordApiSignRecordSignDataExport";
export * from "./postApiSignRecordApiSignRecordSignInOrOut";
export * from "./getApiSignRecordApiSignRecordSignSetSave";
export * from "./postApiSignRecordApiSignRecordSignLogSave";
export * from "./getApiSignRecordApiSignRecordLeadLogInit";
export * from "./postApiSignRecordApiSignRecordGetSignRecordList";
export * from "./postApiSignRecordApiSignRecordSignDataExport";
export * from "./postApiSignRecordApiSignRecordSignInOrOut";
export * from "./getApiSignRecordApiSignRecordSignSetSave";
export * from "./postApiSignRecordApiSignRecordSignLogSave";
export * from "./getApiSignRecordApiSignRecordLeadLogInit";
import { type AxiosRequestConfig } from "axios";
import { type SignRecordRequests } from "../../interface";
/**
* 获取签到列表
* /api/SignRecord/api/SignRecord/GetSignRecordList
*/
export declare function postApiSignRecordApiSignRecordGetSignRecordList(input?: SignRecordRequests, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
signid: string;
card_name: string;
username: string;
content: string;
watch_date: string;
watch_hour_time: string;
watch_hour_id: string;
sign: number;
sign_set: number;
mobile: string;
createtime: string;
watchtypeid: string;
watchtypename: string;
campusid: string;
campusname: string;
sign_in_time: string;
sign_out_time: string;
sign_type: number;
is_lead: number;
watch_id: string;
is_del: number;
dept: string;
watch_remark: string;
}[];
query: {
[x: string]: any;
};
};
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取签到列表
* /api/SignRecord/api/SignRecord/GetSignRecordList
*/
export function postApiSignRecordApiSignRecordGetSignRecordList(input, config) {
return request.post(`/api/SignRecord/api/SignRecord/GetSignRecordList`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type SignRecordRequests } from "../../interface";
/**
* 导出签到信息
* /api/SignRecord/api/SignRecord/SignDataExport
*/
export declare function postApiSignRecordApiSignRecordSignDataExport(input?: SignRecordRequests, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 导出签到信息
* /api/SignRecord/api/SignRecord/SignDataExport
*/
export function postApiSignRecordApiSignRecordSignDataExport(input, config) {
return request.post(`/api/SignRecord/api/SignRecord/SignDataExport`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type SignInOrOutRequests } from "../../interface";
/**
* 批量签到签退
* /api/SignRecord/api/SignRecord/SignInOrOut
*/
export declare function postApiSignRecordApiSignRecordSignInOrOut(input?: SignInOrOutRequests[], config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 批量签到签退
* /api/SignRecord/api/SignRecord/SignInOrOut
*/
export function postApiSignRecordApiSignRecordSignInOrOut(input, config) {
return request.post(`/api/SignRecord/api/SignRecord/SignInOrOut`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type SignLogSaveRequest } from "../../interface";
/**
* 填写日志
* /api/SignRecord/api/SignRecord/SignLogSave
*/
export declare function postApiSignRecordApiSignRecordSignLogSave(input?: SignLogSaveRequest, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 填写日志
* /api/SignRecord/api/SignRecord/SignLogSave
*/
export function postApiSignRecordApiSignRecordSignLogSave(input, config) {
return request.post(`/api/SignRecord/api/SignRecord/SignLogSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 发送定时任务
* /api/TimeTask/TimeTaskSend
*/
export declare function getApiTimeTaskTimeTaskSend(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 发送定时任务
* /api/TimeTask/TimeTaskSend
*/
export function getApiTimeTaskTimeTaskSend(config) {
return request.get(`/api/TimeTask/TimeTaskSend`, config);
}
export * from "./getApiTimeTaskTimeTaskSend";
export * from "./getApiTimeTaskTimeTaskSend";
import { type AxiosRequestConfig } from "axios";
/**
* 获取教师
* /api/UserInfo/api/UserInfo/GetTeacher
*/
export declare function getApiUserInfoApiUserInfoGetTeacher(params: GetApiUserInfoApiUserInfoGetTeacherParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
tid: string;
number: string;
name: string;
school_area_id: string;
school_area_name: string;
did: string;
dept_name: string;
pid: string;
position_name: string;
concurrent_post_id: string;
concurrent_post_name: string;
gender_id: string;
gender_name: string;
title_id: string;
title_name: string;
title_level_id: string;
title_level_name: string;
phone: string;
openid: string;
}[];
query: {
[x: string]: any;
};
};
}, any>>;
export interface GetApiUserInfoApiUserInfoGetTeacherParams {
condition?: string;
page_index?: number;
page_size?: number;
}
import request from "../../../../util/axios.js";
/**
* 获取教师
* /api/UserInfo/api/UserInfo/GetTeacher
*/
export function getApiUserInfoApiUserInfoGetTeacher(params, config) {
const paramsInput = {
condition: params.condition,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/UserInfo/api/UserInfo/GetTeacher`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取用户详细
* /api/UserInfo/api/UserInfo/GetUserInfo
*/
export declare function getApiUserInfoApiUserInfoGetUserInfo(params: GetApiUserInfoApiUserInfoGetUserInfoParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
userid: string;
roleid: string;
name: string;
mobile: string;
openid: string;
card_name: string;
dept: string;
dept_id: string;
createtime: string;
admin_dept_id: string;
admin_dept: string;
};
}, any>>;
export interface GetApiUserInfoApiUserInfoGetUserInfoParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 获取用户详细
* /api/UserInfo/api/UserInfo/GetUserInfo
*/
export function getApiUserInfoApiUserInfoGetUserInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/UserInfo/api/UserInfo/GetUserInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取用户信息(选项框)
* /api/UserInfo/api/UserInfo/GetUserSelect
*/
export declare function getApiUserInfoApiUserInfoGetUserSelect(params: GetApiUserInfoApiUserInfoGetUserSelectParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}, any>>;
export interface GetApiUserInfoApiUserInfoGetUserSelectParams {
condition?: string;
}
import request from "../../../../util/axios.js";
/**
* 获取用户信息(选项框)
* /api/UserInfo/api/UserInfo/GetUserSelect
*/
export function getApiUserInfoApiUserInfoGetUserSelect(params, config) {
const paramsInput = {
condition: params.condition,
};
return request.get(`/api/UserInfo/api/UserInfo/GetUserSelect`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取用户信息-根据权限(选项框)
* /api/UserInfo/api/UserInfo/GetUserSelectByRole
*/
export declare function getApiUserInfoApiUserInfoGetUserSelectByRole(params: GetApiUserInfoApiUserInfoGetUserSelectByRoleParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}, any>>;
export interface GetApiUserInfoApiUserInfoGetUserSelectByRoleParams {
condition?: string;
}
import request from "../../../../util/axios.js";
/**
* 获取用户信息-根据权限(选项框)
* /api/UserInfo/api/UserInfo/GetUserSelectByRole
*/
export function getApiUserInfoApiUserInfoGetUserSelectByRole(params, config) {
const paramsInput = {
condition: params.condition,
};
return request.get(`/api/UserInfo/api/UserInfo/GetUserSelectByRole`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除用户
* /api/UserInfo/api/UserInfo/UserInfoDel
*/
export declare function getApiUserInfoApiUserInfoUserInfoDel(params: GetApiUserInfoApiUserInfoUserInfoDelParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiUserInfoApiUserInfoUserInfoDelParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 删除用户
* /api/UserInfo/api/UserInfo/UserInfoDel
*/
export function getApiUserInfoApiUserInfoUserInfoDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/UserInfo/api/UserInfo/UserInfoDel`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 自动带出用户信息
* /api/UserInfo/api/UserInfo/UserWalk
*/
export declare function getApiUserInfoApiUserInfoUserWalk(params: GetApiUserInfoApiUserInfoUserWalkParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
card_name: string;
username: string;
mobile: string;
dept_id: string;
dept_name: string;
};
}, any>>;
export interface GetApiUserInfoApiUserInfoUserWalkParams {
card?: string;
}
import request from "../../../../util/axios.js";
/**
* 自动带出用户信息
* /api/UserInfo/api/UserInfo/UserWalk
*/
export function getApiUserInfoApiUserInfoUserWalk(params, config) {
const paramsInput = {
card: params.card,
};
return request.get(`/api/UserInfo/api/UserInfo/UserWalk`, {
params: paramsInput,
...config,
});
}
export * from "./postApiUserInfoApiUserInfoGetUserList";
export * from "./getApiUserInfoApiUserInfoGetUserInfo";
export * from "./getApiUserInfoApiUserInfoUserInfoDel";
export * from "./getApiUserInfoApiUserInfoGetTeacher";
export * from "./getApiUserInfoApiUserInfoGetUserSelect";
export * from "./getApiUserInfoApiUserInfoGetUserSelectByRole";
export * from "./getApiUserInfoApiUserInfoUserWalk";
export * from "./postApiUserInfoApiUserInfoUserInfoSave";
export * from "./postApiUserInfoApiUserInfoUserUpdateSave";
export * from "./postApiUserInfoApiUserInfoGetUserList";
export * from "./getApiUserInfoApiUserInfoGetUserInfo";
export * from "./getApiUserInfoApiUserInfoUserInfoDel";
export * from "./getApiUserInfoApiUserInfoGetTeacher";
export * from "./getApiUserInfoApiUserInfoGetUserSelect";
export * from "./getApiUserInfoApiUserInfoGetUserSelectByRole";
export * from "./getApiUserInfoApiUserInfoUserWalk";
export * from "./postApiUserInfoApiUserInfoUserInfoSave";
export * from "./postApiUserInfoApiUserInfoUserUpdateSave";
import { type AxiosRequestConfig } from "axios";
import { type UserInfoRequests } from "../../interface";
/**
* 获取用户列表
* /api/UserInfo/api/UserInfo/GetUserList
*/
export declare function postApiUserInfoApiUserInfoGetUserList(input?: UserInfoRequests, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
userid: string;
roleid: string;
roleName: string[];
name: string;
mobile: string;
openid: string;
card_name: string;
dept: string;
dept_id: string;
createtime: string;
};
}[];
query: {
[x: string]: any;
};
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取用户列表
* /api/UserInfo/api/UserInfo/GetUserList
*/
export function postApiUserInfoApiUserInfoGetUserList(input, config) {
return request.post(`/api/UserInfo/api/UserInfo/GetUserList`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type UserSaveRequests } from "../../interface";
/**
* 保存用户
* /api/UserInfo/api/UserInfo/UserInfoSave
*/
export declare function postApiUserInfoApiUserInfoUserInfoSave(input?: UserSaveRequests, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 保存用户
* /api/UserInfo/api/UserInfo/UserInfoSave
*/
export function postApiUserInfoApiUserInfoUserInfoSave(input, config) {
return request.post(`/api/UserInfo/api/UserInfo/UserInfoSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type UserUpdateRequests } from "../../interface";
/**
* 修改用户
* /api/UserInfo/api/UserInfo/UserUpdateSave
*/
export declare function postApiUserInfoApiUserInfoUserUpdateSave(input?: UserUpdateRequests, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 修改用户
* /api/UserInfo/api/UserInfo/UserUpdateSave
*/
export function postApiUserInfoApiUserInfoUserUpdateSave(input, config) {
return request.post(`/api/UserInfo/api/UserInfo/UserUpdateSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取权限详细
* /api/UserRole/api/UserRole/GetUserRoleInfo
*/
export declare function getApiUserRoleApiUserRoleGetUserRoleInfo(params: GetApiUserRoleApiUserRoleGetUserRoleInfoParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
roleid: string;
role_name: string;
role_remark: string;
createtime: string;
dept_id: string[];
};
}, any>>;
export interface GetApiUserRoleApiUserRoleGetUserRoleInfoParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 获取权限详细
* /api/UserRole/api/UserRole/GetUserRoleInfo
*/
export function getApiUserRoleApiUserRoleGetUserRoleInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/UserRole/api/UserRole/GetUserRoleInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取权限列表
* /api/UserRole/api/UserRole/GetUserRoleList
*/
export declare function getApiUserRoleApiUserRoleGetUserRoleList(params: GetApiUserRoleApiUserRoleGetUserRoleListParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
roleid: string;
role_name: string;
role_remark: string;
createtime: string;
dept_id: string;
dept: string;
};
}[];
query: {
[x: string]: any;
};
}, any>>;
export interface GetApiUserRoleApiUserRoleGetUserRoleListParams {
name?: string;
page_index?: number;
page_size?: number;
}
import request from "../../../../util/axios.js";
/**
* 获取权限列表
* /api/UserRole/api/UserRole/GetUserRoleList
*/
export function getApiUserRoleApiUserRoleGetUserRoleList(params, config) {
const paramsInput = {
name: params.name,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/UserRole/api/UserRole/GetUserRoleList`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除权限
* /api/UserRole/api/UserRole/UserRoleDel
*/
export declare function getApiUserRoleApiUserRoleUserRoleDel(params: GetApiUserRoleApiUserRoleUserRoleDelParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiUserRoleApiUserRoleUserRoleDelParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 删除权限
* /api/UserRole/api/UserRole/UserRoleDel
*/
export function getApiUserRoleApiUserRoleUserRoleDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/UserRole/api/UserRole/UserRoleDel`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取多选框(权限和id)
* /api/UserRole/api/UserRole/UserRoleSelect
*/
export declare function getApiUserRoleApiUserRoleUserRoleSelect(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取多选框(权限和id)
* /api/UserRole/api/UserRole/UserRoleSelect
*/
export function getApiUserRoleApiUserRoleUserRoleSelect(config) {
return request.get(`/api/UserRole/api/UserRole/UserRoleSelect`, config);
}
export * from "./getApiUserRoleApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleApiUserRoleGetUserRoleInfo";
export * from "./postApiUserRoleApiUserRoleUserRoleSave";
export * from "./getApiUserRoleApiUserRoleUserRoleDel";
export * from "./getApiUserRoleApiUserRoleUserRoleSelect";
export * from "./getApiUserRoleApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleApiUserRoleGetUserRoleInfo";
export * from "./postApiUserRoleApiUserRoleUserRoleSave";
export * from "./getApiUserRoleApiUserRoleUserRoleDel";
export * from "./getApiUserRoleApiUserRoleUserRoleSelect";
import { type AxiosRequestConfig } from "axios";
import { type UserRoleViewModel } from "../../interface";
/**
* 保存权限
* /api/UserRole/api/UserRole/UserRoleSave
*/
export declare function postApiUserRoleApiUserRoleUserRoleSave(input?: UserRoleViewModel, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 保存权限
* /api/UserRole/api/UserRole/UserRoleSave
*/
export function postApiUserRoleApiUserRoleUserRoleSave(input, config) {
return request.post(`/api/UserRole/api/UserRole/UserRoleSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 双向换班
* /api/Watch/api/Watch/ExchangeDuty
*/
export declare function getApiWatchApiWatchExchangeDuty(params: GetApiWatchApiWatchExchangeDutyParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiWatchApiWatchExchangeDutyParams {
/** 换班id的第一个id */
first_id?: string;
/** 换班id的第二个id */
second_id?: string;
}
import request from "../../../../util/axios.js";
/**
* 双向换班
* /api/Watch/api/Watch/ExchangeDuty
*/
export function getApiWatchApiWatchExchangeDuty(params, config) {
const paramsInput = {
first_id: params.first_id,
second_id: params.second_id,
};
return request.get(`/api/Watch/api/Watch/ExchangeDuty`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取调班值班
* /api/Watch/api/Watch/GetExchangableDuty
*/
export declare function getApiWatchApiWatchGetExchangableDuty(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
watchid: string;
watch_date: string;
dept_id: string;
card_name: string;
username: string;
dept_name: string;
}[];
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取调班值班
* /api/Watch/api/Watch/GetExchangableDuty
*/
export function getApiWatchApiWatchGetExchangableDuty(config) {
return request.get(`/api/Watch/api/Watch/GetExchangableDuty`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取校区(选择框)
* /api/Watch/api/Watch/GetWatchCampusSelect
*/
export declare function getApiWatchApiWatchGetWatchCampusSelect(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取校区(选择框)
* /api/Watch/api/Watch/GetWatchCampusSelect
*/
export function getApiWatchApiWatchGetWatchCampusSelect(config) {
return request.get(`/api/Watch/api/Watch/GetWatchCampusSelect`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 按月份获取值班日期
* /api/Watch/api/Watch/GetWatchCount
*/
export declare function getApiWatchApiWatchGetWatchCount(params: GetApiWatchApiWatchGetWatchCountParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string[];
}, any>>;
export interface GetApiWatchApiWatchGetWatchCountParams {
date: string;
}
import request from "../../../../util/axios.js";
/**
* 按月份获取值班日期
* /api/Watch/api/Watch/GetWatchCount
*/
export function getApiWatchApiWatchGetWatchCount(params, config) {
const paramsInput = {
date: params.date,
};
return request.get(`/api/Watch/api/Watch/GetWatchCount`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班部门(选择框)
* /api/Watch/api/Watch/GetWatchDepSelect
*/
export declare function getApiWatchApiWatchGetWatchDepSelect(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取值班部门(选择框)
* /api/Watch/api/Watch/GetWatchDepSelect
*/
export function getApiWatchApiWatchGetWatchDepSelect(config) {
return request.get(`/api/Watch/api/Watch/GetWatchDepSelect`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班时段(选择框)
* /api/Watch/api/Watch/GetWatchHourTime
*/
export declare function getApiWatchApiWatchGetWatchHourTime(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取值班时段(选择框)
* /api/Watch/api/Watch/GetWatchHourTime
*/
export function getApiWatchApiWatchGetWatchHourTime(config) {
return request.get(`/api/Watch/api/Watch/GetWatchHourTime`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班详情
* /api/Watch/api/Watch/GetWatchInfo
*/
export declare function getApiWatchApiWatchGetWatchInfo(params: GetApiWatchApiWatchGetWatchInfoParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
watchid: string;
watch_date: string;
watch_hour_id: string;
is_lead: number;
dept_id: string;
card_name: string;
username: string;
userid: string;
watchtypeid: string;
mobile: string;
watch_remark: string;
campusid: string;
createtime: string;
watch_hour_time: string;
dept_name: string;
watchtypename: string;
campusname: string;
is_del: number;
};
}, any>>;
export interface GetApiWatchApiWatchGetWatchInfoParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 获取值班详情
* /api/Watch/api/Watch/GetWatchInfo
*/
export function getApiWatchApiWatchGetWatchInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/Watch/api/Watch/GetWatchInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班类型(选择框)
* /api/Watch/api/Watch/GetWatchTypeSelect
*/
export declare function getApiWatchApiWatchGetWatchTypeSelect(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取值班类型(选择框)
* /api/Watch/api/Watch/GetWatchTypeSelect
*/
export function getApiWatchApiWatchGetWatchTypeSelect(config) {
return request.get(`/api/Watch/api/Watch/GetWatchTypeSelect`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除值班
* /api/Watch/api/Watch/WatchDel
*/
export declare function getApiWatchApiWatchWatchDel(params: GetApiWatchApiWatchWatchDelParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiWatchApiWatchWatchDelParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 删除值班
* /api/Watch/api/Watch/WatchDel
*/
export function getApiWatchApiWatchWatchDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/Watch/api/Watch/WatchDel`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 值班导出模板
* /api/Watch/api/Watch/WatchImportTemplate
*/
export declare function getApiWatchApiWatchWatchImportTemplate(params: GetApiWatchApiWatchWatchImportTemplateParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiWatchApiWatchWatchImportTemplateParams {
year?: number;
month?: number;
}
import request from "../../../../util/axios.js";
/**
* 值班导出模板
* /api/Watch/api/Watch/WatchImportTemplate
*/
export function getApiWatchApiWatchWatchImportTemplate(params, config) {
const paramsInput = {
year: params.year,
month: params.month,
};
return request.get(`/api/Watch/api/Watch/WatchImportTemplate`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 给自己换班
* /api/Watch/api/Watch/WatchInfoSaveOneSelf
*/
export declare function getApiWatchApiWatchWatchInfoSaveOneSelf(params: GetApiWatchApiWatchWatchInfoSaveOneSelfParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiWatchApiWatchWatchInfoSaveOneSelfParams {
id?: string;
card_name?: string;
}
import request from "../../../../util/axios.js";
/**
* 给自己换班
* /api/Watch/api/Watch/WatchInfoSaveOneSelf
*/
export function getApiWatchApiWatchWatchInfoSaveOneSelf(params, config) {
const paramsInput = {
id: params.id,
card_name: params.card_name,
};
return request.get(`/api/Watch/api/Watch/WatchInfoSaveOneSelf`, {
params: paramsInput,
...config,
});
}
export * from "./postApiWatchApiWatchGetWatchList";
export * from "./getApiWatchApiWatchGetWatchInfo";
export * from "./postApiWatchApiWatchWatchSave";
export * from "./postApiWatchApiWatchWatchCreate";
export * from "./getApiWatchApiWatchWatchDel";
export * from "./postApiWatchApiWatchWatchDataExport";
export * from "./getApiWatchApiWatchWatchImportTemplate";
export * from "./postApiWatchApiWatchWatchImport";
export * from "./getApiWatchApiWatchWatchInfoSaveOneSelf";
export * from "./getApiWatchApiWatchExchangeDuty";
export * from "./getApiWatchApiWatchGetExchangableDuty";
export * from "./postApiWatchApiWatchWatchSendMeg";
export * from "./getApiWatchApiWatchGetWatchCount";
export * from "./getApiWatchApiWatchGetWatchHourTime";
export * from "./getApiWatchApiWatchGetWatchTypeSelect";
export * from "./getApiWatchApiWatchGetWatchDepSelect";
export * from "./getApiWatchApiWatchGetWatchCampusSelect";
export * from "./postApiWatchApiWatchGetWatchList";
export * from "./getApiWatchApiWatchGetWatchInfo";
export * from "./postApiWatchApiWatchWatchSave";
export * from "./postApiWatchApiWatchWatchCreate";
export * from "./getApiWatchApiWatchWatchDel";
export * from "./postApiWatchApiWatchWatchDataExport";
export * from "./getApiWatchApiWatchWatchImportTemplate";
export * from "./postApiWatchApiWatchWatchImport";
export * from "./getApiWatchApiWatchWatchInfoSaveOneSelf";
export * from "./getApiWatchApiWatchExchangeDuty";
export * from "./getApiWatchApiWatchGetExchangableDuty";
export * from "./postApiWatchApiWatchWatchSendMeg";
export * from "./getApiWatchApiWatchGetWatchCount";
export * from "./getApiWatchApiWatchGetWatchHourTime";
export * from "./getApiWatchApiWatchGetWatchTypeSelect";
export * from "./getApiWatchApiWatchGetWatchDepSelect";
export * from "./getApiWatchApiWatchGetWatchCampusSelect";
import { type AxiosRequestConfig } from "axios";
import { type WatchRequests } from "../../interface";
/**
* 获取值班列表
* /api/Watch/api/Watch/GetWatchList
*/
export declare function postApiWatchApiWatchGetWatchList(input?: WatchRequests, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
watchid: string;
watch_date: string;
watch_hour_id: string;
is_lead: number;
dept_id: string;
card_name: string;
username: string;
userid: string;
watchtypeid: string;
mobile: string;
watch_remark: string;
campusid: string;
createtime: string;
watch_hour_time: string;
dept_name: string;
watchtypename: string;
campusname: string;
is_del: number;
}[];
query: {
[x: string]: any;
};
};
}, any>>;
import request from "../../../../util/axios.js";
/**
* 获取值班列表
* /api/Watch/api/Watch/GetWatchList
*/
export function postApiWatchApiWatchGetWatchList(input, config) {
return request.post(`/api/Watch/api/Watch/GetWatchList`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type Watch } from "../../interface";
/**
* 创建值班信息并新建签到表
* /api/Watch/api/Watch/WatchCreate
*/
export declare function postApiWatchApiWatchWatchCreate(input?: Watch, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 创建值班信息并新建签到表
* /api/Watch/api/Watch/WatchCreate
*/
export function postApiWatchApiWatchWatchCreate(input, config) {
return request.post(`/api/Watch/api/Watch/WatchCreate`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type WatchRequests } from "../../interface";
/**
* 值班数据导出
* /api/Watch/api/Watch/WatchDataExport
*/
export declare function postApiWatchApiWatchWatchDataExport(input?: WatchRequests, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 值班数据导出
* /api/Watch/api/Watch/WatchDataExport
*/
export function postApiWatchApiWatchWatchDataExport(input, config) {
return request.post(`/api/Watch/api/Watch/WatchDataExport`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 值班导入模板
* /api/Watch/api/Watch/WatchImport
*/
export declare function postApiWatchApiWatchWatchImport(input?: PostApiWatchApiWatchWatchImportInput, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface PostApiWatchApiWatchWatchImportInput {
file: File;
}
import request from "../../../../util/axios.js";
/**
* 值班导入模板
* /api/Watch/api/Watch/WatchImport
*/
export function postApiWatchApiWatchWatchImport(input, config) {
return request.post(`/api/Watch/api/Watch/WatchImport`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type Watch } from "../../interface";
/**
* 保存值班
* /api/Watch/api/Watch/WatchSave
*/
export declare function postApiWatchApiWatchWatchSave(input?: Watch, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 保存值班
* /api/Watch/api/Watch/WatchSave
*/
export function postApiWatchApiWatchWatchSave(input, config) {
return request.post(`/api/Watch/api/Watch/WatchSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 批量发送消息提醒
* /api/Watch/api/Watch/WatchSendMeg
*/
export declare function postApiWatchApiWatchWatchSendMeg(input?: string[], config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: number;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 批量发送消息提醒
* /api/Watch/api/Watch/WatchSendMeg
*/
export function postApiWatchApiWatchWatchSendMeg(input, config) {
return request.post(`/api/Watch/api/Watch/WatchSendMeg`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取详细
* /api/WatchHour/api/WatchHour/GetWatchHourInfo
*/
export declare function getApiWatchHourApiWatchHourGetWatchHourInfo(params: GetApiWatchHourApiWatchHourGetWatchHourInfoParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
watchhourid: string;
watchhourname: string;
watchhour_start_time: string;
createtime: string;
watchhour_end_time: string;
};
}, any>>;
export interface GetApiWatchHourApiWatchHourGetWatchHourInfoParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 获取详细
* /api/WatchHour/api/WatchHour/GetWatchHourInfo
*/
export function getApiWatchHourApiWatchHourGetWatchHourInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/WatchHour/api/WatchHour/GetWatchHourInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班时段列表
* /api/WatchHour/api/WatchHour/GetWatchHourList
*/
export declare function getApiWatchHourApiWatchHourGetWatchHourList(params: GetApiWatchHourApiWatchHourGetWatchHourListParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
watchhourid: string;
watchhourname: string;
watchhour_start_time: string;
createtime: string;
watchhour_end_time: string;
}[];
query: {
[x: string]: any;
};
};
}, any>>;
export interface GetApiWatchHourApiWatchHourGetWatchHourListParams {
condition?: string;
page_index?: number;
page_size?: number;
}
import request from "../../../../util/axios.js";
/**
* 获取值班时段列表
* /api/WatchHour/api/WatchHour/GetWatchHourList
*/
export function getApiWatchHourApiWatchHourGetWatchHourList(params, config) {
const paramsInput = {
condition: params.condition,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/WatchHour/api/WatchHour/GetWatchHourList`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除值班时间段
* /api/WatchHour/api/WatchHour/WatchHourDel
*/
export declare function getApiWatchHourApiWatchHourWatchHourDel(params: GetApiWatchHourApiWatchHourWatchHourDelParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiWatchHourApiWatchHourWatchHourDelParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 删除值班时间段
* /api/WatchHour/api/WatchHour/WatchHourDel
*/
export function getApiWatchHourApiWatchHourWatchHourDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/WatchHour/api/WatchHour/WatchHourDel`, {
params: paramsInput,
...config,
});
}
export * from "./getApiWatchHourApiWatchHourGetWatchHourList";
export * from "./getApiWatchHourApiWatchHourGetWatchHourInfo";
export * from "./postApiWatchHourApiWatchHourWatchHourSave";
export * from "./getApiWatchHourApiWatchHourWatchHourDel";
export * from "./getApiWatchHourApiWatchHourGetWatchHourList";
export * from "./getApiWatchHourApiWatchHourGetWatchHourInfo";
export * from "./postApiWatchHourApiWatchHourWatchHourSave";
export * from "./getApiWatchHourApiWatchHourWatchHourDel";
import { type AxiosRequestConfig } from "axios";
import { type WatchHour } from "../../interface";
/**
* 保存值班时间段
* /api/WatchHour/api/WatchHour/WatchHourSave
*/
export declare function postApiWatchHourApiWatchHourWatchHourSave(input?: WatchHour, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 保存值班时间段
* /api/WatchHour/api/WatchHour/WatchHourSave
*/
export function postApiWatchHourApiWatchHourWatchHourSave(input, config) {
return request.post(`/api/WatchHour/api/WatchHour/WatchHourSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 启用禁用值班类型
* /api/WatchType/api/WatchType/EnableWatchType
*/
export declare function getApiWatchTypeApiWatchTypeEnableWatchType(params: GetApiWatchTypeApiWatchTypeEnableWatchTypeParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiWatchTypeApiWatchTypeEnableWatchTypeParams {
/** 值班类型id */
id: string;
/** true-启用,false-禁用 */
status: boolean;
}
import request from "../../../../util/axios.js";
/**
* 启用禁用值班类型
* /api/WatchType/api/WatchType/EnableWatchType
*/
export function getApiWatchTypeApiWatchTypeEnableWatchType(params, config) {
const paramsInput = {
id: params.id,
status: params.status,
};
return request.get(`/api/WatchType/api/WatchType/EnableWatchType`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班类型详细
* /api/WatchType/api/WatchType/GetWatchTypeInfo
*/
export declare function getApiWatchTypeApiWatchTypeGetWatchTypeInfo(params: GetApiWatchTypeApiWatchTypeGetWatchTypeInfoParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
watchtypeid: string;
watchtypename: string;
watchtype_remark: string;
createtime: string;
sign_type: number;
watchhour_id: string;
watchhourname: string;
is_del: number;
is_enable: number;
};
}, any>>;
export interface GetApiWatchTypeApiWatchTypeGetWatchTypeInfoParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 获取值班类型详细
* /api/WatchType/api/WatchType/GetWatchTypeInfo
*/
export function getApiWatchTypeApiWatchTypeGetWatchTypeInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/WatchType/api/WatchType/GetWatchTypeInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班类型列表
* /api/WatchType/api/WatchType/GetWatchTypeList
*/
export declare function getApiWatchTypeApiWatchTypeGetWatchTypeList(params: GetApiWatchTypeApiWatchTypeGetWatchTypeListParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
watchtypeid: string;
watchtypename: string;
watchtype_remark: string;
createtime: string;
sign_type: number;
watchhour_id: string;
watchhourname: string;
is_del: number;
is_enable: number;
}[];
query: {
[x: string]: any;
};
};
}, any>>;
export interface GetApiWatchTypeApiWatchTypeGetWatchTypeListParams {
name?: string;
page_index?: number;
page_size?: number;
}
import request from "../../../../util/axios.js";
/**
* 获取值班类型列表
* /api/WatchType/api/WatchType/GetWatchTypeList
*/
export function getApiWatchTypeApiWatchTypeGetWatchTypeList(params, config) {
const paramsInput = {
name: params.name,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/WatchType/api/WatchType/GetWatchTypeList`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除值班类型
* /api/WatchType/api/WatchType/WatchTypeDel
*/
export declare function getApiWatchTypeApiWatchTypeWatchTypeDel(params: GetApiWatchTypeApiWatchTypeWatchTypeDelParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiWatchTypeApiWatchTypeWatchTypeDelParams {
id?: string;
}
import request from "../../../../util/axios.js";
/**
* 删除值班类型
* /api/WatchType/api/WatchType/WatchTypeDel
*/
export function getApiWatchTypeApiWatchTypeWatchTypeDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/WatchType/api/WatchType/WatchTypeDel`, {
params: paramsInput,
...config,
});
}
export * from "./getApiWatchTypeApiWatchTypeGetWatchTypeList";
export * from "./getApiWatchTypeApiWatchTypeGetWatchTypeInfo";
export * from "./postApiWatchTypeApiWatchTypeWatchTypeSave";
export * from "./getApiWatchTypeApiWatchTypeWatchTypeDel";
export * from "./getApiWatchTypeApiWatchTypeEnableWatchType";
export * from "./getApiWatchTypeApiWatchTypeGetWatchTypeList";
export * from "./getApiWatchTypeApiWatchTypeGetWatchTypeInfo";
export * from "./postApiWatchTypeApiWatchTypeWatchTypeSave";
export * from "./getApiWatchTypeApiWatchTypeWatchTypeDel";
export * from "./getApiWatchTypeApiWatchTypeEnableWatchType";
import { type AxiosRequestConfig } from "axios";
import { type WatchType } from "../../interface";
/**
* 保存值班类型
* /api/WatchType/api/WatchType/WatchTypeSave
*/
export declare function postApiWatchTypeApiWatchTypeWatchTypeSave(input?: WatchType, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "../../../../util/axios.js";
/**
* 保存值班类型
* /api/WatchType/api/WatchType/WatchTypeSave
*/
export function postApiWatchTypeApiWatchTypeWatchTypeSave(input, config) {
return request.post(`/api/WatchType/api/WatchType/WatchTypeSave`, input, config);
}
export * from "./Attendance";
export * from "./Campus";
export * from "./DbFirst";
export * from "./DutyConfig";
export * from "./Log";
export * from "./Login";
export * from "./Message";
export * from "./MessageConfig";
export * from "./SignRecord";
export * from "./TimeTask";
export * from "./UserInfo";
export * from "./UserRole";
export * from "./Watch";
export * from "./WatchHour";
export * from "./WatchType";
export * from "./Attendance";
export * from "./Campus";
export * from "./DbFirst";
export * from "./DutyConfig";
export * from "./Log";
export * from "./Login";
export * from "./Message";
export * from "./MessageConfig";
export * from "./SignRecord";
export * from "./TimeTask";
export * from "./UserInfo";
export * from "./UserRole";
export * from "./Watch";
export * from "./WatchHour";
export * from "./WatchType";
export interface Attendance {
attendanceid?: string;
title?: string;
address?: string;
latitude?: string;
longitude?: string;
offset?: number;
accuracy?: number;
createtime?: string;
}
import { type Attendance } from "../../interface";
export interface AttendanceListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: Attendance[];
}
import { type Attendance } from "../../interface";
export interface AttendanceRequests {
/** 签到id */
id?: string;
/** 附件路径 */
link?: string;
/** 签到 1-签到,2-签退 */
sign?: number;
attendance?: Attendance;
}
export interface Campus {
campusid?: string;
campusname?: string;
createtime?: string;
}
import { type Campus } from "../../interface";
export interface CampusMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: Campus;
}
import { type TableTitle, type Campus } from "../../interface";
export interface CampusPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: Campus[];
query?: CampusPageModelQuery;
}
export interface CampusPageModelQuery {
[key: string]: any;
}
import { type CampusPageModel } from "../../interface";
export interface CampusPageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: CampusPageModel;
}
import { type TokenViewModel } from "../../interface";
export interface ComplexTokenViewModel {
accessToken?: TokenViewModel;
refreshToken?: TokenViewModel;
}
import { type ComplexTokenViewModel } from "../../interface";
export interface ComplexTokenViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: ComplexTokenViewModel;
}
export interface DutymanagementLog {
id?: string;
module?: string;
type?: string;
ip?: string;
api?: string;
method?: string;
request?: string;
response?: string;
user_id?: string;
user_name?: string;
code?: number;
error_msg?: string;
createtime?: string;
spend_time?: number;
}
import { type DutymanagementLog } from "../../interface";
export interface DutymanagementLogMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: DutymanagementLog;
}
import { type TableTitle, type DutymanagementLogMessageModel } from "../../interface";
export interface DutymanagementLogMessageModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: DutymanagementLogMessageModel[];
query?: DutymanagementLogMessageModelPageModelQuery;
}
export interface DutymanagementLogMessageModelPageModelQuery {
[key: string]: any;
}
export interface ExchangableWatchResponse {
/**
* Desc:值班id
* Default:
* Nullable:False
*/
watchid?: string;
/**
* Desc:值班日期
* Default:
* Nullable:True
*/
watch_date?: string;
/**
* Desc:部门
* Default:
* Nullable:True
*/
dept_id?: string;
/**
* Desc:员工号
* Default:
* Nullable:True
*/
card_name?: string;
/**
* Desc:员工姓名
* Default:
* Nullable:True
*/
username?: string;
/**
* Desc:值班部门
* Default:
* Nullable:True
*/
dept_name?: string;
}
import { type ExchangableWatchResponse } from "../../interface";
export interface ExchangableWatchResponseListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: ExchangableWatchResponse[];
}
export interface ImgResponse {
/** 文件名 */
fileName?: string;
/** 新文件名 */
fileNewName?: string;
/** 文件格式 */
fileExtension?: string;
/** 下载地址 */
filePath?: string;
/** 文件大小 */
fileSize?: number;
}
import { type ImgResponse } from "../../interface";
export interface ImgResponseMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: ImgResponse;
}
export interface Int32MessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: number;
}
export interface Message {
msgid?: string;
messageinfo?: string;
send_time?: string;
createtime?: string;
reception_user_id?: string;
reception_man?: string;
reception_num?: string;
send_state?: number;
is_succeed?: number;
meg_link?: string;
remark?: string;
watchid?: string;
}
export interface MessageConfig {
megconfigid?: string;
advance_day?: number;
remind_time?: string;
createtime?: string;
time_task_id?: string;
}
import { type MessageConfig } from "../../interface";
export interface MessageConfigMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: MessageConfig;
}
import { type Message } from "../../interface";
export interface MessageMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: Message;
}
import { type TableTitle, type MessageMessageModel } from "../../interface";
export interface MessageMessageModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: MessageMessageModel[];
query?: MessageMessageModelPageModelQuery;
}
export interface MessageMessageModelPageModelQuery {
[key: string]: any;
}
export interface Option {
label?: string;
value?: string;
}
export interface SelectResponses {
/** 显示值 */
name?: string;
/** 隐藏值 */
id?: string;
}
import { type SelectResponses } from "../../interface";
export interface SelectResponsesListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: SelectResponses[];
}
export interface SignInOrOutRequests {
/** 签到表id */
signid?: string;
/** 签到状态 */
sign?: number;
}
export interface SignLogSaveRequest {
sign_id?: string;
content?: string;
}
export interface SignRecordRequests {
/** 部门 */
dep_id?: string;
/** 姓名或卡号 */
key_name?: string;
/** 值班日期开始时间 */
start_time?: string;
/** 值班日期结束时间 */
end_time?: string;
/** 值班类型 */
type_id?: string;
/** 值班时段 */
watchhour_time?: string;
/** 校区 */
campus_id?: string;
/** 领导和老师分块 0-老师,1-领导 2-pc端使用 */
is_lead?: number;
/** 签到状态 0-待签到,1-已签到,2-已签退,9-全部状态 */
sign?: number;
page_index?: number;
page_size?: number;
}
export interface SignRecordViewModel {
signid?: string;
card_name?: string;
username?: string;
content?: string;
watch_date?: string;
watch_hour_time?: string;
watch_hour_id?: string;
sign?: number;
sign_set?: number;
mobile?: string;
createtime?: string;
watchtypeid?: string;
watchtypename?: string;
campusid?: string;
campusname?: string;
sign_in_time?: string;
sign_out_time?: string;
sign_type?: number;
is_lead?: number;
watch_id?: string;
is_del?: number;
dept?: string;
watch_remark?: string;
}
import { type TableTitle, type SignRecordViewModel } from "../../interface";
export interface SignRecordViewModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: SignRecordViewModel[];
query?: SignRecordViewModelPageModelQuery;
}
export interface SignRecordViewModelPageModelQuery {
[key: string]: any;
}
import { type SignRecordViewModelPageModel } from "../../interface";
export interface SignRecordViewModelPageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: SignRecordViewModelPageModel;
}
export interface SignTime {
signtimeid?: string;
advance_minute?: number;
}
import { type SignTime } from "../../interface";
export interface SignTimeMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: SignTime;
}
export interface StringListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: string[];
}
export interface StringMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: string;
}
import { type Option } from "../../interface";
export interface TableTitle {
field_id?: string;
show_name?: string;
show_type?: number;
width?: number;
order_by_flag?: number;
default_hide_flag?: number;
fixed_flag?: number;
code?: string;
option?: Option[];
children?: TableTitle[];
}
export interface TokenViewModel {
tokenContent?: string;
expires?: string;
}
import { type TokenViewModel } from "../../interface";
export interface TokenViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: TokenViewModel;
}
export interface UserInfo {
userid?: string;
roleid?: string;
name?: string;
mobile?: string;
openid?: string;
card_name?: string;
dept?: string;
dept_id?: string;
createtime?: string;
admin_dept_id?: string;
admin_dept?: string;
}
import { type UserInfo } from "../../interface";
export interface UserInfoMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserInfo;
}
export interface UserInfoRequests {
/** 姓名/卡号 */
name?: string;
/** 用户权限 */
roleid?: string;
/** 手机号 */
mobile?: string;
/** 部门 */
dept_id?: string;
page_index?: number;
page_size?: number;
}
export interface UserInfoResponses {
userid?: string;
/**
* Desc:用户权限id
* Default:
* Nullable:True
*/
roleid?: string;
roleName?: string[];
/**
* Desc:用户姓名
* Default:
* Nullable:True
*/
name?: string;
/**
* Desc:手机号
* Default:
* Nullable:True
*/
mobile?: string;
/**
* Desc:
* Default:
* Nullable:True
*/
openid?: string;
/**
* Desc:工号
* Default:
* Nullable:True
*/
card_name?: string;
/**
* Desc:部门
* Default:
* Nullable:True
*/
dept?: string;
/**
* Desc:部门id
* Default:
* Nullable:True
*/
dept_id?: string;
/**
* Desc:
* Default:
* Nullable:True
*/
createtime?: string;
}
import { type UserInfoResponses } from "../../interface";
export interface UserInfoResponsesMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserInfoResponses;
}
import { type TableTitle, type UserInfoResponsesMessageModel } from "../../interface";
export interface UserInfoResponsesMessageModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: UserInfoResponsesMessageModel[];
query?: UserInfoResponsesMessageModelPageModelQuery;
}
export interface UserInfoResponsesMessageModelPageModelQuery {
[key: string]: any;
}
export interface UserInfoWalkResponses {
card_name?: string;
username?: string;
mobile?: string;
dept_id?: string;
dept_name?: string;
}
import { type UserInfoWalkResponses } from "../../interface";
export interface UserInfoWalkResponsesMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserInfoWalkResponses;
}
export interface UserJwtViewModel {
cardNumber?: string;
name?: string;
role?: string[];
admin_dept?: string;
admin_dept_id?: string;
}
import { type UserJwtViewModel } from "../../interface";
export interface UserJwtViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserJwtViewModel;
}
export interface UserRole {
roleid?: string;
role_name?: string;
role_remark?: string;
createtime?: string;
dept_id?: string;
dept?: string;
}
import { type UserRole } from "../../interface";
export interface UserRoleMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserRole;
}
import { type TableTitle, type UserRoleMessageModel } from "../../interface";
export interface UserRoleMessageModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: UserRoleMessageModel[];
query?: UserRoleMessageModelPageModelQuery;
}
export interface UserRoleMessageModelPageModelQuery {
[key: string]: any;
}
export interface UserRoleViewModel {
roleid?: string;
role_name?: string;
role_remark?: string;
createtime?: string;
dept_id?: string[];
}
import { type UserRoleViewModel } from "../../interface";
export interface UserRoleViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserRoleViewModel;
}
export interface UserSaveRequests {
/** 教师id */
tid?: string[];
/** 权限集合 */
role?: string[];
/** 所管院系id */
dept_id?: string[];
}
export interface UserUpdateRequests {
userid?: string;
/** 权限集合 */
role?: string[];
/** 所管院系id */
dept_id?: string[];
}
export interface VDutyTeacher {
tid?: string;
number?: string;
name?: string;
school_area_id?: string;
school_area_name?: string;
did?: string;
dept_name?: string;
pid?: string;
position_name?: string;
concurrent_post_id?: string;
concurrent_post_name?: string;
gender_id?: string;
gender_name?: string;
title_id?: string;
title_name?: string;
title_level_id?: string;
title_level_name?: string;
phone?: string;
openid?: string;
}
import { type TableTitle, type VDutyTeacher } from "../../interface";
export interface VDutyTeacherPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: VDutyTeacher[];
query?: VDutyTeacherPageModelQuery;
}
export interface VDutyTeacherPageModelQuery {
[key: string]: any;
}
import { type VDutyTeacherPageModel } from "../../interface";
export interface VDutyTeacherPageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: VDutyTeacherPageModel;
}
export interface Watch {
watchid?: string;
watch_date?: string;
watch_hour_id?: string;
is_lead?: number;
dept_id?: string;
card_name?: string;
username?: string;
userid?: string;
watchtypeid?: string;
mobile?: string;
watch_remark?: string;
campusid?: string;
createtime?: string;
watch_hour_time?: string;
dept_name?: string;
watchtypename?: string;
campusname?: string;
is_del?: number;
}
export interface WatchHour {
watchhourid?: string;
watchhourname?: string;
watchhour_start_time?: string;
createtime?: string;
watchhour_end_time?: string;
}
import { type WatchHour } from "../../interface";
export interface WatchHourMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchHour;
}
import { type TableTitle, type WatchHour } from "../../interface";
export interface WatchHourPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: WatchHour[];
query?: WatchHourPageModelQuery;
}
export interface WatchHourPageModelQuery {
[key: string]: any;
}
import { type WatchHourPageModel } from "../../interface";
export interface WatchHourPageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchHourPageModel;
}
export interface WatchLog {
watchlogid?: string;
card_name?: string;
name?: string;
remark?: string;
createtime?: string;
file_link?: string;
address?: string;
sign?: number;
sign_id?: string;
address_locatioin?: string;
}
import { type WatchLog } from "../../interface";
export interface WatchLogMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchLog;
}
import { type TableTitle, type WatchLogMessageModel } from "../../interface";
export interface WatchLogMessageModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: WatchLogMessageModel[];
query?: WatchLogMessageModelPageModelQuery;
}
export interface WatchLogMessageModelPageModelQuery {
[key: string]: any;
}
import { type Watch } from "../../interface";
export interface WatchMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: Watch;
}
import { type TableTitle, type Watch } from "../../interface";
export interface WatchPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: Watch[];
query?: WatchPageModelQuery;
}
export interface WatchPageModelQuery {
[key: string]: any;
}
import { type WatchPageModel } from "../../interface";
export interface WatchPageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchPageModel;
}
export interface WatchRequests {
/** 部门 */
dep_id?: string;
/** 姓名或卡号 */
key_name?: string;
/** 值班日期开始时间 */
start_time?: string;
/** 值班日期结束时间 */
end_time?: string;
/** 值班类型 */
type_id?: string;
/** 值班时段 */
watchhour_time?: string;
/** 是否为值班领导 0-不是,1-是 */
is_lead?: number;
/** 校区 */
campus_id?: string;
page_index?: number;
page_size?: number;
}
export interface WatchType {
watchtypeid?: string;
watchtypename?: string;
watchtype_remark?: string;
createtime?: string;
sign_type?: number;
watchhour_id?: string;
watchhourname?: string;
is_del?: number;
is_enable?: number;
}
import { type WatchType } from "../../interface";
export interface WatchTypeMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchType;
}
import { type TableTitle, type WatchType } from "../../interface";
export interface WatchTypePageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: WatchType[];
query?: WatchTypePageModelQuery;
}
export interface WatchTypePageModelQuery {
[key: string]: any;
}
import { type WatchTypePageModel } from "../../interface";
export interface WatchTypePageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchTypePageModel;
}
export * from "./apiTypes/Attendance";
export * from "./apiTypes/AttendanceListMessageModel";
export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SignTime";
export * from "./apiTypes/SignTimeMessageModel";
export * from "./apiTypes/ImgResponse";
export * from "./apiTypes/ImgResponseMessageModel";
export * from "./apiTypes/AttendanceRequests";
export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Campus";
export * from "./apiTypes/CampusPageModel";
export * from "./apiTypes/CampusPageModelMessageModel";
export * from "./apiTypes/CampusMessageModel";
export * from "./apiTypes/DutymanagementLog";
export * from "./apiTypes/DutymanagementLogMessageModel";
export * from "./apiTypes/DutymanagementLogMessageModelPageModel";
export * from "./apiTypes/WatchLog";
export * from "./apiTypes/WatchLogMessageModel";
export * from "./apiTypes/WatchLogMessageModelPageModel";
export * from "./apiTypes/TokenViewModel";
export * from "./apiTypes/ComplexTokenViewModel";
export * from "./apiTypes/ComplexTokenViewModelMessageModel";
export * from "./apiTypes/TokenViewModelMessageModel";
export * from "./apiTypes/UserJwtViewModel";
export * from "./apiTypes/UserJwtViewModelMessageModel";
export * from "./apiTypes/Message";
export * from "./apiTypes/MessageMessageModel";
export * from "./apiTypes/MessageMessageModelPageModel";
export * from "./apiTypes/MessageConfig";
export * from "./apiTypes/MessageConfigMessageModel";
export * from "./apiTypes/SignRecordRequests";
export * from "./apiTypes/SignRecordViewModel";
export * from "./apiTypes/SignRecordViewModelPageModel";
export * from "./apiTypes/SignRecordViewModelPageModelMessageModel";
export * from "./apiTypes/SignInOrOutRequests";
export * from "./apiTypes/SignLogSaveRequest";
export * from "./apiTypes/UserInfoRequests";
export * from "./apiTypes/UserInfoResponses";
export * from "./apiTypes/UserInfoResponsesMessageModel";
export * from "./apiTypes/UserInfoResponsesMessageModelPageModel";
export * from "./apiTypes/UserInfo";
export * from "./apiTypes/UserInfoMessageModel";
export * from "./apiTypes/VDutyTeacher";
export * from "./apiTypes/VDutyTeacherPageModel";
export * from "./apiTypes/VDutyTeacherPageModelMessageModel";
export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/UserInfoWalkResponses";
export * from "./apiTypes/UserInfoWalkResponsesMessageModel";
export * from "./apiTypes/UserSaveRequests";
export * from "./apiTypes/UserUpdateRequests";
export * from "./apiTypes/UserRole";
export * from "./apiTypes/UserRoleMessageModel";
export * from "./apiTypes/UserRoleMessageModelPageModel";
export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/WatchRequests";
export * from "./apiTypes/Watch";
export * from "./apiTypes/WatchPageModel";
export * from "./apiTypes/WatchPageModelMessageModel";
export * from "./apiTypes/WatchMessageModel";
export * from "./apiTypes/ExchangableWatchResponse";
export * from "./apiTypes/ExchangableWatchResponseListMessageModel";
export * from "./apiTypes/Int32MessageModel";
export * from "./apiTypes/StringListMessageModel";
export * from "./apiTypes/WatchHour";
export * from "./apiTypes/WatchHourPageModel";
export * from "./apiTypes/WatchHourPageModelMessageModel";
export * from "./apiTypes/WatchHourMessageModel";
export * from "./apiTypes/WatchType";
export * from "./apiTypes/WatchTypePageModel";
export * from "./apiTypes/WatchTypePageModelMessageModel";
export * from "./apiTypes/WatchTypeMessageModel";
export type Primitive = undefined | null | boolean | string | number | symbol;
export type DeepRequired<T> = T extends Primitive ? T : keyof T extends never ? T : {
[K in keyof T]-?: DeepRequired<T[K]>;
};
export * from "./apiTypes/Attendance";
export * from "./apiTypes/AttendanceListMessageModel";
export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SignTime";
export * from "./apiTypes/SignTimeMessageModel";
export * from "./apiTypes/ImgResponse";
export * from "./apiTypes/ImgResponseMessageModel";
export * from "./apiTypes/AttendanceRequests";
export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Campus";
export * from "./apiTypes/CampusPageModel";
export * from "./apiTypes/CampusPageModelMessageModel";
export * from "./apiTypes/CampusMessageModel";
export * from "./apiTypes/DutymanagementLog";
export * from "./apiTypes/DutymanagementLogMessageModel";
export * from "./apiTypes/DutymanagementLogMessageModelPageModel";
export * from "./apiTypes/WatchLog";
export * from "./apiTypes/WatchLogMessageModel";
export * from "./apiTypes/WatchLogMessageModelPageModel";
export * from "./apiTypes/TokenViewModel";
export * from "./apiTypes/ComplexTokenViewModel";
export * from "./apiTypes/ComplexTokenViewModelMessageModel";
export * from "./apiTypes/TokenViewModelMessageModel";
export * from "./apiTypes/UserJwtViewModel";
export * from "./apiTypes/UserJwtViewModelMessageModel";
export * from "./apiTypes/Message";
export * from "./apiTypes/MessageMessageModel";
export * from "./apiTypes/MessageMessageModelPageModel";
export * from "./apiTypes/MessageConfig";
export * from "./apiTypes/MessageConfigMessageModel";
export * from "./apiTypes/SignRecordRequests";
export * from "./apiTypes/SignRecordViewModel";
export * from "./apiTypes/SignRecordViewModelPageModel";
export * from "./apiTypes/SignRecordViewModelPageModelMessageModel";
export * from "./apiTypes/SignInOrOutRequests";
export * from "./apiTypes/SignLogSaveRequest";
export * from "./apiTypes/UserInfoRequests";
export * from "./apiTypes/UserInfoResponses";
export * from "./apiTypes/UserInfoResponsesMessageModel";
export * from "./apiTypes/UserInfoResponsesMessageModelPageModel";
export * from "./apiTypes/UserInfo";
export * from "./apiTypes/UserInfoMessageModel";
export * from "./apiTypes/VDutyTeacher";
export * from "./apiTypes/VDutyTeacherPageModel";
export * from "./apiTypes/VDutyTeacherPageModelMessageModel";
export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/UserInfoWalkResponses";
export * from "./apiTypes/UserInfoWalkResponsesMessageModel";
export * from "./apiTypes/UserSaveRequests";
export * from "./apiTypes/UserUpdateRequests";
export * from "./apiTypes/UserRole";
export * from "./apiTypes/UserRoleMessageModel";
export * from "./apiTypes/UserRoleMessageModelPageModel";
export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/WatchRequests";
export * from "./apiTypes/Watch";
export * from "./apiTypes/WatchPageModel";
export * from "./apiTypes/WatchPageModelMessageModel";
export * from "./apiTypes/WatchMessageModel";
export * from "./apiTypes/ExchangableWatchResponse";
export * from "./apiTypes/ExchangableWatchResponseListMessageModel";
export * from "./apiTypes/Int32MessageModel";
export * from "./apiTypes/StringListMessageModel";
export * from "./apiTypes/WatchHour";
export * from "./apiTypes/WatchHourPageModel";
export * from "./apiTypes/WatchHourPageModelMessageModel";
export * from "./apiTypes/WatchHourMessageModel";
export * from "./apiTypes/WatchType";
export * from "./apiTypes/WatchTypePageModel";
export * from "./apiTypes/WatchTypePageModelMessageModel";
export * from "./apiTypes/WatchTypeMessageModel";
{
"docsUrl": "https://asc.hnasct.cn/DutyManagement/swagger/dutymanagement/swagger.json",
"axiosInstanceUrl": "../../../../util/axios.js"
}
import {closeToast, showConfirmDialog, showFailToast, showLoadingToast, showNotify, showSuccessToast} from "vant";
export function isAdmin() {
//用户是否是管理员
const role = window.localStorage.getItem('user-info');
return role ? role.includes('管理员') : false
}
export async function myEncapsulationFunction(fun, isShowSuccessText = false, loadingText = '正在提交') {
/**
* isShowSuccessText=>true||false
*
* */
const toast = showLoadingToast({
duration: 0,
forbidClick: true,
message: loadingText,
});
let res = await fun()
if (isShowSuccessText) return toast.close();
try {
switch (res.code) {
case 1 :
toast.close()
showSuccessToast({
message: res.msg
})
setTimeout(() => closeToast(), 1500)
break;
default :
toast.close()
showFailToast({
message: res.msg_detail
})
setTimeout(() => closeToast(), 1500)
}
return res
} catch (e) {
toast.close()
showFailToast({
message: res.msg_detail
})
setTimeout(() => closeToast(), 1500)
}
}
export function getInitListRequest(fun) {
try {
fun()
return false
} catch (e) {
showNotify({type: 'danger', message: e});
return false
}
}
export function publicConfirm(publicFunction, text = '是否继续执行此操作?') {
// 公共弹窗删除
const beforeClose = (action) => {
return true
}
showConfirmDialog({
title: '提示',
message: text,
confirmButtonColor: '#2aa9ff',
beforeClose,
})
.then(async () => {
// on confirm
await publicFunction()
beforeClose()
})
.catch(() => {
// on cancel
});
}
......@@ -5,11 +5,12 @@ import router from "./router/index.js";
import 'animate.css' //引入
import VueCookies from 'vue-cookies'
import VConsole from 'vconsole';
import {initStore} from "./store/index.js";
const app = createApp(App)
//使用测试按钮Vxonsole
// const vConsole = new VConsole();
app.config.globalProperties.$cookies = VueCookies
app.use(router)
initStore(app)
app.mount('#app')
......@@ -12,6 +12,7 @@ import {onMounted} from 'vue'
import * as api from '../api/index.js'
import {GetWatchCount} from "../api/index.js";
import dayjs from "dayjs";
import {useDuTyDate} from "../store/modules/index.js";
const router = useRouter();
const getTokenAction = async (date) => {
......@@ -31,7 +32,8 @@ const getTokenAction = async (date) => {
// 用户信息
Cookies.set('userInfo', JSON.stringify(user.response))
api.GetWatchCount({date:dayjs().format('YYYY-MM-DD')}).then(res=>{
Cookies.set('userDutyDate', JSON.stringify(res.response))
useDuTyDate().setDutyDate(res.response)
router.replace({
name: 'welcome'
})
......@@ -54,7 +56,7 @@ const getTokenActionWx = async (date) => {
// 用户信息
Cookies.set('userInfo', JSON.stringify(user.response))
api.GetWatchCount({date:dayjs().format('YYYY-MM-DD')}).then(res=>{
Cookies.set('userDutyDate', JSON.stringify(res.response))
useDuTyDate().setDutyDate(res.response)
router.replace({
name: 'welcome'
})
......
......@@ -9,6 +9,7 @@ import {useRouter} from 'vue-router'
import {onMounted} from 'vue'
import * as api from '../api/index.js'
import dayjs from "dayjs";
import {useDuTyDate} from "../store/modules/index.js";
const router = useRouter()
const getTokenAction = async (date) => {
......@@ -29,7 +30,8 @@ const getTokenAction = async (date) => {
// 用户信息
Cookies.set('userInfo', JSON.stringify(user.response))
api.GetWatchCount({date:dayjs().format('YYYY-MM-DD')}).then(res=>{
Cookies.set('userDutyDate', JSON.stringify(res.response))
useDuTyDate().setDutyDate(res.response)
router.push({
path: `/${links}`,
query: {
......@@ -58,7 +60,7 @@ const getTokenActionWx = async (date) => {
// 用户信息
Cookies.set('userInfo', JSON.stringify(user.response))
api.GetWatchCount({date:dayjs().format('YYYY-MM-DD')}).then(res=>{
Cookies.set('userDutyDate', JSON.stringify(res.response))
useDuTyDate().setDutyDate(res.response)
router.push({
path: `/${links}`,
// query: {
......
......@@ -128,28 +128,13 @@
</van-popup>
<!-- 相互换班人员选择器 -->
<van-popup v-model:show="init.operatorOnDuty.people.show" round position="bottom">
<!-- 搜索框 -->
<van-search
v-model="init.operatorOnDuty.people.params.condition"
placeholder="请输入姓名或工号"
@update:model-value="searchChangeOperatorOnDuty"/>
<!-- 选择器 -->
<van-picker
:columns="init.operatorOnDuty.people.columns"
:loading="pickerLoading"
@cancel="pickerCancelOperatorOnDuty"
@confirm="pickerConfirmOperatorOnDuty"
/>
</van-popup>
<!-- 相互换班表单 -->
<van-popup v-model:show="init.personnelData.show" position="bottom" style="height: 70%">
<div style="height: 90%;width: 100%; background-color: #f5f5f5;overflow-y: auto;display: flex;flex-direction: column;align-items: center;" >
<van-popup v-model:show="init.intershiftFormDateV2.show" position="bottom" style="height: 70%">
<div
style="height: 90%;width: 100%; background-color: #f5f5f5;overflow-y: auto;display: flex;flex-direction: column;align-items: center;">
<!-- -->
<div style="height: 54px; width: 100%;display: flex;align-items: center;justify-content: center;background-color: #fff;">
<div
style="height: 54px; width: 100%;display: flex;align-items: center;justify-content: center;background-color: #fff;">
<div style="width: 100%; height: 100%;display: flex;align-items: center;justify-content: center;">
<span>相互换班</span>
</div>
......@@ -159,46 +144,42 @@
<div style="width: 100%;height: calc(100% - 54px);overflow-y: auto;">
<van-notice-bar color="#1989fa" background="#ecf9ff" left-icon="info-o">
温馨提示:选择人员及日期,提交进行相互换班。
温馨提示:选择换班人员,提交进行相互换班。
</van-notice-bar>
<van-cell-group style="width: 100%;margin-top: 12px;">
<!-- 申请人-->
<van-field
v-model="init.operatorOnDuty.people.value"
is-link
v-model="init.intershiftFormDateV2.formData.top.username"
readonly
name="operatorOnDutyPeople"
label="值班人员"
label="姓名"
placeholder="点击选择值班人员"
@click="init.changeFlag = 'operatorOnDutyPeople'; init.operatorOnDuty.people.show = true"
/>
<!-- 换班日期-->
<van-field
v-model="init.operatorOnDuty.date.value"
is-link
v-model="init.intershiftFormDateV2.formData.top.watch_date"
readonly
name="operatorOnDutyDate"
label="值班日期"
placeholder="点击选择值班日期"
@click="init.changeFlag = 'operatorOnDutyPeople'; init.operatorOnDuty.date.show = true"
placeholder="暂无值班日期"
/>
<!-- 换班日期 -->
<van-popup v-model:show="init.operatorOnDuty.date.show" round position="bottom">
<van-picker
title="值班日期"
show-toolbar
:columns="init.operatorOnDuty.date.columns"
@confirm="onConfirm"
@cancel="init.operatorOnDuty.date.show = false"
/>
</van-popup>
<!-- <van-popup v-model:show="init.operatorOnDuty.date.show" round position="bottom">-->
<!-- <van-picker-->
<!-- title="值班日期"-->
<!-- show-toolbar-->
<!-- :columns="init.operatorOnDuty.date.columns"-->
<!-- @confirm="onConfirm"-->
<!-- @cancel="init.operatorOnDuty.date.show = false"-->
<!-- />-->
<!-- </van-popup>-->
</van-cell-group>
<div style="width: 100%;height: 60px;background-color: #fff;display: flex;align-items: center;justify-content: center;">
<div
style="width: 100%;height: 60px;background-color: #fff;display: flex;align-items: center;justify-content: center;">
<van-icon name="sort" color="#3287F8" size="30px"/>
</div>
......@@ -206,46 +187,115 @@
<van-cell-group style="width: 100%;">
<!-- 换班人员-->
<van-field
v-model="init.changeShiftsPeople.people.value"
v-model="init.intershiftFormDateV2.formData.bottom.username"
is-link
readonly
name="changeShiftsPeoplePeople"
label="换班人员"
label="姓名"
placeholder="点击选择换班人员"
@click="init.changeFlag = 'changeShiftsPeoplePeople'; init.operatorOnDuty.people.show = true"
@click="openTheShiftSelector()"
/>
<!-- 相互换班人员选择器 -->
<!-- 换班日期-->
<van-field
v-model="init.changeShiftsPeople.date.value"
is-link
v-model="init.intershiftFormDateV2.formData.bottom.watch_date"
readonly
name="changeShiftsPeopleDate"
label="换班日期"
placeholder="点击选择换班日期"
@click="init.changeFlag = 'changeShiftsPeoplePeople'; init.changeShiftsPeople.date.show = true"
placeholder="暂无换班日期"
/>
<!-- 换班日期 -->
<van-popup v-model:show="init.changeShiftsPeople.date.show" round position="bottom">
<van-picker
title="换班日期"
show-toolbar
:columns="init.changeShiftsPeople.date.columns"
@confirm="onConfirm"
@cancel="init.changeShiftsPeople.date.show = false"
/>
</van-popup>
<!-- <van-popup v-model:show="init.changeShiftsPeople.date.show" round position="bottom">-->
<!-- <van-picker-->
<!-- title="换班日期"-->
<!-- show-toolbar-->
<!-- :columns="init.changeShiftsPeople.date.columns"-->
<!-- @confirm="onConfirm"-->
<!-- @cancel="init.changeShiftsPeople.date.show = false"-->
<!-- />-->
<!-- </van-popup>-->
</van-cell-group>
</div>
</div>
<div style="background-color: white; width: 100%;height: 10%; display: flex;align-items: center;justify-content: space-between;padding: 12px; " >
<van-button style="width: 30%;" round @click="init.personnelData.show = false">关闭</van-button>
<div
style="background-color: white; width: 100%;height: 10%; display: flex;align-items: center;justify-content: space-between;padding: 12px; ">
<van-button style="width: 30%;" round @click="init.intershiftFormDateV2.show = false">关闭</van-button>
<van-button style="width: 65%;" round type="primary" @click="submitHandle">提交</van-button>
</div>
</van-popup>
<!-- 换班人员数据-->
<van-popup v-model:show="init.shiftChangerPersonV2.show" position="bottom" style="height: 100%">
<div style="width: 100%;height: 100%;background-color: #fff;overflow-y: auto;position: relative;">
<!--header-->
<div style="width: 100%;height: 94px;z-index: 100;position: sticky;top: 0;">
<div style="width: 100%;height: 40px;display: flex;justify-content: space-between;align-items: center;">
<div
style="width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;font-size: 18px;">
选择相互换班人员
</div>
</div>
<div style="border-top: 1px solid #ebedf0">
<van-search
v-model="init.shiftChangerPersonV2.params.keyword"
placeholder="请输入人员名称"
style="display: flex; justify-content: center; align-items: center"
@update:model-value="doSearch"
>
</van-search>
</div>
</div>
<!-- content-->
<div
style="width: 100%;height: calc(100% - 164px);z-index: 40;padding: 0 12px ;background-color: #F3F4F6;position: relative;overflow-y: auto;">
<van-list
:key="init.shiftChangerPersonV2.kkkk"
v-model="init.shiftChangerPersonV2.loading"
:finished="init.shiftChangerPersonV2.finished"
finished-text="没有更多了"
@load="shiftChangerOnLoad"
offset="400"
>
<van-radio-group v-model="init.intershiftFormDateV2.formData.bottom.watchid">
<div v-for="(item,index) in init.shiftChangerPersonV2.list" :key="index"
style="width: 100%;height: 100%;background-color: #FFFFFF;border-radius: 8px;margin: 10px 0;padding: 10px; display: flex; justify-content: space-between; align-items: center;"
class="relative"
@click="selectUser(item)"
>
<div style="width: 70%;">
<div style="font-size: 20px;color: #323233;">{{ item.username }} - {{ item.card_name }}</div>
<div style="font-size: 14px;color: #969799; display: flex; align-items: center;">
<van-icon name="calendar-o" style="margin-right: 4px;"></van-icon>
{{ item.watch_date }}
</div>
</div>
<div style="width: 30%; display: flex; justify-content: flex-end; align-items: center;">
<van-radio
ref="checkboxRefs"
:name="item.watchid"
class="mr-1"
/>
</div>
</div>
</van-radio-group>
</van-list>
</div>
<!-- footer-->
<div
style="width: 100%;height: 70px;padding: 0 12px;display: flex;justify-content: space-between;align-items: center;position: sticky;bottom: 0;border-top: 1px solid #fff;">
<van-button style="width: 100%;" type="default" round @click="init.shiftChangerPersonV2.show = false">关闭
</van-button>
</div>
</div>
</van-popup>
</template>
<style scoped lang="less">
......@@ -277,6 +327,9 @@ import 'vant/es/dialog/style'
import {showToast, showSuccessToast, showFailToast, showConfirmDialog} from "vant";
import Cookies from 'js-cookie'
import {GetUserSelect, GetUserSelectByRole} from "../../api/index.js";
import * as hooks from "../../hooks/index.js";
import * as request from "../../api/request/controller/index.js";
import {useDuTyDate} from "../../store/modules/index.js";
const onClickLeft = () => history.back();
let myDuty = reactive({
......@@ -515,7 +568,7 @@ onMounted(() => {
})
addDutySearchSelectList()
init
// 获取当前用户信息
userInfo.value = JSON.parse(Cookies.get('userInfo'))
......@@ -525,134 +578,200 @@ onMounted(() => {
})
/**
* 相互换班
*
* */
//打开相互换班
//打开相互换班表单
function openChangeShifts(item) {
console.log('打开相互换班', item)
init.operatorOnDuty.people.value = item.username+'-'+item.card_name
init.operatorOnDuty.date.value = item.watch_date
init.personnelData.show = true
}
// 搜索值改变
function searchChangeOperatorOnDuty(val) {
pickerLoading.value = true
api.GetUserSelect(val).then(res => {
if (res.code == 1) {
const strategy ={
operatorOnDutyPeople: () => {
init.operatorOnDuty.people.columns = res.response.map(a => {
return {
...a,
text: a.name,
value: a.id,
}
})
},
changeShiftsPeoplePeople: () => {
init.operatorOnDuty.people.columns = res.response.map(a => {
return {
...a,
text: a.name,
value: a.id,
init.intershiftFormDateV2.formData.top = {...item, username: `${item.username}(${item.card_name})`};
init.intershiftFormDateV2.show = true;
init.intershiftFormDateV2.formData.bottom = {
"watchid": "",
"watch_date": "",
"dept_id": "",
"card_name": "",
"username": "",
"dept_name": ""
}
}
//打开换班人员选择器
function openTheShiftSelector(item) {
init.shiftChangerPersonV2.show = true;
hooks.myEncapsulationFunction(() => {
return request.getApiWatchApiWatchGetExchangableDuty().then(res => {
init.shiftChangerPersonV2.originalList = res.response
init.shiftChangerPersonV2.initData = res.response
shiftChangerOnLoad()
return res
})
}
}
strategy[init.changeFlag]()
} else {
showFailToast(res.msg_detail)
}
}).finally(() => {
pickerLoading.value = false
}, true)
}
//获取人员数据
function getPeopleData() {
request.getApiWatchApiWatchGetExchangableDuty().then(res => {
init.shiftChangerPersonV2.originalList = res.response
init.shiftChangerPersonV2.initData = res.response
})
}
// 换班选择器确认
function pickerConfirmOperatorOnDuty(val) {
// console.log('选择器确认', val)
if (val.selectedOptions[0] == undefined) {
// 未选择人员
showToast('请选择换班人员')
return
}
const strategy ={
operatorOnDutyPeople: () => {
init.operatorOnDuty.people.value = val.selectedOptions[0].name
init.operatorOnDuty.people.show = false
getDutyDate('card')
},
changeShiftsPeoplePeople: () => {
init.changeShiftsPeople.people.value = val.selectedOptions[0].name
init.operatorOnDuty.people.show = false
getDutyDate('card')
// 加载调班更多》前端分页
function shiftChangerOnLoad() {
//重新渲染列表,防止不能刷新数据
init.shiftChangerPersonV2.kkkk++
// 加载中
init.shiftChangerPersonV2.loading = true;
let i = init.shiftChangerPersonV2.list.length;
let max = i + init.shiftChangerPersonV2.params.page_size;
// 先过滤掉当前选中的watchid,再进行分页
const filteredList = init.shiftChangerPersonV2.originalList.filter(
item => item.watchid !== init.intershiftFormDateV2.formData.top.watchid
);
init.shiftChangerPersonV2.list = init.shiftChangerPersonV2.list.concat(
filteredList.slice(i, max)
);
init.shiftChangerPersonV2.loading = false;
//加载完成
if (init.shiftChangerPersonV2.list.length >= filteredList.length) {
init.shiftChangerPersonV2.finished = true;
}
}
strategy[init.changeFlag]()
}
// 换班选择器取消
function pickerCancelOperatorOnDuty() {
init.operatorOnDuty.people.show = false
}
//获取值班日期
function getDutyDate(card) {
console.log('获取值班日期', init.operatorOnDuty.people.value)
const strategy ={
operatorOnDutyPeople: () => {
init.operatorOnDuty.date.columns = [
{text: '2025-03-11', value: '2025-03-11'},
{text: '2025-03-12', value: '2025-03-12'},
{text: '2025-03-13', value: '2025-03-13'},
{text: '2025-03-14', value: '2025-03-14'},
{text: '2025-03-15', value: '2025-03-15'},
{text: '2025-03-16', value: '2025-03-16'},
{text: '2025-03-17', value: '2025-03-17'},
]
},
changeShiftsPeoplePeople: () => {
init.changeShiftsPeople.date.columns = [
{text: '2025-03-11', value: '2025-03-11'},
{text: '2025-03-12', value: '2025-03-12'},
{text: '2025-03-13', value: '2025-03-13'},
{text: '2025-03-14', value: '2025-03-14'},
{text: '2025-03-15', value: '2025-03-15'},
{text: '2025-03-16', value: '2025-03-16'},
{text: '2025-03-17', value: '2025-03-17'},
]
}
// 搜索
function doSearch(value) {
// 搜索为空时,重置数据
if (!value) {
init.shiftChangerPersonV2.originalList = init.shiftChangerPersonV2.initData;
init.shiftChangerPersonV2.finished = false;
init.shiftChangerPersonV2.list = [];
shiftChangerOnLoad();
return;
}
strategy[init.changeFlag]()
// 搜索
const keyword = value.toLowerCase();
init.shiftChangerPersonV2.originalList = init.shiftChangerPersonV2.initData.filter(item => {
return (
(item.username && item.username.toLowerCase().includes(keyword)) ||
(item.card_name && item.card_name.toLowerCase().includes(keyword))
);
});
// 搜索时,清空列表并重新加载
init.shiftChangerPersonV2.finished = false;
init.shiftChangerPersonV2.list = [];
shiftChangerOnLoad();
}
//换班日期选择
function onConfirm(value) {
console.log('选择器确认', value)
const strategy ={
operatorOnDutyPeople: () => {
init.operatorOnDuty.date.value = value.selectedOptions[0].value
init.operatorOnDuty.date.show = false
},
changeShiftsPeoplePeople: () => {
init.changeShiftsPeople.date.value = value.selectedOptions[0].value
init.changeShiftsPeople.date.show = false
}
}
strategy[init.changeFlag]()
//选中调班人员
function selectUser(item) {
init.intershiftFormDateV2.formData.bottom = item
}
//提交相互换班
function submitHandle() {
console.log('提交相互换班', init.operatorOnDuty.people.value, init.operatorOnDuty.date.value, init.changeShiftsPeople.people.value, init.changeShiftsPeople.date.value)
// 检查是否选择了换班人员
if (!init.intershiftFormDateV2.formData.bottom.watchid) {
showToast('请选择换班人员');
return;
}
hooks.publicConfirm(() => {
hooks.myEncapsulationFunction(() => {
return request.getApiWatchApiWatchExchangeDuty({
'first_id': init.intershiftFormDateV2.formData.top.watchid,
'second_id': init.intershiftFormDateV2.formData.bottom.watchid
}).then(res => {
if (res.code === 1) {
init.intershiftFormDateV2.show = false
api.GetWatchCount({date: dayjs().format('YYYY-MM-DD')}).then(res => {
useDuTyDate().setDutyDate(res.response)
})
search1()
return res
}
})
})
})
}
/**
* 相互换班
*
* */
const init = reactive({
//换班表单
intershiftFormDateV2: {
cascaderKey: 321,
addOrEditFlag: '',
show: false,
formData: {
top: {
"watchid": "",
"watch_date": "",
"dept_id": "",
"card_name": "",
"username": "",
"dept_name": ""
},
bottom: {
"watchid": "",
"watch_date": "",
"dept_id": "",
"card_name": "",
"username": "",
"dept_name": ""
}
},
dutyDateList: [],
rules: {
name: [
{required: true, message: '请选择人员', trigger: 'change'}
],
date: [
{required: true, message: '请选择换班日期', trigger: 'change'}
]
}
},
//换班人员列表
shiftChangerPersonV2: {
initData: [],
originalList: [],
kkkk: 123123,
initList: [],
show: false,
params: {
page_index: 1,
page_size: 10,
keyword: ''
},
list: [],
loading: false,
finished: false,
refreshing: false,
timer: {}
},
//相互换班
changeFlag:'',
userDutyDate: [],
......@@ -770,10 +889,6 @@ function advancedfilter() {
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search1() {
//连贯查询动作,复用在重置、触发查询按钮
......
......@@ -11,7 +11,9 @@
@load="onLoad"
>
<!-- 日历 -->
<van-calendar
:key="init.cascaderKey"
type="single"
:show-subtitle="false"
:poppable="false"
......@@ -24,6 +26,7 @@
:maxDate="dateArray.maxDate"
/>
<van-cell-group style="width: 100%;margin-top: 10px">
<!-- 日历 -->
<!-- <div class="dateContainer">
......@@ -72,7 +75,7 @@
</van-dropdown-menu>
</div>
<!-- 值班列表 -->
<!--值班列表 -->
<van-cell-group v-for="(item,index) in GetWatchListObject.GetWatchListInitArray" :key="index" inset
class="cardContainer w-full mb-12">
<van-cell class="cardContent" :title="item.username">
......@@ -96,7 +99,9 @@
</van-cell>
<van-cell v-if="hooks.isAdmin()" class="" title="换班">
<template #value>
<van-button style="margin-right: 10px;" plain type="warning" size="small" @click="openChangeShifts(item)">相互换班</van-button>
<van-button style="margin-right: 10px;" plain type="warning" size="small" @click="openChangeShifts(item)">
相互换班
</van-button>
<van-button plain type="warning" size="small" @click="pickerChgSftOpen(item)">换班</van-button>
</template>
</van-cell>
......@@ -117,7 +122,7 @@
width: 100%;
"
>
V1.0.1.250221-250225 </span>
V1.0.1.250205-250325 </span>
</div>
</div>
</div>
......@@ -151,29 +156,13 @@
</van-popup>
<!-- 相互换班人员选择器 -->
<van-popup v-model:show="init.operatorOnDuty.people.show" round position="bottom">
<!-- 搜索框 -->
<van-search
v-model="init.operatorOnDuty.people.params.condition"
placeholder="请输入姓名或工号"
@update:model-value="searchChangeOperatorOnDuty"/>
<!-- 选择器 -->
<van-picker
:columns="init.operatorOnDuty.people.columns"
:loading="pickerLoading"
@cancel="pickerCancelOperatorOnDuty"
@confirm="pickerConfirmOperatorOnDuty"
/>
</van-popup>
<!-- 相互换班表单 -->
<van-popup v-model:show="init.personnelData.show" position="bottom" style="height: 70%">
<div style="height: 90%;width: 100%; background-color: #f5f5f5;overflow-y: auto;display: flex;flex-direction: column;align-items: center;" >
<van-popup v-model:show="init.intershiftFormDateV2.show" position="bottom" style="height: 70%">
<div
style="height: 90%;width: 100%; background-color: #f5f5f5;overflow-y: auto;display: flex;flex-direction: column;align-items: center;">
<!-- -->
<div style="height: 54px; width: 100%;display: flex;align-items: center;justify-content: center;background-color: #fff;">
<div
style="height: 54px; width: 100%;display: flex;align-items: center;justify-content: center;background-color: #fff;">
<div style="width: 100%; height: 100%;display: flex;align-items: center;justify-content: center;">
<span>相互换班</span>
</div>
......@@ -183,46 +172,42 @@
<div style="width: 100%;height: calc(100% - 54px);overflow-y: auto;">
<van-notice-bar color="#1989fa" background="#ecf9ff" left-icon="info-o">
温馨提示:选择人员及日期,提交进行相互换班。
温馨提示:选择换班人员,提交进行相互换班。
</van-notice-bar>
<van-cell-group style="width: 100%;margin-top: 12px;">
<!-- 申请人-->
<van-field
v-model="init.operatorOnDuty.people.value"
is-link
v-model="init.intershiftFormDateV2.formData.top.username"
readonly
name="operatorOnDutyPeople"
label="值班人员"
label="姓名"
placeholder="点击选择值班人员"
@click="init.changeFlag = 'operatorOnDutyPeople'; init.operatorOnDuty.people.show = true"
/>
<!-- 换班日期-->
<van-field
v-model="init.operatorOnDuty.date.value"
is-link
v-model="init.intershiftFormDateV2.formData.top.watch_date"
readonly
name="operatorOnDutyDate"
label="值班日期"
placeholder="点击选择值班日期"
@click="init.changeFlag = 'operatorOnDutyPeople'; init.operatorOnDuty.date.show = true"
placeholder="暂无值班日期"
/>
<!-- 换班日期 -->
<van-popup v-model:show="init.operatorOnDuty.date.show" round position="bottom">
<van-picker
title="值班日期"
show-toolbar
:columns="init.operatorOnDuty.date.columns"
@confirm="onConfirm"
@cancel="init.operatorOnDuty.date.show = false"
/>
</van-popup>
<!-- <van-popup v-model:show="init.operatorOnDuty.date.show" round position="bottom">-->
<!-- <van-picker-->
<!-- title="值班日期"-->
<!-- show-toolbar-->
<!-- :columns="init.operatorOnDuty.date.columns"-->
<!-- @confirm="onConfirm"-->
<!-- @cancel="init.operatorOnDuty.date.show = false"-->
<!-- />-->
<!-- </van-popup>-->
</van-cell-group>
<div style="width: 100%;height: 60px;background-color: #fff;display: flex;align-items: center;justify-content: center;">
<div
style="width: 100%;height: 60px;background-color: #fff;display: flex;align-items: center;justify-content: center;">
<van-icon name="sort" color="#3287F8" size="30px"/>
</div>
......@@ -230,45 +215,115 @@
<van-cell-group style="width: 100%;">
<!-- 换班人员-->
<van-field
v-model="init.changeShiftsPeople.people.value"
v-model="init.intershiftFormDateV2.formData.bottom.username"
is-link
readonly
name="changeShiftsPeoplePeople"
label="换班人员"
label="姓名"
placeholder="点击选择换班人员"
@click="init.changeFlag = 'changeShiftsPeoplePeople'; init.operatorOnDuty.people.show = true"
@click="openTheShiftSelector()"
/>
<!-- 相互换班人员选择器 -->
<!-- 换班日期-->
<van-field
v-model="init.changeShiftsPeople.date.value"
is-link
v-model="init.intershiftFormDateV2.formData.bottom.watch_date"
readonly
name="changeShiftsPeopleDate"
label="换班日期"
placeholder="点击选择换班日期"
@click="init.changeFlag = 'changeShiftsPeoplePeople'; init.changeShiftsPeople.date.show = true"
placeholder="暂无换班日期"
/>
<!-- 换班日期 -->
<van-popup v-model:show="init.changeShiftsPeople.date.show" round position="bottom">
<van-picker
title="换班日期"
show-toolbar
:columns="init.changeShiftsPeople.date.columns"
@confirm="onConfirm"
@cancel="init.changeShiftsPeople.date.show = false"
/>
</van-popup>
<!-- <van-popup v-model:show="init.changeShiftsPeople.date.show" round position="bottom">-->
<!-- <van-picker-->
<!-- title="换班日期"-->
<!-- show-toolbar-->
<!-- :columns="init.changeShiftsPeople.date.columns"-->
<!-- @confirm="onConfirm"-->
<!-- @cancel="init.changeShiftsPeople.date.show = false"-->
<!-- />-->
<!-- </van-popup>-->
</van-cell-group>
</div>
</div>
<div style="background-color: white; width: 100%;height: 10%; display: flex;align-items: center;justify-content: space-between;padding: 12px; " >
<van-button style="width: 30%;" round @click="init.personnelData.show = false">关闭</van-button>
<div
style="background-color: white; width: 100%;height: 10%; display: flex;align-items: center;justify-content: space-between;padding: 12px; ">
<van-button style="width: 30%;" round @click="init.intershiftFormDateV2.show = false">关闭</van-button>
<van-button style="width: 65%;" round type="primary" @click="submitHandle">提交</van-button>
</div>
</van-popup>
<!-- 换班人员数据-->
<van-popup v-model:show="init.shiftChangerPersonV2.show" position="bottom" style="height: 100%">
<div style="width: 100%;height: 100%;background-color: #fff;overflow-y: auto;position: relative;">
<!--header-->
<div style="width: 100%;height: 94px;z-index: 100;position: sticky;top: 0;">
<div style="width: 100%;height: 40px;display: flex;justify-content: space-between;align-items: center;">
<div
style="width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;font-size: 18px;">
选择相互换班人员
</div>
</div>
<div style="border-top: 1px solid #ebedf0">
<van-search
v-model="init.shiftChangerPersonV2.params.keyword"
placeholder="请输入人员名称"
style="display: flex; justify-content: center; align-items: center"
@update:model-value="doSearch"
>
</van-search>
</div>
</div>
<!-- content-->
<div
style="width: 100%;height: calc(100% - 164px);z-index: 40;padding: 0 12px ;background-color: #F3F4F6;position: relative;overflow-y: auto;">
<van-list
:key="init.shiftChangerPersonV2.kkkk"
v-model="init.shiftChangerPersonV2.loading"
:finished="init.shiftChangerPersonV2.finished"
finished-text="没有更多了"
@load="shiftChangerOnLoad"
offset="400"
>
<van-radio-group v-model="init.intershiftFormDateV2.formData.bottom.watchid">
<div v-for="(item,index) in init.shiftChangerPersonV2.list" :key="index"
style="width: 100%;height: 100%;background-color: #FFFFFF;border-radius: 8px;margin: 10px 0;padding: 10px; display: flex; justify-content: space-between; align-items: center;"
class="relative"
@click="selectUser(item)"
>
<div style="width: 70%;">
<div style="font-size: 20px;color: #323233;">{{ item.username }} - {{ item.card_name }}</div>
<div style="font-size: 14px;color: #969799; display: flex; align-items: center;">
<van-icon name="calendar-o" style="margin-right: 4px;"></van-icon>
{{ item.watch_date }}
</div>
</div>
<div style="width: 30%; display: flex; justify-content: flex-end; align-items: center;">
<van-radio
ref="checkboxRefs"
:name="item.watchid"
class="mr-1"
/>
</div>
</div>
</van-radio-group>
</van-list>
</div>
<!-- footer-->
<div
style="width: 100%;height: 70px;padding: 0 12px;display: flex;justify-content: space-between;align-items: center;position: sticky;bottom: 0;border-top: 1px solid #fff;">
<van-button style="width: 100%;" type="default" round @click="init.shiftChangerPersonV2.show = false">关闭
</van-button>
</div>
</div>
</van-popup>
</template>
<script setup>
......@@ -276,10 +331,12 @@ import 'vant/es/dialog/style'
import dayjs from 'dayjs';
import router from "../../router/index.js";
import * as api from '../../api/index.js';
import {ref, reactive, onMounted, watch} from 'vue';
import {ref, reactive, onMounted, watch, nextTick} from 'vue';
import {showConfirmDialog, showFailToast, showSuccessToast, showToast} from "vant";
import Cookies from "js-cookie";
import * as hooks from '../../hooks/index.js';
import * as request from '../../api/request/controller'
import {useDuTyDate} from "../../store/modules/index.js";
let dateArray = reactive({
minDate: new Date(dayjs().year(), dayjs().month() - 1, 1),
......@@ -342,10 +399,10 @@ const onRefresh = async () => {
}
// 值班日期格式化
const dutyDateFormatter = (day) => {
// console.log("🚀dateArray.dateBackgroundText🚀🚀,",dateArray.dateBackgroundText)
const month1 = Number(dayjs(day.date).format('M'))
const date = Number(dayjs(day.date).format('D'))
const userDutyDate = JSON.parse(Cookies.get('userDutyDate'))
const userDutyDate = useDuTyDate().getDutyDate()
userDutyDate.forEach((currantValue, index) => {
const month = Number(dayjs(currantValue).format('M'))
......@@ -359,6 +416,7 @@ const dutyDateFormatter = (day) => {
return day;
};
// 重置初始化请求相关数据
function resetGetData() {
//重置初始化请求相关数据
......@@ -367,6 +425,7 @@ function resetGetData() {
finished.value = false
}
// 值班日期选择
const dutyCalendar = (e) => {
centerDateValue(dayjs(e).format('YYYY-MM-DD'))
......@@ -499,6 +558,7 @@ function onLoad() {
GetWatchList()
init.params.page_index++
}
// 获取当前日期
const getMonthStartEnd = () => {
......@@ -577,129 +637,138 @@ function pickerCancel() {
}
/**
* 相互换班
*
* */
//打开相互换班
//打开相互换班表单
function openChangeShifts(item) {
console.log('打开相互换班', item)
init.intershiftFormDateV2.formData.top = {...item, username: `${item.username}(${item.card_name})`};
init.intershiftFormDateV2.show = true;
init.intershiftFormDateV2.formData.bottom = {
"watchid": "",
"watch_date": "",
"dept_id": "",
"card_name": "",
"username": "",
"dept_name": ""
}
}
init.operatorOnDuty.people.value = item.username+'-'+item.card_name
init.operatorOnDuty.date.value = item.watch_date
init.personnelData.show = true
}
// 搜索值改变
function searchChangeOperatorOnDuty(val) {
pickerLoading.value = true
api.GetUserSelect(val).then(res => {
if (res.code == 1) {
const strategy ={
operatorOnDutyPeople: () => {
init.operatorOnDuty.people.columns = res.response.map(a => {
return {
...a,
text: a.name,
value: a.id,
}
})
},
changeShiftsPeoplePeople: () => {
init.operatorOnDuty.people.columns = res.response.map(a => {
return {
...a,
text: a.name,
value: a.id,
}
//打开换班人员选择器
function openTheShiftSelector(item) {
init.shiftChangerPersonV2.show = true;
hooks.myEncapsulationFunction(() => {
return request.getApiWatchApiWatchGetExchangableDuty().then(res => {
init.shiftChangerPersonV2.originalList = res.response
init.shiftChangerPersonV2.initData = res.response
shiftChangerOnLoad()
return res
})
}
}
strategy[init.changeFlag]()
} else {
showFailToast(res.msg_detail)
}
}).finally(() => {
pickerLoading.value = false
}, true)
}
//获取人员数据
function getPeopleData() {
request.getApiWatchApiWatchGetExchangableDuty().then(res => {
init.shiftChangerPersonV2.originalList = res.response
init.shiftChangerPersonV2.initData = res.response
})
}
// 换班选择器确认
function pickerConfirmOperatorOnDuty(val) {
// console.log('选择器确认', val)
if (val.selectedOptions[0] == undefined) {
// 未选择人员
showToast('请选择换班人员')
return
// 加载调班更多》前端分页
function shiftChangerOnLoad() {
//重新渲染列表,防止不能刷新数据
init.shiftChangerPersonV2.kkkk++
// 加载中
init.shiftChangerPersonV2.loading = true;
let i = init.shiftChangerPersonV2.list.length;
let max = i + init.shiftChangerPersonV2.params.page_size;
// 先过滤掉当前选中的watchid,再进行分页
const filteredList = init.shiftChangerPersonV2.originalList.filter(
item => item.watchid !== init.intershiftFormDateV2.formData.top.watchid
);
init.shiftChangerPersonV2.list = init.shiftChangerPersonV2.list.concat(
filteredList.slice(i, max)
);
init.shiftChangerPersonV2.loading = false;
//加载完成
if (init.shiftChangerPersonV2.list.length >= filteredList.length) {
init.shiftChangerPersonV2.finished = true;
}
const strategy ={
operatorOnDutyPeople: () => {
init.operatorOnDuty.people.value = val.selectedOptions[0].name
init.operatorOnDuty.people.show = false
getDutyDate('card')
},
changeShiftsPeoplePeople: () => {
init.changeShiftsPeople.people.value = val.selectedOptions[0].name
init.operatorOnDuty.people.show = false
getDutyDate('card')
}
}
strategy[init.changeFlag]()
}
// 换班选择器取消
function pickerCancelOperatorOnDuty() {
init.operatorOnDuty.people.show = false
}
//获取值班日期
function getDutyDate(card) {
console.log('获取值班日期', init.operatorOnDuty.people.value)
const strategy ={
operatorOnDutyPeople: () => {
init.operatorOnDuty.date.columns = [
{text: '2025-03-11', value: '2025-03-11'},
{text: '2025-03-12', value: '2025-03-12'},
{text: '2025-03-13', value: '2025-03-13'},
{text: '2025-03-14', value: '2025-03-14'},
{text: '2025-03-15', value: '2025-03-15'},
{text: '2025-03-16', value: '2025-03-16'},
{text: '2025-03-17', value: '2025-03-17'},
]
},
changeShiftsPeoplePeople: () => {
init.changeShiftsPeople.date.columns = [
{text: '2025-03-11', value: '2025-03-11'},
{text: '2025-03-12', value: '2025-03-12'},
{text: '2025-03-13', value: '2025-03-13'},
{text: '2025-03-14', value: '2025-03-14'},
{text: '2025-03-15', value: '2025-03-15'},
{text: '2025-03-16', value: '2025-03-16'},
{text: '2025-03-17', value: '2025-03-17'},
]
}
}
strategy[init.changeFlag]()
}
//换班日期选择
function onConfirm(value) {
console.log('选择器确认', value)
const strategy ={
operatorOnDutyPeople: () => {
init.operatorOnDuty.date.value = value.selectedOptions[0].value
init.operatorOnDuty.date.show = false
},
changeShiftsPeoplePeople: () => {
init.changeShiftsPeople.date.value = value.selectedOptions[0].value
init.changeShiftsPeople.date.show = false
}
// 搜索
function doSearch(value) {
// 搜索为空时,重置数据
if (!value) {
init.shiftChangerPersonV2.originalList = init.shiftChangerPersonV2.initData;
init.shiftChangerPersonV2.finished = false;
init.shiftChangerPersonV2.list = [];
shiftChangerOnLoad();
return;
}
strategy[init.changeFlag]()
// 搜索
const keyword = value.toLowerCase();
init.shiftChangerPersonV2.originalList = init.shiftChangerPersonV2.initData.filter(item => {
return (
(item.username && item.username.toLowerCase().includes(keyword)) ||
(item.card_name && item.card_name.toLowerCase().includes(keyword))
);
});
// 搜索时,清空列表并重新加载
init.shiftChangerPersonV2.finished = false;
init.shiftChangerPersonV2.list = [];
shiftChangerOnLoad();
}
//选中调班人员
function selectUser(item) {
init.intershiftFormDateV2.formData.bottom = item
}
//提交相互换班
function submitHandle() {
console.log('提交相互换班', init.operatorOnDuty.people.value, init.operatorOnDuty.date.value, init.changeShiftsPeople.people.value, init.changeShiftsPeople.date.value)
// 检查是否选择了换班人员
if (!init.intershiftFormDateV2.formData.bottom.watchid) {
showToast('请选择换班人员');
return;
}
hooks.publicConfirm(() => {
hooks.myEncapsulationFunction(() => {
return request.getApiWatchApiWatchExchangeDuty({
'first_id': init.intershiftFormDateV2.formData.top.watchid,
'second_id': init.intershiftFormDateV2.formData.bottom.watchid
}).then(res => {
if (res.code === 1) {
init.intershiftFormDateV2.show = false
api.GetWatchCount({date: dayjs().format('YYYY-MM-DD')}).then(res => {
useDuTyDate().setDutyDate(res.response)
})
search1()
return res
}
})
})
})
}
/**
* 相互换班
*
......@@ -710,42 +779,97 @@ function submitHandle() {
*/
// 搜索条件
const init = reactive({
//换班表单
intershiftFormDateV2: {
cascaderKey: 321,
addOrEditFlag: '',
show: false,
formData: {
top: {
"watchid": "",
"watch_date": "",
"dept_id": "",
"card_name": "",
"username": "",
"dept_name": ""
},
bottom: {
"watchid": "",
"watch_date": "",
"dept_id": "",
"card_name": "",
"username": "",
"dept_name": ""
}
},
dutyDateList: [],
rules: {
name: [
{required: true, message: '请选择人员', trigger: 'change'}
],
date: [
{required: true, message: '请选择换班日期', trigger: 'change'}
]
}
},
//换班人员列表
shiftChangerPersonV2: {
initData: [],
originalList: [],
kkkk: 123123,
initList: [],
show: false,
params: {
page_index: 1,
page_size: 10,
keyword: ''
},
list: [],
loading: false,
finished: false,
refreshing: false,
timer: {}
},
//相互换班
changeFlag:'',
changeFlag: '',
userDutyDate: [],
operatorOnDuty:{
people:{
params:{
operatorOnDuty: {
people: {
params: {
condition: '',
},
value: '',
columns: [],
showPicker: false,
},
date:{
date: {
columns: [],
value:'',
show:false,
value: '',
show: false,
},
},
//换班人员
changeShiftsPeople:{
people:{
params:{
changeShiftsPeople: {
people: {
params: {
condition: '',
},
value: '',
columns: [],
showPicker: false,
},
date:{
date: {
columns: [],
value:'',
show:false,
value: '',
show: false,
},
},
personnelData: {
initList:[],
initList: [],
formData: {
"duty_type_id": "",
"date": "",
......@@ -768,9 +892,9 @@ const init = reactive({
timer: {}
},
//相互换班
date:{
value:'',
show:false,
date: {
value: '',
show: false,
},
params: {
"dep_id": "",
......@@ -823,7 +947,9 @@ function search1() {
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad1(), 500)
}
const dateRangeRef = ref('')
function reset1() {
//重置操作
init.params = {
......@@ -901,7 +1027,7 @@ const getSearchSelectListPromiseAllAction = (publicName, title, objectAttribute,
*/
// 监听搜索条件
watch([() => init.params.key_name, () => init.params.type_id, () => init.params.watchhour_time, () => init.params.campus_id, () => init.params.dep_id], (newValue, oldValue) => {
watch([() => init.params.key_name, () => init.params.type_id, () => init.params.watchhour_time, () => init.params.campus_id, () => init.params.dep_id], (newValue, oldValue) => {
if (newValue[0] || newValue[1] || newValue[2] || newValue[3] || newValue[4]) {
resetGetData()
GetWatchList()
......@@ -910,6 +1036,7 @@ const getSearchSelectListPromiseAllAction = (publicName, title, objectAttribute,
// 挂载
onMounted(() => {
getMonthStartEnd()//获取当前日期
// GetWatchList()
getInitDate() // 获取初始日期
......@@ -925,6 +1052,7 @@ onMounted(() => {
text-align: center;
background-color: #39ed81;
}
.container {
.dateContainer {
width: 100%;
......@@ -983,6 +1111,7 @@ onMounted(() => {
}
}
.aaa {
/deep/ .van-dropdown-menu__bar {
position: relative;
......
import {createPinia} from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
const store = createPinia();
store.use(piniaPluginPersistedstate);
const initStore = (app) => {
/**
* 传入VM,将Pinia挂载到VM中
* */
app.use(store);
};
export {store, initStore}
export * from './user.js'
import {defineStore} from "pinia";
/***
* 用户状态管理
* */
export const useDuTyDate = defineStore({
id: 'lezDutyManagement',
state: () => ({
dutyDate: [],
}),
actions: {
getDutyDate() {
//获取token
return this.dutyDate
},
setDutyDate(response) {
//设置用户信息
this.dutyDate = response
},
},
getters: {},
persist: {
paths: ["dutyDate", ]
}
})
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或