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

V20240318 差文件导出 版本

上级 8bb12e45
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-DcDBLkg4.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-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 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 i,c as l,a as p,w as k,u as d,e as s,L as _,o as m,d as y}from"./index-DcDBLkg4.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=d(),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}})}},c=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}`})}},r=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 c(n)}};return i(()=>{r()}),(n,t)=>{const o=_;return m(),l("div",f,[p(o,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[y(" 登录中")]),_:1})])}}};export{q as default};
import{_ as e}from"./index-DcDBLkg4.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o 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{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-DcDBLkg4.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-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{p as v,i as w,ai as G,a as e,aj as k,B,g as M}from"./index-DcDBLkg4.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-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 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-DcDBLkg4.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-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{c as r,a as e,F as c,u as s,o as m,N as _}from"./index-DcDBLkg4.js";import{E as l}from"./index-Bz7VT7oA.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-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{P as a,b as t,c as s,a as c,Q as e,o as n,a7 as l}from"./index-DcDBLkg4.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-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};
......@@ -6,8 +6,8 @@
<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-DcDBLkg4.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BX5nP7gH.css">
<script type="module" crossorigin src="./assets/index-yf64ESR2.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-EZwx0enI.css">
</head>
<body>
<div id="app"></div>
......
......@@ -119,20 +119,23 @@ function centerDateValue(date, parent) {
//日期背景
dateArray.array.forEach(cur => {
if (date === cur.date && cur.date === dayjs().format('YYYY-MM-DD')) {
console.log("🚀🚀🚀1,")
cur.bg = '#1989FA'
cur.bg = '#ef6767'
cur.acColor = '#FFFFFF'
// cur.color = '#FFFFFF'
cur.color = '#FFFFFF'
} else if (date === cur.date && cur.date !== dayjs().format('YYYY-MM-DD')) {
console.log("🚀🚀🚀2,")
cur.bg = '#1989FA'
cur.acColor = '#FFFFFF'
cur.color = '#FFFFFF'
} else {
console.log("🚀🚀🚀3,")
cur.bg = ''
cur.acColor = ''
cur.acColor = '#000000'
cur.color = '#000000'
if (cur.date === dayjs().format('YYYY-MM-DD')) {
cur.acColor = '#ef6767'
cur.color = '#ef6767'
}
}
})
parent.init.select.action = true
......@@ -149,6 +152,7 @@ function touchEnd(event, parent) {
dateArray.swiper.endPosition = event.changedTouches[0].clientX
let swiperDirection;
if (dateArray.swiper.beginPosition !== dateArray.swiper.endPosition) swiperDirection = dateArray.swiper.beginPosition > dateArray.swiper.endPosition ? 'left' : 'right'
else swiperDirection = 'false'
let strategy = {
'right': () => {
//右滑 查询过去日期
......@@ -162,6 +166,7 @@ function touchEnd(event, parent) {
}
parent.GetPlanProjectByWeekList()
}
dateArray.animationFlag = !dateArray.animationFlag
},
'left': () => {
//左滑 查询未来日期
......@@ -174,9 +179,12 @@ function touchEnd(event, parent) {
}
parent.GetPlanProjectByWeekList()
}
dateArray.animationFlag = !dateArray.animationFlag
},
'false': () => {
}
}
dateArray.animationFlag = !dateArray.animationFlag
strategy[swiperDirection]()
}
......@@ -201,8 +209,8 @@ const reductionDate = () => {
week: dateArray.week,
weekDay: ["日", "一", "二", "三", "四", "五", "六"][dateToAdd.day()],
month: dateToAdd.month() + 1,
color: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#EA0000' : '',
bg: '',
color: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#FFFFFF' : '',
bg: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#ef6767' : '',
});
}
dateArray.dateFlag = true
......@@ -242,8 +250,8 @@ const addDate = () => {
week: dateArray.week,
weekDay: ["日", "一", "二", "三", "四", "五", "六"][dateToAdd.day()],
month: dateToAdd.month() + 1,
color: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#EA0000' : '',
bg: '',
color: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#FFFFFF' : '',
bg: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#ef6767' : '',
});
}
dateArray.addDateFlag = false
......@@ -282,8 +290,8 @@ const getInitDate = () => {
month: dayjs(dateToAdd.format('YYYY-MM-DD')).month() + 1,
week: dateArray.week,
weekDay: ["日", "一", "二", "三", "四", "五", "六"][dateToAdd.day()],
color: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#EA0000' : '',
bg: '',
color: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#FFFFFF' : '',
bg: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#ef6767' : '',
// month: dayjs(dateToAdd.format('YYYY-MM-DD')).month() + 1
});
}
......
<!--消息推送单点界面-->
<template>
<div style="display: flex; justify-content: center; margin-top: 50%">
<van-loading size="38px" color="#1989fa" vertical> 登录中</van-loading>
</div>
<!-- {{router.currentRoute.value.query.token}}-->
</template>
<script setup>
// import router from "../router/index.js";
import Cookies from 'js-cookie'
import {useRouter} from 'vue-router'
import {onMounted} from 'vue'
import * as api from '@/api/index.js'
import * as api from '../api/index.js'
import {CheckLoginTest} from "../api/index.js";
const router = useRouter()
const getTokenAction = async (date) => {
const res = await api.SSONewWX(date)
if (res.code !== 1) {
//ASC PC端
const res = await api.SSOPC(date)
if (res === void 0) {
await router.replace({
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
// access_token.token_content
Cookies.set('site-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
let links = router.currentRoute.value.query.links
let id = router.currentRoute.value.query.id
await router.push({
path: `/${links}`,
query: {
id: id
}
const user = await api.GetTokenInfo()
Cookies.set('site-user-info', JSON.stringify(user.response))
await router.replace({
name: 'myActivity'
})
}
}
const getTokenActionWx = async (date) => {
const res = await api.SSOPCWX(date)
if (res.code !== 1) {
// first
const res = await api.wxsan(date)
if (res === void 0) {
await router.replace({
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
Cookies.set('site-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
let links = router.currentRoute.value.query.links
// let id = router.currentRoute.value.query.id
await router.push({
path: `/${links}`,
// query: {
// id: id
// }
const user = await api.GetTokenInfo()
Cookies.set('site-user-info', JSON.stringify(user.response))
await router.replace({
name: 'myActivity'
})
}
}
const getToken = async () => {
if (Number(router.currentRoute.value.query.type) === 2) {
Cookies.set('token', router.currentRoute.value.query.token)
let date = {
token: Cookies.get('token')
}
// console.log("🚀🚀🚀,ASC的data", date)
// console.log("🚀🚀🚀,ASC的token", Cookies.get('token'))
await getTokenAction(date)
} else if (Number(router.currentRoute.value.query.type) === 1) {
let date = {
sign: router.currentRoute.value.query.sign,
code: router.currentRoute.value.query.code,
timestamp: router.currentRoute.value.query.timestamp,
let policyObject = {
"wx": async () => {
//asc 移动端
let date = {
token: router.currentRoute.value.query.token
}
const res = await api.wx(date)
if (res === void 0) {
await router.replace({
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
Cookies.set('site-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo()
Cookies.set('site-user-info', JSON.stringify(user.response))
//消息推送单点完成 获取id 跳转 详细页
let id = router.currentRoute.value.query.id
await router.push({
path: '/indexDetail',
query: {
//活动Id 用与输出 活动详细信息
id: id,
pushMessage: 1, //区别是否是消息推送进入的详情页 用于返回上一页 或 主页
}
})
}
},
"asc": async () => {
//ASC PC端
let date = {
token: router.currentRoute.value.query.token
}
await getTokenAction(date)
},
"first": async () => {
//AIC 单点
let date = {
sign: router.currentRoute.value.query.sign,
code: router.currentRoute.value.query.code,
timestamp: router.currentRoute.value.query.timestamp,
}
await getTokenActionWx(date)
},
"test": async () => {
//测试token
const res = await api.CheckLoginTest()
if (res === void 0) {
await router.replace({
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
Cookies.set('site-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo()
Cookies.set('site-user-info', JSON.stringify(user.response))
await router.replace({
name: 'myActivity'
})
}
}
await getTokenActionWx(date)
}
//使用策略
policyObject[router.currentRoute.value.query.type]()
}
onMounted(() => {
getToken()
})
</script>
......@@ -27,7 +27,7 @@
<div v-else>
<!-- 周视图-->
<Date ref="dateWeek"/>
<div class="w-full h-auto bg-white" :key="init.weekKey">
<div class="w-full h-auto bg-white text-gray-600" :key="init.weekKey">
<div class="w-full min-h-[80px] flex-wrap ccFlex "
v-for="(item,index) in init.weekArray" :key="index">
<!-- 一个部门-->
......@@ -94,7 +94,7 @@
<div class="w-full h-3"></div>
<van-cell inset title="选择单个日期" :value="init.search.date" @click="init.date.show = true"/>
<van-calendar :formatter="formatter" :min-date="new Date(miniDate)" :max-range="5" range-prompt="最多选择 5 天"
<van-calendar :formatter="formatter" :min-date="new Date(miniDate1)" :max-range="5" range-prompt="最多选择 5 天"
type="range"
v-model:show="init.date.show"
@confirm="onConfirm"/>
......@@ -170,7 +170,11 @@ const endOfWeek = dayjs().startOf('week').add(5, 'day').format('YYYY-MM-DD');
const dateDay = ref()
const dateWeek = ref()
const miniDate = dayjs(dayjs().startOf('week').add(1, 'day').format('YYYY-MM-DD')).format('YYYY-MM-DD')
const miniDate1 = new Date(dayjs().year(), dayjs().month() - 1, 1)
const init = reactive({
dataFlag: 1,
peoPleFlag: false,
weekFlag: false,
calendarKey: 1,
......@@ -343,7 +347,7 @@ function search(refs) {
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
end_time: init.check.end_time ? init.check.end_time : endOfWeek,
}
GetPlanProjectByWeekList()
init.select.showPopup = false
......@@ -467,7 +471,7 @@ function GetPlanProjectByWeekList() {
let ccc = []
// let data = [res.response[0], res.response[0], res.response[0], res.response[1], res.response[1], res.response[1]]
let data = res.response
const result = data.reduce((acc, cur) => {
let result = data.reduce((acc, cur) => {
const foundDept = acc.find(dept => dept.deptName === cur.dept_name);
if (foundDept) {
// 如果找到了相同的部门,就在 nameData 中添加新的元素
......@@ -479,31 +483,53 @@ function GetPlanProjectByWeekList() {
nameArray: cur.data,
bg: cur.attention == 1 ? '#1989FA' : '',
cl: cur.attention == 1 ? '#FFFFFF' : '',
peopleBg: cur.peopleBg ? cur.peopleBg : '',
peopleCl: cur.peopleCl ? cur.peopleCl : '',
});
} else {
// 如果没有找到相同的部门,就创建新的部门元素
ccc.push({
deptName: cur.dept_name,
deptId: cur.dept_id,
deptBg: '',
deptCl: '',
nameData: [{
userId: cur.userid,
userName: cur.username,
userCard: cur.usercard,
attention: cur.attention,
nameArray: cur.data,
bg: cur.attention == 1 ? '#1989FA' : '',
cl: cur.attention == 1 ? '#FFFFFF' : '',
peopleBg: '',
peopleCl: '',
}]
deptBg: cur.deptBg ? cur.deptBg : '',
deptCl: cur.deptCl ? cur.deptCl : '',
nameData: [
{
userId: cur.userid,
userName: cur.username,
userCard: cur.usercard,
attention: cur.attention,
nameArray: cur.data,
bg: cur.attention == 1 ? '#1989FA' : '',
cl: cur.attention == 1 ? '#FFFFFF' : '',
peopleBg: cur.peopleBg ? cur.peopleBg : '',
peopleCl: cur.peopleCl ? cur.peopleCl : '',
}
]
});
}
return ccc;
}, []);
init.weekArray = result
init.weekArray = result.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
})
// init.dataFlag++
})
}
......@@ -588,24 +614,13 @@ async function selectTheExternalDepartment(deptId) {
init.paramsWeek.dept_id_list.push(deptId)
}
if (!!init.paramsWeek.dept_id_list.length) init.select.action = 1
await GetPlanProjectByWeekList()
init.weekFlag = !init.weekFlag
init.weekArray.forEach((cur, index) => {
//基于id 高亮或取消高亮
if (cur.deptId === deptId && init.weekFlag) {
cur.deptBg !== '' ? (() => {
cur.deptBg = ''
cur.deptCl = ''
})() : (() => {
cur.deptBg = '#1989FA'
cur.deptCl = '#FFFFFF'
})()
}
})
GetPlanProjectByWeekList()
}
async function pickSomeoneFromTheOutside(userId) {
function pickSomeoneFromTheOutside(userId) {
//选中外部的人
// 选中或取消选中
if (init.paramsWeek.tid_list.includes(userId)) {
......@@ -614,23 +629,10 @@ async function pickSomeoneFromTheOutside(userId) {
init.paramsWeek.tid_list.push(userId)
}
if (!!init.paramsWeek.tid_list.length) init.select.action = 1
await GetPlanProjectByWeekList()
init.peoPleFlag = !init.peoPleFlag
init.weekArray.forEach((cur, index) => {
//基于id 高亮或取消高亮
cur.nameData.forEach((cu, inde) => {
if (cu.userId === userId && init.peoPleFlag) {
cu.peopleBg !== '' ? (() => {
cu.peopleBg = ''
cu.peopleCl = ''
})() : (() => {
cu.peopleBg = '#1989FA'
cu.peopleCl = '#FFFFFF'
})()
}
})
})
GetPlanProjectByWeekList()
}
const formatter = (day) => {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或