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

v20250212 保存

上级 491536e2
流水线 #32934 已通过 ,包含阶段
in 1 minute 和 27 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-DtrFZOnZ.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-CVoGs-KC.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-DtrFZOnZ.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-CVoGs-KC.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-DtrFZOnZ.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-CVoGs-KC.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{z as t,aM as a}from"./index-CVoGs-KC.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-DtrFZOnZ.js";import{E as _}from"./index-CqSFBrWc.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-CVoGs-KC.js";import{E as _}from"./index-DWVNnUoA.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};
:root{--van-steps-background: var(--van-background-2)}.van-steps{overflow:hidden;background-color:var(--van-steps-background)}.van-steps--horizontal{padding:10px 10px 0}.van-steps--horizontal .van-steps__items{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 0 10px;padding-bottom:22px}.van-steps--vertical{padding:0 0 0 var(--van-padding-xl)}:root{--van-step-text-color: var(--van-text-color-2);--van-step-active-color: var(--van-primary-color);--van-step-process-text-color: var(--van-text-color);--van-step-font-size: var(--van-font-size-md);--van-step-line-color: var(--van-border-color);--van-step-finish-line-color: var(--van-primary-color);--van-step-finish-text-color: var(--van-text-color);--van-step-icon-size: 12px;--van-step-circle-size: 5px;--van-step-circle-color: var(--van-gray-6);--van-step-horizontal-title-font-size: var(--van-font-size-sm)}.van-step{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;color:var(--van-step-text-color);font-size:var(--van-step-font-size)}.van-step__circle{display:block;width:var(--van-step-circle-size);height:var(--van-step-circle-size);background-color:var(--van-step-circle-color);border-radius:50%}.van-step__line{position:absolute;background-color:var(--van-step-line-color);-webkit-transition:background-color var(--van-duration-base);transition:background-color var(--van-duration-base)}.van-step--horizontal{float:left}.van-step--horizontal:first-child .van-step__title{margin-left:0;-webkit-transform:none;transform:none}.van-step--horizontal:last-child:not(:first-child){position:absolute;right:1px;width:auto}.van-step--horizontal:last-child:not(:first-child) .van-step__title{margin-left:0;-webkit-transform:none;transform:none}.van-step--horizontal:last-child:not(:first-child) .van-step__circle-container{right:-9px;left:auto}.van-step--horizontal .van-step__circle-container{position:absolute;top:30px;left:calc(var(--van-padding-xs) * -1);z-index:1;padding:0 var(--van-padding-xs);background-color:var(--van-background-2);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.van-step--horizontal .van-step__title{display:inline-block;margin-left:3px;font-size:var(--van-step-horizontal-title-font-size);-webkit-transform:translate(-50%);transform:translate(-50%)}.van-step--horizontal .van-step__line{top:30px;left:0;width:100%;height:1px}.van-step--horizontal .van-step__icon{display:block;font-size:var(--van-step-icon-size)}.van-step--horizontal .van-step--process{color:var(--van-step-process-text-color)}.van-step--vertical{display:block;float:none;padding:10px 10px 10px 0;line-height:var(--van-line-height-sm)}.van-step--vertical:not(:last-child):after{border-bottom-width:1px}.van-step--vertical .van-step__circle-container{position:absolute;top:19px;left:-15px;z-index:1;font-size:var(--van-step-icon-size);line-height:1;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.van-step--vertical .van-step__line{top:16px;left:-15px;width:1px;height:100%}.van-step:last-child .van-step__line{width:0}.van-step--finish{color:var(--van-step-finish-text-color)}.van-step--finish .van-step__circle,.van-step--finish .van-step__line{background-color:var(--van-step-finish-line-color)}.van-step__icon,.van-step__title{-webkit-transition:color var(--van-duration-base);transition:color var(--van-duration-base)}.van-step__icon--active,.van-step__title--active,.van-step__icon--finish,.van-step__title--finish{color:var(--van-step-active-color)}.file-preview[data-v-f13c766f]{height:100%}
import{at as de,au as G,av as ue,aw as Oe,ax as Ne,ay as Le,az as Ee,aA as fe,i as D,aB as z,ad as ve,m as N,k as M,r as I,aC as he,A as be,l as R,aD as ge,j as me,aE as He,n as $,aF as ye,aG as J,aH as A,aI as L,aJ as we,aK as We,a as g,z as p,aL as Y,d as De,aM as ee,aN as Me,af as X,am as xe,aO as Ze,aP as Fe,aQ as Ve,aR as Ue,aS as ie,aT as Q,aU as je,aV as Ke,aW as oe,aX as Xe,aY as Ye,aZ as qe,a_ as Ge,a$ as Je,b0 as Qe,b1 as pe,ag as et,b2 as tt,b3 as nt,b4 as at,ap as lt,aq as it,a7 as ot,b5 as st,a6 as rt,t as ct,v as se}from"./index-DtrFZOnZ.js";function dt(e,l,i){let s,d=0;const t=e.scrollLeft,o=i===0?1:Math.round(i*1e3/16);function r(){de(s)}function v(){e.scrollLeft+=(l-t)/o,++d<o&&(s=G(v))}return v(),r}function ut(e,l,i,s){let d,t=ue(e);const o=t<l,r=i===0?1:Math.round(i*1e3/16),v=(l-t)/r;function m(){de(d)}function w(){t+=v,(o&&t>l||!o&&t<l)&&(t=l),Oe(e,t),o&&t<l||!o&&t>l?d=G(w):s&&(d=G(s))}return w(),m}function Te(e,l){if(!Ne||!window.IntersectionObserver)return;const i=new IntersectionObserver(t=>{l(t[0].intersectionRatio>0)},{root:document.body}),s=()=>{e.value&&i.observe(e.value)},d=()=>{e.value&&i.unobserve(e.value)};Le(d),Ee(d),fe(s)}const[ft,vt]=D("sticky"),ht={zIndex:z,position:ve("top"),container:Object,offsetTop:N(0),offsetBottom:N(0)};var bt=M({name:ft,props:ht,emits:["scroll","change"],setup(e,{emit:l,slots:i}){const s=I(),d=he(s),t=be({fixed:!1,width:0,height:0,transform:0}),o=I(!1),r=R(()=>ge(e.position==="top"?e.offsetTop:e.offsetBottom)),v=R(()=>{if(o.value)return;const{fixed:f,height:S,width:u}=t;if(f)return{width:`${u}px`,height:`${S}px`}}),m=R(()=>{if(!t.fixed||o.value)return;const f=me(He(e.zIndex),{width:`${t.width}px`,height:`${t.height}px`,[e.position]:`${r.value}px`});return t.transform&&(f.transform=`translate3d(0, ${t.transform}px, 0)`),f}),w=f=>l("scroll",{scrollTop:f,isFixed:t.fixed}),k=()=>{if(!s.value||J(s))return;const{container:f,position:S}=e,u=L(s),T=ue(window);if(t.width=u.width,t.height=u.height,S==="top")if(f){const c=L(f),B=c.bottom-r.value-t.height;t.fixed=r.value>u.top&&c.bottom>0,t.transform=B<0?B:0}else t.fixed=r.value>u.top;else{const{clientHeight:c}=document.documentElement;if(f){const B=L(f),b=c-B.top-r.value-t.height;t.fixed=c-r.value<u.bottom&&c>B.top,t.transform=b<0?-b:0}else t.fixed=c-r.value<u.bottom}w(T)};return $(()=>t.fixed,f=>l("change",f)),ye("scroll",k,{target:d,passive:!0}),Te(s,k),$([we,We],()=>{!s.value||J(s)||!t.fixed||(o.value=!0,A(()=>{const f=L(s);t.width=f.width,t.height=f.height,o.value=!1}))}),()=>{var f;return g("div",{ref:s,style:v.value},[g("div",{class:vt({fixed:t.fixed&&!o.value}),style:m.value},[(f=i.default)==null?void 0:f.call(i)])])}}});const gt=p(bt),[mt,re]=D("tabs");var yt=M({name:mt,props:{count:Y(Number),inited:Boolean,animated:Boolean,duration:Y(z),swipeable:Boolean,lazyRender:Boolean,currentIndex:Y(Number)},emits:["change"],setup(e,{emit:l,slots:i}){const s=I(),d=r=>l("change",r),t=()=>{var r;const v=(r=i.default)==null?void 0:r.call(i);return e.animated||e.swipeable?g(Me,{ref:s,loop:!1,class:re("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:d},{default:()=>[v]}):v},o=r=>{const v=s.value;v&&v.state.active!==r&&v.swipeTo(r,{immediate:!e.inited})};return $(()=>e.currentIndex,o),De(()=>{o(e.currentIndex)}),ee({swipeRef:s}),()=>g("div",{class:re("content",{animated:e.animated||e.swipeable})},[t()])}});const[Se,K]=D("tabs"),wt={type:ve("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:N(0),duration:N(.3),animated:Boolean,ellipsis:X,swipeable:Boolean,scrollspy:Boolean,offsetTop:N(0),background:String,lazyRender:X,lineWidth:z,lineHeight:z,beforeChange:Function,swipeThreshold:N(5),titleActiveColor:String,titleInactiveColor:String},Ce=Symbol(Se);var xt=M({name:Se,props:wt,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:l,slots:i}){let s,d,t,o,r;const v=I(),m=I(),w=I(),k=I(),f=xe(),S=he(v),[u,T]=Ze(),{children:c,linkChildren:B}=Fe(Ce),b=be({inited:!1,position:"",lineStyle:{},currentIndex:-1}),E=R(()=>c.length>+e.swipeThreshold||!e.ellipsis||e.shrink),Z=R(()=>({borderColor:e.color,background:e.background})),H=(n,a)=>{var h;return(h=n.name)!=null?h:a},F=R(()=>{const n=c[b.currentIndex];if(n)return H(n,b.currentIndex)}),O=R(()=>ge(e.offsetTop)),te=R(()=>e.sticky?O.value+s:0),W=n=>{const a=m.value,h=u.value;if(!E.value||!a||!h||!h[b.currentIndex])return;const x=h[b.currentIndex].$el,y=x.offsetLeft-(a.offsetWidth-x.offsetWidth)/2;o&&o(),o=dt(a,y,n?0:+e.duration)},_=()=>{const n=b.inited;A(()=>{const a=u.value;if(!a||!a[b.currentIndex]||e.type!=="line"||J(v.value))return;const h=a[b.currentIndex].$el,{lineWidth:x,lineHeight:y}=e,C=h.offsetLeft+h.offsetWidth/2,P={width:ie(x),backgroundColor:e.color,transform:`translateX(${C}px) translateX(-50%)`};if(n&&(P.transitionDuration=`${e.duration}s`),Q(y)){const j=ie(y);P.height=j,P.borderRadius=j}b.lineStyle=P})},Ie=n=>{const a=n<b.currentIndex?-1:1;for(;n>=0&&n<c.length;){if(!c[n].disabled)return n;n+=a}},V=(n,a)=>{const h=Ie(n);if(!Q(h))return;const x=c[h],y=H(x,h),C=b.currentIndex!==null;b.currentIndex!==h&&(b.currentIndex=h,a||W(),_()),y!==e.active&&(l("update:active",y),C&&l("change",y,x.title)),t&&!e.scrollspy&&Ke(Math.ceil(oe(v.value)-O.value))},U=(n,a)=>{const h=c.find((y,C)=>H(y,C)===n),x=h?c.indexOf(h):0;V(x,a)},ne=(n=!1)=>{if(e.scrollspy){const a=c[b.currentIndex].$el;if(a&&S.value){const h=oe(a,S.value)-te.value;d=!0,r&&r(),r=ut(S.value,h,n?0:+e.duration,()=>{d=!1})}}},Re=(n,a,h)=>{const{title:x,disabled:y}=c[a],C=H(c[a],a);y||(Xe(e.beforeChange,{args:[C],done:()=>{V(a),ne()}}),Ye(n)),l("clickTab",{name:C,title:x,event:h,disabled:y})},ke=n=>{t=n.isFixed,l("scroll",n)},Be=n=>{A(()=>{U(n),ne(!0)})},$e=()=>{for(let n=0;n<c.length;n++){const{top:a}=L(c[n].$el);if(a>te.value)return n===0?0:n-1}return c.length-1},_e=()=>{if(e.scrollspy&&!d){const n=$e();V(n)}},Pe=()=>{if(e.type==="line"&&c.length)return g("div",{class:K("line"),style:b.lineStyle},null)},ae=()=>{var n,a,h;const{type:x,border:y,sticky:C}=e,P=[g("div",{ref:C?void 0:w,class:[K("wrap"),{[je]:x==="line"&&y}]},[g("div",{ref:m,role:"tablist",class:K("nav",[x,{shrink:e.shrink,complete:E.value}]),style:Z.value,"aria-orientation":"horizontal"},[(n=i["nav-left"])==null?void 0:n.call(i),c.map(j=>j.renderTitle(Re)),Pe(),(a=i["nav-right"])==null?void 0:a.call(i)])]),(h=i["nav-bottom"])==null?void 0:h.call(i)];return C?g("div",{ref:w},[P]):P},le=()=>{_(),A(()=>{var n,a;W(!0),(a=(n=k.value)==null?void 0:n.swipeRef.value)==null||a.resize()})};$(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],_),$(we,le),$(()=>e.active,n=>{n!==F.value&&U(n)}),$(()=>c.length,()=>{b.inited&&(U(e.active),_(),A(()=>{W(!0)}))});const Ae=()=>{U(e.active,!0),A(()=>{b.inited=!0,w.value&&(s=L(w.value).height),W(!0)})},ze=(n,a)=>l("rendered",n,a);return ee({resize:le,scrollTo:Be}),Ve(_),Ue(_),fe(Ae),Te(v,_),ye("scroll",_e,{target:S,passive:!0}),B({id:f,props:e,setLine:_,scrollable:E,onRendered:ze,currentName:F,setTitleRefs:T,scrollIntoView:W}),()=>g("div",{ref:v,class:K([e.type])},[e.sticky?g(gt,{container:v.value,offsetTop:O.value,onScroll:ke},{default:()=>[ae()]}):ae(),g(yt,{ref:k,count:c.length,inited:b.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:b.currentIndex,onChange:V},{default:()=>{var n;return[(n=i.default)==null?void 0:n.call(i)]}})])}});const Tt=Symbol(),[St,ce]=D("tab"),Ct=M({name:St,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:z,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:X},setup(e,{slots:l}){const i=R(()=>{const d={},{type:t,color:o,disabled:r,isActive:v,activeColor:m,inactiveColor:w}=e;o&&t==="card"&&(d.borderColor=o,r||(v?d.backgroundColor=o:d.color=o));const f=v?m:w;return f&&(d.color=f),d}),s=()=>{const d=g("span",{class:ce("text",{ellipsis:!e.scrollable})},[l.title?l.title():e.title]);return e.dot||Q(e.badge)&&e.badge!==""?g(qe,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[d]}):d};return()=>g("div",{id:e.id,role:"tab",class:[ce([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:i.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls},[s()])}}),[It,q]=D("tab"),Rt=me({},Ge,{dot:Boolean,name:z,badge:z,title:String,disabled:Boolean,titleClass:Je,titleStyle:[String,Object],showZeroBadge:X});var kt=M({name:It,props:Rt,setup(e,{slots:l}){const i=xe(),s=I(!1),d=Qe(),{parent:t,index:o}=pe(Ce);if(!t)return;const r=()=>{var u;return(u=e.name)!=null?u:o.value},v=()=>{s.value=!0,t.props.lazyRender&&A(()=>{t.onRendered(r(),e.title)})},m=R(()=>{const u=r()===t.currentName.value;return u&&!s.value&&v(),u}),w=I(""),k=I("");et(()=>{const{titleClass:u,titleStyle:T}=e;w.value=u?ot(u):"",k.value=T&&typeof T!="string"?st(rt(T)):T});const f=u=>g(Ct,ct({key:i,id:`${t.id}-${o.value}`,ref:t.setTitleRefs(o.value),style:k.value,class:w.value,isActive:m.value,controls:i,scrollable:t.scrollable.value,activeColor:t.props.titleActiveColor,inactiveColor:t.props.titleInactiveColor,onClick:T=>u(d.proxy,o.value,T)},se(t.props,["type","color","shrink"]),se(e,["dot","badge","title","disabled","showZeroBadge"])),{title:l.title}),S=I(!m.value);return $(m,u=>{u?S.value=!1:tt(()=>{S.value=!0})}),$(()=>e.title,()=>{t.setLine(),t.scrollIntoView()}),nt(Tt,m),ee({id:i,renderTitle:f}),()=>{var u;const T=`${t.id}-${o.value}`,{animated:c,swipeable:B,scrollspy:b,lazyRender:E}=t.props;if(!l.default&&!c)return;const Z=b||m.value;if(c||B)return g(at,{id:i,role:"tabpanel",class:q("panel-wrapper",{inactive:S.value}),tabindex:m.value?0:-1,"aria-hidden":!m.value,"aria-labelledby":T},{default:()=>{var O;return[g("div",{class:q("panel")},[(O=l.default)==null?void 0:O.call(l)])]}});const F=s.value||b||!E?(u=l.default)==null?void 0:u.call(l):null;return lt(g("div",{id:i,role:"tabpanel",class:q("panel"),tabindex:Z?0:-1,"aria-labelledby":T},[F]),[[it,Z]])}}});const $t=p(kt),_t=p(xt);export{_t as T,$t as a};
此差异已折叠。
import{i as d,k as f,l as y,a as s,F as c,ak as h,al as v,z}from"./index-DtrFZOnZ.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-CVoGs-KC.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{_ as e}from"./index-DtrFZOnZ.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default}; import{_ as e}from"./index-CVoGs-KC.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{z as s,as as t}from"./index-DtrFZOnZ.js";const i=s(t);export{i as P};
import{A as a,d as l,c as s,a as n,D as o,o as c,Z as r}from"./index-DtrFZOnZ.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-CVoGs-KC.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{i as v,k as w,am as G,a as e,an as k,ad as M,z as B}from"./index-DtrFZOnZ.js";const[S,s]=v("empty"),C={image:M("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)])])]),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 b=B(z);export{b 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-CVoGs-KC.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{r,A as D,d as B,ao as v,c as _,a as n,w as c,D as o,a7 as T,ap as i,aq as p,F as d,a9 as N,ar as V,W as $,o as u,P as q,E as z,e as A,Z as E}from"./index-DtrFZOnZ.js";import{T as F,a as M}from"./index-Bhur2ErH.js";import{P as R}from"./index-D5lLNa4L.js";const U={class:"container1"},j={class:"w-screen h-screen overflow-y-auto relative"},H={class:"w-full h-[108px] bg-white z-50 sticky top-0"},I={class:"w-full h-[54px]"},L={class:""},O={class:""},S={class:""},W={class:"w-full h-[64px] flex justify-center items-center sticky bottom-0 px-2 bg-white"},Q={__name:"index",setup(Z){const e=r(0),m=r([{text:"日程安排",value:"0"},{text:"值班安排",value:"1"},{text:"会议安排",value:"2"},{text:"操作轨迹",value:"3"}]),t=D({formData:{},approval:{active:"0",showPopup:!1,show:!1,columns:[{value:1,text:"退回到上个节点"},{value:2,text:"退回到发起人"}],formData:{taskid:"",remark:"",action:""}}}),f=()=>{t.formData.pushMessage!==void 0?N("welcome"):v.back()},w=l=>{e.value=l};r("");function h(l){const a=l.selectedOptions[0];t.approval.formData.action=a.value,t.approval.value=a.text,t.approval.showPopup=!1}return B(()=>{t.formData=v.currentRoute.value.query}),(l,a)=>{const x=R,b=V,k=E,y=M,P=F,g=$;return u(),_(d,null,[n(b,{show:t.approval.showPopup,"onUpdate:show":a[1]||(a[1]=s=>t.approval.showPopup=s),position:"bottom"},{default:c(()=>[n(x,{columns:t.approval.columns,"show-toolbar":"",onCancel:a[0]||(a[0]=s=>t.approval.showPopup=!1),onConfirm:h},null,8,["columns"])]),_:1},8,["show"]),o("div",U,[o("div",j,[o("div",H,[n(k,{path:"/welcome",title:"日程详情"}),o("div",I,[n(P,{active:e.value,"onUpdate:active":a[2]||(a[2]=s=>e.value=s),swipeable:"",onChange:w},{default:c(()=>[(u(!0),_(d,null,q(m.value,(s,C)=>(u(),z(y,{key:C,title:s.text},null,8,["title"]))),128))]),_:1},8,["active"])])]),o("div",{class:T([`${t.formData.flowType==="await"?"h-[calc(100%-172px)]":"h-[calc(100%-108px)]"}`,"w-full overflow-y-auto relative bg-red-600"])},[i(o("div",L,"1",512),[[p,e.value==0]]),i(o("div",O,"2",512),[[p,e.value==1]]),i(o("div",S,"3",512),[[p,e.value==2]])],2),o("div",W,[n(g,{round:"",class:"w-[50%]",onClick:f},{default:c(()=>a[3]||(a[3]=[A("返回")])),_:1})])])])],64)}}};export{Q as default};
此差异已折叠。
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0"> content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title></title> <title></title>
<script type="module" crossorigin src="./assets/index-DtrFZOnZ.js"></script> <script type="module" crossorigin src="./assets/index-CVoGs-KC.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BGmk6U4y.css"> <link rel="stylesheet" crossorigin href="./assets/index-Pp4ZApOj.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
<template>
<div class="file-preview">
<!-- <div v-if="renderedLoading" style="width: 100%; height: 100%;">
<Spin fix>
<span style="font-size: 24px;">加载中...</span>
</Spin>
</div> -->
<div style="height: 100%;">
<template v-if="errorShow">
<van-empty>
<template #description>
<p>加载失败,请尝试下载预览</p>
</template>
</van-empty>
</template>
<!-- word文件预览 -->
<div v-if="previewType == 'docx'">
<iframe :style="{ height: 'calc(100vh - 80px)', }"
:src="url+fileObj.path"
height="100%"
width="100%"
/>
</div>
<!-- excel文件预览 -->
<div v-if="previewType == 'excel'">
<!-- <vue-office-excel v-show="!renderedLoading" :src="fileObj.path"
:style="{ height: 'calc(100vh - 80px)', }" @rendered="rendered" @error="errorHandler"/>-->
<iframe :style="{ height: 'calc(100vh - 80px)', }"
:src="url+fileObj.path"
height="100%"
width="100%"
/>
</div>
<!-- pdf文件预览 -->
<div v-if="previewType == 'pdf'">
<!-- <vue-office-pdf v-show="!renderedLoading" :src="fileObj.path" @rendered="rendered"-->
<!-- @error="errorHandler" :style="{ height: 'calc(100vh - 80px)', }"/>-->
<iframe :src="url+fileObj.path"
:style="{ height: 'calc(100vh - 80px)', }"
height="100%"
width="100%"
/>
</div>
<!-- 视频文件预览 -->
<div v-if="previewType == 'video'"
style="display: flex; flex-direction: column; align-items: center; justify-content: center;">
<div style="margin-bottom: 10px; font-size: 20px; color: #000; ">{{ fileObj.file_name }}</div>
<video :src="fileObj.path" controls @loadeddata="rendered" style="width: 80%; ">
<p>抱歉,您的浏览器不支持视频标签。</p>
</video>
</div>
<!-- 音频文件预览 -->
<div v-if="previewType == 'audio'"
style="display: flex; flex-direction: column; align-items: center; justify-content: center;">
<div style="margin-bottom: 10px; font-size: 20px; color: #000; ">{{ fileObj.file_name }}</div>
<audio :src="fileObj.path" controls @loadeddata="rendered">
<p>抱歉,您的浏览器不支持音频标签。</p>
</audio>
</div>
<!-- 图片文件预览 -->
<div v-if="previewType == 'image'" @click="viewImage(fileObj.path)"
style="display: flex; flex-direction: column; align-items: center; justify-content: center;">
<img :src="fileObj.path" alt="" style="max-width: 100%; max-height: 100%; " @load="rendered">
</div>
<!-- txt文件预览 -->
<div v-if="previewType == 'txt'" style="height: 100%;">
<iframe :src="fileObj.path" width="100%" height="100%" @load="rendered">
<p>抱歉,您的浏览器不支持在页面中显示 txt 文件。</p>
</iframe>
</div>
<!-- 自定义文件预览 -->
<div v-if="previewType == 'custom'">
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center;">
<!-- <div style="margin-bottom: 10px; font-size: 20px; color: #000; ">{{ fileObj.file_name }}</div> -->
<a style="margin-bottom: 10px; font-size: 20px;"
@click="clickDownload(fileObj.path, fileObj.file_name)">{{ fileObj.file_name }}</a>
<p>抱歉,暂不支持预览该类型文件,请点击下载后自行预览。</p>
</div>
</div>
</div>
</div>
</template>
<script>
// https://home.jxlsxy.com/fileReader?file=http%3A%2F%2Fstatic.shanhuxueyuan.com%2Fdemo%2Fexcel.xlsx&wdOrigin=BROWSELINK
//引入VueOfficeDocx组件 及 相关样式
/*import VueOfficeDocx from '@vue-office/docx'
import '@vue-office/docx/lib/index.css'
//引入VueOfficeExcel组件 及 相关样式
import VueOfficeExcel from '@vue-office/excel'
import '@vue-office/excel/lib/index.css'
import VueOfficePdf from '@vue-office/pdf'*/
import {ImagePreview} from 'vant';
export default {
name: 'filePreview',
components: {
/* VueOfficeDocx, //预览docx文件
VueOfficeExcel, //预览excel文件
VueOfficePdf, //预览pdf文件*/
},
props: {
fileObj: {
type: Object,
default: () => {
return {}
}
},
},
data() {
return {
url: window.location.origin + '/fileReader/?file=' + window.location.origin,
src: 'http://static.shanhuxueyuan.com/test6.docx',
renderedLoading: true,
previewType: '',
errorShow: false
}
},
mounted() {
console.log("fileObj1111111", this.fileObj)
this.previewType = this.getPreviewType()
// this.previewType = 'txt'
},
methods: {
getPreviewType() {
//根据文件后缀名判断文件类型
let fileExt = this.fileObj.file_name.split('.').pop()
let type = ''
switch (fileExt) {
case 'doc':
type = 'docx'
break;
case 'docx':
type = 'docx'
break;
case 'xls':
type = 'excel'
break;
case 'xlsx':
type = 'excel'
break;
case 'ppt':
case 'pptx':
type = 'ppt'
break;
case 'pdf':
type = 'pdf'
break;
case 'jpg':
case 'jpeg':
case 'png':
case 'gif':
type = 'image'
break;
case 'DOC':
type = 'docx'
break;
case 'DOCX':
type = 'docx'
break;
case 'XLS':
type = 'excel'
break;
case 'XLSX':
type = 'excel'
break;
case 'PPT':
case 'PPTX':
type = 'ppt'
break;
case 'PDF':
type = 'pdf'
break;
case 'JPG':
case 'JPEG':
case 'PNG':
case 'GIF':
type = 'image'
break;
// case 'zip':
// case 'rar':
// case '7z':
// type = 'zip'
// break;
//视频文件
case 'mp4':
case 'ogg':
case 'webm':
type = 'video'
break;
//音频文件
case 'mp3':
case 'wav':
// case 'ogg':
type = 'audio'
break
//txt文件
case 'txt':
type = 'txt'
break
default:
type = 'custom'
this.renderedLoading = false
break;
}
return type
},
rendered() {
console.log("渲染完成", this.fileObj)
this.renderedLoading = false
},
errorHandler(e) {
console.log("渲染失败", e)
this.errorShow = true
},
//文件下载
clickDownload(path, file_name) {
const link = document.createElement('a');
link.href = path; // 替换为文件的实际路径
link.download = file_name; // 替换为要下载的文件名和扩展名
link.target = '_blank';
link.dispatchEvent(new MouseEvent('click'));
},
viewImage(src) {
ImagePreview([src]);
}
},
}
</script>
<style lang="less" scoped>
.file-preview {
height: 100%;
}
</style>
...@@ -15,9 +15,34 @@ ...@@ -15,9 +15,34 @@
@confirm="onConfirm_approval" @confirm="onConfirm_approval"
/> />
</van-popup> </van-popup>
<!-- 附件预览 -->
<van-popup v-model:show="viewFilesObj.show" :style="{ height: '85%'}" closeable position="bottom"
round>
<div class="w-full h-full bg-white overflow-y-auto relative ">
<!--header-->
<div class="w-full h-[50px] z-100 sticky top-0">
<div class="flex justify-between items-center w-full h-[50px]">
<div class="w-full h-full ccFlex text-[18px]">
附件预览
</div>
</div>
</div>
<!--content-->
<div class="w-full h-[calc(100%-114px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto">
<viewFiles :fileObj="viewFilesObj.fileItem"/>
</div>
<!--footer-->
<div
class="w-full h-[70px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid ">
<van-button class="w-full " native-type="submit" round @click="viewFilesObj.show = false">关闭
</van-button>
</div>
</div>
</van-popup>
<div class="container1 "> <div class="container1 ">
<!--content--> <!--content-->
<div class="w-screen h-screen overflow-y-auto relative"> <div class="w-screen h-screen overflow-y-auto relative bg-[#F4F6F7]">
<!--header--> <!--header-->
<div class="w-full h-[108px] bg-white z-50 sticky top-0"> <div class="w-full h-[108px] bg-white z-50 sticky top-0">
<childrenIndexHeader path="/welcome" title="日程详情"/> <childrenIndexHeader path="/welcome" title="日程详情"/>
...@@ -30,10 +55,105 @@ ...@@ -30,10 +55,105 @@
<!--content_content--> <!--content_content-->
<div <div
:class="`${init.formData.flowType ==='await' ? 'h-[calc(100%-172px)]':'h-[calc(100%-108px)]'}`" :class="`${init.formData.flowType ==='await' ? 'h-[calc(100%-172px)]':'h-[calc(100%-108px)]'}`"
class="w-full overflow-y-auto relative bg-red-600"> class="w-full overflow-y-auto relative ">
<div v-show="active == 0" class="">1</div> <!--日程安排-->
<div v-show="active == 1" class="">2</div> <div v-show="active == 0" class="">
<div v-show="active == 2" class="">3</div> <van-empty
v-if="init.detailsData.plan_list.length == 0"
image="https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png"
image-size="80"
description="暂无数据"
/>
<div
v-else
v-for="(item,index) in init.detailsData.plan_list" :key="index"
class="w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"
>
<div class="text-[#ACADAD] w-full h-[18px] flex items-center mb-2">
<div class="w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"></div>
<p>{{ item.date }} {{ item.begin + ' - ' + item.end }}</p>
</div>
<div class="mb-2 text-[#4E4E4E]">
<p>{{ item.content }}</p>
</div>
<div
v-for="(ite,index) in item.file_list" :key="index"
@click="preViewFile(ite)"
class="flex items-center text-[#3FA0F4]"
>
<van-image width="12px" height="12px" :src="img"/>
<a class="ml-2">{{ ite.file_name }}</a>
</div>
</div>
</div>
<!--值班安排-->
<div v-show="active == 1" class="">
<van-empty
v-if="init.detailsData.duty_list.length == 0"
image="https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png"
image-size="80"
description="暂无数据"
/>
<div
v-else
v-for="(item,index) in init.detailsData.duty_list" :key="index"
class="w-full h-[90px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"
>
<div class="text-[#ACADAD] w-full h-[18px] flex items-center mb-2">
<div class="w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"></div>
<p>{{ item.begin }}-{{ item.end }}</p>
</div>
<div class="mb-2 text-[#4E4E4E]">
<p>{{ item.content }}</p>
</div>
</div>
</div>
<!--会议安排-->
<div v-show="active == 2" class="">
<van-empty
v-if="init.detailsData.meet_list.length == 0"
image="https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png"
image-size="80"
description="暂无数据"
/>
<div
v-else
v-for="(item,index) in init.detailsData.meet_list" :key="index"
class="w-full h-[90px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"
>
<div class="text-[#ACADAD] w-full h-[18px] flex items-center mb-2">
<div class="w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"></div>
<p>{{ item.begin }}-{{ item.end }}</p>
</div>
<div class="mb-2 text-[#4E4E4E]">
<p>{{ item.content }}</p>
</div>
</div>
</div>
<!--轨迹-->
<div v-show="active == 3" class="">
<van-empty
v-if="init.operatingTrajectory.length == 0"
image="https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png"
image-size="80"
description="暂无数据"
/>
<div
v-else
class="w-full h-[90px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"
>
<van-steps :active="0" class="w-full" direction="vertical" active-icon="circle" finish-icon="success"
inactive-icon="success">
<van-step v-for="(item,index) in init.operatingTrajectory " :key="index" class="ax ">
<h2 v-font:{color:`#323233`,size:18}>{{ item.createtime }}</h2>
<p>用户名:<span v-font:{color:`#5295FF`}>{{ item.createname }}</span></p>
<p>操作:<span v-font:{color:`#5295FF`}>{{ item.remark }}</span></p>
</van-step>
</van-steps>
</div>
</div>
</div> </div>
<!--审批--> <!--审批-->
...@@ -45,10 +165,14 @@ ...@@ -45,10 +165,14 @@
</template> </template>
<script setup> <script setup>
import img from '@/assets/img.png'
import {reactive, defineAsyncComponent, ref, onMounted, provide, inject, nextTick} from "vue"; import {reactive, defineAsyncComponent, ref, onMounted, provide, inject, nextTick} from "vue";
import * as hooks from '@/hooks/index.js' import * as hooks from '@/hooks/index.js'
import * as api from '@/api/apis/controller/index.js' import * as api from '@/api/apis/controller/index.js'
import router from "@/router/index.js"; import router from "@/router/index.js";
import {useDayViewItemData} from "@/store/modules/dayView.js";
import dayjs from "dayjs";
import viewFiles from "@/components/viewFiles.vue";
const active = ref(0) const active = ref(0)
const tabArray = ref([ const tabArray = ref([
...@@ -57,7 +181,18 @@ const tabArray = ref([ ...@@ -57,7 +181,18 @@ const tabArray = ref([
{text: '会议安排', value: '2'}, {text: '会议安排', value: '2'},
{text: '操作轨迹', value: '3'}, {text: '操作轨迹', value: '3'},
]) ])
const viewFilesObj = reactive({
show: false,
fileItem: {}
})
const init = reactive({ const init = reactive({
detailsData: {
plan_list:[],
duty_list:[],
meet_list:[],
},
operatingTrajectory: [],
formData: {}, formData: {},
approval: { approval: {
active: '0', active: '0',
...@@ -134,7 +269,41 @@ function submitApproval() { ...@@ -134,7 +269,41 @@ function submitApproval() {
} }
} }
//获取日程详情
function getScheduleDetails() {
hooks.myEncapsulationFunction(() => {
return api.getApiPlanScheduleGetPlanScheduleInfo({
userid: useDayViewItemData().getDayViewItemData().userid,
date: dayjs(useDayViewItemData().getDayViewItemData().date).format('YYYY-MM-DD'),
}).then(res => {
init.detailsData = res.response
return res
})
}, true, '加载中...')
}
//操作轨迹
function getOperatingTrajectory() {
hooks.myEncapsulationFunction(() => {
return api.getApiPlanScheduleGetPlanScheduleTrackList({
userid: useDayViewItemData().getDayViewItemData().userid,
date: dayjs(useDayViewItemData().getDayViewItemData().date).format('YYYY-MM-DD'),
}).then(res => {
init.operatingTrajectory = res.response
return res
})
}, true, '加载中...')
}
//附件预览
function preViewFile(fileItem) {
//查看附件方法
viewFilesObj.show = true
viewFilesObj.fileItem = fileItem
console.log("🚀🚀🚀,", viewFilesObj.fileItem)
}
onMounted(() => { onMounted(() => {
getScheduleDetails()
getOperatingTrajectory()
init.formData = router.currentRoute.value.query init.formData = router.currentRoute.value.query
}) })
......
...@@ -14,13 +14,14 @@ ...@@ -14,13 +14,14 @@
<!-- </template>--> <!-- </template>-->
<!-- </van-cell>--> <!-- </van-cell>-->
<!-- <div class="w-full h-[10px]"></div>--> <!-- <div class="w-full h-[10px]"></div>-->
<van-cell class="rounded-t-[8px] h-[50px] text-[17px] flex items-center" v-if="init.role.examine== 1" <van-cell class="rounded-[8px] h-[50px] text-[17px] flex items-center" v-if="init.role.examine== 1"
title="分管填报记录" title="分管填报记录"
is-link to="/responsibleForFilingRecords"> is-link to="/responsibleForFilingRecords">
<template #icon> <template #icon>
<img :src="images.icon02.default" style="width: 20px;height: 20px;margin-right: 10px"/> <img :src="images.icon02.default" style="width: 20px;height: 20px;margin-right: 10px"/>
</template> </template>
</van-cell> </van-cell>
<!--
<van-cell class=" h-[50px] flex text-[17px] items-center" v-if="init.role.userrole== 1" title="人员授权" is-link <van-cell class=" h-[50px] flex text-[17px] items-center" v-if="init.role.userrole== 1" title="人员授权" is-link
to="/personnelAuthority"> to="/personnelAuthority">
<template #icon> <template #icon>
...@@ -33,8 +34,8 @@ ...@@ -33,8 +34,8 @@
<img :src="images.icon04.default" style="width: 20px;height: 20px;margin-right: 10px"/> <img :src="images.icon04.default" style="width: 20px;height: 20px;margin-right: 10px"/>
</template> </template>
</van-cell> </van-cell>
-->
<!-- to="/system"-->
</div> </div>
</div> </div>
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或