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

v20250212 保存

上级 32b6c452
流水线 #32966 已通过 ,包含阶段
in 1 minute 和 30 second
import{b as u,d as l,c as k,a as m,w as _,L as f,o as g,e as d,u as y,C as R,f as s,G as w,g as x,S as v,h as C}from"./index-ByuH_QH2.js";function A(a){return u.get("/api/Common/GetCurrentUserRoleList",a)}const L={style:{display:"flex","justify-content":"center","margin-top":"50%"}},T={__name:"SSO",setup(a){const t=y(),o=()=>{w().then(n=>{s.set("oneWeekARange-user-info",JSON.stringify(n.response)),A().then(e=>{x().setUserInfo({...n.response,roleList:e.response,currentRole:e.response[0]}),t.replace({name:"welcome"})})})},c=async n=>{const e=await v(n);e===void 0?await t.replace({name:"403"}):e.response.access_token.token_content!==""&&(s.set("oneWeekARange-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires),o())},r=async n=>{const e=await C(n);e===void 0?await t.replace({name:"403"}):e.response.access_token.token_content!==""&&(s.set("oneWeekARange-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires),o())},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 R();e===void 0?await t.replace({name:"403"}):e.response.access_token.token_content!==""&&(s.set("oneWeekARange-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires),o())}})[t.currentRoute.value.query.type]()};return l(()=>{i()}),(n,e)=>{const p=f;return g(),k("div",L,[m(p,{size:"38px",color:"#1989fa",vertical:""},{default:_(()=>e[0]||(e[0]=[d(" 登录中")])),_:1})])}}};export{T as default}; import{b as u,d as l,c as k,a as m,w as _,L as f,o as g,e as d,u as y,C as R,f as s,G as w,g as x,S as v,h as C}from"./index-BJfE_iDI.js";function A(a){return u.get("/api/Common/GetCurrentUserRoleList",a)}const L={style:{display:"flex","justify-content":"center","margin-top":"50%"}},T={__name:"SSO",setup(a){const t=y(),o=()=>{w().then(n=>{s.set("oneWeekARange-user-info",JSON.stringify(n.response)),A().then(e=>{x().setUserInfo({...n.response,roleList:e.response,currentRole:e.response[0]}),t.replace({name:"welcome"})})})},c=async n=>{const e=await v(n);e===void 0?await t.replace({name:"403"}):e.response.access_token.token_content!==""&&(s.set("oneWeekARange-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires),o())},r=async n=>{const e=await C(n);e===void 0?await t.replace({name:"403"}):e.response.access_token.token_content!==""&&(s.set("oneWeekARange-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires),o())},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 R();e===void 0?await t.replace({name:"403"}):e.response.access_token.token_content!==""&&(s.set("oneWeekARange-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires),o())}})[t.currentRoute.value.query.type]()};return l(()=>{i()}),(n,e)=>{const p=f;return g(),k("div",L,[m(p,{size:"38px",color:"#1989fa",vertical:""},{default:_(()=>e[0]||(e[0]=[d(" 登录中")])),_:1})])}}};export{T as default};
import{d as l,c as k,a as m,w as _,L as y,o as f,e as d,u as w,h as g,f as n,G as o,C as v,S as x}from"./index-ByuH_QH2.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){const t=w(),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 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=y;return f(),k("div",R,[m(s,{size:"38px",color:"#1989fa",vertical:""},{default:_(()=>e[0]||(e[0]=[d(" 登录中")])),_:1})])}}};export{O as default}; import{d as l,c as k,a as m,w as _,L as y,o as f,e as d,u as w,h as g,f as n,G as o,C as v,S as x}from"./index-BJfE_iDI.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){const t=w(),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 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=y;return f(),k("div",R,[m(s,{size:"38px",color:"#1989fa",vertical:""},{default:_(()=>e[0]||(e[0]=[d(" 登录中")])),_:1})])}}};export{O as default};
import{b as y,r as k,A as v,d as x,c as C,a as n,D as r,w as s,Y as W,X as g,o as c,E as I,e as d,H as b,Z as A,W as B}from"./index-ByuH_QH2.js";function N(a){return y.get("/api/Common/GetAheadWriteSwitch",a)}const D={class:"publicContainerNoPadding"},V={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},G={class:"w-full h-full flex items-center justify-between p-3"},E={__name:"index",setup(a){const l=k(),e=v({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function u(){l.value.save()}function f(t){e.fillInWork.show=t}function p(){N().then(t=>{e.role=t.response})}return x(()=>{p()}),(t,o)=>{const m=A,h=W,i=B,w=g;return c(),C("div",D,[n(m,{path:"/welcome",title:"工作安排填报"}),r("div",V,[n(h,{ref_key:"saveRef",ref:l,show:e.fillInWork.show,onCloseDateComponent:f},null,8,["show"])]),n(w,null,{default:s(()=>[r("div",G,[e.role==1?(c(),I(i,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:_},{default:s(()=>o[0]||(o[0]=[d(" 添加日期 ")])),_:1})):b("",!0),n(i,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:u},{default:s(()=>o[1]||(o[1]=[d("保存")])),_:1})])]),_:1})])}}};export{E as default}; import{b as y,r as k,A as v,d as x,c as C,a as n,D as r,w as s,Y as W,X as g,o as c,E as I,e as d,H as b,Z as A,W as B}from"./index-BJfE_iDI.js";function N(a){return y.get("/api/Common/GetAheadWriteSwitch",a)}const D={class:"publicContainerNoPadding"},V={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},G={class:"w-full h-full flex items-center justify-between p-3"},E={__name:"index",setup(a){const l=k(),e=v({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function u(){l.value.save()}function f(t){e.fillInWork.show=t}function p(){N().then(t=>{e.role=t.response})}return x(()=>{p()}),(t,o)=>{const m=A,h=W,i=B,w=g;return c(),C("div",D,[n(m,{path:"/welcome",title:"工作安排填报"}),r("div",V,[n(h,{ref_key:"saveRef",ref:l,show:e.fillInWork.show,onCloseDateComponent:f},null,8,["show"])]),n(w,null,{default:s(()=>[r("div",G,[e.role==1?(c(),I(i,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:_},{default:s(()=>o[0]||(o[0]=[d(" 添加日期 ")])),_:1})):b("",!0),n(i,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:u},{default:s(()=>o[1]||(o[1]=[d("保存")])),_:1})])]),_:1})])}}};export{E as default};
此差异已折叠。
import{_ as e}from"./index-ByuH_QH2.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default}; import{_ as e}from"./index-BJfE_iDI.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{i as d,k as f,l as y,a as s,F as c,ai as h,aj as v,z}from"./index-ByuH_QH2.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 n=[];return e.forEach(t=>{Array.isArray(t)?n.push(...t):t.type===c?n.push(...m(t.children)):n.push(t)}),n.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:n}){const t=y(()=>{var a;return(a=e.align)!=null?a:e.direction==="horizontal"?"center":""}),i=a=>typeof a=="number"?a+"px":a,g=a=>{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 a?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var a;const r=m((a=n.default)==null?void 0:a.call(n));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 B=z(S);export{B as S}; import{i as d,k as f,l as y,a as s,F as c,ai as h,aj as v,z}from"./index-BJfE_iDI.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 n=[];return e.forEach(t=>{Array.isArray(t)?n.push(...t):t.type===c?n.push(...m(t.children)):n.push(t)}),n.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:n}){const t=y(()=>{var a;return(a=e.align)!=null?a:e.direction==="horizontal"?"center":""}),i=a=>typeof a=="number"?a+"px":a,g=a=>{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 a?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var a;const r=m((a=n.default)==null?void 0:a.call(n));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 B=z(S);export{B as S};
import{A as a,d as l,c as s,a as n,D as o,o as c,Z as r}from"./index-ByuH_QH2.js";const d={class:"publicContainerNoPadding"},_={__name:"index",setup(i){return a({fillInWork:{show:!1}}),l(()=>{document.title="系统配置"}),(p,e)=>{const t=r;return c(),s("div",d,[n(t,{path:"/welcome",title:"分管填报记录查看"}),e[0]||(e[0]=o("div",{class:"w-full h-[10px]"},null,-1)),e[1]||(e[1]=o("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1))])}}};export{_ as default}; import{A as a,d as l,c as s,a as n,D as o,o as c,Z as r}from"./index-BJfE_iDI.js";const d={class:"publicContainerNoPadding"},_={__name:"index",setup(i){return a({fillInWork:{show:!1}}),l(()=>{document.title="系统配置"}),(p,e)=>{const t=r;return c(),s("div",d,[n(t,{path:"/welcome",title:"分管填报记录查看"}),e[0]||(e[0]=o("div",{class:"w-full h-[10px]"},null,-1)),e[1]||(e[1]=o("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1))])}}};export{_ as default};
此差异已折叠。
.aaa[data-v-beb56739]{-webkit-writing-mode:vertical-lr;-ms-writing-mode:tb-lr;writing-mode:vertical-lr}.xxx[data-v-beb56739]{z-index:99999;-webkit-transform:translateZ(1001000px);transform:translateZ(1001000px)}[data-v-beb56739] .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));-webkit-box-shadow:-1px 0 0 0 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-7e31cdcc]{-webkit-writing-mode:vertical-lr;-ms-writing-mode:tb-lr;writing-mode:vertical-lr}.xxx[data-v-7e31cdcc]{z-index:99999;-webkit-transform:translateZ(1001000px);transform:translateZ(1001000px)}[data-v-7e31cdcc] .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));-webkit-box-shadow:-1px 0 0 0 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{i as v,k as w,aY as G,a as e,be as k,ab as M,z as B}from"./index-ByuH_QH2.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,k as w,aY as G,a as e,be as k,ab as M,z as B}from"./index-BJfE_iDI.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{z as t,aM as a}from"./index-BJfE_iDI.js";const i=t(a);export{i as P};
import{z as t,aM as a}from"./index-ByuH_QH2.js";const i=t(a);export{i as P};
import{c as r,a as t,F as c,o as s,u as m,N as i}from"./index-ByuH_QH2.js";import{E as _}from"./index-Dd-TmqFp.js";const l=""+new URL("warning-zGbTxtDs.png",import.meta.url).href,h={__name:"index",setup(p){const e=m(),n=()=>e.back();return(u,f)=>{const a=i,o=_;return s(),r(c,null,[t(a,{"left-text":"返回","left-arrow":"",onClickLeft:n}),t(o,{image:l,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{h as default}; import{c as r,a as t,F as c,o as s,u as m,N as i}from"./index-BJfE_iDI.js";import{E as _}from"./index-CoV1LPii.js";const l=""+new URL("warning-zGbTxtDs.png",import.meta.url).href,h={__name:"index",setup(p){const e=m(),n=()=>e.back();return(u,f)=>{const a=i,o=_;return s(),r(c,null,[t(a,{"left-text":"返回","left-arrow":"",onClickLeft:n}),t(o,{image:l,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{h as default};
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0"> content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title></title> <title></title>
<script type="module" crossorigin src="./assets/index-ByuH_QH2.js"></script> <script type="module" crossorigin src="./assets/index-BJfE_iDI.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-D32rpEEM.css"> <link rel="stylesheet" crossorigin href="./assets/index-D32rpEEM.css">
</head> </head>
<body> <body>
......
...@@ -111,21 +111,26 @@ ...@@ -111,21 +111,26 @@
<!-- 高级查询 --> <!-- 高级查询 -->
<popup :show="init.select.showPopup" :height="80" @actionPopUp="actionPopUp"> <popup :show="init.select.showPopup" :height="80" @actionPopUp="actionPopUp">
<template #content> <template #content>
<van-calendar v-if="init.switchView.show" <van-calendar
v-if="init.switchView.show"
:formatter="formatter" :formatter="formatter"
:min-date="new Date(miniDate1)" :min-date="new Date(miniDate1)"
v-model:show="init.date.show" v-model:show="init.date.show"
style="height:calc(100% - 64px)" style="height:calc(100% - 64px)"
@confirm="onConfirm($event,'day')"/> @confirm="onConfirm($event,'day')"
/>
<van-calendar v-else :formatter="formatter" <van-calendar
v-else
:formatter="formatter"
:min-date="new Date(miniDate1)" :min-date="new Date(miniDate1)"
:max-range="5" :max-range="5"
range-prompt="最多选择 5 天" range-prompt="最多选择 5 天"
type="range" type="range"
v-model:show="init.date.show" v-model:show="init.date.show"
style="height:calc(100%-64px)" style="height:calc(100% - 64px)"
@confirm="onConfirm($event,'week')"/> @confirm="onConfirm($event,'week')"
/>
<div class="w-full h-[45px] bg-white flex justify-center items-center"> <div class="w-full h-[45px] bg-white flex justify-center items-center">
<span class="text-5 text-[#8D8D8D]">高级查询</span> <span class="text-5 text-[#8D8D8D]">高级查询</span>
...@@ -135,7 +140,7 @@ ...@@ -135,7 +140,7 @@
<div class="w-full h-3"></div> <div class="w-full h-3"></div>
<van-cell is-link class="w-full h-[45px] bg-white flex items-center " <van-cell is-link class="w-full h-[45px] bg-white flex items-center "
:value="[init.search.dateWeek,init.search.dateDay][Number(init.switchView.show)]" :value="[init.search.dateWeek,init.paramsDay.date][Number(init.switchView.show)]"
@click="init.date.show = true"> @click="init.date.show = true">
<template #title> <template #title>
<span class="text-[#8D8D8D]">选择日期</span> <span class="text-[#8D8D8D]">选择日期</span>
...@@ -166,8 +171,8 @@ ...@@ -166,8 +171,8 @@
<div class="w-full h-10 p-4 pb-0 text-[#8D8D8D]">分管部门</div> <div class="w-full h-10 p-4 pb-0 text-[#8D8D8D]">分管部门</div>
<div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap"> <div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap">
<van-space wrap> <van-space wrap>
<!-- background:#1989FA;color:#FFFFFF--> <van-button
<van-button @click="actionDept(item)" @click="actionDept(item)"
v-for="(item,index) in init.comment.dept" v-for="(item,index) in init.comment.dept"
:key="index" :key="index"
:style="{ :style="{
...@@ -180,7 +185,8 @@ ...@@ -180,7 +185,8 @@
class="rounded-[18px]" class="rounded-[18px]"
size="large" size="large"
plain hairline plain hairline
type="primary">{{ item.name }} type="primary">
{{ item.name }}
</van-button> </van-button>
</van-space> </van-space>
</div> </div>
...@@ -190,11 +196,11 @@ ...@@ -190,11 +196,11 @@
<div class="w-full h-10 p-4 pb-0 text-[#8D8D8D]">中层干部</div> <div class="w-full h-10 p-4 pb-0 text-[#8D8D8D]">中层干部</div>
<div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap"> <div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap">
<van-space wrap> <van-space wrap>
<!-- color:#FFFFFF; #1989FA--> <van-button
<van-button @click="actionUser(item)" v-for="(item,index) in init.comment.user" @click="actionUser(item)"
:key="index"
v-for="(item,index) in init.comment.user"
:style="{ :style="{
margin: '5px', margin: '5px',
padding: '15px !important' , padding: '15px !important' ,
height: '40px', height: '40px',
...@@ -227,6 +233,7 @@ ...@@ -227,6 +233,7 @@
</template> </template>
<script setup> <script setup>
import * as _ from 'lodash'
import * as crypto from '@/crypto/index.js' import * as crypto from '@/crypto/index.js'
import ExcelJS from "exceljs"; import ExcelJS from "exceljs";
import FileSaver from "file-saver"; import FileSaver from "file-saver";
...@@ -395,6 +402,7 @@ const init = reactive({ ...@@ -395,6 +402,7 @@ const init = reactive({
dayArray: [], dayArray: [],
weekArray: [], weekArray: [],
paramsDay: { paramsDay: {
date: dayjs().format('YYYY-MM-DD'),
"begin_time": dayjs().format('YYYY-MM-DD'), "begin_time": dayjs().format('YYYY-MM-DD'),
"end_time": dayjs().format('YYYY-MM-DD'), "end_time": dayjs().format('YYYY-MM-DD'),
"dept_id_list": [], "dept_id_list": [],
...@@ -450,7 +458,7 @@ function onConfirm(value, key) { ...@@ -450,7 +458,7 @@ function onConfirm(value, key) {
let strategy = { let strategy = {
'day': () => { 'day': () => {
init.date.show = false; init.date.show = false;
init.search.dateDay = dayjs(value).format('YYYY-MM-DD') init.paramsDay.date = dayjs(value).format('YYYY-MM-DD')
init.check.begin_time = dayjs(value).format('YYYY-MM-DD') init.check.begin_time = dayjs(value).format('YYYY-MM-DD')
init.check.end_time = dayjs(value).format('YYYY-MM-DD') init.check.end_time = dayjs(value).format('YYYY-MM-DD')
}, },
...@@ -476,11 +484,11 @@ function changeView(event, refs) { ...@@ -476,11 +484,11 @@ function changeView(event, refs) {
// init.switchView.show = !init.switchView.show // init.switchView.show = !init.switchView.show
init.calendarKey++ init.calendarKey++
if (init.switchView.show) { if (init.switchView.show) {
init.search.dateDay = dayjs().format('YYYY-MM-DD') init.paramsDay.date = dayjs().format('YYYY-MM-DD');
init.paramsDay = { init.paramsDay = {
"begin_time": dayjs().format('YYYY-MM-DD'), "begin_time": dayjs().format('YYYY-MM-DD'),
"end_time": dayjs().format('YYYY-MM-DD'), "end_time": dayjs().format('YYYY-MM-DD'),
data: dayjs().format('YYYY-MM-DD'),
"dept_id_list": [], "dept_id_list": [],
"tid_list": [], "tid_list": [],
} }
...@@ -516,7 +524,7 @@ function reset(refs) { ...@@ -516,7 +524,7 @@ function reset(refs) {
cur.bg = '' cur.bg = ''
cur.cl = '' cur.cl = ''
}) })
init.search.dateDay = dayjs().format('YYYY-MM-DD') init.paramsDay.date = dayjs().format('YYYY-MM-DD')
init.search.dateWeek = startOfWeek + ' - ' + endOfWeek init.search.dateWeek = startOfWeek + ' - ' + endOfWeek
init.check = { init.check = {
...@@ -536,6 +544,7 @@ function reset(refs) { ...@@ -536,6 +544,7 @@ function reset(refs) {
init.paramsDay = { init.paramsDay = {
"begin_time": dayjs().format('YYYY-MM-DD'), "begin_time": dayjs().format('YYYY-MM-DD'),
"end_time": dayjs().format('YYYY-MM-DD'), "end_time": dayjs().format('YYYY-MM-DD'),
date: dayjs().format('YYYY-MM-DD'),
"dept_id_list": [], "dept_id_list": [],
"tid_list": [], "tid_list": [],
} }
...@@ -562,9 +571,14 @@ function search(refs) { ...@@ -562,9 +571,14 @@ function search(refs) {
//天 //天
init.paramsDay = { init.paramsDay = {
...init.check, ...init.check,
begin_time: init.check.begin_time ? init.check.begin_time : startOfWeek, date:init.paramsDay.date,
end_time: init.check.end_time ? init.check.end_time : dayjs().format('YYYY-MM-DD') begin_time: init.paramsDay.date,
end_time: init.paramsDay.date,
// begin_time: init.check.begin_time ? init.check.begin_time : startOfWeek,
// end_time: init.check.end_time ? init.check.end_time : dayjs().format('YYYY-MM-DD')
} }
refs.dateDay.deleteDateBg() refs.dateDay.deleteDateBg()
await GetPlanProjectByDayList() await GetPlanProjectByDayList()
refs.dateDay.dateArrayAssignmentRelatedData(init.paramsDay.end_time) refs.dateDay.dateArrayAssignmentRelatedData(init.paramsDay.end_time)
...@@ -678,13 +692,41 @@ function GetUserList() { ...@@ -678,13 +692,41 @@ function GetUserList() {
dept_list: init.comment.deptId, dept_list: init.comment.deptId,
role_id: useUserInfo().getUserInfo().currentRole.id role_id: useUserInfo().getUserInfo().currentRole.id
}).then(res => { }).then(res => {
init.comment.user = res.response.map(cu => { init.comment.user = res.response.map(cu => {
if(init.check.tid_list.includes(cu.id)){
return {
...cu,
bg: '#1989FA',
cl: '#FFFFFF'
}
}else{
return { return {
...cu, ...cu,
bg: '', bg: '',
cl: '' cl: ''
} }
}
}) })
//部门用户数据,不含选中用户,则清除选中用户
if (init.comment.deptId.length !==0){
// 收集需要删除的索引
let indicesToRemove = [];
init.check.tid_list.forEach((cur, index) => {
if (!_.cloneDeep(init.comment.user.map(cur=>cur.id)).includes(cur)){
indicesToRemove.push(index);
}
});
// 统一删除
indicesToRemove.reverse().forEach(index => {
init.check.tid_list.splice(index, 1);
});
}else{
init.check.tid_list = []
}
}) })
} }
...@@ -693,7 +735,7 @@ function GetPlanProjectByDayList() { ...@@ -693,7 +735,7 @@ function GetPlanProjectByDayList() {
hooks.myEncapsulationFunction(() => { hooks.myEncapsulationFunction(() => {
return api.postApiPlanProjectGetPlanScheduleByDayList({ return api.postApiPlanProjectGetPlanScheduleByDayList({
...init.paramsDay, ...init.paramsDay,
date: init.paramsDay.begin_time, date: init.paramsDay.date,
role_id: useUserInfo().getUserInfo().currentRole.id role_id: useUserInfo().getUserInfo().currentRole.id
}).then(res => { }).then(res => {
init.dayArray = res.response.map((cur, index) => { init.dayArray = res.response.map((cur, index) => {
...@@ -714,7 +756,7 @@ function GetPlanProjectByDayList() { ...@@ -714,7 +756,7 @@ function GetPlanProjectByDayList() {
function searchDayData(date) { function searchDayData(date) {
//查询天数据 //查询天数据
init.paramsDay = {...init.paramsDay, begin_time: date, end_time: date} init.paramsDay = {...init.paramsDay, date, begin_time: date, end_time: date}
GetPlanProjectByDayList() GetPlanProjectByDayList()
} }
...@@ -826,16 +868,16 @@ function actionDept(item) { ...@@ -826,16 +868,16 @@ function actionDept(item) {
} }
GetUserList() GetUserList()
console.log("🚀🚀check.dept_id_list🚀,", ...init.check.dept_id_list, '')
} }
function actionUser(item) { function actionUser(item) {
console.log("🚀🚀🚀,",item)
//高级查询选中用户 //高级查询选中用户
if (init.check.tid_list.includes(item.id)) { if (init.check.tid_list.includes(item.id)) {
init.check.tid_list.forEach((cur, index) => { init.check.tid_list.forEach((cur, index) => {
//清除选中数组 //清除选中数组
if (cur === item.id) { if (cur === item.id) {
init.check.tid_list.splice(index, 1, '') init.check.tid_list.splice(index, 1,)
} }
}) })
init.comment.user.forEach(cur => { init.comment.user.forEach(cur => {
...@@ -943,7 +985,6 @@ function tabsChange(e, item) { ...@@ -943,7 +985,6 @@ function tabsChange(e, item) {
//跳转详情 //跳转详情
function showDetails(item) { function showDetails(item) {
useDayViewItemData().setDayViewItemData(item) useDayViewItemData().setDayViewItemData(item)
go2Router('dayDetails') go2Router('dayDetails')
} }
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或