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

V20240327 优化

上级 e772e06f
import{b as p,c as u,a as l,d as k,u as m,L as _,o as g,e as f,C as w,f as n,G as a,S as y,g as d}from"./index-D5_QmiF5.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 g(),u("div",R,[l(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[f(" 登录中")]),_:1})])}}};export{A as default};
import{b as p,c as u,a as l,d as k,u as m,L as _,o as g,e as f,C as w,f as n,G as a,S as y,g as d}from"./index-BzXras2q.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 g(),u("div",R,[l(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[f(" 登录中")]),_:1})])}}};export{A as default};
import{b as l,c as k,a as _,d as m,u as y,L as f,o as d,e as g,g as w,f as n,G as o,C as v,S as x}from"./index-D5_QmiF5.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){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("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"workArrangementFilling"})}},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 w(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",R,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[g(" 登录中")]),_:1})])}}};export{O as default};
import{b as l,c as k,a as _,d as m,u as y,L as f,o as d,e as g,g as w,f as n,G as o,C as v,S as x}from"./index-BzXras2q.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){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("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"workArrangementFilling"})}},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 w(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",R,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[g(" 登录中")]),_:1})])}}};export{O as default};
import{A as w,r as y,B as k,b as v,c as x,a as o,E as l,d as n,a4 as C,a3 as I,o as i,e as r,H as g,I as W,a5 as b,a2 as B}from"./index-D5_QmiF5.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const N={class:"publicContainerNoPadding"},V={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},D={class:"w-full h-full flex items-center justify-between p-3"},E={__name:"index",setup(a){const s=y(),e=k({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(t){e.fillInWork.show=t}function f(){A().then(t=>{e.role=t.response})}return v(()=>{f()}),(t,G)=>{const p=b,m=C,c=B,h=I;return i(),x("div",N,[o(p,{path:"/welcome",title:"工作安排填报"}),l("div",V,[o(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),o(h,null,{default:n(()=>[l("div",D,[o(c,{style:{"border-radius":"8px"},type:"primary",class:"w-[28%]",plain:"",onClick:d},{default:n(()=>[r("保存")]),_:1}),e.role==1?(i(),g(c,{key:0,style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:_},{default:n(()=>[r(" 添加日期 ")]),_:1})):W("",!0)])]),_:1})])}}};export{E as default};
import{A as w,r as y,B as k,b as v,c as x,a as o,E as l,d as n,a4 as C,a3 as I,o as i,H as g,e as r,I as W,a5 as b,a2 as B}from"./index-BzXras2q.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const N={class:"publicContainerNoPadding"},V={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},D={class:"w-full h-full flex items-center justify-between p-3"},E={__name:"index",setup(a){const s=y(),e=k({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(t){e.fillInWork.show=t}function f(){A().then(t=>{e.role=t.response})}return v(()=>{f()}),(t,G)=>{const p=b,m=C,c=B,h=I;return i(),x("div",N,[o(p,{path:"/welcome",title:"工作安排填报"}),l("div",V,[o(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),o(h,null,{default:n(()=>[l("div",D,[e.role==1?(i(),g(c,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:_},{default:n(()=>[r(" 添加日期 ")]),_:1})):W("",!0),o(c,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:d},{default:n(()=>[r("保存")]),_:1})])]),_:1})])}}};export{E as default};
import{i as v,l as w,as as G,a as e,b2 as k,ao as M,h as B}from"./index-D5_QmiF5.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var b=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),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)])])]),E=()=>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)])]),g=()=>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:g,search:p,network:y,default:E};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const A=B(b);export{A as E};
import{i as v,l as w,as as G,a as e,b2 as k,ao as M,h as B}from"./index-BzXras2q.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var b=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),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)])])]),E=()=>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)])]),g=()=>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:g,search:p,network:y,default:E};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const A=B(b);export{A as E};
import{c as r,a as e,F as c,u as s,o as _,w as m,N as i}from"./index-D5_QmiF5.js";import{E as l}from"./index-ABqTBFJb.js";const k={__name:"index",setup(p){const t=s(),a=()=>t.back();return(u,f)=>{const n=i,o=l;return _(),r(c,null,[e(n,{"left-text":"返回","left-arrow":"",onClickLeft:a}),e(o,{image:m,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{k as default};
import{c as r,a as e,F as c,u as s,o as _,w as m,N as i}from"./index-BzXras2q.js";import{E as l}from"./index-CZTATc7d.js";const k={__name:"index",setup(p){const t=s(),a=()=>t.back();return(u,f)=>{const n=i,o=l;return _(),r(c,null,[e(n,{"left-text":"返回","left-arrow":"",onClickLeft:a}),e(o,{image:m,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{k as default};
此差异已折叠。
.aaa[data-v-b719e4ea]{writing-mode:vertical-lr}.xxx[data-v-b719e4ea]{z-index:99999;transform:translateZ(1001000px)}[data-v-b719e4ea] .el-radio-button__original-radio:checked+.el-radio-button__inner{background-color:#fff;border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-bg-color,var(--el-color-primary))}
.aaa[data-v-07c990c3]{writing-mode:vertical-lr}.xxx[data-v-07c990c3]{z-index:99999;transform:translateZ(1001000px)}[data-v-07c990c3] .el-radio-button__original-radio:checked+.el-radio-button__inner{background-color:#fff;border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-bg-color,var(--el-color-primary))}
import{B as a,b as t,c as s,a as c,E as e,o as n,a5 as l}from"./index-D5_QmiF5.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{B as a,b as t,c as s,a as c,E as e,o as n,a5 as l}from"./index-BzXras2q.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{i as d,l as f,n as y,a as s,F as c,b3 as h,b4 as v,h as z}from"./index-D5_QmiF5.js";const[u,A]=d("space"),w={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function m(e=[]){const a=[];return e.forEach(t=>{Array.isArray(t)?a.push(...t):t.type===c?a.push(...m(t.children)):a.push(t)}),a.filter(t=>{var i;return!(t&&(t.type===h||t.type===c&&((i=t.children)==null?void 0:i.length)===0||t.type===v&&t.children.trim()===""))})}var S=f({name:u,props:w,setup(e,{slots:a}){const t=y(()=>{var n;return(n=e.align)!=null?n:e.direction==="horizontal"?"center":""}),i=n=>typeof n=="number"?n+"px":n,g=n=>{const r={},o=`${i(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${i(Array.isArray(e.size)?e.size[1]:e.size)}`;return n?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var n;const r=m((n=a.default)==null?void 0:n.call(a));return s("div",{class:[A({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[r.map((o,l)=>s("div",{key:`item-${l}`,class:`${u}-item`,style:g(l===r.length-1)},[o]))])}}});const $=z(S);export{$ as S};
import{i as d,l as f,n as y,a as s,F as c,b3 as h,b4 as v,h as z}from"./index-BzXras2q.js";const[u,A]=d("space"),w={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function m(e=[]){const a=[];return e.forEach(t=>{Array.isArray(t)?a.push(...t):t.type===c?a.push(...m(t.children)):a.push(t)}),a.filter(t=>{var i;return!(t&&(t.type===h||t.type===c&&((i=t.children)==null?void 0:i.length)===0||t.type===v&&t.children.trim()===""))})}var S=f({name:u,props:w,setup(e,{slots:a}){const t=y(()=>{var n;return(n=e.align)!=null?n:e.direction==="horizontal"?"center":""}),i=n=>typeof n=="number"?n+"px":n,g=n=>{const r={},o=`${i(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${i(Array.isArray(e.size)?e.size[1]:e.size)}`;return n?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var n;const r=m((n=a.default)==null?void 0:n.call(a));return s("div",{class:[A({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[r.map((o,l)=>s("div",{key:`item-${l}`,class:`${u}-item`,style:g(l===r.length-1)},[o]))])}}});const $=z(S);export{$ as S};
此差异已折叠。
import{_ as e}from"./index-D5_QmiF5.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{_ as e}from"./index-BzXras2q.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o 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-D5_QmiF5.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-Bm7n8i-m.css">
<script type="module" crossorigin src="./assets/index-BzXras2q.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-TAB2wlrW.css">
</head>
<body>
<div id="app"></div>
......
<template>
<div
class=" w-full h-auto rounded-[8px] text-[#323233] text-[16px] flex-wrap flex backdrop-brightness-100 bg-white mb-3">
<div class="w-full h-11 flex p-2 items-center justify-between border-b-[1px] border-[#dedede] border-solid">
<div class="w-1/2 h-full flex items-center">
class=" w-full h-auto rounded-[8px] text-[#323233] text-[18px] flex-wrap flex backdrop-brightness-100 bg-white mb-3">
<div class="w-full min-h-11 flex p-2 items-center justify-between border-b-[1px] border-[#dedede] border-solid">
<div class="w-[60%] h-full flex items-center text-wrap">
<div :style="{background:props.data.peopleBg,color:props.data.peopleCl}">{{ props.data.username }}</div>
-
<div
:style="{background:props.data.deptBg,color:props.data.deptCl}">{{ props.data.dept_name }}
</div>
</div>
<div v-if="props.data.planid " class="w-1/2 h-full flex justify-end items-center">
<!-- <div v-if="props.data.planid "-->
<!-- class="w-full h-11 p-2 flex items-center justify-end border-t-[1px] border-[#dedede] border-solid">-->
<!-- <van-button class="w-20" @click="cancel($parent,props.data)" type="primary" size="small">-->
<!-- {{ props.data.attention !== void 0 ? ['关注', '取消关注'][props.data.attention] : '取消关注' }}-->
<!-- </van-button>-->
<!-- </div>-->
<van-button @click="cancel($parent,props.data)" :type="['default','warning'][props.data.attention]" plain
<!-- v-if="props.data.planid "-->
<div class="w-[30%] h-full flex justify-end items-center ">
<van-button
v-if="props.data.planid && props.attentionButtonIdentifier === 'dayView' || props.attentionButtonIdentifier === 'index'"
@click="cancel($parent,props.data)" :type="['default','warning'][props.data.attention]" plain
size="small">
{{ props.data.attention !== void 0 ? ['关注', '已关注'][props.data.attention] : '已关注' }}
</van-button>
</div>
</div>
<div v-if="props.alldayOrMidafternoonStatus" class="w-[65%] h-auto p-2 text-[14px] ">
<div v-if="props.alldayOrMidafternoonStatus" class="w-[63%] h-auto p-2 ">
<div class="w-full min-h-full flex">
<div class="w-[23%] h-full">全天:</div>
<div class="w-[77%] h-full">
<div class="w-[30%] h-full">全天:</div>
<div class="w-[70%] h-full">
<van-text-ellipsis
rows="4"
:content="props.data.after_plan"
......@@ -36,11 +33,11 @@
</div>
</div>
</div>
<div v-else class="w-[65%] min-h-[108px] p-2 text-[14px] ">
<div v-else class="w-[63%] min-h-[108px] p-2 ">
<!-- 上下午-->
<div class="w-full min-h-[45px] flex ">
<div class="w-[23%] h-full">上午:</div>
<div class="w-[77%] h-full">
<div class="w-[30%] h-full">上午:</div>
<div class="w-[70%] h-full">
<van-text-ellipsis
rows="2"
:content="props.data.fore_plan"
......@@ -50,8 +47,8 @@
</div>
</div>
<div class="w-full min-h-[45px] flex ">
<div class="w-[23%] h-full">上午:</div>
<div class="w-[77%] h-full">
<div class="w-[30%] h-full">上午:</div>
<div class="w-[70%] h-full">
<van-text-ellipsis
rows="2"
:content="props.data.after_plan"
......@@ -65,9 +62,9 @@
<div
class="w-[35%] flex items-center min-h-[108px] ">
<div class="flex content-center flex-wrap w-full h-[80%] border-[#dedede] border-l-[1px] border-dashed p-2 pr-0">
<p class="w-full text-[14px]">{{ dayjs(props.data.date).format('YYYY年MM月DD日') }}</p>
class="w-[37%] text-[18px] flex items-center min-h-[108px] ">
<div class="flex content-center flex-wrap w-full h-[80%] border-[#dedede] border-l-[1px] border-dashed p-1 pl-2">
<p class="w-full text-[15px]">{{ dayjs(props.data.date).format('YYYY年MM月DD日') }}</p>
<p class="w-full ">{{ props.data.week }}</p>
</div>
</div>
......@@ -90,13 +87,17 @@ const props = defineProps({
data: {
type: Object,
default: ''
},
attentionButtonIdentifier: {
type: String,
default: ''
}
})
function cancel(parent, data) {
//取消关注 或关注 不含有attention表示天或周
if (props.data.attention !== void 0) {
if (props.data.attention !== void 0 && props.attentionButtonIdentifier === 'dayView') {
//视图
let strategy = {
'0': (value = 1) => {
......
<template>
<div class="w-full min-h-[110px] rounded-[10px] text-white p-3 text-[15px] flex bg-[#fd9700] mb-1">
<div v-if="props.data.is_allday == 0 " class="w-[65%] min-h-full text-[14px]
">
<div v-if="!isWeekend(props.data.date)"
class="w-full min-h-[110px] rounded-[10px] text-white p-3 pr-2 text-[18px] flex bg-[#fd9700] mb-1">
<div v-if="props.data.is_allday == 0 " class="w-[63%] min-h-full text-[14px]
">
<div class="w-full min-h-[45px] flex ">
<div class="w-[23%] h-full">上午:</div>
<div class="w-[77%] h-full">
<div class="w-[30%] h-full">上午:</div>
<div class="w-[70%] h-full">
<van-text-ellipsis
rows="2"
:content="props.data.fore_plan"
......@@ -15,8 +16,8 @@
</div>
</div>
<div class="w-full min-h-[45px] flex ">
<div class="w-[23%] h-full">上午:</div>
<div class="w-[77%] h-full">
<div class="w-[30%] h-full">上午:</div>
<div class="w-[70%] h-full">
<van-text-ellipsis
rows="2"
:content="props.data.after_plan"
......@@ -28,8 +29,8 @@
</div>
<div v-else class="w-[65%] min-h-full">
<div class="w-full min-h-full flex">
<div class="w-[23%] h-full">全天:</div>
<div class="w-[77%] h-full">
<div class="w-[30%] h-full">全天:</div>
<div class="w-[70%] h-full">
<van-text-ellipsis
rows="4"
:content="props.data.after_plan"
......@@ -41,11 +42,35 @@
</div>
<div
class="w-[35%] flex items-center flex-wrap content-center min-h-full border-[#E5E7EB] border-l-[1px] border-dashed p-1 pl-2">
<p class="w-full text-[14px]">{{ dayjs(props.data.date).format('YYYY年M月DD日') }}</p>
class="w-[37%] flex items-center flex-wrap content-center min-h-full border-[#E5E7EB] border-l-[1px] border-dashed p-1 pl-2">
<p class="w-full text-[15px]">{{ dayjs(props.data.date).format('YYYY年M月DD日') }}</p>
<p class="w-full ">{{ props.data.week }}</p>
</div>
</div>
<div v-else
class="w-full min-h-[110px] rounded-[10px] text-white p-3 pr-2 text-[18px] flex bg-[#fd9700] mb-1">
<div class="w-[65%] min-h-full">
<div class="w-full min-h-full flex">
<div class="w-[30%] h-full">全天:</div>
<div class="w-[70%] h-full">
<van-text-ellipsis
rows="4"
content="今天为休息日"
expand-text="详细"
collapse-text="收起"
/>
</div>
</div>
</div>
<div
class="w-[37%] flex items-center flex-wrap content-center min-h-full border-[#E5E7EB] border-l-[1px] border-dashed p-1 pl-2">
<p class="w-full text-[15px]">{{ dayjs().format('YYYY年M月DD日') }}</p>
<p class="w-full ">{{
['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'][new Date(dayjs().format('YYYY-M-DD')).getDay()]
}}</p>
</div>
</div>
</template>
<script setup>
import dayjs from "dayjs";
......@@ -57,6 +82,14 @@ const props = defineProps({
default: ''
}
})
function isWeekend(dateString) {
//判断日期是否 双休日
const date = new Date(dateString);
const dayOfWeek = date.getDay();
return dayOfWeek === 0 || dayOfWeek === 6;
}
onMounted(() => {
})
......
import router from "@/router/index.js";
import * as images from '@/states/index.js'
import {showConfirmDialog, showNotify} from "vant";
import {
closeToast,
showConfirmDialog,
showFailToast,
showLoadingToast,
showNotify,
showSuccessToast,
showToast
} from "vant";
import 'vant/lib/index.css';
import Cookies from "js-cookie";
......@@ -32,23 +40,49 @@ export const go2Router = (path) => {
}
export async function myEncapsulationFunction(fun) {
// Spin.show()
const toast = showLoadingToast({
duration: 0,
forbidClick: true,
message: '正在提交',
});
let res = await fun()
try {
switch (res.code) {
case 1 :
showNotify({type: 'success', message: res.msg});
// toast.message = res.response
toast.close()
showSuccessToast({
message: res.response
})
setTimeout(() => closeToast(), 1500)
// showNotify({type: 'success', message: res.response});
break;
default :
showNotify({type: 'danger', message: res.msg_detail});
// showNotify({type: 'danger', message: res.msg_detail});
// toast.message = res.msg_detail
toast.close()
showFailToast({
message: res.msg_detail
})
setTimeout(() => closeToast(), 1500)
}
// Spin.hide()
return res
} catch (e) {
showNotify({type: 'danger', message: res.msg_detail || '报错,无msg_detail'});
// showNotify({type: 'danger', message: res.msg_detail || '报错,无msg_detail'});
// toast.message = res.msg_detail
toast.close()
showFailToast({
message: res.msg_detail
})
setTimeout(() => closeToast(), 1500)
}
}
export function getInitListRequest(fun) {
......
<template></template>
<template>
</template>
<script setup>
</script>
......@@ -37,7 +37,7 @@
<div v-if="init.switchView.show">
<!-- 天视图 -->
<my-focus-card :data="item" v-for="(item,index) in init.dayArray" :key="index"
<my-focus-card attentionButtonIdentifier="dayView" :data="item" v-for="(item,index) in init.dayArray" :key="index"
:alldayOrMidafternoonStatus="Boolean(Number(item.is_allday))"/>
</div>
<div v-if="!init.switchView.show">
......
......@@ -7,7 +7,8 @@
<!-- content-position="left">-->
<!-- 今日安排-->
<!-- </van-divider>-->
<weeklyArrangementCard v-if="!!Object.keys(init.data.mySchedule).length" :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"-->
......@@ -15,10 +16,10 @@
<!-- content-position="left">-->
<!-- 我的关注-->
<!-- </van-divider>-->
<div v-if="!!init.data.myFocus.length" class="w-full h-[25px] text-[14px] text-[#646566] flex items-center mb-1">
<div v-if="!!init.data.myFocus.length" class="w-full h-[25px] text-[18px] text-[#646566] flex items-center mb-1">
我的关注
</div>
<my-focus-card v-for="(item,index) in init.data.myFocus" :key="index"
<my-focus-card attentionButtonIdentifier="index" v-for="(item,index) in init.data.myFocus" :key="index"
:alldayOrMidafternoonStatus="Boolean(Number(item.is_allday))"
:data="item"
/>
......@@ -28,7 +29,7 @@
<!-- </div>-->
<van-cell class="rounded-[8px] h-[50px] text-[17px] flex items-center" v-if="init.role.plan_write== 1"
<van-cell class="rounded-[8px] mt-[10px] h-[50px] text-[17px] flex items-center" v-if="init.role.plan_write== 1"
title="工作安排填报"
is-link
to="/workArrangementFilling">
......@@ -214,6 +215,7 @@ import {nextTick, onMounted, reactive} from "vue";
import dayjs from "dayjs";
import Popup from "@/components/popup.vue";
import Loading from "@/components/loading.vue";
import {closeToast, showLoadingToast} from "vant";
const init = reactive({
getWeekOrTimeKey: "",
......
......@@ -12,10 +12,12 @@
<noPageFooter>
<template v-slot:default>
<div class="w-full h-full flex items-center justify-between p-3">
<van-button style="border-radius: 8px" type="primary" class="w-[28%] " plain @click="save">保存</van-button>
<van-button style="border-radius: 8px" v-if="init.role == 1" type="primary" class="w-[70%] " @click="addDate">
<van-button style="border-radius: 8px" v-if="init.role == 1" plain type="primary" class="w-[28%] "
@click="addDate">
添加日期
</van-button>
<van-button style="border-radius: 8px" type="primary" class="w-[70%] " @click="save">保存</van-button>
</div>
</template>
</noPageFooter>
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或