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

V20240314 完成系统配置

上级 8d88726b
import{f as p,b as l,a as u,h as k,e as m,L as _,o as f,i as g,C as w,j as n,G as a,S as y,k as d}from"./index-CSb1h3Rk.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(v){const t=m(),c=async o=>{const e=await y(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}},r=async o=>{const e=await d(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",s.response.role),await t.replace({name:"welcome"})}},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await w();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return p(()=>{i()}),(o,e)=>{const s=_;return f(),l("div",R,[u(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[g(" 登录中")]),_:1})])}}};export{A as default}; import{f as p,b as l,a as u,h as k,e as m,L as _,o as f,i as g,C as w,j as n,G as a,S as y,k as d}from"./index-D6tuUqku.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(v){const t=m(),c=async o=>{const e=await y(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}},r=async o=>{const e=await d(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",s.response.role),await t.replace({name:"welcome"})}},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await w();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return p(()=>{i()}),(o,e)=>{const s=_;return f(),l("div",R,[u(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[g(" 登录中")]),_:1})])}}};export{A as default};
import{f as i,b as l,a as p,h as k,e as _,j as s,L as d,o as m,i as y}from"./index-CSb1h3Rk.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=_(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},r=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},c=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(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 r(n)}};return i(()=>{c()}),(n,t)=>{const o=d;return m(),l("div",f,[p(o,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[y(" 登录中")]),_:1})])}}};export{q as default}; import{f as i,b as l,a as p,h as k,e as _,j as s,L as d,o as m,i as y}from"./index-D6tuUqku.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=_(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},r=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},c=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(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 r(n)}};return i(()=>{c()}),(n,t)=>{const o=d;return m(),l("div",f,[p(o,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[y(" 登录中")]),_:1})])}}};export{q as default};
import{c as D,d as w,u as k,a as e,g as _,m as B,w as G,b as M,F as S,e as C,o as b,N as z}from"./index-CSb1h3Rk.js";const[A,s]=D("empty"),I={image:B("default"),imageSize:[Number,String,Array],description:String};var N=w({name:A,props:I,setup(o,{slots:a}){const h=()=>{const l=a.description?a.description():o.description;if(l)return e("p",{class:s("description")},[l])},x=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=k(),r=l=>`${f}-${l}`,t=l=>`url(#${r(l)})`,n=(l,d,v)=>e("stop",{"stop-color":l,offset:`${d}%`,"stop-opacity":v},null),i=(l,d)=>[n(l,0),n(d,100)],F=l=>[e("defs",null,[e("radialGradient",{id:r(l),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[n("#EBEDF0",0),n("#F2F3F5",100,.3)])]),e("ellipse",{fill:t(l),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:r("a"),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#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)])],u=()=>[e("defs",null,[e("linearGradient",{id:r("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[n("#F2F3F5",0,.3),n("#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)])],p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:r(1),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#F2F3F5",100)]),e("linearGradient",{id:r(2),x1:"50%",x2:"50%",y2:"84%"},[n("#EBEDF0",0),n("#DCDEE0",100,0)]),e("linearGradient",{id:r(3),x1:"100%",x2:"100%",y2:"100%"},[i("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:r(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[n("#EBEDF0",0),n("#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)])])]),y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(5)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:r(6)},[i("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:r(7)},[i("#EAEDF1","#DCDEE0")])]),c(),u(),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)])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(8)},[i("#EAEDF1","#DCDEE0")])]),c(),u(),F("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)]),m=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:r(9)},[i("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:r(10)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(11)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(12)},[i("#FFF","#F7F8FA")])]),c(),u(),F("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)])]),E=()=>{var l;if(a.image)return a.image();const d={error:g,search:m,network:p,default:y};return((l=d[o.image])==null?void 0:l.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:_(o.imageSize)},[E()]),h(),x()])}});const H=G(N),$={__name:"index",setup(o){const a=C(),h=()=>a.replace({name:"welcome"});return(x,f)=>{const r=z,t=H;return b(),M(S,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:h}),e(t,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{$ as default}; import{c as D,d as w,u as k,a as e,g as _,m as B,w as G,b as M,F as S,e as C,o as b,N as z}from"./index-D6tuUqku.js";const[A,s]=D("empty"),I={image:B("default"),imageSize:[Number,String,Array],description:String};var N=w({name:A,props:I,setup(o,{slots:a}){const h=()=>{const l=a.description?a.description():o.description;if(l)return e("p",{class:s("description")},[l])},x=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=k(),r=l=>`${f}-${l}`,t=l=>`url(#${r(l)})`,n=(l,d,v)=>e("stop",{"stop-color":l,offset:`${d}%`,"stop-opacity":v},null),i=(l,d)=>[n(l,0),n(d,100)],F=l=>[e("defs",null,[e("radialGradient",{id:r(l),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[n("#EBEDF0",0),n("#F2F3F5",100,.3)])]),e("ellipse",{fill:t(l),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:r("a"),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#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)])],u=()=>[e("defs",null,[e("linearGradient",{id:r("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[n("#F2F3F5",0,.3),n("#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)])],p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:r(1),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#F2F3F5",100)]),e("linearGradient",{id:r(2),x1:"50%",x2:"50%",y2:"84%"},[n("#EBEDF0",0),n("#DCDEE0",100,0)]),e("linearGradient",{id:r(3),x1:"100%",x2:"100%",y2:"100%"},[i("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:r(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[n("#EBEDF0",0),n("#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)])])]),y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(5)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:r(6)},[i("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:r(7)},[i("#EAEDF1","#DCDEE0")])]),c(),u(),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)])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(8)},[i("#EAEDF1","#DCDEE0")])]),c(),u(),F("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)]),m=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:r(9)},[i("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:r(10)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(11)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(12)},[i("#FFF","#F7F8FA")])]),c(),u(),F("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)])]),E=()=>{var l;if(a.image)return a.image();const d={error:g,search:m,network:p,default:y};return((l=d[o.image])==null?void 0:l.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:_(o.imageSize)},[E()]),h(),x()])}});const H=G(N),$={__name:"index",setup(o){const a=C(),h=()=>a.replace({name:"welcome"});return(x,f)=>{const r=z,t=H;return b(),M(S,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:h}),e(t,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{$ as default};
import{_ as e}from"./index-CSb1h3Rk.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default}; import{_ as e}from"./index-D6tuUqku.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{c as ie,d as le,I as se,a as y,F as w,J as oe,T as de,w as re,l as E,K as h,A as V,r as ce,f as pe,b as p,n,M as P,O as Y,s as A,h as D,P as _e,o as r,p as j,Q as me,i as W,E as fe,R as ue,y as he,z as ye,U as ge,H as we,D as ke,V as z,W as Fe,X as be}from"./index-CSb1h3Rk.js";const[G,De]=ie("space"),xe={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function O(i=[]){const _=[];return i.forEach(l=>{Array.isArray(l)?_.push(...l):l.type===w?_.push(...O(l.children)):_.push(l)}),_.filter(l=>{var m;return!(l&&(l.type===oe||l.type===w&&((m=l.children)==null?void 0:m.length)===0||l.type===de&&l.children.trim()===""))})}var ve=le({name:G,props:xe,setup(i,{slots:_}){const l=se(()=>{var g;return(g=i.align)!=null?g:i.direction==="horizontal"?"center":""}),m=g=>typeof g=="number"?g+"px":g,$=g=>{const x={},e=`${m(Array.isArray(i.size)?i.size[0]:i.size)}`,C=`${m(Array.isArray(i.size)?i.size[1]:i.size)}`;return g?i.wrap?{marginBottom:C}:{}:(i.direction==="horizontal"&&(x.marginRight=e),(i.direction==="vertical"||i.wrap)&&(x.marginBottom=C),x)};return()=>{var g;const x=O((g=_.default)==null?void 0:g.call(_));return y("div",{class:[De({[i.direction]:i.direction,[`align-${l.value}`]:l.value,wrap:i.wrap,fill:i.fill})]},[x.map((e,C)=>y("div",{key:`item-${C}`,class:`${G}-item`,style:$(C===x.length-1)},[e]))])}}});const Ye=re(ve);function Ce(i){return E.get("/api/Common/GetDeptList",i)}function Ae(i,_){return E.post("/api/Common/GetUserList",i,_)}function Be(i,_){return E.post("/api/PlanProject/GetPlanProjectByWeekList",i,_)}function Me(i,_){return E.post("/api/PlanProject/GetPlanProjectByDayList",i,_)}const Pe={class:"publicContainerNoPadding"},We={class:"w-full h-[50px] flex justify-between items-center p-2"},Ee={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},$e={key:0},Ie=n("div",{class:"w-full h-5"},null,-1),Ne={key:1},je=["onClick"],Le={class:"aaa w-full min-h-[80px] ccFlex p-1"},Se={class:"w-[calc(100%-35px)] h-full"},Ve=["onClick"],ze={class:"aaa"},Ge=n("div",{class:"w-[35px] min-h-[80px]"},[n("div",{class:"w-full h-1/2 ccFlex"}," 上 "),n("div",{class:"w-full h-1/2 ccFlex"}," 下 ")],-1),Oe={class:"w-[calc(100%-105px)] min-h-[80px]"},Ue={class:"w-full h-1/2 ccFlex"},Ke={class:"w-full h-1/2 ccFlex"},Te=["onClick"],He=n("div",{class:"w-full h-3"},null,-1),Re=n("div",{class:"w-full h-3"},null,-1),Qe={class:"w-full h-auto bg-white"},Je=n("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),Xe={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},qe=n("div",{class:"w-full h-3"},null,-1),Ze={class:"w-full h-auto bg-white"},et=n("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),tt={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},nt={__name:"index",setup(i,{expose:_}){const l=h().startOf("week").add(1,"day").format("YYYY-MM-DD"),m=h().startOf("week").add(5,"day").format("YYYY-MM-DD"),$=V(),g=V(),x=h(h().startOf("week").add(1,"day").format("YYYY-MM-DD")).format("YYYY-MM-DD"),e=ce({peoPleFlag:!1,weekFlag:!1,calendarKey:1,weekKey:1,dayArray:[],weekArray:[],paramsDay:{begin_time:h().format("YYYY-MM-DD"),end_time:h().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:l,end_time:m,dept_id_list:[],tid_list:[]},comment:{dept:[],user:[],deptId:[]},check:{dept_id_list:[],tid_list:[],begin_time:"",end_time:""},date:{show:!1},search:{date:l+" - "+m},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function C(t){e.date.show=!1,e.search.date=h(t[0]).format("YYYY-MM-DD")+" - "+h(t[1]).format("YYYY-MM-DD"),e.check.begin_time=h(t[0]).format("YYYY-MM-DD"),e.check.end_time=h(t[1]).format("YYYY-MM-DD")}function U(){e.select.showPopup=!0}function K(t){e.switchView.show=!e.switchView.show,e.calendarKey++,e.search.date=l+" - "+m,e.switchView.show?(e.paramsDay={begin_time:h().format("YYYY-MM-DD"),end_time:h().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},B()):(e.paramsWeek={begin_time:l,end_time:m,dept_id_list:[],tid_list:[]},k()),L(t),e.select.action=!1}function L(t){e.check.dept_id_list=[],e.comment.dept.forEach(a=>{a.bg="",a.cl=""}),e.check.tid_list=[],e.comment.user.forEach(a=>{a.bg="",a.cl=""}),e.search.date=l+" - "+m,e.check={dept_id_list:[],tid_list:[],begin_time:"",end_time:""},e.calendarKey++,e.select.action=!1,e.paramsWeek={begin_time:l,end_time:m,dept_id_list:[],tid_list:[]},e.paramsDay={begin_time:h().format("YYYY-MM-DD"),end_time:h().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},t.dateDay&&(t.dateDay.dateArray.array=[],t.dateDay.getInitDate()),t.dateWeek&&(t.dateWeek.dateArray.array=[],t.dateWeek.getInitDate()),e.comment.deptId=[],I(),B(),k()}function T(t){let a={true:async()=>{e.paramsDay={...e.check,begin_time:e.check.begin_time?e.check.begin_time:l,end_time:e.check.end_time?e.check.end_time:m},t.dateDay.deleteDateBg(),await B(),e.dayArray.map((d,c)=>{e.paramsDay.dept_id_list.includes(d.dept_id)&&(d.deptBg="#1989FA",d.deptCl="#FFFFFF"),e.paramsDay.tid_list.includes(d.userid)&&(d.peopleBg="#1989FA",d.peopleCl="#FFFFFF")}),e.select.showPopup=!1},false:()=>{e.paramsWeek={...e.check,begin_time:e.check.begin_time?e.check.begin_time:l,end_time:e.check.end_time?e.check.end_time:m},k(),e.select.showPopup=!1}};e.select.action=!0,a[String(e.switchView.show)]()}function H(){e.select.showPopup=!1}function R(){Ce().then(t=>{e.comment.dept=t.response.map(a=>({...a,bg:"",cl:""}))})}function Q(t,a){({true:()=>{z(()=>Fe({plan_id:"",collect_userid:t.userId}).then(c=>(c.code===1&&(e.weekArray.forEach((v,o)=>{v.nameData.forEach((f,F)=>{t.userId===f.userId&&(f.bg="",f.cl="",f.attention=0)})}),k()),c)))},false:()=>{z(()=>be({id:t.userId,collect_type:0}).then(c=>(c.code===1&&(e.weekArray.forEach((v,o)=>{v.nameData.forEach((f,F)=>{t.userId===f.userId&&(f.bg="#1989FA",f.cl="#FFFFFF",f.attention=1)})}),k()),c)))}})[String(!!Number(t.attention))]()}function I(){Ae(e.comment.deptId).then(t=>{e.comment.user=t.response.map(a=>({...a,bg:"",cl:""}))})}function B(){return Me(e.paramsDay).then(t=>{e.dayArray=t.response.map((a,d)=>({...a,deptBg:"",deptCl:"",peopleBg:"",peopleCl:""}))})}function J(t){e.paramsDay={...e.paramsDay,begin_time:t,end_time:t},B()}function k(){return Be(e.paramsWeek).then(t=>{let a=[];const c=t.response.reduce((v,o)=>{const f=v.find(F=>F.deptName===o.dept_name);return f?f.nameData.push({userId:o.userid,userName:o.username,userCard:o.usercard,attention:o.attention,nameArray:o.data,bg:o.attention==1?"#1989FA":"",cl:o.attention==1?"#FFFFFF":""}):a.push({deptName:o.dept_name,deptId:o.dept_id,deptBg:"",deptCl:"",nameData:[{userId:o.userid,userName:o.username,userCard:o.usercard,attention:o.attention,nameArray:o.data,bg:o.attention==1?"#1989FA":"",cl:o.attention==1?"#FFFFFF":"",peopleBg:"",peopleCl:""}]}),a},[]);e.weekArray=c})}function X(t){e.check.dept_id_list.includes(t.id)?(e.check.dept_id_list.forEach((a,d)=>{a===t.id&&e.check.dept_id_list.splice(d,1)}),e.comment.dept.forEach(a=>{a.id===t.id&&(a.bg="",a.cl="")}),e.comment.deptId.forEach((a,d)=>{a===t.id&&e.comment.deptId.splice(d,1)})):(e.check.dept_id_list.push(t.id),e.comment.deptId.push(t.id),e.comment.dept.forEach(a=>{a.id===t.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})),I(),console.log("🚀🚀check.dept_id_list🚀,",...e.check.dept_id_list,"")}function q(t){e.check.tid_list.includes(t.id)?(e.check.tid_list.forEach((a,d)=>{a===t.id&&e.check.tid_list.splice(d,1,"")}),e.comment.user.forEach(a=>{a.id===t.id&&(a.bg="",a.cl="")})):(e.check.tid_list.push(t.id),e.comment.user.forEach(a=>{a.id===t.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.tid_list)}async function Z(t){e.paramsWeek.dept_id_list.includes(t)?e.paramsWeek.dept_id_list.splice(e.paramsWeek.dept_id_list.indexOf(t),1):e.paramsWeek.dept_id_list.push(t),e.paramsWeek.dept_id_list.length&&(e.select.action=1),await k(),e.weekFlag=!e.weekFlag,e.weekArray.forEach((a,d)=>{a.deptId===t&&e.weekFlag&&(a.deptBg!==""?(a.deptBg="",a.deptCl=""):(a.deptBg="#1989FA",a.deptCl="#FFFFFF"))})}async function ee(t){e.paramsWeek.tid_list.includes(t)?e.paramsWeek.tid_list.splice(e.paramsWeek.tid_list.indexOf(t),1):e.paramsWeek.tid_list.push(t),e.paramsWeek.tid_list.length&&(e.select.action=1),await k(),e.peoPleFlag=!e.peoPleFlag,e.weekArray.forEach((a,d)=>{a.nameData.forEach((c,v)=>{c.userId===t&&e.peoPleFlag&&(c.peopleBg!==""?(c.peopleBg="",c.peopleCl=""):(c.peopleBg="#1989FA",c.peopleCl="#FFFFFF"))})})}return pe(()=>{document.title="分管填报记录查看",R(),I(),B(),k()}),_({init:e,GetPlanProjectByDayList:B,GetPlanProjectByWeekList:k}),(t,a)=>{const d=fe,c=ue,v=he,o=ye,f=ge,F=we,S=Ye,te=ke,ae=_e;return r(),p(w,null,[n("div",Pe,[y(d,{path:"/welcome",title:"分管填报记录查看"}),n("div",We,[n("div",{onClick:a[0]||(a[0]=s=>K(t.$refs)),class:"w-24 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100"}," 切换"+P(e.switchView.show?"周":"天")+"视图 ",1),n("div",{style:Y({background:["#FFFFFF","#1989FA"][Number(e.select.action)],color:["#4B5563","#FFFFFF"][Number(e.select.action)]}),onClick:U,class:"w-20 h-8 flex justify-center items-center border-solid border-[1px]"}," 高级查询 ",4)]),n("div",Ee,[e.switchView.show?(r(),p("div",$e,[y(c,{ref_key:"dateDay",ref:$,onSearchDayData:J},null,512),Ie,(r(!0),p(w,null,A(e.dayArray,(s,M)=>(r(),j(v,{data:s,key:M,alldayOrMidafternoonStatus:!!Number(s.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):(r(),p("div",Ne,[y(c,{ref_key:"dateWeek",ref:g},null,512),(r(),p("div",{class:"w-full h-auto bg-white",key:e.weekKey},[(r(!0),p(w,null,A(e.weekArray,(s,M)=>(r(),p("div",{class:"w-full min-h-[80px] flex-wrap ccFlex",key:M},[n("div",{onClick:u=>Z(s.deptId),style:Y({background:s.deptBg,color:s.deptCl}),class:"w-[35px] min-h-[80px]"},[n("div",Le,P(s.deptName),1)],12,je),n("div",Se,[(r(!0),p(w,null,A(s.nameData,(u,ne)=>(r(),p("div",{class:"w-full h-auto flex",key:ne},[n("div",{onClick:b=>ee(u.userId),style:Y({background:u.peopleBg,color:u.peopleCl}),class:"w-[35px] min-h-[80px] ccFlex"},[n("div",ze,P(u.userName),1)],12,Ve),Ge,n("div",Oe,[n("div",Ue,[(r(!0),p(w,null,A(u.nameArray,(b,N)=>(r(),p("div",{style:Y({background:["","#D9E2F3"][+(b.fore_plan!=null&&b.fore_plan!=""&&b.fore_plan!=null)]}),key:N,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))]),n("div",Ke,[(r(!0),p(w,null,A(u.nameArray,(b,N)=>(r(),p("div",{style:Y({background:["","#FFE599"][+(b.fore_plan!=null&&b.fore_plan!=""&&b.fore_plan!=null)]}),key:N,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))])]),n("div",{style:Y({background:u.bg,color:u.cl}),class:"w-[35px] min-h-[80px] ccFlex"},[n("div",{onClick:b=>Q(u,u.attention),class:"aaa"},P(["关注","取消关注"][u.attention]),9,Te)],4)]))),128))])]))),128))]))]))])]),y(ae,{show:e.select.showPopup,height:80},{content:D(()=>[(r(),p("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200",key:e.calendarKey},[He,y(o,{inset:"",title:"选择单个日期",value:e.search.date,onClick:a[1]||(a[1]=s=>e.date.show=!0)},null,8,["value"]),y(f,{"min-date":new Date(me(x)),"max-range":5,"range-prompt":"最多选择 5 天",type:"range",show:e.date.show,"onUpdate:show":a[2]||(a[2]=s=>e.date.show=s),onConfirm:C},null,8,["min-date","show"]),Re,n("div",Qe,[Je,n("div",Xe,[y(S,{wrap:""},{default:D(()=>[(r(!0),p(w,null,A(e.comment.dept,(s,M)=>(r(),j(F,{onClick:u=>X(s),key:M,style:Y({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:D(()=>[W(P(s.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),qe,n("div",Ze,[et,n("div",tt,[y(S,{wrap:""},{default:D(()=>[(r(!0),p(w,null,A(e.comment.user,(s,M)=>(r(),j(F,{onClick:u=>q(s),style:Y({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:D(()=>[W(P(s.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])])])),y(te,null,{default:D(()=>[y(F,{type:"primary",round:"",class:"w-[90px]",onClick:a[3]||(a[3]=s=>L(t.$refs))},{default:D(()=>[W("重置")]),_:1}),y(F,{type:"primary",round:"",class:"w-[90px]",onClick:a[4]||(a[4]=s=>T(t.$refs))},{default:D(()=>[W("查询")]),_:1}),y(F,{round:"",class:"w-[90px]",onClick:H},{default:D(()=>[W("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{nt as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{c as le,d as se,v as oe,a as y,F as w,aa as de,ab as re,w as ce,Q as E,a0 as h,r as G,R as pe,f as _e,b as p,T as n,$ as P,ac as Y,W as A,h as D,X as me,o as r,U as j,ad as fe,i as W,a9 as ue,ae as he,a3 as ye,a4 as ge,a5 as we,a6 as ke,a7 as Fe,a1 as V,af as be,ag as De}from"./index-D6tuUqku.js";const[z,xe]=le("space"),ve={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function O(i=[]){const _=[];return i.forEach(l=>{Array.isArray(l)?_.push(...l):l.type===w?_.push(...O(l.children)):_.push(l)}),_.filter(l=>{var m;return!(l&&(l.type===de||l.type===w&&((m=l.children)==null?void 0:m.length)===0||l.type===re&&l.children.trim()===""))})}var Ye=se({name:z,props:ve,setup(i,{slots:_}){const l=oe(()=>{var g;return(g=i.align)!=null?g:i.direction==="horizontal"?"center":""}),m=g=>typeof g=="number"?g+"px":g,$=g=>{const x={},e=`${m(Array.isArray(i.size)?i.size[0]:i.size)}`,C=`${m(Array.isArray(i.size)?i.size[1]:i.size)}`;return g?i.wrap?{marginBottom:C}:{}:(i.direction==="horizontal"&&(x.marginRight=e),(i.direction==="vertical"||i.wrap)&&(x.marginBottom=C),x)};return()=>{var g;const x=O((g=_.default)==null?void 0:g.call(_));return y("div",{class:[xe({[i.direction]:i.direction,[`align-${l.value}`]:l.value,wrap:i.wrap,fill:i.fill})]},[x.map((e,C)=>y("div",{key:`item-${C}`,class:`${z}-item`,style:$(C===x.length-1)},[e]))])}}});const Ce=ce(Ye);function Ae(i){return E.get("/api/Common/GetDeptList",i)}function Be(i,_){return E.post("/api/Common/GetUserList",i,_)}function Me(i,_){return E.post("/api/PlanProject/GetPlanProjectByWeekList",i,_)}function Pe(i,_){return E.post("/api/PlanProject/GetPlanProjectByDayList",i,_)}const We={class:"publicContainerNoPadding"},Ee={class:"w-full h-[50px] flex justify-between items-center p-2"},$e={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},Ie={key:0},Ne=n("div",{class:"w-full h-5"},null,-1),je={key:1},Le=["onClick"],Se={class:"aaa w-full min-h-[80px] ccFlex p-1"},Ge={class:"w-[calc(100%-35px)] h-full"},Ve=["onClick"],ze={class:"aaa"},Oe=n("div",{class:"w-[35px] min-h-[80px]"},[n("div",{class:"w-full h-1/2 ccFlex"}," 上 "),n("div",{class:"w-full h-1/2 ccFlex"}," 下 ")],-1),Ue={class:"w-[calc(100%-105px)] min-h-[80px]"},Ke={class:"w-full h-1/2 ccFlex"},Te={class:"w-full h-1/2 ccFlex"},Re=["onClick"],He=n("div",{class:"w-full h-3"},null,-1),Qe=n("div",{class:"w-full h-3"},null,-1),Xe={class:"w-full h-auto bg-white"},qe=n("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),Je={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ze=n("div",{class:"w-full h-3"},null,-1),et={class:"w-full h-auto bg-white"},tt=n("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),at={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},it={__name:"index",setup(i,{expose:_}){const l=h().startOf("week").add(1,"day").format("YYYY-MM-DD"),m=h().startOf("week").add(5,"day").format("YYYY-MM-DD"),$=G(),g=G(),x=h(h().startOf("week").add(1,"day").format("YYYY-MM-DD")).format("YYYY-MM-DD"),e=pe({peoPleFlag:!1,weekFlag:!1,calendarKey:1,weekKey:1,dayArray:[],weekArray:[],paramsDay:{begin_time:h().format("YYYY-MM-DD"),end_time:h().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:l,end_time:m,dept_id_list:[],tid_list:[]},comment:{dept:[],user:[],deptId:[]},check:{dept_id_list:[],tid_list:[],begin_time:"",end_time:""},date:{show:!1},search:{date:l+" - "+m},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function C(t){e.date.show=!1,e.search.date=h(t[0]).format("YYYY-MM-DD")+" - "+h(t[1]).format("YYYY-MM-DD"),e.check.begin_time=h(t[0]).format("YYYY-MM-DD"),e.check.end_time=h(t[1]).format("YYYY-MM-DD")}function U(){e.select.showPopup=!0}function K(t){e.switchView.show=!e.switchView.show,e.calendarKey++,e.search.date=l+" - "+m,e.switchView.show?(e.paramsDay={begin_time:h().format("YYYY-MM-DD"),end_time:h().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},B()):(e.paramsWeek={begin_time:l,end_time:m,dept_id_list:[],tid_list:[]},k()),L(t),e.select.action=!1}function L(t){e.check.dept_id_list=[],e.comment.dept.forEach(a=>{a.bg="",a.cl=""}),e.check.tid_list=[],e.comment.user.forEach(a=>{a.bg="",a.cl=""}),e.search.date=l+" - "+m,e.check={dept_id_list:[],tid_list:[],begin_time:"",end_time:""},e.calendarKey++,e.select.action=!1,e.paramsWeek={begin_time:l,end_time:m,dept_id_list:[],tid_list:[]},e.paramsDay={begin_time:h().format("YYYY-MM-DD"),end_time:h().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},t.dateDay&&(t.dateDay.dateArray.array=[],t.dateDay.getInitDate()),t.dateWeek&&(t.dateWeek.dateArray.array=[],t.dateWeek.getInitDate()),e.comment.deptId=[],I(),B(),k()}function T(t){let a={true:async()=>{e.paramsDay={...e.check,begin_time:e.check.begin_time?e.check.begin_time:l,end_time:e.check.end_time?e.check.end_time:m},t.dateDay.deleteDateBg(),await B(),e.dayArray.map((o,c)=>{e.paramsDay.dept_id_list.includes(o.dept_id)&&(o.deptBg="#1989FA",o.deptCl="#FFFFFF"),e.paramsDay.tid_list.includes(o.userid)&&(o.peopleBg="#1989FA",o.peopleCl="#FFFFFF")}),e.select.showPopup=!1},false:()=>{e.paramsWeek={...e.check,begin_time:e.check.begin_time?e.check.begin_time:l,end_time:e.check.end_time?e.check.end_time:m},k(),e.select.showPopup=!1}};e.select.action=!0,a[String(e.switchView.show)]()}function R(){e.select.showPopup=!1}function H(){Ae().then(t=>{e.comment.dept=t.response.map(a=>({...a,bg:"",cl:""}))})}function Q(t,a){({true:()=>{V(()=>be({plan_id:"",collect_userid:t.userId}).then(c=>(c.code===1&&(e.weekArray.forEach((v,d)=>{v.nameData.forEach((f,F)=>{t.userId===f.userId&&(f.bg="",f.cl="",f.attention=0)})}),k()),c)))},false:()=>{V(()=>De({id:t.userId,collect_type:0}).then(c=>(c.code===1&&(e.weekArray.forEach((v,d)=>{v.nameData.forEach((f,F)=>{t.userId===f.userId&&(f.bg="#1989FA",f.cl="#FFFFFF",f.attention=1)})}),k()),c)))}})[String(!!Number(t.attention))]()}function I(){Be(e.comment.deptId).then(t=>{e.comment.user=t.response.map(a=>({...a,bg:"",cl:""}))})}function B(){return Pe(e.paramsDay).then(t=>{e.dayArray=t.response.map((a,o)=>({...a,deptBg:"",deptCl:"",peopleBg:"",peopleCl:""}))})}function X(t){e.paramsDay={...e.paramsDay,begin_time:t,end_time:t},B()}function k(){return Me(e.paramsWeek).then(t=>{let a=[];const c=t.response.reduce((v,d)=>{const f=v.find(F=>F.deptName===d.dept_name);return f?f.nameData.push({userId:d.userid,userName:d.username,userCard:d.usercard,attention:d.attention,nameArray:d.data,bg:d.attention==1?"#1989FA":"",cl:d.attention==1?"#FFFFFF":""}):a.push({deptName:d.dept_name,deptId:d.dept_id,deptBg:"",deptCl:"",nameData:[{userId:d.userid,userName:d.username,userCard:d.usercard,attention:d.attention,nameArray:d.data,bg:d.attention==1?"#1989FA":"",cl:d.attention==1?"#FFFFFF":"",peopleBg:"",peopleCl:""}]}),a},[]);e.weekArray=c})}function q(t){e.check.dept_id_list.includes(t.id)?(e.check.dept_id_list.forEach((a,o)=>{a===t.id&&e.check.dept_id_list.splice(o,1)}),e.comment.dept.forEach(a=>{a.id===t.id&&(a.bg="",a.cl="")}),e.comment.deptId.forEach((a,o)=>{a===t.id&&e.comment.deptId.splice(o,1)})):(e.check.dept_id_list.push(t.id),e.comment.deptId.push(t.id),e.comment.dept.forEach(a=>{a.id===t.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})),I(),console.log("🚀🚀check.dept_id_list🚀,",...e.check.dept_id_list,"")}function J(t){e.check.tid_list.includes(t.id)?(e.check.tid_list.forEach((a,o)=>{a===t.id&&e.check.tid_list.splice(o,1,"")}),e.comment.user.forEach(a=>{a.id===t.id&&(a.bg="",a.cl="")})):(e.check.tid_list.push(t.id),e.comment.user.forEach(a=>{a.id===t.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.tid_list)}async function Z(t){e.paramsWeek.dept_id_list.includes(t)?e.paramsWeek.dept_id_list.splice(e.paramsWeek.dept_id_list.indexOf(t),1):e.paramsWeek.dept_id_list.push(t),e.paramsWeek.dept_id_list.length&&(e.select.action=1),await k(),e.weekFlag=!e.weekFlag,e.weekArray.forEach((a,o)=>{a.deptId===t&&e.weekFlag&&(a.deptBg!==""?(a.deptBg="",a.deptCl=""):(a.deptBg="#1989FA",a.deptCl="#FFFFFF"))})}async function ee(t){e.paramsWeek.tid_list.includes(t)?e.paramsWeek.tid_list.splice(e.paramsWeek.tid_list.indexOf(t),1):e.paramsWeek.tid_list.push(t),e.paramsWeek.tid_list.length&&(e.select.action=1),await k(),e.peoPleFlag=!e.peoPleFlag,e.weekArray.forEach((a,o)=>{a.nameData.forEach((c,v)=>{c.userId===t&&e.peoPleFlag&&(c.peopleBg!==""?(c.peopleBg="",c.peopleCl=""):(c.peopleBg="#1989FA",c.peopleCl="#FFFFFF"))})})}const te=t=>{let o=new Date(t.date).getDay();return(o==0||o==6)&&(t.type="disabled"),t};return _e(()=>{document.title="分管填报记录查看",H(),I(),B(),k()}),_({init:e,GetPlanProjectByDayList:B,GetPlanProjectByWeekList:k}),(t,a)=>{const o=ue,c=he,v=ye,d=ge,f=we,F=ke,S=Ce,ae=Fe,ne=me;return r(),p(w,null,[n("div",We,[y(o,{path:"/welcome",title:"分管填报记录查看"}),n("div",Ee,[n("div",{onClick:a[0]||(a[0]=s=>K(t.$refs)),class:"w-24 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100"}," 切换"+P(e.switchView.show?"周":"天")+"视图 ",1),n("div",{style:Y({background:["#FFFFFF","#1989FA"][Number(e.select.action)],color:["#4B5563","#FFFFFF"][Number(e.select.action)]}),onClick:U,class:"w-20 h-8 flex justify-center items-center border-solid border-[1px]"}," 高级查询 ",4)]),n("div",$e,[e.switchView.show?(r(),p("div",Ie,[y(c,{ref_key:"dateDay",ref:$,onSearchDayData:X},null,512),Ne,(r(!0),p(w,null,A(e.dayArray,(s,M)=>(r(),j(v,{data:s,key:M,alldayOrMidafternoonStatus:!!Number(s.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):(r(),p("div",je,[y(c,{ref_key:"dateWeek",ref:g},null,512),(r(),p("div",{class:"w-full h-auto bg-white",key:e.weekKey},[(r(!0),p(w,null,A(e.weekArray,(s,M)=>(r(),p("div",{class:"w-full min-h-[80px] flex-wrap ccFlex",key:M},[n("div",{onClick:u=>Z(s.deptId),style:Y({background:s.deptBg,color:s.deptCl}),class:"w-[35px] min-h-[80px]"},[n("div",Se,P(s.deptName),1)],12,Le),n("div",Ge,[(r(!0),p(w,null,A(s.nameData,(u,ie)=>(r(),p("div",{class:"w-full h-auto flex",key:ie},[n("div",{onClick:b=>ee(u.userId),style:Y({background:u.peopleBg,color:u.peopleCl}),class:"w-[35px] min-h-[80px] ccFlex"},[n("div",ze,P(u.userName),1)],12,Ve),Oe,n("div",Ue,[n("div",Ke,[(r(!0),p(w,null,A(u.nameArray,(b,N)=>(r(),p("div",{style:Y({background:["","#D9E2F3"][+(b.fore_plan!=null&&b.fore_plan!=""&&b.fore_plan!=null)]}),key:N,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))]),n("div",Te,[(r(!0),p(w,null,A(u.nameArray,(b,N)=>(r(),p("div",{style:Y({background:["","#FFE599"][+(b.fore_plan!=null&&b.fore_plan!=""&&b.fore_plan!=null)]}),key:N,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))])]),n("div",{style:Y({background:u.bg,color:u.cl}),class:"w-[35px] min-h-[80px] ccFlex"},[n("div",{onClick:b=>Q(u,u.attention),class:"aaa"},P(["关注","取消关注"][u.attention]),9,Re)],4)]))),128))])]))),128))]))]))])]),y(ne,{show:e.select.showPopup,height:80},{content:D(()=>[(r(),p("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200",key:e.calendarKey},[He,y(d,{inset:"",title:"选择单个日期",value:e.search.date,onClick:a[1]||(a[1]=s=>e.date.show=!0)},null,8,["value"]),y(f,{formatter:te,"min-date":new Date(fe(x)),"max-range":5,"range-prompt":"最多选择 5 天",type:"range",show:e.date.show,"onUpdate:show":a[2]||(a[2]=s=>e.date.show=s),onConfirm:C},null,8,["min-date","show"]),Qe,n("div",Xe,[qe,n("div",Je,[y(S,{wrap:""},{default:D(()=>[(r(!0),p(w,null,A(e.comment.dept,(s,M)=>(r(),j(F,{onClick:u=>q(s),key:M,style:Y({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:D(()=>[W(P(s.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Ze,n("div",et,[tt,n("div",at,[y(S,{wrap:""},{default:D(()=>[(r(!0),p(w,null,A(e.comment.user,(s,M)=>(r(),j(F,{onClick:u=>J(s),style:Y({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:D(()=>[W(P(s.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])])])),y(ae,null,{default:D(()=>[y(F,{type:"primary",round:"",class:"w-[90px]",onClick:a[3]||(a[3]=s=>L(t.$refs))},{default:D(()=>[W("重置")]),_:1}),y(F,{type:"primary",round:"",class:"w-[90px]",onClick:a[4]||(a[4]=s=>T(t.$refs))},{default:D(()=>[W("查询")]),_:1}),y(F,{round:"",class:"w-[90px]",onClick:R},{default:D(()=>[W("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{it as default};
.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap}:root{--van-checkbox-size: 20px;--van-checkbox-border-color: var(--van-gray-5);--van-checkbox-duration: var(--van-duration-fast);--van-checkbox-label-margin: var(--van-padding-xs);--van-checkbox-label-color: var(--van-text-color);--van-checkbox-checked-icon-color: var(--van-primary-color);--van-checkbox-disabled-icon-color: var(--van-gray-5);--van-checkbox-disabled-label-color: var(--van-text-color-3);--van-checkbox-disabled-background: var(--van-border-color)}.van-checkbox{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-checkbox--disabled{cursor:not-allowed}.van-checkbox--label-disabled{cursor:default}.van-checkbox--horizontal{margin-right:var(--van-padding-sm)}.van-checkbox__icon{flex:none;height:1em;font-size:var(--van-checkbox-size);line-height:1em;cursor:pointer}.van-checkbox__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid var(--van-checkbox-border-color);transition-duration:var(--van-checkbox-duration);transition-property:color,border-color,background-color}.van-checkbox__icon--round .van-icon{border-radius:100%}.van-checkbox__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-checkbox-checked-icon-color);border-color:var(--van-checkbox-checked-icon-color)}.van-checkbox__icon--disabled{cursor:not-allowed}.van-checkbox__icon--disabled .van-icon{background-color:var(--van-checkbox-disabled-background);border-color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon{color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__label{margin-left:var(--van-checkbox-label-margin);color:var(--van-checkbox-label-color);line-height:var(--van-checkbox-size)}.van-checkbox__label--left{margin:0 var(--van-checkbox-label-margin) 0 0}.van-checkbox__label--disabled{color:var(--van-checkbox-disabled-label-color)}:root{--van-divider-margin: var(--van-padding-md) 0;--van-divider-vertical-margin: 0 var(--van-padding-xs);--van-divider-text-color: var(--van-text-color-2);--van-divider-font-size: var(--van-font-size-md);--van-divider-line-height: 24px;--van-divider-border-color: var(--van-border-color);--van-divider-content-padding: var(--van-padding-md);--van-divider-content-left-width: 10%;--van-divider-content-right-width: 10%}.van-divider{display:flex;align-items:center;margin:var(--van-divider-margin);color:var(--van-divider-text-color);font-size:var(--van-divider-font-size);line-height:var(--van-divider-line-height);border-color:var(--van-divider-border-color);border-style:solid;border-width:0}.van-divider:before,.van-divider:after{display:block;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:var(--van-border-width) 0 0}.van-divider:before{content:""}.van-divider--hairline:before,.van-divider--hairline:after{transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--content-center:before,.van-divider--content-left:before,.van-divider--content-right:before{margin-right:var(--van-divider-content-padding)}.van-divider--content-center:after,.van-divider--content-left:after,.van-divider--content-right:after{margin-left:var(--van-divider-content-padding);content:""}.van-divider--content-left:before{max-width:var(--van-divider-content-left-width)}.van-divider--content-right:after{max-width:var(--van-divider-content-right-width)}.van-divider--vertical{display:inline-block;width:var(--van-border-width);height:1em;margin:var(--van-divider-vertical-margin);vertical-align:middle}.van-divider--vertical:before{height:100%;border-width:0 0 0 var(--van-border-width)}.van-divider--vertical:after{display:none}.van-divider--vertical.van-divider--hairline:before{transform:scaleX(.5)}
:root{--van-divider-margin: var(--van-padding-md) 0;--van-divider-vertical-margin: 0 var(--van-padding-xs);--van-divider-text-color: var(--van-text-color-2);--van-divider-font-size: var(--van-font-size-md);--van-divider-line-height: 24px;--van-divider-border-color: var(--van-border-color);--van-divider-content-padding: var(--van-padding-md);--van-divider-content-left-width: 10%;--van-divider-content-right-width: 10%}.van-divider{display:flex;align-items:center;margin:var(--van-divider-margin);color:var(--van-divider-text-color);font-size:var(--van-divider-font-size);line-height:var(--van-divider-line-height);border-color:var(--van-divider-border-color);border-style:solid;border-width:0}.van-divider:before,.van-divider:after{display:block;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:var(--van-border-width) 0 0}.van-divider:before{content:""}.van-divider--hairline:before,.van-divider--hairline:after{transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--content-center:before,.van-divider--content-left:before,.van-divider--content-right:before{margin-right:var(--van-divider-content-padding)}.van-divider--content-center:after,.van-divider--content-left:after,.van-divider--content-right:after{margin-left:var(--van-divider-content-padding);content:""}.van-divider--content-left:before{max-width:var(--van-divider-content-left-width)}.van-divider--content-right:after{max-width:var(--van-divider-content-right-width)}.van-divider--vertical{display:inline-block;width:var(--van-border-width);height:1em;margin:var(--van-divider-vertical-margin);vertical-align:middle}.van-divider--vertical:before{height:100%;border-width:0 0 0 var(--van-border-width)}.van-divider--vertical:after{display:none}.van-divider--vertical.van-divider--hairline:before{transform:scaleX(.5)}
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{r as o,b as s,a as t,n as e,o as c,E as l}from"./index-CSb1h3Rk.js";const n={class:"publicContainerNoPadding"},r=e("div",{class:"w-full h-[10px]"},null,-1),_=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),f={__name:"index",setup(i){return o({fillInWork:{show:!1}}),(d,p)=>{const a=l;return c(),s("div",n,[t(a,{path:"/welcome",title:"分管填报记录查看"}),r,_])}}};export{f as default};
import{R as a,f as t,b as s,a as c,T as e,o as n,a9 as l}from"./index-D6tuUqku.js";const i={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),d=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),h={__name:"index",setup(r){return a({fillInWork:{show:!1}}),t(()=>{document.title="系统配置"}),(p,u)=>{const o=l;return n(),s("div",i,[c(o,{path:"/welcome",title:"分管填报记录查看"}),_,d])}}};export{h as default};
import{R as a,f as t,b as s,a as c,T as e,o as n,a9 as l}from"./index-D6tuUqku.js";const i={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),d=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),h={__name:"index",setup(r){return a({fillInWork:{show:!1}}),t(()=>{document.title="人员授权"}),(p,u)=>{const o=l;return n(),s("div",i,[c(o,{path:"/welcome",title:"分管填报记录查看"}),_,d])}}};export{h as default};
import{r as o,b as s,a as t,n as e,o as c,E as l}from"./index-CSb1h3Rk.js";const n={class:"publicContainerNoPadding"},r=e("div",{class:"w-full h-[10px]"},null,-1),_=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),f={__name:"index",setup(i){return o({fillInWork:{show:!1}}),(d,p)=>{const a=l;return c(),s("div",n,[t(a,{path:"/welcome",title:"分管填报记录查看"}),r,_])}}};export{f as default};
import{c as x,d as P,a as t,t as C,m as k,w as F,l as p,r as b,f as B,b as m,n as S,h as s,p as _,q as A,F as w,s as L,v as G,o as l,i as c,x as M,y as N,z as j}from"./index-CSb1h3Rk.js";const[z,V]=x("divider"),$={dashed:Boolean,hairline:C,vertical:Boolean,contentPosition:k("center")};var I=P({name:z,props:$,setup(e,{slots:n}){return()=>{var a;return t("div",{role:"separator",class:V({dashed:e.dashed,hairline:e.hairline,vertical:e.vertical,[`content-${e.contentPosition}`]:!!n.default&&!e.vertical})},[!e.vertical&&((a=n.default)==null?void 0:a.call(n))])}}});const O=F(I);function q(e){return p.get("/api/Collect/GetCollectList",e)}function D(e){return p.get("/api/PlanProject/GetPlanProjectByMyList",e)}const E={class:"publicContainer"},H={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},J={__name:"index",setup(e,{expose:n}){const a=b({data:{mySchedule:{},myFocus:[]},params:{}});function f(){D().then(o=>{a.data.mySchedule=o.response})}function d(){q().then(o=>{a.data.myFocus=o.response})}return B(()=>{document.title="一周安排",f(),d()}),n({GetCollectList:d}),(o,R)=>{const y=M,r=O,h=G,v=N,i=j;return l(),m("div",E,[t(y),S("div",H,[t(r,{style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:s(()=>[c(" 我的周安排 ")]),_:1}),t(h,{data:a.data.mySchedule},null,8,["data"]),a.data.myFocus.length?(l(),_(r,{key:0,style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:s(()=>[c(" 我的关注 ")]),_:1})):A("",!0),(l(!0),m(w,null,L(a.data.myFocus,(u,g)=>(l(),_(v,{key:g,alldayOrMidafternoonStatus:!!Number(u.is_allday),data:u},null,8,["alldayOrMidafternoonStatus","data"]))),128)),t(r,{style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:s(()=>[c(" 菜单栏 ")]),_:1}),t(i,{title:"工作安排填报","is-link":"",to:"/workArrangementFilling"}),t(i,{title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"}),t(i,{title:"人员授权","is-link":"",to:"/personnelAuthority"}),t(i,{title:"填报配置","is-link":"",to:"/system"})])])}}};export{J as default};
import{w as A,s as me,l as q,n as ue,d as N,p as H,q as _e,t as L,r as ee,v as M,a as s,I as ne,x as I,c as K,y as fe,z,A as pe,B as he,D as te,E as ae,m as ge,H as we,J as O,K as X,M as ke,O as ve,P as D,Q as G,R as be,f as ye,b as F,T as w,U as S,h as f,V as $,F as W,W as J,X as Y,Y as xe,o as g,i as T,Z as Ce,$ as B,a0 as Q,a1 as Se,a2 as Te,a3 as Pe,a4 as Ve,a5 as $e,a6 as Oe,a7 as Me}from"./index-D6tuUqku.js";const ie=A(me),oe={name:q,disabled:Boolean,iconSize:ue,modelValue:q,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var Fe=N({props:H({},oe,{bem:_e(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:L}),emits:["click","toggle"],setup(n,{emit:d,slots:e}){const r=ee(),p=o=>{if(n.parent&&n.bindGroup)return n.parent.props[o]},m=M(()=>{if(n.parent&&n.bindGroup){const o=p("disabled")||n.disabled;if(n.role==="checkbox"){const v=p("modelValue").length,_=p("max"),u=_&&v>=+_;return o||u&&!n.checked}return o}return n.disabled}),P=M(()=>p("direction")),h=M(()=>{const o=n.checkedColor||p("checkedColor");if(o&&n.checked&&!m.value)return{borderColor:o,backgroundColor:o}}),b=M(()=>n.shape||p("shape")||"round"),i=o=>{const{target:v}=o,_=r.value,u=_===v||(_==null?void 0:_.contains(v));!m.value&&(u||!n.labelDisabled)&&d("toggle"),d("click",o)},k=()=>{var o,v;const{bem:_,checked:u}=n,t=n.iconSize||p("iconSize");return s("div",{ref:r,class:_("icon",[b.value,{disabled:m.value,checked:u}]),style:b.value!=="dot"?{fontSize:I(t)}:{width:I(t),height:I(t),borderColor:(o=h.value)==null?void 0:o.borderColor}},[e.icon?e.icon({checked:u,disabled:m.value}):b.value!=="dot"?s(ne,{name:"success",style:h.value},null):s("div",{class:_("icon--dot__icon"),style:{backgroundColor:(v=h.value)==null?void 0:v.backgroundColor}},null)])},c=()=>{if(e.default)return s("span",{class:n.bem("label",[n.labelPosition,{disabled:m.value}])},[e.default()])};return()=>{const o=n.labelPosition==="left"?[c(),k()]:[k(),c()];return s("div",{role:n.role,class:n.bem([{disabled:m.value,"label-disabled":n.labelDisabled},P.value]),tabindex:m.value?void 0:0,"aria-checked":n.checked,onClick:i},[o])}}});const[Be,_n]=K("checkbox-group"),Ge=Symbol(Be),[je,Ae]=K("checkbox"),Ne=H({},oe,{shape:String,bindGroup:L});var Ke=N({name:je,props:Ne,emits:["change","update:modelValue"],setup(n,{emit:d,slots:e}){const{parent:r}=fe(Ge),p=h=>{const{name:b}=n,{max:i,modelValue:k}=r.props,c=k.slice();if(h)!(i&&c.length>=+i)&&!c.includes(b)&&(c.push(b),n.bindGroup&&r.updateValue(c));else{const o=c.indexOf(b);o!==-1&&(c.splice(o,1),n.bindGroup&&r.updateValue(c))}},m=M(()=>r&&n.bindGroup?r.props.modelValue.indexOf(n.name)!==-1:!!n.modelValue),P=(h=!m.value)=>{r&&n.bindGroup?p(h):d("update:modelValue",h)};return z(()=>n.modelValue,h=>d("change",h)),pe({toggle:P,props:n,checked:m}),he(()=>n.modelValue),()=>s(Fe,ae({bem:Ae,role:"checkbox",parent:r,checked:m.value,onToggle:P},n),te(e,["default","icon"]))}});const Ie=A(Ke),[De,We]=K("divider"),Ye={dashed:Boolean,hairline:L,vertical:Boolean,contentPosition:ge("center")};var ze=N({name:De,props:Ye,setup(n,{slots:d}){return()=>{var e;return s("div",{role:"separator",class:We({dashed:n.dashed,hairline:n.hairline,vertical:n.vertical,[`content-${n.contentPosition}`]:!!d.default&&!n.vertical})},[!n.vertical&&((e=d.default)==null?void 0:e.call(d))])}}});const He=A(ze),[Le]=K("time-picker"),Z=n=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(n),Re=["hour","minute","second"],Ee=H({},we,{minHour:O(0),maxHour:O(23),minMinute:O(0),maxMinute:O(59),minSecond:O(0),maxSecond:O(59),minTime:{type:String,validator:Z},maxTime:{type:String,validator:Z},columnsType:{type:Array,default:()=>["hour","minute"]},filter:Function});var Ue=N({name:Le,props:Ee,emits:["confirm","cancel","change","update:modelValue"],setup(n,{emit:d,slots:e}){const r=ee(n.modelValue),p=i=>{const k=i.split(":");return Re.map((c,o)=>n.columnsType.includes(c)?k[o]:"00")},m=M(()=>{let{minHour:i,maxHour:k,minMinute:c,maxMinute:o,minSecond:v,maxSecond:_}=n;if(n.minTime||n.maxTime){const u={hour:0,minute:0,second:0};n.columnsType.forEach((y,x)=>{var V;u[y]=(V=r.value[x])!=null?V:0});const{hour:t,minute:a}=u;if(n.minTime){const[y,x,V]=p(n.minTime);i=y,c=+t<=+i?x:"00",v=+t<=+i&&+a<=+c?V:"00"}if(n.maxTime){const[y,x,V]=p(n.maxTime);k=y,o=+t>=+k?x:"59",_=+t>=+k&&+a>=+o?V:"59"}}return n.columnsType.map(u=>{const{filter:t,formatter:a}=n;switch(u){case"hour":return D(+i,+k,u,a,t,r.value);case"minute":return D(+c,+o,u,a,t,r.value);case"second":return D(+v,+_,u,a,t,r.value);default:return[]}})});z(r,i=>{X(i,n.modelValue)||d("update:modelValue",i)}),z(()=>n.modelValue,i=>{i=ke(i,m.value),X(i,r.value)||(r.value=i)},{immediate:!0});const P=(...i)=>d("change",...i),h=(...i)=>d("cancel",...i),b=(...i)=>d("confirm",...i);return()=>s(ie,ae({modelValue:r.value,"onUpdate:modelValue":i=>r.value=i,columns:m.value,onChange:P,onCancel:h,onConfirm:b},te(n,ve)),e)}});const qe=A(Ue);function Xe(n){return G.get("/api/Collect/GetCollectList",n)}function Je(n){return G.get("/api/Common/GetMenuRole",n)}function Qe(n){return G.get("/api/PlanProject/GetPlanProjectByMyList",n)}function Ze(n){return G.get("/api/SysConfig/SysConfigInit",n)}function en(n,d){return G.post("/api/SysConfig/SysConfigSave",n,d)}const nn={class:"publicContainer"},tn={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},an=w("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),on={class:"w-full h-full flex justify-end flex-wrap"},sn={class:"w-[20px] h-[20px] border-solid border-[1px] border-blue-500 ccFlex text-blue-500"},rn={class:"text-blue-500"},ln=["onClick"],dn=w("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),cn={class:"w-full h-full flex justify-end"},fn={__name:"index",setup(n,{expose:d}){const e=be({getWeekOrTimeKey:"",columns:[{text:"星期一",value:"星期一"},{text:"星期二",value:"星期二"},{text:"星期三",value:"星期三"},{text:"星期四",value:"星期四"},{text:"星期五",value:"星期五"},{text:"星期六",value:"星期六"},{text:"星期日",value:"星期日"}],loading:!1,search:{date:""},select:{weekShow:!1,timeShow:!1,showPopup:!1},paramsTransfers:{configid:"",date:[],semester_date_begin:"2024-01-02",semester_date_end:"2024-06-03",period_remind_time:"",period_remind_week:"",nowrite_remind_isCheck:"",nowrite_remind_time:[],ahead_write:"",write_remind_week:"",write_remind_time:""},params:{configid:"",semester_date_begin:"",semester_date_end:"",period_remind:"",nowrite_remind:"",ahead_write:"",write_remind:""},date:{show:!1},role:{plan_write:"0",examine:"1",userrole:"0",write_sysconfig:"0"},data:{mySchedule:{},myFocus:[]}});function r(t){e.paramsTransfers.semester_date_begin=Q(t[0]).format("YYYY-MM-DD"),e.paramsTransfers.semester_date_end=Q(t[1]).format("YYYY-MM-DD"),e.date.show=!1}function p(){Qe().then(t=>{t.response?e.data.mySchedule=t.response:e.data.mySchedule={}})}function m(){Xe().then(t=>{e.data.myFocus=t.response})}function P(){Je().then(t=>{e.role=t.response})}function h(){Se(()=>en({configid:e.paramsTransfers.configid,semester_date_begin:e.paramsTransfers.semester_date_begin,semester_date_end:e.paramsTransfers.semester_date_end,period_remind:e.paramsTransfers.period_remind_week+"|"+e.paramsTransfers.period_remind_time,nowrite_remind:String(Number(e.paramsTransfers.nowrite_remind_isCheck))+String(String(e.paramsTransfers.nowrite_remind_time.map(t=>"|"+t)).split(",").join("")),ahead_write:String(Number(e.paramsTransfers.ahead_write)),write_remind:e.paramsTransfers.write_remind_week+"|"+e.paramsTransfers.write_remind_time}).then(t=>(t.code===1&&u(),t)))}function b(){e.select.showPopup=!1}function i(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function k(t){e.paramsTransfers.nowrite_remind_time.splice(t,1)}function c({selectedValues:t,selectedOptions:a,selectedIndexes:y}){e.getWeekOrTimeKey==="nowrite_remind_time"?e.paramsTransfers[e.getWeekOrTimeKey].push(t[0]+":"+t[1]):e.paramsTransfers[e.getWeekOrTimeKey]=t[0]+":"+t[1],e.select.timeShow=!1}function o({selectedValues:t,selectedOptions:a,selectedIndexes:y}){e.paramsTransfers[e.getWeekOrTimeKey]=t[0],e.select.weekShow=!1}function v(t){e.select.weekShow=!0,e.getWeekOrTimeKey=t}function _(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function u(){e.select.showPopup=!0,e.loading=!0,Ze().then(t=>{e.paramsTransfers={configid:t.response.configid,date:[],semester_date_begin:t.response.semester_date_begin.split(" ")[0],semester_date_end:t.response.semester_date_end.split(" ")[0],period_remind_time:t.response.period_remind.split("|")[1],period_remind_week:t.response.period_remind.split("|")[0],nowrite_remind_isCheck:!!Number(t.response.nowrite_remind.split("|")[0]),nowrite_remind_time:t.response.nowrite_remind.split("|").filter(a=>a!=0&&a!=1&&Number(a)!=0&&Number(a)!=1),ahead_write:!!Number(t.response.ahead_write),write_remind_week:t.response.write_remind.split("|")[0],write_remind_time:t.response.write_remind.split("|")[1]}}).finally(()=>{e.loading=!1})}return ye(()=>{document.title="一周安排",p(),m(),P()}),d({GetCollectList:m}),(t,a)=>{const y=Te,x=He,V=xe,se=Pe,C=Ve,re=$e,R=Ie,E=ne,U=Oe,le=Me,de=qe,ce=ie;return g(),F(W,null,[w("div",nn,[s(y),w("div",tn,[Object.keys(e.data.mySchedule).length?(g(),S(x,{key:0,style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:f(()=>[T(" 我的周安排 ")]),_:1})):$("",!0),Object.keys(e.data.mySchedule).length?(g(),S(V,{key:1,data:e.data.mySchedule},null,8,["data"])):$("",!0),e.data.myFocus.length?(g(),S(x,{key:2,style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:f(()=>[T(" 我的关注 ")]),_:1})):$("",!0),(g(!0),F(W,null,J(e.data.myFocus,(l,j)=>(g(),S(se,{key:j,alldayOrMidafternoonStatus:!!Number(l.is_allday),data:l},null,8,["alldayOrMidafternoonStatus","data"]))),128)),Object.keys(e.role).some(l=>Number(e.role[l])==1)?(g(),S(x,{key:3,style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:f(()=>[T(" 菜单栏 ")]),_:1})):$("",!0),e.role.plan_write==1?(g(),S(C,{key:4,title:"工作安排填报","is-link":"",to:"/workArrangementFilling"})):$("",!0),e.role.examine==1?(g(),S(C,{key:5,title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"})):$("",!0),e.role.userrole==1?(g(),S(C,{key:6,title:"人员授权","is-link":"",to:"/personnelAuthority"})):$("",!0),e.role.write_sysconfig==1?(g(),S(C,{key:7,onClick:u,title:"填报配置","is-link":""})):$("",!0)])]),s(Y,{show:e.select.showPopup,height:60},{content:f(()=>[(g(),F("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative",key:e.calendarKey},[s(Ce,{show:e.loading},null,8,["show"]),s(C,{inset:"",title:"学期范围",value:e.paramsTransfers.semester_date_begin+" - "+e.paramsTransfers.semester_date_end,onClick:a[0]||(a[0]=l=>e.date.show=!0)},null,8,["value"]),s(re,{type:"range",show:e.date.show,"onUpdate:show":a[1]||(a[1]=l=>e.date.show=l),onConfirm:r},null,8,["show"]),s(C,{inset:"",title:"提醒周期"},{value:f(()=>[T(" 每周"),w("span",{class:"text-blue-500 mr-2",onClick:a[2]||(a[2]=l=>v("period_remind_week"))},"["+B(e.paramsTransfers.period_remind_week)+"]",1),w("span",{onClick:a[3]||(a[3]=l=>_("period_remind_time")),class:"text-blue-500"},"["+B(e.paramsTransfers.period_remind_time)+"]",1)]),_:1}),an,s(C,{inset:"",title:"未填写提醒"},{value:f(()=>[w("div",on,[s(R,{shape:"square",class:"w-full flex justify-end m-1",modelValue:e.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":a[4]||(a[4]=l=>e.paramsTransfers.nowrite_remind_isCheck=l)},{default:f(()=>[T("开启 ")]),_:1},8,["modelValue"]),w("div",{onClick:a[5]||(a[5]=l=>i("nowrite_remind_time")),shape:"square",class:"w-full flex justify-end m-1"},[w("div",sn,[s(E,{name:"plus"})])]),(g(!0),F(W,null,J(e.paramsTransfers.nowrite_remind_time,(l,j)=>(g(),F("div",{class:"w-full flex justify-end items-center m-1",key:j},[w("span",rn,"["+B(l)+"]",1),w("div",{onClick:mn=>k(j),class:"ml-2 w-[15px] h-[15px] ccFlex text-blue-500"},[s(E,{class:"text-red-600",name:"cross"})],8,ln)]))),128))])]),_:1}),dn,s(C,{inset:"",title:"提前填写"},{default:f(()=>[w("div",cn,[s(R,{shape:"square",class:"ml-auto",modelValue:e.paramsTransfers.ahead_write,"onUpdate:modelValue":a[6]||(a[6]=l=>e.paramsTransfers.ahead_write=l)},{default:f(()=>[T("允许")]),_:1},8,["modelValue"])])]),_:1}),s(C,{inset:"",title:"填报情况提醒"},{value:f(()=>[T(" 每周"),w("span",{class:"text-blue-500 mr-2",onClick:a[7]||(a[7]=l=>v("write_remind_week"))},"["+B(e.paramsTransfers.write_remind_week)+"]",1),w("span",{onClick:a[8]||(a[8]=l=>_("write_remind_time")),class:"text-blue-500"},"["+B(e.paramsTransfers.write_remind_time)+"]",1)]),_:1})])),s(le,null,{default:f(()=>[s(U,{type:"primary",round:"",class:"w-[90px]",onClick:h},{default:f(()=>[T("保存")]),_:1}),s(U,{round:"",class:"w-[90px]",onClick:b},{default:f(()=>[T("关闭")]),_:1})]),_:1})]),_:1},8,["show"]),s(Y,{show:e.select.timeShow,height:60},{content:f(()=>[s(de,{onConfirm:c,onCancel:a[9]||(a[9]=l=>e.select.timeShow=!1),title:"选择时间"})]),_:1},8,["show"]),s(Y,{show:e.select.weekShow,height:60},{content:f(()=>[s(ce,{title:"请选择日期",columns:e.columns,onConfirm:o,onCancel:a[10]||(a[10]=l=>e.select.weekShow=!1)},null,8,["columns"])]),_:1},8,["show"])],64)}}};export{fn as default};
import{A as p,r as m,f as h,b as w,a as e,n as l,h as n,B as v,D as x,o as k,i as c,E as C,H as y}from"./index-CSb1h3Rk.js";const I={class:"publicContainerNoPadding"},g=l("div",{class:"w-full h-[10px]"},null,-1),B={class:"w-full h-[calc(100%-120px)] p-2 overflow-y-auto"},b={__name:"index",setup(D){const t=p(),o=m({data:{myFillingIn:[]},fillInWork:{show:!1}});function i(){o.fillInWork.show=!0}function _(){t.value.save()}function r(s){o.fillInWork.show=s}return h(()=>{}),(s,N)=>{const u=C,d=v,a=y,f=x;return k(),w("div",I,[e(u,{path:"/welcome",title:"填报工作安排"}),g,l("div",B,[e(d,{ref_key:"saveRef",ref:t,show:o.fillInWork.show,onCloseDateComponent:r},null,8,["show"])]),e(f,null,{default:n(()=>[e(a,{type:"primary",round:"",class:"w-[120px]",onClick:i},{default:n(()=>[c("添加日期")]),_:1}),e(a,{type:"success",round:"",class:"w-[120px]",onClick:_},{default:n(()=>[c("保存")]),_:1})]),_:1})])}}};export{b as default};
import{Q as w,r as k,R as v,f as x,b as C,a as t,T as r,h as n,a8 as g,a7 as y,o as l,U as I,i,V as W,a9 as B,a6 as N}from"./index-D6tuUqku.js";function V(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const A={class:"publicContainerNoPadding"},b=r("div",{class:"w-full h-[10px]"},null,-1),D={class:"w-full h-[calc(100%-120px)] p-2 overflow-y-auto"},S={__name:"index",setup(a){const s=k(),e=v({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function u(){s.value.save()}function d(o){e.fillInWork.show=o}function f(){V().then(o=>{e.role=o.response})}return x(()=>{f()}),(o,G)=>{const p=B,h=g,c=N,m=y;return l(),C("div",A,[t(p,{path:"/welcome",title:"填报工作安排"}),b,r("div",D,[t(h,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:d},null,8,["show"])]),t(m,null,{default:n(()=>[e.role==1?(l(),I(c,{key:0,type:"primary",round:"",class:"w-[120px]",onClick:_},{default:n(()=>[i("添加日期 ")]),_:1})):W("",!0),t(c,{type:"success",round:"",class:"w-[120px]",onClick:u},{default:n(()=>[i("保存")]),_:1})]),_:1})])}}};export{S as default};
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0"> content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title>一周安排</title> <title>一周安排</title>
<script type="module" crossorigin src="./assets/index-CSb1h3Rk.js"></script> <script type="module" crossorigin src="./assets/index-D6tuUqku.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-qYjmxWvl.css"> <link rel="stylesheet" crossorigin href="./assets/index-BKdffGlj.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
import { type AxiosRequestConfig } from "axios";
/**
* 获取是否可以提前填写安排
* /api/Common/GetAheadWriteSwitch
*/
export declare function getApiCommonGetAheadWriteSwitch(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/Common/GetAheadWriteSwitch
*/
export function getApiCommonGetAheadWriteSwitch(config) {
return request.get(`/api/Common/GetAheadWriteSwitch`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取菜单权限
* /api/Common/GetMenuRole
*/
export declare function getApiCommonGetMenuRole(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
plan_write: string;
examine: string;
userrole: string;
write_sysconfig: string;
};
}, any>>;
import request from "@/util/axios.js";
/**
* 获取菜单权限
* /api/Common/GetMenuRole
*/
export function getApiCommonGetMenuRole(config) {
return request.get(`/api/Common/GetMenuRole`, config);
}
export * from "./getApiCommonGetDeptList"; export * from "./getApiCommonGetDeptList";
export * from "./postApiCommonGetUserList"; export * from "./postApiCommonGetUserList";
export * from "./postApiCommonGetRoleList";
export * from "./getApiCommonGetMenuRole";
export * from "./getApiCommonGetAheadWriteSwitch";
export * from "./getApiCommonGetDeptList"; export * from "./getApiCommonGetDeptList";
export * from "./postApiCommonGetUserList"; export * from "./postApiCommonGetUserList";
export * from "./postApiCommonGetRoleList";
export * from "./getApiCommonGetMenuRole";
export * from "./getApiCommonGetAheadWriteSwitch";
import { type AxiosRequestConfig } from "axios";
/**
* 获取所有权限
* /api/Common/GetRoleList
*/
export declare function postApiCommonGetRoleList(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/Common/GetRoleList
*/
export function postApiCommonGetRoleList(config) {
return request.post(`/api/Common/GetRoleList`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取用户详情
* /api/UserRole/GetUserRoleInfo
*/
export declare function getApiUserRoleGetUserRoleInfo(params: GetApiUserRoleGetUserRoleInfoParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
userroleid: string;
userid: string;
usercard: string;
username: string;
dept: string;
position_name: string;
dept_list: {
id: string;
name: string;
}[];
role_list: {
role_id: string;
role_name: string;
}[];
};
}, any>>;
export interface GetApiUserRoleGetUserRoleInfoParams {
id: string;
}
import request from "@/util/axios.js";
/**
* 获取用户详情
* /api/UserRole/GetUserRoleInfo
*/
export function getApiUserRoleGetUserRoleInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/UserRole/GetUserRoleInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取用户列表
* /api/UserRole/GetUserRoleList
*/
export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetUserRoleListParams, 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: {
userroleid: string;
userid: string;
usercard: string;
username: string;
dept_list: {
id: string;
name: string;
}[];
};
}[];
query: {
[x: string]: any;
};
}, any>>;
export interface GetApiUserRoleGetUserRoleListParams {
page_index?: number;
page_size?: number;
}
import request from "@/util/axios.js";
/**
* 获取用户列表
* /api/UserRole/GetUserRoleList
*/
export function getApiUserRoleGetUserRoleList(params, config) {
const paramsInput = {
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/UserRole/GetUserRoleList`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 用户搜索
* /api/UserRole/GetUserRoleSearch
*/
export declare function getApiUserRoleGetUserRoleSearch(params: GetApiUserRoleGetUserRoleSearchParams, 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: {
userroleid: string;
userid: string;
usercard: string;
username: string;
dept_list: {
id: string;
name: string;
}[];
};
}[];
query: {
[x: string]: any;
};
}, any>>;
export interface GetApiUserRoleGetUserRoleSearchParams {
keyword?: string;
page_index?: number;
page_size?: number;
}
import request from "@/util/axios.js";
/**
* 用户搜索
* /api/UserRole/GetUserRoleSearch
*/
export function getApiUserRoleGetUserRoleSearch(params, config) {
const paramsInput = {
keyword: params.keyword,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/UserRole/GetUserRoleSearch`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 用户新增
* /api/UserRole/UserRoleIns
*/
export declare function getApiUserRoleUserRoleIns(params: GetApiUserRoleUserRoleInsParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiUserRoleUserRoleInsParams {
userid: string;
}
import request from "@/util/axios.js";
/**
* 用户新增
* /api/UserRole/UserRoleIns
*/
export function getApiUserRoleUserRoleIns(params, config) {
const paramsInput = {
userid: params.userid,
};
return request.get(`/api/UserRole/UserRoleIns`, {
params: paramsInput,
...config,
});
}
export * from "./getApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleGetUserRoleInfo";
export * from "./getApiUserRoleGetUserRoleSearch";
export * from "./getApiUserRoleUserRoleIns";
export * from "./postApiUserRoleUserRoleSave";
export * from "./getApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleGetUserRoleInfo";
export * from "./getApiUserRoleGetUserRoleSearch";
export * from "./getApiUserRoleUserRoleIns";
export * from "./postApiUserRoleUserRoleSave";
import { type AxiosRequestConfig } from "axios";
import { type UserRoleInfoViewModel } from "../../interface";
/**
* 用户保存
* /api/UserRole/UserRoleSave
*/
export declare function postApiUserRoleUserRoleSave(input?: UserRoleInfoViewModel, 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/UserRoleSave
*/
export function postApiUserRoleUserRoleSave(input, config) {
return request.post(`/api/UserRole/UserRoleSave`, input, config);
}
...@@ -4,3 +4,4 @@ export * from "./Login"; ...@@ -4,3 +4,4 @@ export * from "./Login";
export * from "./PlanProject"; export * from "./PlanProject";
export * from "./SysConfig"; export * from "./SysConfig";
export * from "./TimeTask"; export * from "./TimeTask";
export * from "./UserRole";
...@@ -4,3 +4,4 @@ export * from "./Login"; ...@@ -4,3 +4,4 @@ export * from "./Login";
export * from "./PlanProject"; export * from "./PlanProject";
export * from "./SysConfig"; export * from "./SysConfig";
export * from "./TimeTask"; export * from "./TimeTask";
export * from "./UserRole";
export interface Dept {
id?: string;
name?: string;
}
export interface MenuRoleViewModel {
plan_write?: string;
examine?: string;
userrole?: string;
write_sysconfig?: string;
}
import { type MenuRoleViewModel } from "../../interface";
export interface MenuRoleViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: MenuRoleViewModel;
}
export interface Option {
label?: string;
value?: string;
}
export interface RoleModel {
role_id?: string;
role_name?: 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[];
}
import { type Dept, type RoleModel } from "../../interface";
export interface UserRoleInfoViewModel {
userroleid?: string;
userid?: string;
usercard?: string;
username?: string;
dept?: string;
position_name?: string;
dept_list?: Dept[];
role_list?: RoleModel[];
}
import { type UserRoleInfoViewModel } from "../../interface";
export interface UserRoleInfoViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserRoleInfoViewModel;
}
import { type Dept } from "../../interface";
export interface UserRoleViewModel {
userroleid?: string;
userid?: string;
usercard?: string;
username?: string;
dept_list?: Dept[];
}
import { type UserRoleViewModel } from "../../interface";
export interface UserRoleViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserRoleViewModel;
}
import { type TableTitle, type UserRoleViewModelMessageModel } from "../../interface";
export interface UserRoleViewModelMessageModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: UserRoleViewModelMessageModel[];
query?: UserRoleViewModelMessageModelPageModelQuery;
}
export interface UserRoleViewModelMessageModelPageModelQuery {
[key: string]: any;
}
...@@ -3,6 +3,8 @@ export * from "./apiTypes/PlanProjectListMessageModel"; ...@@ -3,6 +3,8 @@ export * from "./apiTypes/PlanProjectListMessageModel";
export * from "./apiTypes/StringMessageModel"; export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SelectResponses"; export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel"; export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/MenuRoleViewModel";
export * from "./apiTypes/MenuRoleViewModelMessageModel";
export * from "./apiTypes/TokenViewModel"; export * from "./apiTypes/TokenViewModel";
export * from "./apiTypes/ComplexTokenViewModel"; export * from "./apiTypes/ComplexTokenViewModel";
export * from "./apiTypes/ComplexTokenViewModelMessageModel"; export * from "./apiTypes/ComplexTokenViewModelMessageModel";
...@@ -18,6 +20,15 @@ export * from "./apiTypes/PlanProjectDayViewModelListMessageModel"; ...@@ -18,6 +20,15 @@ export * from "./apiTypes/PlanProjectDayViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel"; export * from "./apiTypes/PlanProjectMessageModel";
export * from "./apiTypes/SysConfig"; export * from "./apiTypes/SysConfig";
export * from "./apiTypes/SysConfigMessageModel"; export * from "./apiTypes/SysConfigMessageModel";
export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Dept";
export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/UserRoleViewModelMessageModelPageModel";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleInfoViewModel";
export * from "./apiTypes/UserRoleInfoViewModelMessageModel";
export type Primitive = undefined | null | boolean | string | number | symbol; export type Primitive = undefined | null | boolean | string | number | symbol;
export type DeepRequired<T> = T extends Primitive ? T : keyof T extends never ? T : { export type DeepRequired<T> = T extends Primitive ? T : keyof T extends never ? T : {
[K in keyof T]-?: DeepRequired<T[K]>; [K in keyof T]-?: DeepRequired<T[K]>;
......
...@@ -3,6 +3,8 @@ export * from "./apiTypes/PlanProjectListMessageModel"; ...@@ -3,6 +3,8 @@ export * from "./apiTypes/PlanProjectListMessageModel";
export * from "./apiTypes/StringMessageModel"; export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SelectResponses"; export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel"; export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/MenuRoleViewModel";
export * from "./apiTypes/MenuRoleViewModelMessageModel";
export * from "./apiTypes/TokenViewModel"; export * from "./apiTypes/TokenViewModel";
export * from "./apiTypes/ComplexTokenViewModel"; export * from "./apiTypes/ComplexTokenViewModel";
export * from "./apiTypes/ComplexTokenViewModelMessageModel"; export * from "./apiTypes/ComplexTokenViewModelMessageModel";
...@@ -18,3 +20,12 @@ export * from "./apiTypes/PlanProjectDayViewModelListMessageModel"; ...@@ -18,3 +20,12 @@ export * from "./apiTypes/PlanProjectDayViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel"; export * from "./apiTypes/PlanProjectMessageModel";
export * from "./apiTypes/SysConfig"; export * from "./apiTypes/SysConfig";
export * from "./apiTypes/SysConfigMessageModel"; export * from "./apiTypes/SysConfigMessageModel";
export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Dept";
export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/UserRoleViewModelMessageModelPageModel";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleInfoViewModel";
export * from "./apiTypes/UserRoleInfoViewModelMessageModel";
...@@ -32,7 +32,7 @@ export function RefreshToken(data) { ...@@ -32,7 +32,7 @@ export function RefreshToken(data) {
export function CheckLoginTest(data) { export function CheckLoginTest(data) {
//test token //test token
return requestGet(`/api/sso/test?card=syjs295`, data) return requestGet(`/api/sso/test?card=asc666`, data)
} }
...@@ -7,8 +7,10 @@ ...@@ -7,8 +7,10 @@
:initial-swipe="0" :initial-swipe="0"
:show-indicators="false" :show-indicators="false"
width="100%" width="100%"
:key=" dateArray.animationFlag "
> >
<van-swipe-item style="width: 100%;height: 55px" class="animate__animated animate__fadeIn"> <van-swipe-item style="width: 100%;height: 55px"
:class="['animate__animated animate__fadeIn','animate__animated animate__fadeIn'][Number(dateArray.animationFlag)]">
<div class="w-full h-[55px] flex "> <div class="w-full h-[55px] flex ">
<div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div> <div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div>
<div <div
...@@ -29,7 +31,8 @@ ...@@ -29,7 +31,8 @@
</div> </div>
</div> </div>
</van-swipe-item> </van-swipe-item>
<van-swipe-item style="width: 100%;height: 55px" class="animate__animated animate__fadeIn"> <van-swipe-item style="width: 100%;height: 55px"
:class="['animate__animated animate__fadeIn','animate__animated animate__fadeIn'][Number(dateArray.animationFlag)]">
<div class="w-full h-[55px] flex "> <div class="w-full h-[55px] flex ">
<div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div> <div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div>
<div <div
...@@ -65,6 +68,7 @@ const emit = defineEmits([ ...@@ -65,6 +68,7 @@ const emit = defineEmits([
]) ])
const swipe = ref() const swipe = ref()
let dateArray = reactive({ let dateArray = reactive({
animationFlag: false,
swiper: { swiper: {
leftOrRightFlag: 1, leftOrRightFlag: 1,
beginPosition: '', beginPosition: '',
...@@ -149,6 +153,7 @@ function touchEnd(event, parent) { ...@@ -149,6 +153,7 @@ function touchEnd(event, parent) {
'right': () => { 'right': () => {
//右滑 查询过去日期 //右滑 查询过去日期
reductionDate() reductionDate()
if (!parent.init.switchView.show) { if (!parent.init.switchView.show) {
parent.init.paramsWeek = { parent.init.paramsWeek = {
...parent.init.paramsWeek, ...parent.init.paramsWeek,
...@@ -171,6 +176,7 @@ function touchEnd(event, parent) { ...@@ -171,6 +176,7 @@ function touchEnd(event, parent) {
} }
} }
} }
dateArray.animationFlag = !dateArray.animationFlag
strategy[swiperDirection]() strategy[swiperDirection]()
} }
...@@ -292,6 +298,26 @@ const getInitDate = () => { ...@@ -292,6 +298,26 @@ const getInitDate = () => {
dateArray.month = dateArray.array[0].month dateArray.month = dateArray.array[0].month
} }
function getWeekdays(dateStr) {
//基于一个日期 获取这个日期的周一到周五 且去除双休日
let inputDate = new Date(dateStr);
let day = inputDate.getDay(); //获取inputDate是星期几
let startDate = new Date(inputDate); //得到周一的日期
startDate.setDate(inputDate.getDate() - day + (day === 0 ? -6 : 1));
let weekdays = [];
for (let i = 0; i < 5; i++) {
let currentDate = new Date(startDate);
currentDate.setDate(startDate.getDate() + i);
weekdays.push(currentDate);
}
return weekdays;
}
let weekdays = getWeekdays('2024-03-15');
weekdays.forEach(date => {
console.log(date);
})
onMounted(() => { onMounted(() => {
getInitDate() getInitDate()
...@@ -299,7 +325,8 @@ onMounted(() => { ...@@ -299,7 +325,8 @@ onMounted(() => {
defineExpose({ defineExpose({
getInitDate, getInitDate,
dateArray, dateArray,
deleteDateBg deleteDateBg,
getWeekdays
}) })
</script> </script>
<script setup>
const props = defineProps({
show: {
type: Boolean,
default: false
}
})
</script>
<template>
<van-loading v-if="props.show" class="absolute flex justify-center top-0" color="#1989fa"/>
</template>
<style scoped>
</style>
<template> <template>
<div class="w-full min-h-[120px] rounded-[5px] text-[#4B5563] p-2 text-[15px] flex bg-white mb-3"> <div class="w-full min-h-[120px] rounded-[5px] text-[#4B5563] p-2 text-[15px] flex bg-white mb-3">
<div v-if="props.data.is_allday == 0" class="w-[65%] min-h-full"> <div v-if="props.data.is_allday == 0 " class="w-[65%] min-h-full">
<div class="w-full min-h-1/2 "> <div class="w-full min-h-1/2 ">
<van-text-ellipsis <van-text-ellipsis
...@@ -48,7 +48,7 @@ const props = defineProps({ ...@@ -48,7 +48,7 @@ const props = defineProps({
} }
}) })
onMounted(() => { onMounted(() => {
console.log("🚀🚀🚀,", props.data)
}) })
</script> </script>
......
...@@ -24,6 +24,7 @@ import noPageFooter from '@/components/noPageFooter.vue' ...@@ -24,6 +24,7 @@ import noPageFooter from '@/components/noPageFooter.vue'
import popup from '@/components/popup.vue' import popup from '@/components/popup.vue'
import fillingCard from '@/components/jobFilling/fillingCard.vue' import fillingCard from '@/components/jobFilling/fillingCard.vue'
import Date from '@/components/Date.vue' import Date from '@/components/Date.vue'
import loading from '@/components/loading.vue'
const app = createApp(App) const app = createApp(App)
//使用测试按钮Vxonsole //使用测试按钮Vxonsole
...@@ -39,6 +40,7 @@ app.component('noPageFooter', noPageFooter) ...@@ -39,6 +40,7 @@ app.component('noPageFooter', noPageFooter)
app.component('popup', popup) app.component('popup', popup)
app.component('fillingCard', fillingCard) app.component('fillingCard', fillingCard)
app.component('Date', Date) app.component('Date', Date)
app.component('loading', loading)
app.mount('#app') app.mount('#app')
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</template> </template>
<script setup> <script setup>
import dayjs from "dayjs"; import dayjs from "dayjs";
import {reactive} from "vue"; import {onMounted, reactive} from "vue";
const init = reactive({ const init = reactive({
...@@ -33,4 +33,8 @@ function closeDateComponent(e) { ...@@ -33,4 +33,8 @@ function closeDateComponent(e) {
//关闭日期组件 //关闭日期组件
init.fillInWork.show = e init.fillInWork.show = e
} }
onMounted(() => {
document.title = '人员授权'
})
</script> </script>
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<div class="w-full h-3"></div> <div class="w-full h-3"></div>
<van-cell inset title="选择单个日期" :value="init.search.date" @click="init.date.show = true"/> <van-cell inset title="选择单个日期" :value="init.search.date" @click="init.date.show = true"/>
<van-calendar :min-date="new Date(miniDate)" :max-range="5" range-prompt="最多选择 5 天" <van-calendar :formatter="formatter" :min-date="new Date(miniDate)" :max-range="5" range-prompt="最多选择 5 天"
type="range" type="range"
v-model:show="init.date.show" v-model:show="init.date.show"
@confirm="onConfirm"/> @confirm="onConfirm"/>
...@@ -633,6 +633,16 @@ async function pickSomeoneFromTheOutside(userId) { ...@@ -633,6 +633,16 @@ async function pickSomeoneFromTheOutside(userId) {
}) })
} }
const formatter = (day) => {
//自定义日期文案
let date = new Date(day.date);
let day1 = date.getDay();
if (day1 == 0 || day1 == 6) {
day.type = 'disabled'
}
return day;
};
onMounted(() => { onMounted(() => {
document.title = '分管填报记录查看' document.title = '分管填报记录查看'
GetDeptList() GetDeptList()
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</template> </template>
<script setup> <script setup>
import dayjs from "dayjs"; import dayjs from "dayjs";
import {reactive} from "vue"; import {onMounted, reactive} from "vue";
const init = reactive({ const init = reactive({
...@@ -33,4 +33,8 @@ function closeDateComponent(e) { ...@@ -33,4 +33,8 @@ function closeDateComponent(e) {
//关闭日期组件 //关闭日期组件
init.fillInWork.show = e init.fillInWork.show = e
} }
onMounted(() => {
document.title = '系统配置'
})
</script> </script>
...@@ -2,11 +2,12 @@ ...@@ -2,11 +2,12 @@
<div class="publicContainer "> <div class="publicContainer ">
<indexHeader/> <indexHeader/>
<div class="w-full h-[calc(100%-65px)] box-border overflow-y-auto "> <div class="w-full h-[calc(100%-65px)] box-border overflow-y-auto ">
<van-divider :style="{ color: '#1989FA',fontSize:'18px', margin:0, borderColor: '#1989fa', padding:'5px 0'}" <van-divider v-if="!!Object.keys(init.data.mySchedule).length"
:style="{ color: '#1989FA',fontSize:'18px', margin:0, borderColor: '#1989fa', padding:'5px 0'}"
content-position="left"> content-position="left">
我的周安排 我的周安排
</van-divider> </van-divider>
<weeklyArrangementCard :data="init.data.mySchedule"/> <weeklyArrangementCard v-if="!!Object.keys(init.data.mySchedule).length" :data="init.data.mySchedule"/>
<van-divider v-if="!!init.data.myFocus.length" <van-divider v-if="!!init.data.myFocus.length"
...@@ -23,36 +24,192 @@ ...@@ -23,36 +24,192 @@
<!-- <van-loading color="#1989fa"/>--> <!-- <van-loading color="#1989fa"/>-->
<!-- </div>--> <!-- </div>-->
<van-divider :style="{ color: '#1989FA',fontSize:'18px', margin:0, borderColor: '#1989fa',padding:'5px 0' }" <van-divider v-if="Object.keys(init.role).some(cur=>{return Number(init.role[cur])==1})"
:style="{ color: '#1989FA',fontSize:'18px', margin:0, borderColor: '#1989fa',padding:'5px 0' }"
content-position="left"> content-position="left">
菜单栏 菜单栏
</van-divider> </van-divider>
<van-cell title="工作安排填报" is-link to="/workArrangementFilling"/> <van-cell v-if="init.role.plan_write== 1" title="工作安排填报" is-link to="/workArrangementFilling"/>
<van-cell title="分管填报记录" is-link to="/responsibleForFilingRecords"/> <van-cell v-if="init.role.examine== 1" title="分管填报记录" is-link to="/responsibleForFilingRecords"/>
<van-cell title="人员授权" is-link to="/personnelAuthority"/> <van-cell v-if="init.role.userrole== 1" title="人员授权" is-link to="/personnelAuthority"/>
<van-cell title="填报配置" is-link to="/system"/> <van-cell @click="fillInConfiguration" v-if="init.role.write_sysconfig== 1" title="填报配置" is-link
/>
<!-- to="/system"-->
</div>
</div>
<!-- 高级查询 -->
<popup :show="init.select.showPopup" :height="60">
<template #content>
<div class="w-full h-[calc(100%-64px)] bg-gray-200 relative " :key="init.calendarKey">
<loading :show="init.loading"></loading>
<van-cell inset title="学期范围"
:value="init.paramsTransfers.semester_date_begin + ' - '+init.paramsTransfers.semester_date_end"
@click="init.date.show = true"/>
<van-calendar
type="range"
v-model:show="init.date.show"
@confirm="onConfirm"/>
<van-cell inset title="提醒周期">
<template #value class="w-full h-full flex items-center">
每周<span class="text-blue-500 mr-2"
@click="actionWeek('period_remind_week')">[{{ init.paramsTransfers.period_remind_week }}]</span>
<span
@click="actionTiem('period_remind_time')"
class="text-blue-500">[{{ init.paramsTransfers.period_remind_time }}]</span>
</template>
</van-cell>
<div class="w-full h-[10px] bg-gray-200"></div>
<van-cell inset title="未填写提醒">
<template #value>
<div class="w-full h-full flex justify-end flex-wrap">
<van-checkbox shape="square" class="w-full flex justify-end m-1"
v-model="init.paramsTransfers.nowrite_remind_isCheck">开启
</van-checkbox>
<div @click="addTime('nowrite_remind_time')" shape="square" class="w-full flex justify-end m-1">
<div class="w-[20px] h-[20px] border-solid border-[1px] border-blue-500 ccFlex text-blue-500">
<van-icon name="plus"/>
</div>
</div> </div>
<div class="w-full flex justify-end items-center m-1"
v-for="(item,index) in init.paramsTransfers.nowrite_remind_time"
:key="index">
<span class="text-blue-500">[{{ item }}]</span>
<div @click="deleteTime(index)" class="ml-2 w-[15px] h-[15px] ccFlex text-blue-500">
<van-icon class="text-red-600" name="cross"/>
</div> </div>
</div>
</div>
</template>
</van-cell>
<div class="w-full h-[10px] bg-gray-200"></div>
<van-cell inset title="提前填写">
<div class="w-full h-full flex justify-end ">
<van-checkbox shape="square" class="ml-auto" v-model="init.paramsTransfers.ahead_write">允许</van-checkbox>
</div>
</van-cell>
<van-cell inset title="填报情况提醒">
<template #value class="w-full h-full flex items-center">
每周<span class="text-blue-500 mr-2"
@click="actionWeek('write_remind_week')">[{{ init.paramsTransfers.write_remind_week }}]</span>
<span
@click="actionTiem('write_remind_time')"
class="text-blue-500">[{{ init.paramsTransfers.write_remind_time }}]</span>
</template>
</van-cell>
</div>
<noPageFooter>
<template v-slot:default>
<van-button type="primary" round class="w-[90px]" @click="save">保存</van-button>
<van-button round class="w-[90px]" @click="cancel">关闭</van-button>
</template>
</noPageFooter>
</template>
</popup>
<popup :show="init.select.timeShow" :height="60">
<!-- 时间选择-->
<template #content>
<van-time-picker @confirm="timeConfirm" @cancel="init.select.timeShow =false"
title="选择时间"/>
</template>
</popup>
<popup :show="init.select.weekShow" :height="60">
<!-- 星期选择-->
<template #content>
<van-picker
title="请选择日期"
:columns="init.columns"
@confirm="weekConfirm"
@cancel="init.select.weekShow =false"
/>
</template>
</popup>
</template> </template>
<script setup> <script setup>
import * as hooks from '@/hooks/index.js' import * as hooks from '@/hooks/index.js'
import * as api from '@/api/apis/controller/index.js' import * as api from '@/api/apis/controller/index.js'
import {nextTick, onMounted, reactive} from "vue"; import {nextTick, onMounted, reactive} from "vue";
import dayjs from "dayjs";
import Popup from "@/components/popup.vue";
import Loading from "@/components/loading.vue";
const init = reactive({ const init = reactive({
getWeekOrTimeKey: "",
columns: [
{text: '星期一', value: '星期一'},
{text: '星期二', value: '星期二'},
{text: '星期三', value: '星期三'},
{text: '星期四', value: '星期四'},
{text: '星期五', value: '星期五'},
{text: '星期六', value: '星期六'},
{text: '星期日', value: '星期日'},
],
loading: false,
search: {
date: '',
},
select: {
weekShow: false,
timeShow: false,
showPopup: false,
},
paramsTransfers: {
"configid": "",
date: [],
"semester_date_begin": "2024-01-02",
"semester_date_end": "2024-06-03",
"period_remind_time": "",
"period_remind_week": "",
"nowrite_remind_isCheck": "",
"nowrite_remind_time": [],
"ahead_write": "",
"write_remind_week": "",
"write_remind_time": "",
},
params: {
"configid": "",
"semester_date_begin": "",
"semester_date_end": "",
"period_remind": "",
"nowrite_remind": "",
"ahead_write": "",
"write_remind": ""
},
date: {
show: false,
},
role: {
"plan_write": "0",
"examine": "1",
"userrole": "0",
"write_sysconfig": "0"
},
data: { data: {
mySchedule: {}, mySchedule: {},
myFocus: [], myFocus: [],
}, },
params: {},
}) })
function onConfirm(value) {
//高级筛选确定日期
init.paramsTransfers.semester_date_begin = dayjs(value[0]).format('YYYY-MM-DD')
init.paramsTransfers.semester_date_end = dayjs(value[1]).format('YYYY-MM-DD')
init.date.show = false;
}
function GetPlanProjectByMyList() { function GetPlanProjectByMyList() {
//获取我的安排 //获取我的安排
api.getApiPlanProjectGetPlanProjectByMyList().then(res => { api.getApiPlanProjectGetPlanProjectByMyList().then(res => {
init.data.mySchedule = res.response if (res.response) init.data.mySchedule = res.response
else init.data.mySchedule = {}
}) })
} }
...@@ -63,10 +220,113 @@ function GetCollectList() { ...@@ -63,10 +220,113 @@ function GetCollectList() {
}) })
} }
function GetMenuRole() {
//获取菜单权限
api.getApiCommonGetMenuRole().then(res => {
init.role = res.response
})
}
function save() {
//保存
hooks.myEncapsulationFunction(() => {
return api.postApiSysConfigSysConfigSave({
"configid": init.paramsTransfers.configid,
"semester_date_begin": init.paramsTransfers.semester_date_begin,
"semester_date_end": init.paramsTransfers.semester_date_end,
"period_remind": init.paramsTransfers.period_remind_week + '|' + init.paramsTransfers.period_remind_time,
"nowrite_remind": String(Number(init.paramsTransfers.nowrite_remind_isCheck)) + String(String(init.paramsTransfers.nowrite_remind_time.map(cur => '|' + cur)).split(',').join('')),
"ahead_write": String(Number(init.paramsTransfers.ahead_write)),
"write_remind": init.paramsTransfers.write_remind_week + '|' + init.paramsTransfers.write_remind_time,
}).then(res => {
if (res.code === 1) fillInConfiguration()
return res
})
})
}
function cancel() {
//取消
init.select.showPopup = false
}
function addTime(key) {
//添加时间
init.select.timeShow = true
init.getWeekOrTimeKey = key
}
function deleteTime(index) {
//删除时间
init.paramsTransfers.nowrite_remind_time.splice(index, 1)
}
function timeConfirm({selectedValues, selectedOptions, selectedIndexes}) {
//确认时间
if (init.getWeekOrTimeKey === 'nowrite_remind_time') {
init.paramsTransfers[init.getWeekOrTimeKey].push(selectedValues[0] + ':' + selectedValues[1])
} else init.paramsTransfers[init.getWeekOrTimeKey] = selectedValues[0] + ':' + selectedValues[1]
init.select.timeShow = false
}
function weekConfirm({selectedValues, selectedOptions, selectedIndexes}) {
//确认星期
init.paramsTransfers[init.getWeekOrTimeKey] = selectedValues[0]
init.select.weekShow = false
}
function actionWeek(key) {
//选中日期
init.select.weekShow = true
init.getWeekOrTimeKey = key
}
function actionTiem(key) {
//选中时间
init.select.timeShow = true
init.getWeekOrTimeKey = key
}
function fillInConfiguration() {
//配置界面
init.select.showPopup = true
init.loading = true
api.getApiSysConfigSysConfigInit().then(res => {
//初始化配置信息
init.paramsTransfers = {
"configid": res.response.configid,
date: [],
"semester_date_begin": res.response.semester_date_begin.split(' ')[0],
"semester_date_end": res.response.semester_date_end.split(' ')[0],
"period_remind_time": res.response.period_remind.split('|')[1],
"period_remind_week": res.response.period_remind.split('|')[0],
"nowrite_remind_isCheck": Boolean(Number(res.response.nowrite_remind.split('|')[0])),
"nowrite_remind_time": res.response.nowrite_remind.split('|').filter(cur => cur != 0 && cur != 1 && Number(cur) != 0 && Number(cur) != 1),
"ahead_write": Boolean(Number(res.response.ahead_write)),
"write_remind_week": res.response.write_remind.split('|')[0],
"write_remind_time": res.response.write_remind.split('|')[1],
}
}).finally(() => {
init.loading = false
})
}
const onWeekConfirm = ({selectedValues}) => {
};
const onCancel = () => showToast('取消');
onMounted(() => { onMounted(() => {
document.title = '一周安排' document.title = '一周安排'
GetPlanProjectByMyList() GetPlanProjectByMyList()
GetCollectList() GetCollectList()
GetMenuRole()
}) })
defineExpose({ defineExpose({
GetCollectList, GetCollectList,
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
</div> </div>
<noPageFooter> <noPageFooter>
<template v-slot:default> <template v-slot:default>
<van-button type="primary" round class="w-[120px]" @click="addDate">添加日期</van-button> <van-button v-if="init.role == 1" type="primary" round class="w-[120px]" @click="addDate">添加日期
</van-button>
<van-button type="success" round class="w-[120px]" @click="save">保存</van-button> <van-button type="success" round class="w-[120px]" @click="save">保存</van-button>
</template> </template>
</noPageFooter> </noPageFooter>
...@@ -27,6 +28,7 @@ import {onMounted, reactive, ref} from "vue"; ...@@ -27,6 +28,7 @@ import {onMounted, reactive, ref} from "vue";
const saveRef = ref() const saveRef = ref()
const init = reactive({ const init = reactive({
role: '0',
data: { data: {
myFillingIn: [], myFillingIn: [],
}, },
...@@ -50,8 +52,14 @@ function closeDateComponent(e) { ...@@ -50,8 +52,14 @@ function closeDateComponent(e) {
init.fillInWork.show = e init.fillInWork.show = e
} }
function GetAheadWriteSwitch() {
//是否可以提前添加周安排
api.getApiCommonGetAheadWriteSwitch().then(res => {
init.role = res.response
})
}
onMounted(() => { onMounted(() => {
GetAheadWriteSwitch()
}) })
</script> </script>
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或