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

V20240319 保存

上级 0b58c729
import{b as p,c as u,a as l,w as k,u as m,L as _,o as f,d as g,C as w,e as n,G as a,S as y,f as d}from"./index-yf64ESR2.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(),u("div",R,[l(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[g(" 登录中")]),_:1})])}}};export{A as default};
import{b as p,c as u,a as l,w as k,u as m,L as _,o as f,d as g,C as w,e as n,G as a,S as y,f as d}from"./index-CRjCC91L.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(),u("div",R,[l(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[g(" 登录中")]),_:1})])}}};export{A as default};
import{b as l,c as k,a as _,w as m,u as y,L as f,o as d,d as w,f as g,e as n,G as o,C as v,S as x}from"./index-yf64ESR2.js";const S={style:{display:"flex","justify-content":"center","margin-top":"50%"}},R={__name:"SSOInfo",setup(q){const t=y(),c=async a=>{const e=await x(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},i=async a=>{const e=await(void 0)(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},r=async()=>{({wx:async()=>{let e={token:t.currentRoute.value.query.token};const s=await g(e);if(s===void 0)await t.replace({name:"403"});else if(s.response.access_token.token_content!==""){n.set("site-management-token",s.response.access_token.token_content),n.set("time",s.response.access_token.expires);const u=await o();n.set("site-user-info",JSON.stringify(u.response));let p=t.currentRoute.value.query.id;await t.push({path:"/indexDetail",query:{id:p,pushMessage:1}})}},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 i(e)},test:async()=>{const e=await v();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}}})[t.currentRoute.value.query.type]()};return l(()=>{r()}),(a,e)=>{const s=f;return d(),k("div",S,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[w(" 登录中")]),_:1})])}}};export{R as default};
import{b as l,c as k,a as _,w as m,u as y,L as f,o as d,d as w,f as g,e as n,G as o,C as v,S as x}from"./index-CRjCC91L.js";const S={style:{display:"flex","justify-content":"center","margin-top":"50%"}},R={__name:"SSOInfo",setup(q){const t=y(),c=async a=>{const e=await x(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},i=async a=>{const e=await(void 0)(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},r=async()=>{({wx:async()=>{let e={token:t.currentRoute.value.query.token};const s=await g(e);if(s===void 0)await t.replace({name:"403"});else if(s.response.access_token.token_content!==""){n.set("site-management-token",s.response.access_token.token_content),n.set("time",s.response.access_token.expires);const u=await o();n.set("site-user-info",JSON.stringify(u.response));let p=t.currentRoute.value.query.id;await t.push({path:"/indexDetail",query:{id:p,pushMessage:1}})}},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 i(e)},test:async()=>{const e=await v();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}}})[t.currentRoute.value.query.type]()};return l(()=>{r()}),(a,e)=>{const s=f;return d(),k("div",S,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[w(" 登录中")]),_:1})])}}};export{R as default};
import{p as f,i as d,k as y,a as s,F as c,ak as h,al as v,g as A,O as z}from"./index-yf64ESR2.js";const[m,w]=f("space"),S={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function u(e=[]){const a=[];return e.forEach(t=>{Array.isArray(t)?a.push(...t):t.type===c?a.push(...u(t.children)):a.push(t)}),a.filter(t=>{var r;return!(t&&(t.type===h||t.type===c&&((r=t.children)==null?void 0:r.length)===0||t.type===v&&t.children.trim()===""))})}var p=d({name:m,props:S,setup(e,{slots:a}){const t=y(()=>{var n;return(n=e.align)!=null?n:e.direction==="horizontal"?"center":""}),r=n=>typeof n=="number"?n+"px":n,g=n=>{const i={},o=`${r(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${r(Array.isArray(e.size)?e.size[1]:e.size)}`;return n?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(i.marginRight=o),(e.direction==="vertical"||e.wrap)&&(i.marginBottom=l),i)};return()=>{var n;const i=u((n=a.default)==null?void 0:n.call(a));return s("div",{class:[w({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[i.map((o,l)=>s("div",{key:`item-${l}`,class:`${m}-item`,style:g(l===i.length-1)},[o]))])}}});const x=A(p);function B(e){return z.get("/api/Common/GetDeptList",e)}export{x as S,B as g};
import{p as f,i as d,k as y,a as s,F as c,ak as h,al as v,g as A,O as z}from"./index-CRjCC91L.js";const[m,w]=f("space"),S={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function u(e=[]){const a=[];return e.forEach(t=>{Array.isArray(t)?a.push(...t):t.type===c?a.push(...u(t.children)):a.push(t)}),a.filter(t=>{var r;return!(t&&(t.type===h||t.type===c&&((r=t.children)==null?void 0:r.length)===0||t.type===v&&t.children.trim()===""))})}var p=d({name:m,props:S,setup(e,{slots:a}){const t=y(()=>{var n;return(n=e.align)!=null?n:e.direction==="horizontal"?"center":""}),r=n=>typeof n=="number"?n+"px":n,g=n=>{const i={},o=`${r(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${r(Array.isArray(e.size)?e.size[1]:e.size)}`;return n?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(i.marginRight=o),(e.direction==="vertical"||e.wrap)&&(i.marginBottom=l),i)};return()=>{var n;const i=u((n=a.default)==null?void 0:n.call(a));return s("div",{class:[w({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[i.map((o,l)=>s("div",{key:`item-${l}`,class:`${m}-item`,style:g(l===i.length-1)},[o]))])}}});const x=A(p);function B(e){return z.get("/api/Common/GetDeptList",e)}export{x as S,B as g};
import{P as a,b as t,c as s,a as c,Q as e,o as n,a7 as l}from"./index-yf64ESR2.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{P as a,b as t,c as s,a as c,Q as e,o as n,a7 as l}from"./index-CRjCC91L.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{_ as e}from"./index-yf64ESR2.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{_ as e}from"./index-CRjCC91L.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{O as w,r as k,P as v,b as x,c as C,a as t,Q as r,w as n,a6 as g,a5 as y,o as l,R as I,d as i,T as W,a7 as B,a4 as N}from"./index-yf64ESR2.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const V={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"},R={__name:"index",setup(a){const s=k(),e=v({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(o){e.fillInWork.show=o}function f(){A().then(o=>{e.role=o.response})}return x(()=>{f()}),(o,G)=>{const p=B,m=g,c=N,h=y;return l(),C("div",V,[t(p,{path:"/welcome",title:"填报工作安排"}),b,r("div",D,[t(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),t(h,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:d},{default:n(()=>[i("保存")]),_:1})]),_:1})])}}};export{R as default};
import{O as w,r as k,P as v,b as x,c as C,a as t,Q as r,w as n,a6 as g,a5 as y,o as l,R as I,d as i,T as W,a7 as B,a4 as N}from"./index-CRjCC91L.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const V={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"},R={__name:"index",setup(a){const s=k(),e=v({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(o){e.fillInWork.show=o}function f(){A().then(o=>{e.role=o.response})}return x(()=>{f()}),(o,G)=>{const p=B,m=g,c=N,h=y;return l(),C("div",V,[t(p,{path:"/welcome",title:"填报工作安排"}),b,r("div",D,[t(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),t(h,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:d},{default:n(()=>[i("保存")]),_:1})]),_:1})])}}};export{R as default};
import{c as r,a as e,F as c,u as s,o as m,N as _}from"./index-yf64ESR2.js";import{E as l}from"./index-D8LGI87C.js";const h={__name:"index",setup(p){const t=s(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,n=l;return m(),r(c,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(n,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{h as default};
import{c as r,a as e,F as c,u as s,o as m,N as _}from"./index-CRjCC91L.js";import{E as l}from"./index-TV013WVb.js";const h={__name:"index",setup(p){const t=s(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,n=l;return m(),r(c,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(n,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{h as default};
import{p as v,i as w,ai as G,a as e,aj as k,B,g as M}from"./index-yf64ESR2.js";const[S,s]=v("empty"),C={image:B("default"),imageSize:[Number,String,Array],description:String};var z=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),t=r=>`${f}-${r}`,l=r=>`url(#${t(r)})`,i=(r,d,D)=>e("stop",{"stop-color":r,offset:`${d}%`,"stop-opacity":D},null),n=(r,d)=>[i(r,0),i(d,100)],x=r=>[e("defs",null,[e("radialGradient",{id:t(r),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:l(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:t("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:l("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:l("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:t("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:l("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:l("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:t(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:t(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:t(3),x1:"100%",x2:"100%",y2:"100%"},[n("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:t(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:l(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:l(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:l(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:l(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:l(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:l(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:t(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:t(7)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:l(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:l(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:l(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(8)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),x("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:l(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:t(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:t(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:l(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:l(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:l(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:l(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:l(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var r;if(a.image)return a.image();const d={error:E,search:p,network:y,default:g};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const b=M(z);export{b as E};
import{p as v,i as w,ai as G,a as e,aj as k,B,g as M}from"./index-CRjCC91L.js";const[S,s]=v("empty"),C={image:B("default"),imageSize:[Number,String,Array],description:String};var z=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),t=r=>`${f}-${r}`,l=r=>`url(#${t(r)})`,i=(r,d,D)=>e("stop",{"stop-color":r,offset:`${d}%`,"stop-opacity":D},null),n=(r,d)=>[i(r,0),i(d,100)],x=r=>[e("defs",null,[e("radialGradient",{id:t(r),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:l(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:t("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:l("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:l("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:t("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:l("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:l("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:t(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:t(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:t(3),x1:"100%",x2:"100%",y2:"100%"},[n("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:t(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:l(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:l(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:l(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:l(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:l(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:l(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:t(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:t(7)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:l(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:l(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:l(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(8)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),x("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:l(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:t(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:t(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:l(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:l(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:l(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:l(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:l(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var r;if(a.image)return a.image();const d={error:E,search:p,network:y,default:g};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const b=M(z);export{b as E};
......@@ -6,7 +6,7 @@
<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">
<title>一周安排</title>
<script type="module" crossorigin src="./assets/index-yf64ESR2.js"></script>
<script type="module" crossorigin src="./assets/index-CRjCC91L.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-EZwx0enI.css">
</head>
<body>
......
......@@ -15,7 +15,6 @@
<div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div>
<div
:style="{background:item.bg,color:item.acColor,width:'16%',height:'100%'} "
:class="['animate__animated animate__fadeIn','animate__animated animate__fadeIn'][Number(dateArray.animationFlag)] "
v-for="(item,index) in dateArray.array" :key="index">
<div @click="centerDateValue(item.date,$parent)" :style="{color: item.color}"
......@@ -107,7 +106,8 @@ function deleteDateBg() {
//清楚日期的选中效果
dateArray.array.forEach(cur => {
cur.bg = ''
cur.acColor = ''
cur.acColor = '#000000'
cur.color = '#000000'
})
}
......@@ -229,7 +229,7 @@ const reductionDate = () => {
if (validateIsATheTwodayOffs(cur.date)) dateArray.array.splice(index, 1)
})
dateArray.month = dateArray.array[0].month
console.log("🚀🚀--dateArray.array🚀,", ...dateArray.array)
}
const addDate = () => {
......@@ -322,10 +322,42 @@ function getWeekdays(dateStr) {
return weekdays;
}
let weekdays = getWeekdays('2024-03-15');
weekdays.forEach(date => {
console.log(date);
})
function dateArrayAssignmentRelatedData(endDate) {
//基于日期数组 赋值相关数据
let weekDates = []
let weekdays = getWeekdays(endDate);
weekdays.forEach(date => {
weekDates.push({
date: dayjs(date).format('YYYY-MM-DD'),
dateDay: dayjs(date).format('D'),
week: dayjs(date).week,
weekDay: ["日", "一", "二", "三", "四", "五", "六"][dayjs(date).day()],
month: dayjs(date).month() + 1,
color: dayjs(date).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#FFFFFF' : '',
bg: dayjs(date).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#ef6767' : '',
});
console.log(dayjs(date).format('YYYY-MM-DD'));
})
dateArray.addDateFlag = false
dateArray.array = weekDates
// 移除
dateArray.center = false;
dateArray.left = false;
setTimeout(() => {
dateArray.right = true;
}, 10)
dateArray.right = false;
dateArray.array.forEach((cur, index) => {
if (cur.month !== dateArray.array[0].month) cur.dateDay = dayjs(cur.date).format('M月D')
if (validateIsATheTwodayOffs(cur.date)) dateArray.array.splice(index, 1)
})
dateArray.month = dateArray.array[0].month
}
onMounted(() => {
getInitDate()
......@@ -334,7 +366,8 @@ defineExpose({
getInitDate,
dateArray,
deleteDateBg,
getWeekdays
getWeekdays,
dateArrayAssignmentRelatedData,
})
</script>
......@@ -161,7 +161,7 @@ const init = reactive({
function clear(e) {
//清楚填写内容
console.log("🚀🚀🚀,", 123)
}
function getWeekdays(startDate, endDate) {
......@@ -239,6 +239,7 @@ function save() {
hooks.publicConfirm(() => {
hooks.myEncapsulationFunction(() => {
return api.postApiPlanProjectPlanProjectSave(init.work.data).then(res => {
if (res.code === 1) PlanProjectInit()
return res
})
})
......
......@@ -90,7 +90,7 @@
<!-- 高级查询 -->
<popup :show="init.select.showPopup" :height="80">
<template #content>
<div class="w-full h-[calc(100%-64px)] bg-gray-200" :key="init.calendarKey">
<div class="w-full h-[calc(100%-64px)] bg-gray-200 overflow-y-auto" :key="init.calendarKey">
<div class="w-full h-3"></div>
<van-cell inset title="选择单个日期" :value="init.search.date" @click="init.date.show = true"/>
......@@ -322,6 +322,7 @@ function search(refs) {
//查询
let strategy = {
'true': async () => {
//天
init.paramsDay = {
...init.check,
begin_time: init.check.begin_time ? init.check.begin_time : startOfWeek,
......@@ -329,7 +330,7 @@ function search(refs) {
}
refs.dateDay.deleteDateBg()
await GetPlanProjectByDayList()
refs.dateDay.dateArrayAssignmentRelatedData(init.paramsDay.end_time)
init.dayArray.map((cur, index) => {
if (init.paramsDay.dept_id_list.includes(cur.dept_id)) {
cur.deptBg = '#1989FA'
......@@ -339,17 +340,18 @@ function search(refs) {
cur.peopleBg = '#1989FA'
cur.peopleCl = '#FFFFFF'
}
})
init.select.showPopup = false
},
'false': () => {
//周
init.paramsWeek = {
...init.check,
begin_time: init.check.begin_time ? init.check.begin_time : startOfWeek,
end_time: init.check.end_time ? init.check.end_time : endOfWeek,
}
GetPlanProjectByWeekList()
refs.dateWeek.dateArrayAssignmentRelatedData(init.paramsWeek.end_time)
init.select.showPopup = false
}
}
......@@ -603,7 +605,7 @@ function actionUser(item) {
}
async function selectTheExternalDepartment(deptId) {
function selectTheExternalDepartment(deptId) {
//选中外部的部门
......@@ -615,9 +617,22 @@ async function selectTheExternalDepartment(deptId) {
}
if (!!init.paramsWeek.dept_id_list.length) init.select.action = 1
GetPlanProjectByWeekList()
init.weekArray.map((cur, index) => {
if (init.paramsWeek.dept_id_list.includes(cur.deptId)) {
cur.deptBg = '#1989FA'
cur.deptCl = '#FFFFFF'
}
cur.nameData.map((cu, inde) => {
if (init.paramsWeek.tid_list.includes(cu.userId)) {
cu.peopleBg = '#1989FA'
cu.peopleCl = '#FFFFFF'
}
return cu
})
return cur
})
GetPlanProjectByWeekList()
}
function pickSomeoneFromTheOutside(userId) {
......@@ -630,6 +645,20 @@ function pickSomeoneFromTheOutside(userId) {
}
if (!!init.paramsWeek.tid_list.length) init.select.action = 1
init.weekArray.map((cur, index) => {
if (init.paramsWeek.dept_id_list.includes(cur.deptId)) {
cur.deptBg = '#1989FA'
cur.deptCl = '#FFFFFF'
}
cur.nameData.map((cu, inde) => {
if (init.paramsWeek.tid_list.includes(cu.userId)) {
cu.peopleBg = '#1989FA'
cu.peopleCl = '#FFFFFF'
}
return cu
})
return cur
})
GetPlanProjectByWeekList()
......
......@@ -52,7 +52,7 @@
v-model:show="init.date.show"
@confirm="onConfirm"/>
<van-cell inset title="提醒周期">
<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>
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或