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

v20250212 保存

上级 cf5f48a9
流水线 #32925 已通过 ,包含阶段
in 2 minute 和 36 second
...@@ -8,7 +8,7 @@ stages: ...@@ -8,7 +8,7 @@ stages:
build: build:
stage: publish stage: publish
script: script:
- remove-item -Force -Recurse D:\ASC_web\A00051\qth5* - remove-item -Force -Recurse D:\ASC_web\A00051\scheduleManagement\wx*
- xcopy "dist" "D:\ASC_web\A00051\oneWeekArrangement\wx\" /s/e/y/ - xcopy "dist" "D:\ASC_web\A00051\scheduleManagement\wx\" /s/e/y/
only: only:
- wx - wx
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 p,c as u,a as l,d as k,u as m,L as _,o as g,e as f,C as w,f as n,G as a,S as y,g as d}from"./index-hukuK2LI.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(v){const t=m(),c=async o=>{const e=await y(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}},r=async o=>{const e=await d(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",s.response.role),await t.replace({name:"welcome"})}},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await w();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return p(()=>{i()}),(o,e)=>{const s=_;return g(),u("div",R,[l(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[f(" 登录中")]),_:1})])}}};export{A as default};
import{b as l,c as k,a as _,d as m,u as y,L as f,o as d,e as g,g as w,f as n,G as o,C as v,S as x}from"./index-hukuK2LI.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){const t=y(),c=async a=>{const e=await x(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"workArrangementFilling"})}},i=async a=>{const e=await(void 0)(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},r=async()=>{({wx:async()=>{let e={token:t.currentRoute.value.query.token};const s=await w(e);if(s===void 0)await t.replace({name:"403"});else if(s.response.access_token.token_content!==""){n.set("site-management-token",s.response.access_token.token_content),n.set("time",s.response.access_token.expires);const u=await o();n.set("site-user-info",JSON.stringify(u.response));let p=t.currentRoute.value.query.id;await t.push({path:"/indexDetail",query:{id:p,pushMessage:1}})}},asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await i(e)},test:async()=>{const e=await v();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}}})[t.currentRoute.value.query.type]()};return l(()=>{r()}),(a,e)=>{const s=f;return d(),k("div",R,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[g(" 登录中")]),_:1})])}}};export{O as default}; import{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};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
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{A as w,r as y,B as k,b as v,c as x,a as o,E as l,d as n,a4 as C,a3 as I,o as i,H as g,e as r,I as W,a5 as b,a2 as B}from"./index-hukuK2LI.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const N={class:"publicContainerNoPadding"},V={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},D={class:"w-full h-full flex items-center justify-between p-3"},E={__name:"index",setup(a){const s=y(),e=k({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(t){e.fillInWork.show=t}function f(){A().then(t=>{e.role=t.response})}return v(()=>{f()}),(t,G)=>{const p=b,m=C,c=B,h=I;return i(),x("div",N,[o(p,{path:"/welcome",title:"工作安排填报"}),l("div",V,[o(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),o(h,null,{default:n(()=>[l("div",D,[e.role==1?(i(),g(c,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:_},{default:n(()=>[r(" 添加日期 ")]),_:1})):W("",!0),o(c,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:d},{default:n(()=>[r("保存")]),_:1})])]),_:1})])}}};export{E as default};
import{i as d,l as f,n as y,a as s,F as c,b7 as h,b8 as v,h as z}from"./index-hukuK2LI.js";const[u,A]=d("space"),w={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function m(e=[]){const a=[];return e.forEach(t=>{Array.isArray(t)?a.push(...t):t.type===c?a.push(...m(t.children)):a.push(t)}),a.filter(t=>{var i;return!(t&&(t.type===h||t.type===c&&((i=t.children)==null?void 0:i.length)===0||t.type===v&&t.children.trim()===""))})}var S=f({name:u,props:w,setup(e,{slots:a}){const t=y(()=>{var n;return(n=e.align)!=null?n:e.direction==="horizontal"?"center":""}),i=n=>typeof n=="number"?n+"px":n,g=n=>{const r={},o=`${i(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${i(Array.isArray(e.size)?e.size[1]:e.size)}`;return n?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var n;const r=m((n=a.default)==null?void 0:n.call(a));return s("div",{class:[A({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[r.map((o,l)=>s("div",{key:`item-${l}`,class:`${u}-item`,style:g(l===r.length-1)},[o]))])}}});const $=z(S);export{$ as S};
:root{--van-pagination-height: 40px;--van-pagination-font-size: var(--van-font-size-md);--van-pagination-item-width: 36px;--van-pagination-item-default-color: var(--van-primary-color);--van-pagination-item-disabled-color: var(--van-gray-7);--van-pagination-item-disabled-background: var(--van-background);--van-pagination-background: var(--van-background-2);--van-pagination-desc-color: var(--van-gray-7);--van-pagination-disabled-opacity: var(--van-disabled-opacity)}.van-pagination{font-size:var(--van-pagination-font-size)}.van-pagination__items{display:flex}.van-pagination__item,.van-pagination__page-desc{display:flex;align-items:center;justify-content:center}.van-pagination__item{flex:1;box-sizing:border-box;min-width:var(--van-pagination-item-width);height:var(--van-pagination-height);color:var(--van-pagination-item-default-color);background:var(--van-pagination-background);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-pagination__item button{flex:1;height:100%;border:none;padding:0;background:transparent}.van-pagination__item button[disabled]{cursor:not-allowed}.van-pagination__item:active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item:not(:last-child):after{border-right-width:0}.van-pagination__item--active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item--page{flex-grow:0}.van-pagination__item--prev,.van-pagination__item--next{padding:0 var(--van-padding-base);cursor:pointer}.van-pagination__item--border:first-child:after{border-right-width:var(--van-border-width)}.van-pagination__item--disabled,.van-pagination__item--disabled:active{color:var(--van-pagination-item-disabled-color);background-color:var(--van-pagination-item-disabled-background);opacity:var(--van-pagination-disabled-opacity)}.van-pagination__page-desc{flex:1;height:var(--van-pagination-height);color:var(--van-pagination-desc-color)}.page[data-v-151e55c8]{--van-pagination-height: 55px }.select{margin:5px 5px 5px 0;background:#1e90ff;color:#fff!important}.unselected{margin:5px 5px 5px 0}
import{i as v,l as w,at as G,a as e,b6 as k,af as M,h as B}from"./index-hukuK2LI.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,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{B as a,b as t,c as s,a as c,E as e,o as n,a5 as l}from"./index-hukuK2LI.js";const i={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),d=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),h={__name:"index",setup(r){return a({fillInWork:{show:!1}}),t(()=>{document.title="系统配置"}),(p,u)=>{const o=l;return n(),s("div",i,[c(o,{path:"/welcome",title:"分管填报记录查看"}),_,d])}}};export{h as default};
import{i as H,af as J,m as z,b2 as W,as as L,l as Y,n as M,aK as q,a as u,b3 as G,b4 as Q,h as X,A as F,_ as Z,r as $,o as f,c as b,B as ee,b as te,E as o,H as A,I as se,F as V,J as B,d as x,K as ne,b5 as ae,V as g,e as E,aR as j,Y as T,a2 as oe,a3 as le}from"./index-hukuK2LI.js";import{S as ie}from"./index-BraEuVXr.js";import{E as re}from"./index-DmusXBfp.js";const[ce,U,K]=H("pagination"),D=(a,r,l)=>({number:a,text:r,active:l}),pe={mode:J("multi"),prevText:String,nextText:String,pageCount:z(0),modelValue:W(0),totalItems:z(0),showPageSize:z(5),itemsPerPage:z(10),forceEllipses:Boolean,showPrevButton:L,showNextButton:L};var de=Y({name:ce,props:pe,emits:["change","update:modelValue"],setup(a,{emit:r,slots:l}){const e=M(()=>{const{pageCount:i,totalItems:d,itemsPerPage:m}=a,_=+i||Math.ceil(+d/+m);return Math.max(1,_)}),k=M(()=>{const i=[],d=e.value,m=+a.showPageSize,{modelValue:_,forceEllipses:t}=a;let s=1,c=d;const h=m<d;h&&(s=Math.max(_-Math.floor(m/2),1),c=s+m-1,c>d&&(c=d,s=c-m+1));for(let p=s;p<=c;p++){const P=D(p,p,p===_);i.push(P)}if(h&&m>0&&t){if(s>1){const p=D(s-1,"...");i.unshift(p)}if(c<d){const p=D(c+1,"...");i.push(p)}}return i}),v=(i,d)=>{i=Q(i,1,e.value),a.modelValue!==i&&(r("update:modelValue",i),d&&r("change",i))};q(()=>v(a.modelValue));const C=()=>u("li",{class:U("page-desc")},[l.pageDesc?l.pageDesc():`${a.modelValue}/${e.value}`]),R=()=>{const{mode:i,modelValue:d,showPrevButton:m}=a;if(!m)return;const _=l["prev-text"],t=d===1;return u("li",{class:[U("item",{disabled:t,border:i==="simple",prev:!0}),G]},[u("button",{type:"button",disabled:t,onClick:()=>v(d-1,!0)},[_?_():a.prevText||K("prev")])])},I=()=>{const{mode:i,modelValue:d,showNextButton:m}=a;if(!m)return;const _=l["next-text"],t=d===e.value;return u("li",{class:[U("item",{disabled:t,border:i==="simple",next:!0}),G]},[u("button",{type:"button",disabled:t,onClick:()=>v(d+1,!0)},[_?_():a.nextText||K("next")])])},y=()=>k.value.map(i=>u("li",{class:[U("item",{active:i.active,page:!0}),G]},[u("button",{type:"button","aria-current":i.active||void 0,onClick:()=>v(i.number,!0)},[l.page?l.page(i):i.text])]));return()=>u("nav",{role:"navigation",class:U()},[u("ul",{class:U("items")},[R(),a.mode==="simple"?C():y(),I()])])}});const ue=X(de);function he(a){return F.get("/api/Common/GetDeptAllList",a)}function me(a){return F.post("/api/Common/GetRoleList",a)}function _e(a,r){const l={page_index:a.page_index,page_size:a.page_size};return F.get("/api/UserRole/GetUserRoleList",{params:l,...r})}function fe(a,r){const l={id:a.id};return F.get("/api/UserRole/GetUserRoleInfo",{params:l,...r})}function ge(a,r){const l={keyword:a.keyword,page_index:a.page_index,page_size:a.page_size};return F.get("/api/UserRole/GetUserRoleSearch",{params:l,...r})}function xe(a,r){const l={userid:a.userid};return F.get("/api/UserRole/UserRoleIns",{params:l,...r})}function ve(a,r){return F.post("/api/UserRole/UserRoleSave",a,r)}const we={class:"w-full h-[55px] page bg-white"},be={__name:"page",props:{page_index:{type:Number,default:1},page_size:{type:Number,default:10},total:{type:Number,default:0}},emits:["pageChange"],setup(a,{expose:r,emit:l}){const e=a,k=$(1);function v(C){l("pageChange",C)}return r({currentPage:k}),(C,R)=>{const I=ue;return f(),b("div",we,[u(I,{onChange:v,modelValue:k.value,"onUpdate:modelValue":R[0]||(R[0]=y=>k.value=y),"total-items":e.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},ke=Z(be,[["__scopeId","data-v-151e55c8"]]),ye={class:"publicContainerNoPadding relative"},Pe={class:"w-full h-[calc(100%-155px)] p-3 overflow-y-auto"},Fe={class:"w-[80%] h-full"},Ce={class:"w-full h-[40px] p-1 flex items-center text-[17px]"},Re={class:"w-full min-h-1/2 p-1"},Ue=["onClick"],Ie=o("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[o("span",{class:"text-5"},"人员权限添加详情")],-1),Se=o("div",{class:"w-full h-3 bg-gray-200"},null,-1),Ve={class:"w-full h-auto bg-white"},Ee={class:"w-full min-h-[110px] p-4 flex justify-between text-[17px] flex-wrap"},Ne=o("div",{class:"h-[30px] w-[15%]"},"姓名:",-1),ze={class:"h-[30px] w-[85%]"},Ae=o("div",{class:"h-[30px] w-[15%]"},"工号:",-1),Be={class:"h-[30px] w-[85%]"},Ge=o("div",{class:"h-[30px] w-[15%]"},"部门:",-1),De={class:"h-[30px] w-[85%]"},$e=o("div",{class:"h-[30px] w-[15%]"},"岗位:",-1),Le={class:"h-[30px] w-[85%]"},Me=o("div",{class:"w-full h-3"},null,-1),je={class:"w-full h-auto bg-white"},Te=o("div",{class:"w-full h-10 p-4 pb-0"},"分管权限",-1),Ke={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Oe=o("div",{class:"w-full h-3"},null,-1),He={class:"w-full h-auto bg-white"},Je=o("div",{class:"w-full h-10 p-4 pb-0"},"分管部门",-1),We={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ye=o("div",{class:"w-full h-3 bg-gray-200"},null,-1),qe={class:"w-full h-full flex justify-between items-center p-3"},et={__name:"index",setup(a){const r=$(),l=$(),e=ee({searchParams:{page_index:1,page_size:10,keyword:""},total:0,observer:"",loading:!0,comment:{dept:[],user:[],deptId:[]},check:{userroleid:"",userid:"",usercard:"",username:"",dept:"",position_name:"",dept_list:[],role_list:[]},select:{showPopup:!1},fillInWork:{show:!1},data:[],initParams:{page_index:1,page_size:10}});function k(){T(()=>ve({...e.check,role_list:e.check.role_list.map(t=>({role_name:"",role_id:t})),dept_list:e.check.dept_list.map(t=>({name:"",id:t}))}).then(t=>(t.code===1&&(l.value.search!==""?m(l.value.search,e.searchParams.page_index):(d(e.initParams.page_index),r.value.currentPage=e.initParams.page_index),e.select.showPopup=!1),t)))}function v(t){e.check.dept_list.includes(t.id)?(e.check.dept_list.forEach((s,c)=>{s===t.id&&e.check.dept_list.splice(c,1)}),e.comment.dept.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")}),e.comment.deptId.forEach((s,c)=>{s===t.id&&e.comment.deptId.splice(c,1)})):(e.check.dept_list.push(t.id),e.comment.deptId.push(t.id),e.comment.dept.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")}))}function C(t){e.check.role_list.includes(t.id)?(e.check.role_list.forEach((s,c)=>{s===t.id&&e.check.role_list.splice(c,1,"")}),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")})):(e.check.role_list.push(t.id),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.role_list)}function R(){me().then(t=>{e.comment.user=t.response.map(s=>({...s,bg:"",cl:""}))})}function I(){he().then(t=>{e.comment.dept=t.response.map(s=>({...s,bg:"",cl:""}))})}function y(){return _e(e.initParams).then(t=>{e.data=t.response.data.map(s=>({...s})),e.total=t.response.data_count})}function i(t){l.value.search===""?(e.initParams.page_index=t,y()):(e.searchParams.page_index=t,m(l.value.search,t))}function d(t=""){l.value.search="",e.initParams={page_index:t||1,page_size:10},r.value.currentPage=1,y()}function m(t,s=1){l.value.search!==""&&(e.initParams.page_index!==1&&(r.value.currentPage=1,e.initParams.page_index=1),ge({...e.searchParams,keyword:t,page_index:s}).then(c=>{e.data=c.response.data.map(h=>({...h})),e.total=c.response.data_count}))}function _(t,s){let c={0:()=>{T(()=>xe({userid:s.userid}).then(h=>(h.code===1&&c[1](h.response),h)))},1:h=>{fe({id:s.userroleid||h}).then(p=>{let P=[],S=[];p.response.dept_list.map((n,w)=>{P.push(n.id)}),p.response.role_list.map((n,w)=>{S.push(n.role_id)}),e.comment.dept.map((n,w)=>(P.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),e.comment.user.map((n,w)=>(S.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),p.response.dept_list=P,p.response.role_list=S,e.check=p.response,p.code===1&&(e.select.showPopup=!0),console.log("🚀🚀🚀,",e.comment,p.response)})}};c[String(t)]()}return te(()=>{y(),R(),I()}),(t,s)=>{const c=re,h=oe,p=ie,P=le,S=ne;return f(),b(V,null,[o("div",ye,[u(ae,{class:"sticky top-0",title:"人员授权列表",ref_key:"headerInput",ref:l,onSearchFun:m,onReset:d,path:"/welcome"},null,512),o("div",Pe,[e.data.length===[]?(f(),A(c,{key:0,description:"暂无授权名单,请通过搜索添加"})):se("",!0),(f(!0),b(V,null,B(e.data,(n,w)=>(f(),b("div",{key:w,class:"w-full min-h-[90px] flex rounded-[10px] p-2 bg-white mb-3"},[o("div",Fe,[o("div",Ce,g(n.username)+" ("+g(n.usercard)+") ",1),o("div",Re,[(f(!0),b(V,null,B(n.dept_list,(N,O)=>(f(),A(h,{style:{padding:"6px",margin:"5px 5px 5px 0",color:"#1989f9","border-color":"#1989f9"},key:O,plain:"",hairline:"",size:"small",type:"primary"},{default:x(()=>[E(g(N.name),1)]),_:2},1024))),128))])]),o("div",{onClick:N=>_(+(n.userroleid!==null),n),class:"w-[20%] flex justify-center items-center text-[#1989f9]"},g(["添加","编辑"][+(n.userroleid!==null)]),9,Ue)]))),128))]),u(ke,{class:"absolute bottom-0",ref_key:"pageRef",ref:r,total:e.total,onPageChange:i},null,8,["total"])]),u(S,{show:e.select.showPopup,height:80,onActionPopUp:s[1]||(s[1]=()=>e.select.showPopup=!1)},{content:x(()=>[Ie,Se,(f(),b("div",{class:"w-full h-[calc(100%-121px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[o("div",Ve,[o("div",Ee,[Ne,o("div",ze,g(e.check.username),1),Ae,o("div",Be,g(e.check.usercard),1),Ge,o("div",De,g(e.check.dept),1),$e,o("div",Le,g(e.check.position_name),1)])]),Me,o("div",je,[Te,o("div",Ke,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.user,(n,w)=>(f(),A(h,{onClick:N=>C(n),style:j({margin:"5px",padding:"15px !important",borderColor:"#1989f9",height:"30px",background:n.bg,color:n.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(g(n.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])]),Oe,o("div",He,[Je,o("div",We,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.dept,(n,w)=>(f(),A(h,{onClick:N=>v(n),key:w,style:j({borderColor:"#1989f9",margin:"5px",padding:"15px !important",height:"30px",background:n.bg,color:n.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(g(n.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Ye])),u(P,null,{default:x(()=>[o("div",qe,[u(h,{round:"",class:"w-[30%]",onClick:s[0]||(s[0]=n=>e.select.showPopup=!1)},{default:x(()=>[E("取消")]),_:1}),u(h,{type:"primary",round:"",class:"w-[64%]",onClick:k},{default:x(()=>[E("确定")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}};export{et as default};
import{c as r,a as e,F as c,u as s,o as _,w as m,N as i}from"./index-hukuK2LI.js";import{E as l}from"./index-DmusXBfp.js";const k={__name:"index",setup(p){const t=s(),a=()=>t.back();return(u,f)=>{const n=i,o=l;return _(),r(c,null,[e(n,{"left-text":"返回","left-arrow":"",onClickLeft:a}),e(o,{image:m,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{k as default};
import{z as s,as as t}from"./index-DtrFZOnZ.js";const i=s(t);export{i as P};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
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};
:root{--van-pagination-height: 40px;--van-pagination-font-size: var(--van-font-size-md);--van-pagination-item-width: 36px;--van-pagination-item-default-color: var(--van-primary-color);--van-pagination-item-disabled-color: var(--van-gray-7);--van-pagination-item-disabled-background: var(--van-background);--van-pagination-background: var(--van-background-2);--van-pagination-desc-color: var(--van-gray-7);--van-pagination-disabled-opacity: var(--van-disabled-opacity)}.van-pagination{font-size:var(--van-pagination-font-size)}.van-pagination__items{display:-webkit-box;display:-ms-flexbox;display:flex}.van-pagination__item,.van-pagination__page-desc{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.van-pagination__item{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;min-width:var(--van-pagination-item-width);height:var(--van-pagination-height);color:var(--van-pagination-item-default-color);background:var(--van-pagination-background);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.van-pagination__item button{-webkit-box-flex:1;-ms-flex:1;flex:1;height:100%;border:none;padding:0;background:transparent}.van-pagination__item button[disabled]{cursor:not-allowed}.van-pagination__item:active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item:not(:last-child):after{border-right-width:0}.van-pagination__item--active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item--page{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0}.van-pagination__item--prev,.van-pagination__item--next{padding:0 var(--van-padding-base);cursor:pointer}.van-pagination__item--border:first-child:after{border-right-width:var(--van-border-width)}.van-pagination__item--disabled,.van-pagination__item--disabled:active{color:var(--van-pagination-item-disabled-color);background-color:var(--van-pagination-item-disabled-background);opacity:var(--van-pagination-disabled-opacity)}.van-pagination__page-desc{-webkit-box-flex:1;-ms-flex:1;flex:1;height:var(--van-pagination-height);color:var(--van-pagination-desc-color)}.page[data-v-f36f3121]{--van-pagination-height: 55px }.select{margin:5px 5px 5px 0;background:#1e90ff;color:#fff!important}.unselected{margin:5px 5px 5px 0}
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
.van-space{display:inline-flex}.van-space--horizontal .van-space-item{display:flex;align-items:center}.van-space--vertical{flex-direction:column}.van-space--align-baseline{align-items:baseline}.van-space--align-start{align-items:flex-start}.van-space--align-end{align-items:flex-end}.van-space--align-center{align-items:center}.van-space--wrap{flex-wrap:wrap}.van-space--fill{display:flex}
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{h as R,s as X,i as Z,j as ee,k as te,m as y,l as ne,r as se,n as ie,p as D,q as G,t as ae,a as r,v as re,x as oe,y as le,z as N,A as M,B as me,b as de,D as ce,c as k,E as a,H as v,I as T,F as A,J as Y,d as l,K as I,M as ue,O as _e,o as m,P as pe,Q as fe,R as we,T as he,U as xe,V as C,e as V,W as ge,X as H,Y as ye,Z as ke,$ as ve,a0 as Te,a1 as Ce,a2 as Se,a3 as be}from"./index-hukuK2LI.js";const U=R(X),[Pe]=Z("time-picker"),L=s=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(s),Me=["hour","minute","second"],$e=ee({},te,{minHour:y(0),maxHour:y(23),minMinute:y(0),maxMinute:y(59),minSecond:y(0),maxSecond:y(59),minTime:{type:String,validator:L},maxTime:{type:String,validator:L},columnsType:{type:Array,default:()=>["hour","minute"]},filter:Function});var Oe=ne({name:Pe,props:$e,emits:["confirm","cancel","change","update:modelValue"],setup(s,{emit:p,slots:e}){const d=se(s.modelValue),$=i=>{const f=i.split(":");return Me.map((h,x)=>s.columnsType.includes(h)?f[x]:"00")},S=ie(()=>{let{minHour:i,maxHour:f,minMinute:h,maxMinute:x,minSecond:b,maxSecond:P}=s;if(s.minTime||s.maxTime){const c={hour:0,minute:0,second:0};s.columnsType.forEach((_,g)=>{var w;c[_]=(w=d.value[g])!=null?w:0});const{hour:t,minute:n}=c;if(s.minTime){const[_,g,w]=$(s.minTime);i=_,h=+t<=+i?g:"00",b=+t<=+i&&+n<=+h?w:"00"}if(s.maxTime){const[_,g,w]=$(s.maxTime);f=_,x=+t>=+f?g:"59",P=+t>=+f&&+n>=+x?w:"59"}}return s.columnsType.map(c=>{const{filter:t,formatter:n}=s;switch(c){case"hour":return N(+i,+f,c,n,t,d.value);case"minute":return N(+h,+x,c,n,t,d.value);case"second":return N(+b,+P,c,n,t,d.value);default:return[]}})});D(d,i=>{G(i,s.modelValue)||p("update:modelValue",i)}),D(()=>s.modelValue,i=>{i=ae(i,S.value),G(i,d.value)||(d.value=i)},{immediate:!0});const j=(...i)=>p("change",...i),B=(...i)=>p("cancel",...i),F=(...i)=>p("confirm",...i);return()=>r(U,re({modelValue:d.value,"onUpdate:modelValue":i=>d.value=i,columns:S.value,onChange:j,onCancel:B,onConfirm:F},oe(s,le)),e)}});const Ve=R(Oe);function je(s){return M.get("/api/Collect/GetCollectList",s)}function Be(s){return M.get("/api/Common/GetMenuRole",s)}function Fe(s){return M.get("/api/PlanProject/GetPlanProjectByMyList",s)}function Ne(s){return M.get("/api/SysConfig/SysConfigInit",s)}function Ae(s,p){return M.post("/api/SysConfig/SysConfigSave",s,p)}const Ie={class:"publicContainer"},Ke={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},We={key:1,class:"w-full h-[25px] text-[18px] text-[#646566] flex items-center mb-1"},De=["src"],Ge=a("div",{class:"w-full h-[10px]"},null,-1),Ye=["src"],He=["src"],Le=["src"],Re=a("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[a("span",{class:"text-5 text-[#8D8D8D]"},"填报配置")],-1),Ue=a("div",{class:"w-full h-3"},null,-1),Ee=a("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),ze={class:"w-full h-full flex justify-end flex-wrap"},qe=a("div",{class:"w-full h-full"},"重复提醒时间",-1),Je={class:"w-full h-full flex overflow-x-auto"},Qe={class:"text-blue-500"},Xe=["onClick"],Ze=a("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),et={class:"w-full h-full flex justify-end"},st={__name:"index",setup(s,{expose:p}){const e=me({getWeekOrTimeKey:"",columns:[{text:"星期一",value:"星期一"},{text:"星期二",value:"星期二"},{text:"星期三",value:"星期三"},{text:"星期四",value:"星期四"},{text:"星期五",value:"星期五"},{text:"星期六",value:"星期六"},{text:"星期日",value:"星期日"}],loading:!1,search:{date:""},select:{weekShow:!1,timeShow:!1,showPopup:!1},paramsTransfers:{configid:"1",date:[],semester_date_begin:"2024-01-02",semester_date_end:"2024-06-03",period_remind_time:"",period_remind_week:"",nowrite_remind_isCheck:"",nowrite_remind_time:[],ahead_write:"",write_remind_week:"",write_remind_time:""},params:{configid:"",semester_date_begin:"",semester_date_end:"",period_remind:"",nowrite_remind:"",ahead_write:"",write_remind:""},date:{show:!1},role:{plan_write:"0",examine:"0",userrole:"0",write_sysconfig:"0"},data:{mySchedule:{},myFocus:[]}});function d(t){e.paramsTransfers.semester_date_begin=H(t[0]).format("YYYY/MM/DD"),e.paramsTransfers.semester_date_end=H(t[1]).format("YYYY/MM/DD"),e.date.show=!1}function $(){Fe().then(t=>{t.response?e.data.mySchedule=t.response:e.data.mySchedule={}})}function S(){je().then(t=>{e.data.myFocus=t.response})}function j(){Be().then(t=>{e.role=t.response})}function B(){ye(()=>Ae({configid:e.paramsTransfers.configid,semester_date_begin:e.paramsTransfers.semester_date_begin,semester_date_end:e.paramsTransfers.semester_date_end,period_remind:e.paramsTransfers.period_remind_week+"|"+e.paramsTransfers.period_remind_time,nowrite_remind:String(Number(e.paramsTransfers.nowrite_remind_isCheck))+String(String(e.paramsTransfers.nowrite_remind_time.map(t=>"|"+t)).split(",").join("")),ahead_write:String(Number(e.paramsTransfers.ahead_write)),write_remind:e.paramsTransfers.write_remind_week+"|"+e.paramsTransfers.write_remind_time}).then(t=>(t.code===1&&c(),t)))}function F(){e.select.showPopup=!1}function i(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function f(t){e.paramsTransfers.nowrite_remind_time.splice(t,1)}function h({selectedValues:t,selectedOptions:n,selectedIndexes:_}){e.getWeekOrTimeKey==="nowrite_remind_time"?e.paramsTransfers[e.getWeekOrTimeKey].push(t[0]+":"+t[1]):e.paramsTransfers[e.getWeekOrTimeKey]=t[0]+":"+t[1],e.select.timeShow=!1}function x({selectedValues:t,selectedOptions:n,selectedIndexes:_}){e.paramsTransfers[e.getWeekOrTimeKey]=t[0],e.select.weekShow=!1}function b(t){e.select.weekShow=!0,e.getWeekOrTimeKey=t}function P(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function c(){e.select.showPopup=!0,e.loading=!0,Ne().then(t=>{e.paramsTransfers={configid:t.response.configid,date:[],semester_date_begin:t.response.semester_date_begin.split(" ")[0],semester_date_end:t.response.semester_date_end.split(" ")[0],period_remind_time:t.response.period_remind.split("|")[1],period_remind_week:t.response.period_remind.split("|")[0],nowrite_remind_isCheck:!!Number(t.response.nowrite_remind.split("|")[0]),nowrite_remind_time:t.response.nowrite_remind.split("|").filter(n=>n!=0&&n!=1&&Number(n)!=0&&Number(n)!=1),ahead_write:!!Number(t.response.ahead_write),write_remind_week:t.response.write_remind.split("|")[0],write_remind_time:t.response.write_remind.split("|")[1]}}).finally(()=>{e.loading=!1})}return de(()=>{$(),S(),j()}),p({GetCollectList:S}),(t,n)=>{const _=ke,g=ue,w=ve,u=_e,E=Te,K=ce("el-switch"),z=Ce,W=Se,q=be,J=Ve,Q=U;return m(),k(A,null,[a("div",Ie,[r(_),a("div",Ke,[Object.keys(e.data.mySchedule).length?(m(),v(g,{key:0,data:e.data.mySchedule},null,8,["data"])):T("",!0),e.data.myFocus.length?(m(),k("div",We," 我的关注 ")):T("",!0),(m(!0),k(A,null,Y(e.data.myFocus,(o,O)=>(m(),v(w,{attentionButtonIdentifier:"index",key:O,alldayOrMidafternoonStatus:!!Number(o.is_allday),data:o},null,8,["alldayOrMidafternoonStatus","data"]))),128)),e.role.plan_write==1?(m(),v(u,{key:2,class:"rounded-[8px] mt-[10px] h-[50px] text-[17px] flex items-center",title:"工作安排填报","is-link":"",to:"/workArrangementFilling"},{icon:l(()=>[a("img",{src:pe,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,De)]),_:1})):T("",!0),Ge,e.role.examine==1?(m(),v(u,{key:3,class:"rounded-t-[8px] h-[50px] text-[17px] flex items-center",title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"},{icon:l(()=>[a("img",{src:fe,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,Ye)]),_:1})):T("",!0),e.role.userrole==1?(m(),v(u,{key:4,class:"h-[50px] flex text-[17px] items-center",title:"人员授权","is-link":"",to:"/personnelAuthority"},{icon:l(()=>[a("img",{src:we,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,He)]),_:1})):T("",!0),e.role.write_sysconfig==1?(m(),v(u,{key:5,class:"rounded-b-[8px] text-[17px] h-[50px] flex items-center",onClick:c,title:"填报配置","is-link":""},{icon:l(()=>[a("img",{src:he,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,Le)]),_:1})):T("",!0)])]),r(I,{show:e.select.showPopup,height:60,onActionPopUp:n[9]||(n[9]=()=>e.select.showPopup=!1)},{content:l(()=>[(m(),k("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative overflow-y-auto",key:e.calendarKey},[r(xe,{show:e.loading},null,8,["show"]),Re,Ue,r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"学期范围",onClick:n[0]||(n[0]=o=>e.date.show=!0)},{default:l(()=>[a("span",null,C(e.paramsTransfers.semester_date_begin+" - "+e.paramsTransfers.semester_date_end),1)]),_:1}),r(E,{type:"range",show:e.date.show,"onUpdate:show":n[1]||(n[1]=o=>e.date.show=o),onConfirm:d},null,8,["show"]),r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报刷新周期"},{value:l(()=>[V(" 每周"),a("span",{class:"text-blue-500 mr-2",onClick:n[2]||(n[2]=o=>b("period_remind_week"))},"["+C(e.paramsTransfers.period_remind_week)+"]",1),a("span",{onClick:n[3]||(n[3]=o=>P("period_remind_time")),class:"text-blue-500"},"["+C(e.paramsTransfers.period_remind_time)+"]",1)]),_:1}),Ee,r(u,{inset:"",title:"未填写提醒",class:"w-full h-[45px] bg-white flex items-center"},{value:l(()=>[a("div",ze,[r(K,{modelValue:e.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":n[4]||(n[4]=o=>e.paramsTransfers.nowrite_remind_isCheck=o),size:"large","inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),r(u,{onClick:n[5]||(n[5]=o=>i("nowrite_remind_time")),"is-link":"",class:"w-full h-[45px] bg-white flex items-center"},{title:l(()=>[qe]),value:l(()=>[a("div",Je,[(m(!0),k(A,null,Y(e.paramsTransfers.nowrite_remind_time,(o,O)=>(m(),k("div",{class:"w-20 flex justify-start items-center m-1",key:O},[a("span",Qe,"["+C(o)+"]",1),a("div",{onClick:ge(tt=>f(O),["stop"]),class:"ml-2 w-[15px] h-[15px] ccFlex text-blue-500"},[r(z,{class:"text-red-600",name:"cross"})],8,Xe)]))),128))])]),_:1}),Ze,r(u,{inset:"",title:"提前填写",class:"w-full h-[45px] bg-white flex items-center"},{default:l(()=>[a("div",et,[r(K,{modelValue:e.paramsTransfers.ahead_write,"onUpdate:modelValue":n[6]||(n[6]=o=>e.paramsTransfers.ahead_write=o),size:"large","inline-prompt":"","active-text":"允许","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报情况提醒"},{value:l(()=>[V(" 每周"),a("span",{class:"text-blue-500 mr-2",onClick:n[7]||(n[7]=o=>b("write_remind_week"))},"["+C(e.paramsTransfers.write_remind_week)+"]",1),a("span",{onClick:n[8]||(n[8]=o=>P("write_remind_time")),class:"text-blue-500"},"["+C(e.paramsTransfers.write_remind_time)+"]",1)]),_:1})])),r(q,null,{default:l(()=>[r(W,{round:"",class:"w-[32%]",onClick:F},{default:l(()=>[V("关闭")]),_:1}),r(W,{type:"primary",round:"",class:"w-[60%]",onClick:B},{default:l(()=>[V("保存")]),_:1})]),_:1})]),_:1},8,["show"]),r(I,{show:e.select.timeShow,height:60,close:!1},{content:l(()=>[r(J,{onConfirm:h,onCancel:n[10]||(n[10]=o=>e.select.timeShow=!1),title:"选择时间"})]),_:1},8,["show"]),r(I,{show:e.select.weekShow,height:60,close:!1},{content:l(()=>[r(Q,{title:"请选择日期",columns:e.columns,onConfirm:x,onCancel:n[11]||(n[11]=o=>e.select.weekShow=!1)},null,8,["columns"])]),_:1},8,["show"])],64)}}};export{st as default};
import{i as G,j as V,s as H,m as x,k as Y,r as X,l as $,n as J,p as L,q as ee,a as o,t as ie,v as ne,x as te,y as _,z as se,b as P,A as re,d as oe,B as ae,c as z,D as r,E as q,w as a,H as j,I as F,F as U,J as R,K as le,o as v,M as me,O as y,e as T,P as de,Q as fe,R as B,T as ce,U as ue,V as pe,W as ke,X as Ae}from"./index-DtrFZOnZ.js";import{P as D}from"./index-D5lLNa4L.js";const[we]=G("time-picker"),N=t=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(t),ve=["hour","minute","second"],xe=V({},H,{minHour:x(0),maxHour:x(23),minMinute:x(0),maxMinute:x(59),minSecond:x(0),maxSecond:x(59),minTime:{type:String,validator:N},maxTime:{type:String,validator:N},columnsType:{type:Array,default:()=>["hour","minute"]},filter:Function});var ye=Y({name:we,props:xe,emits:["confirm","cancel","change","update:modelValue"],setup(t,{emit:u,slots:e}){const d=X(t.modelValue),M=s=>{const p=s.split(":");return ve.map((A,k)=>t.columnsType.includes(A)?p[k]:"00")},S=$(()=>{let{minHour:s,maxHour:p,minMinute:A,maxMinute:k,minSecond:g,maxSecond:h}=t;if(t.minTime||t.maxTime){const n={hour:0,minute:0,second:0};t.columnsType.forEach((l,w)=>{var c;n[l]=(c=d.value[w])!=null?c:0});const{hour:i,minute:f}=n;if(t.minTime){const[l,w,c]=M(t.minTime);s=l,A=+i<=+s?w:"00",g=+i<=+s&&+f<=+A?c:"00"}if(t.maxTime){const[l,w,c]=M(t.maxTime);p=l,k=+i>=+p?w:"59",h=+i>=+p&&+f>=+k?c:"59"}}return t.columnsType.map(n=>{const{filter:i,formatter:f}=t;switch(n){case"hour":return _(+s,+p,n,f,i,d.value);case"minute":return _(+A,+k,n,f,i,d.value);case"second":return _(+g,+h,n,f,i,d.value);default:return[]}})});J(d,s=>{L(s,t.modelValue)||u("update:modelValue",s)}),J(()=>t.modelValue,s=>{s=ee(s,S.value),L(s,d.value)||(d.value=s)},{immediate:!0});const b=(...s)=>u("change",...s),C=(...s)=>u("cancel",...s),E=(...s)=>u("confirm",...s);return()=>o(D,ie({modelValue:d.value,"onUpdate:modelValue":s=>d.value=s,columns:S.value,onChange:b,onCancel:C,onConfirm:E},ne(t,te)),e)}});const ge=se(ye),he="data:image/png;base64,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",Me="data:image/png;base64,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",Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAMAAACdUboEAAADAFBMVEVHcEywovyrmvqijPiehfeafvaXevWcgvagifimkfmunvuvoPupl/qkjviypfynk/molfq0p/22q/2Vd/WsnPuRcfSun/yTc/Snk/mUdfS4rv6afvaxo/ytnPu1qf21qv2ypf24rv6bgfarmvuRcfSun/uWePWSc/SxpPyehfeXe/Wehfegifipl/qlkfmSc/Sii/ihi/iTc/Saf/aZffa3rP6bgPa3rP63rP61qv6ScvSRcfSfhviolfqXevW0qP2mkvqolfqgifijjPixovy4rv6WefWYfPaYfPa3rP6ZffaZffaii/i2q/6unvuScvSQcPOlkPmpl/qijPi2rP6fhvedg/e0qf20qf22qv23rf64r/6ql/qVd/WmkfmRcvSTc/SagPapl/qhifiqmPuwovyjjvmunvukj/molfqkj/mfh/emkvmvoPymkvmSc/Sypfy4rv6hivizpvycgvaZffaun/ufh/eVd/SUdfSlkPmxo/yrmvuolfqii/iypPylkPmgh/eScfSafvavn/u5sP6wofyXevWUdfSfhveafvaii/iql/qlkfmmkfmgifiWd/WVd/SolPqqmPq0qP21qf2WePWbgPaYe/WbgPa1qf22q/22q/22rP22q/6bgPaTdPSZfvaRcfOdg/aQcPOhivimkvmehfehiviTdPSypfyrmvqScvO4rv6dhPexpPymkvm4rv6kjviwovydhPe3rP24r/65r/64rv63rf2Ye/WXevWypfyYe/WzpvyXevW0qP21qv2qmPqtnfuun/usm/uaf/aehfegiPemkvmijPizp/yTdPSlkPmWefWwovyVd/Sxo/y1qf2ZffWUdvSvoPufhveWePW2rP2wofurmvqcg/abgfafh/edg/anlPmVePSolvqkjvihivijjviii/ink/mpl/qTc/SVdvSxpPyScvOYfPWUdfSZfvW3rP2cgfaunvuZfvaqmfqrmfqsnPubgPadhPeolfmlkfmkj/ihife4rv63rf23rf6QcPPWU7z4AAAAvHRSTlMAMzMzMzMzMzMzMzMzMzMzMzMzMzMzDTMDMzNAQEBAGh9Amc2AzZkQzRMaQEAlEB8wIJkGmRANJDATMPGZCsCZQGYWgIDxTiXzLWYuLQZN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";function ze(t){return P.get("/api/Collect/GetCollectList",t)}function Te(t){return P.get("/api/Common/GetMenuRole",t)}function Pe(t){return P.get("/api/SysConfig/SysConfigInit",t)}function be(t,u){return P.post("/api/SysConfig/SysConfigSave",t,u)}const Ce={class:"publicContainer"},Ee={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},_e=["src"],qe=["src"],je=["src"],Fe={class:"w-full h-full flex justify-end flex-wrap"},Ie={class:"w-full h-full flex overflow-x-auto"},Qe={class:"text-blue-500"},Je=["onClick"],Le={class:"w-full h-full flex justify-end"},Ne={__name:"index",setup(t,{expose:u}){const e=re({getWeekOrTimeKey:"",columns:[{text:"星期一",value:"星期一"},{text:"星期二",value:"星期二"},{text:"星期三",value:"星期三"},{text:"星期四",value:"星期四"},{text:"星期五",value:"星期五"},{text:"星期六",value:"星期六"},{text:"星期日",value:"星期日"}],loading:!1,search:{date:""},select:{weekShow:!1,timeShow:!1,showPopup:!1},paramsTransfers:{configid:"1",date:[],semester_date_begin:"2024-01-02",semester_date_end:"2024-06-03",period_remind_time:"",period_remind_week:"",nowrite_remind_isCheck:"",nowrite_remind_time:[],ahead_write:"",write_remind_week:"",write_remind_time:""},params:{configid:"",semester_date_begin:"",semester_date_end:"",period_remind:"",nowrite_remind:"",ahead_write:"",write_remind:""},date:{show:!1},role:{plan_write:"0",examine:"0",userrole:"0",write_sysconfig:"0"},data:{mySchedule:{},myFocus:[]}});function d(n){e.paramsTransfers.semester_date_begin=B(n[0]).format("YYYY/MM/DD"),e.paramsTransfers.semester_date_end=B(n[1]).format("YYYY/MM/DD"),e.date.show=!1}function M(){ze().then(n=>{e.data.myFocus=n.response})}function S(){R(()=>Te().then(n=>(e.role=n.response,n)),!0,"加载中...")}function b(){R(()=>be({configid:e.paramsTransfers.configid,semester_date_begin:e.paramsTransfers.semester_date_begin,semester_date_end:e.paramsTransfers.semester_date_end,period_remind:e.paramsTransfers.period_remind_week+"|"+e.paramsTransfers.period_remind_time,nowrite_remind:String(Number(e.paramsTransfers.nowrite_remind_isCheck))+String(String(e.paramsTransfers.nowrite_remind_time.map(n=>"|"+n)).split(",").join("")),ahead_write:String(Number(e.paramsTransfers.ahead_write)),write_remind:e.paramsTransfers.write_remind_week+"|"+e.paramsTransfers.write_remind_time}).then(n=>(n.code===1&&h(),n)))}function C(){e.select.showPopup=!1}function E(n){e.select.timeShow=!0,e.getWeekOrTimeKey=n}function s(n){e.paramsTransfers.nowrite_remind_time.splice(n,1)}function p({selectedValues:n,selectedOptions:i,selectedIndexes:f}){e.getWeekOrTimeKey==="nowrite_remind_time"?e.paramsTransfers[e.getWeekOrTimeKey].push(n[0]+":"+n[1]):e.paramsTransfers[e.getWeekOrTimeKey]=n[0]+":"+n[1],e.select.timeShow=!1}function A({selectedValues:n,selectedOptions:i,selectedIndexes:f}){e.paramsTransfers[e.getWeekOrTimeKey]=n[0],e.select.weekShow=!1}function k(n){e.select.weekShow=!0,e.getWeekOrTimeKey=n}function g(n){e.select.timeShow=!0,e.getWeekOrTimeKey=n}function h(){e.select.showPopup=!0,e.loading=!0,Pe().then(n=>{e.paramsTransfers={configid:n.response.configid,date:[],semester_date_begin:n.response.semester_date_begin.split(" ")[0],semester_date_end:n.response.semester_date_end.split(" ")[0],period_remind_time:n.response.period_remind.split("|")[1],period_remind_week:n.response.period_remind.split("|")[0],nowrite_remind_isCheck:!!Number(n.response.nowrite_remind.split("|")[0]),nowrite_remind_time:n.response.nowrite_remind.split("|").filter(i=>i!=0&&i!=1&&Number(i)!=0&&Number(i)!=1),ahead_write:!!Number(n.response.ahead_write),write_remind_week:n.response.write_remind.split("|")[0],write_remind_time:n.response.write_remind.split("|")[1]}}).finally(()=>{e.loading=!1})}return oe(()=>{S()}),u({GetCollectList:M}),(n,i)=>{const f=ce,l=le,w=ue,c=ae("el-switch"),O=pe,I=ke,W=Ae,K=ge,Z=D;return v(),z(U,null,[r("div",Ce,[o(f),r("div",Ee,[e.role.examine==1?(v(),q(l,{key:0,class:"rounded-t-[8px] h-[50px] text-[17px] flex items-center",title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"},{icon:a(()=>[r("img",{src:he,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,_e)]),_:1})):j("",!0),e.role.userrole==1?(v(),q(l,{key:1,class:"h-[50px] flex text-[17px] items-center",title:"人员授权","is-link":"",to:"/personnelAuthority"},{icon:a(()=>[r("img",{src:Me,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,qe)]),_:1})):j("",!0),e.role.write_sysconfig==1?(v(),q(l,{key:2,class:"rounded-b-[8px] text-[17px] h-[50px] flex items-center",onClick:h,title:"填报配置","is-link":""},{icon:a(()=>[r("img",{src:Se,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,je)]),_:1})):j("",!0)])]),o(F,{show:e.select.showPopup,height:60,onActionPopUp:i[9]||(i[9]=()=>e.select.showPopup=!1)},{content:a(()=>[(v(),z("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative overflow-y-auto",key:e.calendarKey},[o(me,{show:e.loading},null,8,["show"]),i[15]||(i[15]=r("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[r("span",{class:"text-5 text-[#8D8D8D]"},"填报配置")],-1)),i[16]||(i[16]=r("div",{class:"w-full h-3"},null,-1)),o(l,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"学期范围",onClick:i[0]||(i[0]=m=>e.date.show=!0)},{default:a(()=>[r("span",null,y(e.paramsTransfers.semester_date_begin+" - "+e.paramsTransfers.semester_date_end),1)]),_:1}),o(w,{type:"range",show:e.date.show,"onUpdate:show":i[1]||(i[1]=m=>e.date.show=m),onConfirm:d},null,8,["show"]),o(l,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报刷新周期"},{value:a(()=>[i[12]||(i[12]=T(" 每周")),r("span",{class:"text-blue-500 mr-2",onClick:i[2]||(i[2]=m=>k("period_remind_week"))},"["+y(e.paramsTransfers.period_remind_week)+"]",1),r("span",{onClick:i[3]||(i[3]=m=>g("period_remind_time")),class:"text-blue-500"},"["+y(e.paramsTransfers.period_remind_time)+"]",1)]),_:1}),i[17]||(i[17]=r("div",{class:"w-full h-[10px] bg-gray-200"},null,-1)),o(l,{inset:"",title:"未填写提醒",class:"w-full h-[45px] bg-white flex items-center"},{value:a(()=>[r("div",Fe,[o(c,{modelValue:e.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":i[4]||(i[4]=m=>e.paramsTransfers.nowrite_remind_isCheck=m),size:"large","inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),o(l,{onClick:i[5]||(i[5]=m=>E("nowrite_remind_time")),"is-link":"",class:"w-full h-[45px] bg-white flex items-center"},{title:a(()=>i[13]||(i[13]=[r("div",{class:"w-full h-full"},"重复提醒时间",-1)])),value:a(()=>[r("div",Ie,[(v(!0),z(U,null,de(e.paramsTransfers.nowrite_remind_time,(m,Q)=>(v(),z("div",{class:"w-20 flex justify-start items-center m-1",key:Q},[r("span",Qe,"["+y(m)+"]",1),r("div",{onClick:fe(Ue=>s(Q),["stop"]),class:"ml-2 w-[15px] h-[15px] ccFlex text-blue-500"},[o(O,{class:"text-red-600",name:"cross"})],8,Je)]))),128))])]),_:1}),i[18]||(i[18]=r("div",{class:"w-full h-[10px] bg-gray-200"},null,-1)),o(l,{inset:"",title:"提前填写",class:"w-full h-[45px] bg-white flex items-center"},{default:a(()=>[r("div",Le,[o(c,{modelValue:e.paramsTransfers.ahead_write,"onUpdate:modelValue":i[6]||(i[6]=m=>e.paramsTransfers.ahead_write=m),size:"large","inline-prompt":"","active-text":"允许","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),o(l,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报情况提醒"},{value:a(()=>[i[14]||(i[14]=T(" 每周")),r("span",{class:"text-blue-500 mr-2",onClick:i[7]||(i[7]=m=>k("write_remind_week"))},"["+y(e.paramsTransfers.write_remind_week)+"]",1),r("span",{onClick:i[8]||(i[8]=m=>g("write_remind_time")),class:"text-blue-500"},"["+y(e.paramsTransfers.write_remind_time)+"]",1)]),_:1})])),o(W,null,{default:a(()=>[o(I,{round:"",class:"w-[32%]",onClick:C},{default:a(()=>i[19]||(i[19]=[T("关闭")])),_:1}),o(I,{type:"primary",round:"",class:"w-[60%]",onClick:b},{default:a(()=>i[20]||(i[20]=[T("保存")])),_:1})]),_:1})]),_:1},8,["show"]),o(F,{show:e.select.timeShow,height:60,close:!1},{content:a(()=>[o(K,{onConfirm:p,onCancel:i[10]||(i[10]=m=>e.select.timeShow=!1),title:"选择时间"})]),_:1},8,["show"]),o(F,{show:e.select.weekShow,height:60,close:!1},{content:a(()=>[o(Z,{title:"请选择日期",columns:e.columns,onConfirm:A,onCancel:i[11]||(i[11]=m=>e.select.weekShow=!1)},null,8,["columns"])]),_:1},8,["show"])],64)}}};export{Ne as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
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};
:root{--van-empty-padding: var(--van-padding-xl) 0;--van-empty-image-size: 160px;--van-empty-description-margin-top: var(--van-padding-md);--van-empty-description-padding: 0 60px;--van-empty-description-color: var(--van-text-color-2);--van-empty-description-font-size: var(--van-font-size-md);--van-empty-description-line-height: var(--van-line-height-md);--van-empty-bottom-margin-top: 24px}.van-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-empty-padding)}.van-empty__image{width:var(--van-empty-image-size);height:var(--van-empty-image-size)}.van-empty__image img{width:100%;height:100%}.van-empty__description{margin-top:var(--van-empty-description-margin-top);padding:var(--van-empty-description-padding);color:var(--van-empty-description-color);font-size:var(--van-empty-description-font-size);line-height:var(--van-empty-description-line-height)}.van-empty__bottom{margin-top:var(--van-empty-bottom-margin-top)}.van-theme-dark .van-empty{opacity:.5} :root{--van-empty-padding: var(--van-padding-xl) 0;--van-empty-image-size: 160px;--van-empty-description-margin-top: var(--van-padding-md);--van-empty-description-padding: 0 60px;--van-empty-description-color: var(--van-text-color-2);--van-empty-description-font-size: var(--van-font-size-md);--van-empty-description-line-height: var(--van-line-height-md);--van-empty-bottom-margin-top: 24px}.van-empty{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:var(--van-empty-padding)}.van-empty__image{width:var(--van-empty-image-size);height:var(--van-empty-image-size)}.van-empty__image img{width:100%;height:100%}.van-empty__description{margin-top:var(--van-empty-description-margin-top);padding:var(--van-empty-description-padding);color:var(--van-empty-description-color);font-size:var(--van-empty-description-font-size);line-height:var(--van-empty-description-line-height)}.van-empty__bottom{margin-top:var(--van-empty-bottom-margin-top)}.van-theme-dark .van-empty{opacity:.5}
.aaa[data-v-97360cea]{writing-mode:vertical-lr}.xxx[data-v-97360cea]{z-index:99999;transform:translateZ(1001000px)}[data-v-97360cea] .el-radio-button__original-radio:checked+.el-radio-button__inner{background-color:#fff;border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-bg-color,var(--el-color-primary))}
.van-space{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.van-space--horizontal .van-space-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.van-space--vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.van-space--align-baseline{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}.van-space--align-start{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.van-space--align-end{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.van-space--align-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.van-space--wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.van-space--fill{display:-webkit-box;display:-ms-flexbox;display:flex}
import{i as H,ad as J,m as V,ae as K,af as j,k as X,l as M,ag as q,a as u,ah as D,ai as Q,z as Y,b as P,_ as Z,r as L,o as h,c as b,A as ee,d as te,D as o,E as A,H as se,F as z,P as B,w as x,J as G,I as ne,aj as ae,O as _,e as E,a6 as T,W as oe,X as le}from"./index-DtrFZOnZ.js";import{S as ie}from"./index-lP7qBMDn.js";import{E as re}from"./index-CqSFBrWc.js";const[pe,R,O]=H("pagination"),$=(a,r,l)=>({number:a,text:r,active:l}),ce={mode:J("multi"),prevText:String,nextText:String,pageCount:V(0),modelValue:K(0),totalItems:V(0),showPageSize:V(5),itemsPerPage:V(10),forceEllipses:Boolean,showPrevButton:j,showNextButton:j};var de=X({name:pe,props:ce,emits:["change","update:modelValue"],setup(a,{emit:r,slots:l}){const t=M(()=>{const{pageCount:i,totalItems:d,itemsPerPage:f}=a,g=+i||Math.ceil(+d/+f);return Math.max(1,g)}),U=M(()=>{const i=[],d=t.value,f=+a.showPageSize,{modelValue:g,forceEllipses:s}=a;let e=1,p=d;const m=f<d;m&&(e=Math.max(g-Math.floor(f/2),1),p=e+f-1,p>d&&(p=d,e=p-f+1));for(let c=e;c<=p;c++){const y=$(c,c,c===g);i.push(y)}if(m&&f>0&&s){if(e>1){const c=$(e-1,"...");i.unshift(c)}if(p<d){const c=$(p+1,"...");i.push(c)}}return i}),v=(i,d)=>{i=Q(i,1,t.value),a.modelValue!==i&&(r("update:modelValue",i),d&&r("change",i))};q(()=>v(a.modelValue));const I=()=>u("li",{class:R("page-desc")},[l.pageDesc?l.pageDesc():`${a.modelValue}/${t.value}`]),F=()=>{const{mode:i,modelValue:d,showPrevButton:f}=a;if(!f)return;const g=l["prev-text"],s=d===1;return u("li",{class:[R("item",{disabled:s,border:i==="simple",prev:!0}),D]},[u("button",{type:"button",disabled:s,onClick:()=>v(d-1,!0)},[g?g():a.prevText||O("prev")])])},C=()=>{const{mode:i,modelValue:d,showNextButton:f}=a;if(!f)return;const g=l["next-text"],s=d===t.value;return u("li",{class:[R("item",{disabled:s,border:i==="simple",next:!0}),D]},[u("button",{type:"button",disabled:s,onClick:()=>v(d+1,!0)},[g?g():a.nextText||O("next")])])},k=()=>U.value.map(i=>u("li",{class:[R("item",{active:i.active,page:!0}),D]},[u("button",{type:"button","aria-current":i.active||void 0,onClick:()=>v(i.number,!0)},[l.page?l.page(i):i.text])]));return()=>u("nav",{role:"navigation",class:R()},[u("ul",{class:R("items")},[F(),a.mode==="simple"?I():k(),C()])])}});const ue=Y(de);function me(a){return P.get("/api/Common/GetDeptAllList",a)}function fe(a){return P.post("/api/Common/GetRoleList",a)}function ge(a,r){const l={card_name:a.card_name,page_index:a.page_index,page_size:a.page_size};return P.get("/api/UserRole/GetUserRoleList",{params:l,...r})}function he(a,r){const l={id:a.id};return P.get("/api/UserRole/GetUserRoleInfo",{params:l,...r})}function _e(a,r){const l={keyword:a.keyword,page_index:a.page_index,page_size:a.page_size};return P.get("/api/UserRole/GetUserRoleSearch",{params:l,...r})}function xe(a,r){const l={userid:a.userid};return P.get("/api/UserRole/UserRoleIns",{params:l,...r})}function ve(a,r){return P.post("/api/UserRole/UserRoleSave",a,r)}const we={class:"w-full h-[55px] page bg-white"},be={__name:"page",props:{page_index:{type:Number,default:1},page_size:{type:Number,default:10},total:{type:Number,default:0}},emits:["pageChange"],setup(a,{expose:r,emit:l}){const t=L(1),U=a,v=l;function I(F){v("pageChange",F)}return r({currentPage:t}),(F,C)=>{const k=ue;return h(),b("div",we,[u(k,{onChange:I,modelValue:t.value,"onUpdate:modelValue":C[0]||(C[0]=i=>t.value=i),"total-items":U.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},ke=Z(be,[["__scopeId","data-v-f36f3121"]]),ye={class:"publicContainerNoPadding relative"},Pe={class:"w-full h-[calc(100%-155px)] p-3 overflow-y-auto"},Fe={class:"w-[80%] h-full"},Ce={class:"w-full h-[40px] p-1 flex items-center text-[17px]"},Re={class:"w-full min-h-1/2 p-1"},Ue=["onClick"],Ie={class:"w-full h-auto bg-white"},Se={class:"w-full min-h-[110px] p-4 flex justify-between text-[17px] flex-wrap"},ze={class:"h-[30px] w-[85%]"},Ee={class:"h-[30px] w-[85%]"},Ne={class:"h-[30px] w-[85%]"},Ve={class:"h-[30px] w-[85%]"},Ae={class:"w-full h-auto bg-white"},Be={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},De={class:"w-full h-auto bg-white"},Ge={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},$e={class:"w-full h-full flex justify-between items-center p-3"},Te={__name:"index",setup(a){const r=L(),l=L(),t=ee({searchParams:{page_index:1,page_size:10,keyword:""},total:0,observer:"",loading:!0,comment:{dept:[],user:[],deptId:[]},check:{userroleid:"",userid:"",usercard:"",username:"",dept:"",position_name:"",dept_list:[],role_list:[]},select:{showPopup:!1},fillInWork:{show:!1},data:[],initParams:{page_index:1,page_size:10}});function U(){G(()=>ve({...t.check,role_list:t.check.role_list.map(s=>({role_name:"",role_id:s})),dept_list:t.check.dept_list.map(s=>({name:"",id:s}))}).then(s=>(s.code===1&&(l.value.search!==""?f(l.value.search,t.searchParams.page_index):(d(t.initParams.page_index),r.value.currentPage=t.initParams.page_index),t.select.showPopup=!1),s)))}function v(s){t.check.dept_list.includes(s.id)?(t.check.dept_list.forEach((e,p)=>{e===s.id&&t.check.dept_list.splice(p,1)}),t.comment.dept.forEach(e=>{e.id===s.id&&(e.bg="",e.cl="")}),t.comment.deptId.forEach((e,p)=>{e===s.id&&t.comment.deptId.splice(p,1)})):(t.check.dept_list.push(s.id),t.comment.deptId.push(s.id),t.comment.dept.forEach(e=>{e.id===s.id&&(e.bg="#1989FA",e.cl="#FFFFFF")}))}function I(s){t.check.role_list.includes(s.id)?(t.check.role_list.forEach((e,p)=>{e===s.id&&t.check.role_list.splice(p,1,"")}),t.comment.user.forEach(e=>{e.id===s.id&&(e.bg="",e.cl="")})):(t.check.role_list.push(s.id),t.comment.user.forEach(e=>{e.id===s.id&&(e.bg="#1989FA",e.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...t.check.role_list)}function F(){fe().then(s=>{t.comment.user=s.response.map(e=>({...e,bg:"",cl:""}))})}function C(){me().then(s=>{t.comment.dept=s.response.map(e=>({...e,bg:"",cl:""}))})}function k(){G(()=>ge(t.initParams).then(s=>(t.data=s.response.data.map(e=>({...e})),t.total=s.response.data_count,s)),!0,"加载中...")}function i(s){l.value.search===""?(t.initParams.page_index=s,k()):(t.searchParams.page_index=s,f(l.value.search,s))}function d(s=""){l.value.search="",t.initParams={page_index:s||1,page_size:10},r.value.currentPage=1,k()}function f(s,e=1){l.value.search!==""&&(t.initParams.page_index!==1&&(r.value.currentPage=1,t.initParams.page_index=1),_e({...t.searchParams,keyword:s,page_index:e}).then(p=>{t.data=p.response.data.map(m=>({...m})),t.total=p.response.data_count}))}function g(s,e){let p={0:()=>{G(()=>xe({userid:e.userid}).then(m=>(m.code===1&&p[1](m.response),m)))},1:m=>{he({id:e.userroleid||m}).then(c=>{let y=[],S=[];c.response.dept_list.map((n,w)=>{y.push(n.id)}),c.response.role_list.map((n,w)=>{S.push(n.role_id)}),t.comment.dept.map((n,w)=>(y.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),t.comment.user.map((n,w)=>(S.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),c.response.dept_list=y,c.response.role_list=S,t.check=c.response,c.code===1&&(t.select.showPopup=!0),console.log("🚀🚀🚀,",t.comment,c.response)})}};p[String(s)]()}return te(()=>{k(),F(),C()}),(s,e)=>{const p=re,m=oe,c=ie,y=le,S=ne;return h(),b(z,null,[o("div",ye,[u(ae,{class:"sticky top-0",title:"人员授权列表",ref_key:"headerInput",ref:l,onSearchFun:f,onReset:d,path:"/welcome"},null,512),o("div",Pe,[t.data.length===[]?(h(),A(p,{key:0,description:"暂无授权名单,请通过搜索添加"})):se("",!0),(h(!0),b(z,null,B(t.data,(n,w)=>(h(),b("div",{key:w,class:"w-full min-h-[90px] flex rounded-[10px] p-2 bg-white mb-3"},[o("div",Fe,[o("div",Ce,_(n.username)+" ("+_(n.usercard)+") ",1),o("div",Re,[(h(!0),b(z,null,B(n.dept_list,(N,W)=>(h(),A(m,{style:{padding:"6px",margin:"5px 5px 5px 0",color:"#1989f9","border-color":"#1989f9"},key:W,plain:"",hairline:"",size:"small",type:"primary"},{default:x(()=>[E(_(N.name),1)]),_:2},1024))),128))])]),o("div",{onClick:N=>g(+(n.userroleid!==null),n),class:"w-[20%] flex justify-center items-center text-[#1989f9]"},_(["添加","编辑"][+(n.userroleid!==null)]),9,Ue)]))),128))]),u(ke,{class:"absolute bottom-0",ref_key:"pageRef",ref:r,total:t.total,onPageChange:i},null,8,["total"])]),u(S,{show:t.select.showPopup,height:80,onActionPopUp:e[1]||(e[1]=()=>t.select.showPopup=!1)},{content:x(()=>[e[13]||(e[13]=o("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[o("span",{class:"text-5"},"人员权限添加详情")],-1)),e[14]||(e[14]=o("div",{class:"w-full h-3 bg-gray-200"},null,-1)),(h(),b("div",{class:"w-full h-[calc(100%-121px)] bg-gray-200 overflow-y-auto",key:t.calendarKey},[o("div",Ie,[o("div",Se,[e[2]||(e[2]=o("div",{class:"h-[30px] w-[15%]"},"姓名:",-1)),o("div",ze,_(t.check.username),1),e[3]||(e[3]=o("div",{class:"h-[30px] w-[15%]"},"工号:",-1)),o("div",Ee,_(t.check.usercard),1),e[4]||(e[4]=o("div",{class:"h-[30px] w-[15%]"},"部门:",-1)),o("div",Ne,_(t.check.dept),1),e[5]||(e[5]=o("div",{class:"h-[30px] w-[15%]"},"岗位:",-1)),o("div",Ve,_(t.check.position_name),1)])]),e[8]||(e[8]=o("div",{class:"w-full h-3"},null,-1)),o("div",Ae,[e[6]||(e[6]=o("div",{class:"w-full h-10 p-4 pb-0"},"分管权限",-1)),o("div",Be,[u(c,{wrap:""},{default:x(()=>[(h(!0),b(z,null,B(t.comment.user,(n,w)=>(h(),A(m,{onClick:N=>I(n),style:T({margin:"5px",padding:"15px !important",borderColor:"#1989f9",height:"30px",background:n.bg,color:n.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(_(n.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])]),e[9]||(e[9]=o("div",{class:"w-full h-3"},null,-1)),o("div",De,[e[7]||(e[7]=o("div",{class:"w-full h-10 p-4 pb-0"},"分管部门",-1)),o("div",Ge,[u(c,{wrap:""},{default:x(()=>[(h(!0),b(z,null,B(t.comment.dept,(n,w)=>(h(),A(m,{onClick:N=>v(n),key:w,style:T({borderColor:"#1989f9",margin:"5px",padding:"15px !important",height:"30px",background:n.bg,color:n.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(_(n.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),e[10]||(e[10]=o("div",{class:"w-full h-3 bg-gray-200"},null,-1))])),u(y,null,{default:x(()=>[o("div",$e,[u(m,{round:"",class:"w-[30%]",onClick:e[0]||(e[0]=n=>t.select.showPopup=!1)},{default:x(()=>e[11]||(e[11]=[E("取消")])),_:1}),u(m,{type:"primary",round:"",class:"w-[64%]",onClick:U},{default:x(()=>e[12]||(e[12]=[E("确定")])),_:1})])]),_:1})]),_:1},8,["show"])],64)}}};export{Te as default};
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};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
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{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};
.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))}
import{_ as e}from"./index-hukuK2LI.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default}; 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};
...@@ -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-hukuK2LI.js"></script> <script type="module" crossorigin src="./assets/index-DtrFZOnZ.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-DlbzLT4D.css"> <link rel="stylesheet" crossorigin href="./assets/index-BGmk6U4y.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
"vue": "^3.3.4", "vue": "^3.3.4",
"vue-cookies": "^1.8.3", "vue-cookies": "^1.8.3",
"vue-router": "^4.2.4", "vue-router": "^4.2.4",
"weixin-js-sdk": "^1.6.4" "weixin-js-sdk": "^1.6.4",
"pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.1"
}, },
"devDependencies": { "devDependencies": {
"@vitejs/plugin-vue": "^4.2.3", "@vitejs/plugin-vue": "^4.2.3",
......
...@@ -24,5 +24,6 @@ export declare function getApiCollectGetCollectList(config?: AxiosRequestConfig) ...@@ -24,5 +24,6 @@ export declare function getApiCollectGetCollectList(config?: AxiosRequestConfig)
username: string; username: string;
dept_id: string; dept_id: string;
dept_name: string; dept_name: string;
attention: number;
}[]; }[];
}, any>>; }, any>>;
import { type AxiosRequestConfig } from "axios";
/**
* 获取用户权限
* /api/Common/GetCurrentUserRoleList
*/
export declare function getApiCommonGetCurrentUserRoleList(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}, any>>;
import request from "@/util/axios.js";
/**
* 获取用户权限
* /api/Common/GetCurrentUserRoleList
*/
export function getApiCommonGetCurrentUserRoleList(config) {
return request.get(`/api/Common/GetCurrentUserRoleList`, config);
}
...@@ -3,7 +3,7 @@ import { type AxiosRequestConfig } from "axios"; ...@@ -3,7 +3,7 @@ import { type AxiosRequestConfig } from "axios";
* 获取分管部门--根据权限 * 获取分管部门--根据权限
* /api/Common/GetDeptList * /api/Common/GetDeptList
*/ */
export declare function getApiCommonGetDeptList(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{ export declare function getApiCommonGetDeptList(params: GetApiCommonGetDeptListParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number; code: number;
status: string; status: string;
msg: string; msg: string;
...@@ -13,3 +13,6 @@ export declare function getApiCommonGetDeptList(config?: AxiosRequestConfig): Pr ...@@ -13,3 +13,6 @@ export declare function getApiCommonGetDeptList(config?: AxiosRequestConfig): Pr
id: string; id: string;
}[]; }[];
}, any>>; }, any>>;
export interface GetApiCommonGetDeptListParams {
role_id: string;
}
...@@ -3,6 +3,12 @@ import request from "@/util/axios.js"; ...@@ -3,6 +3,12 @@ import request from "@/util/axios.js";
* 获取分管部门--根据权限 * 获取分管部门--根据权限
* /api/Common/GetDeptList * /api/Common/GetDeptList
*/ */
export function getApiCommonGetDeptList(config) { export function getApiCommonGetDeptList(params, config) {
return request.get(`/api/Common/GetDeptList`, config); const paramsInput = {
role_id: params.role_id,
};
return request.get(`/api/Common/GetDeptList`, {
params: paramsInput,
...config,
});
} }
...@@ -4,3 +4,4 @@ export * from "./postApiCommonGetUserList"; ...@@ -4,3 +4,4 @@ export * from "./postApiCommonGetUserList";
export * from "./postApiCommonGetRoleList"; export * from "./postApiCommonGetRoleList";
export * from "./getApiCommonGetMenuRole"; export * from "./getApiCommonGetMenuRole";
export * from "./getApiCommonGetAheadWriteSwitch"; export * from "./getApiCommonGetAheadWriteSwitch";
export * from "./getApiCommonGetCurrentUserRoleList";
...@@ -4,3 +4,4 @@ export * from "./postApiCommonGetUserList"; ...@@ -4,3 +4,4 @@ export * from "./postApiCommonGetUserList";
export * from "./postApiCommonGetRoleList"; export * from "./postApiCommonGetRoleList";
export * from "./getApiCommonGetMenuRole"; export * from "./getApiCommonGetMenuRole";
export * from "./getApiCommonGetAheadWriteSwitch"; export * from "./getApiCommonGetAheadWriteSwitch";
export * from "./getApiCommonGetCurrentUserRoleList";
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type UserListRequest } from "../../interface";
/** /**
* 获取中层干部 * 获取中层干部
* /api/Common/GetUserList * /api/Common/GetUserList
*/ */
export declare function postApiCommonGetUserList(input?: string[], config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{ export declare function postApiCommonGetUserList(input?: UserListRequest, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number; code: number;
status: string; status: string;
msg: string; msg: string;
......
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 整体框架 文件
* /api/DbFirst/GetFrameFiles
*/
export declare function getApiDbFirstGetFrameFiles(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "@/util/axios.js";
/**
* 获取 整体框架 文件
* /api/DbFirst/GetFrameFiles
*/
export function getApiDbFirstGetFrameFiles(config) {
return request.get(`/api/DbFirst/GetFrameFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 IRepository 层文件
* /api/DbFirst/GetIRepositoryFiles
*/
export declare function getApiDbFirstGetIRepositoryFiles(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "@/util/axios.js";
/**
* 获取 IRepository 层文件
* /api/DbFirst/GetIRepositoryFiles
*/
export function getApiDbFirstGetIRepositoryFiles(config) {
return request.get(`/api/DbFirst/GetIRepositoryFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 IService 层文件
* /api/DbFirst/GetIServiceFiles
*/
export declare function getApiDbFirstGetIServiceFiles(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "@/util/axios.js";
/**
* 获取 IService 层文件
* /api/DbFirst/GetIServiceFiles
*/
export function getApiDbFirstGetIServiceFiles(config) {
return request.get(`/api/DbFirst/GetIServiceFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 Model 层文件
* /api/DbFirst/GetModelFiles
*/
export declare function getApiDbFirstGetModelFiles(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "@/util/axios.js";
/**
* 获取 Model 层文件
* /api/DbFirst/GetModelFiles
*/
export function getApiDbFirstGetModelFiles(config) {
return request.get(`/api/DbFirst/GetModelFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 Repository 层文件
* /api/DbFirst/GetRepositoryFiles
*/
export declare function getApiDbFirstGetRepositoryFiles(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "@/util/axios.js";
/**
* 获取 Repository 层文件
* /api/DbFirst/GetRepositoryFiles
*/
export function getApiDbFirstGetRepositoryFiles(config) {
return request.get(`/api/DbFirst/GetRepositoryFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 Services 层文件
* /api/DbFirst/GetServicesFiles
*/
export declare function getApiDbFirstGetServicesFiles(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "@/util/axios.js";
/**
* 获取 Services 层文件
* /api/DbFirst/GetServicesFiles
*/
export function getApiDbFirstGetServicesFiles(config) {
return request.get(`/api/DbFirst/GetServicesFiles`, config);
}
export * from "./getApiDbFirstGetFrameFiles";
export * from "./postApiDbFirstGetFrameFilesByTable";
export * from "./getApiDbFirstGetModelFiles";
export * from "./getApiDbFirstGetIRepositoryFiles";
export * from "./getApiDbFirstGetIServiceFiles";
export * from "./getApiDbFirstGetRepositoryFiles";
export * from "./getApiDbFirstGetServicesFiles";
export * from "./getApiDbFirstGetFrameFiles";
export * from "./postApiDbFirstGetFrameFilesByTable";
export * from "./getApiDbFirstGetModelFiles";
export * from "./getApiDbFirstGetIRepositoryFiles";
export * from "./getApiDbFirstGetIServiceFiles";
export * from "./getApiDbFirstGetRepositoryFiles";
export * from "./getApiDbFirstGetServicesFiles";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取指定框架文件
* /api/DbFirst/GetFrameFilesByTable
*/
export declare function postApiDbFirstGetFrameFilesByTable(input?: string[], config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeepRequired<boolean>, any>>;
import request from "@/util/axios.js";
/**
* 获取指定框架文件
* /api/DbFirst/GetFrameFilesByTable
*/
export function postApiDbFirstGetFrameFilesByTable(input, config) {
return request.post(`/api/DbFirst/GetFrameFilesByTable`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 文件下载
* /api/File/Download
*/
export declare function getApiFileDownload(params: GetApiFileDownloadParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
export interface GetApiFileDownloadParams {
/** 文件路径 */
filePath: string;
/** 新文件名 */
fileName?: string;
/** 新文件名 */
timestamp?: string;
/** 新文件名 */
sign?: string;
}
import request from "@/util/axios.js";
/**
* 文件下载
* /api/File/Download
*/
export function getApiFileDownload(params, config) {
const paramsInput = {
filePath: params.filePath,
fileName: params.fileName,
timestamp: params.timestamp,
sign: params.sign,
};
return request.get(`/api/File/Download`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 下载地址
* /api/File/DownloadPath
*/
export declare function getApiFileDownloadPath(params: GetApiFileDownloadPathParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiFileDownloadPathParams {
/** 文件路径 */
filePath: string;
/** 新文件名 */
fileName?: string;
}
import request from "@/util/axios.js";
/**
* 下载地址
* /api/File/DownloadPath
*/
export function getApiFileDownloadPath(params, config) {
const paramsInput = {
filePath: params.filePath,
fileName: params.fileName,
};
return request.get(`/api/File/DownloadPath`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 预览
* /api/File/Preview
*/
export declare function getApiFilePreview(params: GetApiFilePreviewParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
image: string[];
pdf: string;
};
}, any>>;
export interface GetApiFilePreviewParams {
/** 预览文件地址 */
filePath: string;
}
import request from "@/util/axios.js";
/**
* 预览
* /api/File/Preview
*/
export function getApiFilePreview(params, config) {
const paramsInput = {
filePath: params.filePath,
};
return request.get(`/api/File/Preview`, {
params: paramsInput,
...config,
});
}
export * from "./postApiFileFileUpload";
export * from "./getApiFileDownloadPath";
export * from "./getApiFileDownload";
export * from "./getApiFilePreview";
export * from "./postApiFileFileUpload";
export * from "./getApiFileDownloadPath";
export * from "./getApiFileDownload";
export * from "./getApiFilePreview";
import { type AxiosRequestConfig } from "axios";
/**
* 附件上传
* /api/File/FileUpload
*/
export declare function postApiFileFileUpload(input?: PostApiFileFileUploadInput, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
id: string;
createby: string;
createtime: string;
path: string;
suffix: string;
size: string;
file_name: string;
};
}, any>>;
export interface PostApiFileFileUploadInput {
file: File;
}
import request from "@/util/axios.js";
/**
* 附件上传
* /api/File/FileUpload
*/
export function postApiFileFileUpload(input, config) {
return request.post(`/api/File/FileUpload`, input, config);
}
export * from "./getApiSsoTest"; export * from "./getApiSsoTest";
export * from "./postApiSsoPc";
export * from "./getApiSsoWx"; export * from "./getApiSsoWx";
export * from "./getApiGetTokenInfo"; export * from "./getApiGetTokenInfo";
export * from "./getApiRefreshToken"; export * from "./getApiRefreshToken";
export * from "./getApiSsoTest"; export * from "./getApiSsoTest";
export * from "./postApiSsoPc";
export * from "./getApiSsoWx"; export * from "./getApiSsoWx";
export * from "./getApiGetTokenInfo"; export * from "./getApiGetTokenInfo";
export * from "./getApiRefreshToken"; export * from "./getApiRefreshToken";
import { type AxiosRequestConfig } from "axios";
import { type SsoTokenRequests } from "../../interface";
/**
* PC单点
* /api/sso/pc
*/
export declare function postApiSsoPc(input?: SsoTokenRequests, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
accessToken: {
tokenContent: string;
expires: string;
};
refreshToken: {
tokenContent: string;
expires: string;
};
};
}, any>>;
import request from "@/util/axios.js";
/**
* PC单点
* /api/sso/pc
*/
export function postApiSsoPc(input, config) {
return request.post(`/api/sso/pc`, input, config);
}
...@@ -3,4 +3,5 @@ export * from "./getApiPlanProjectPlanProjectAheadInit"; ...@@ -3,4 +3,5 @@ export * from "./getApiPlanProjectPlanProjectAheadInit";
export * from "./postApiPlanProjectPlanProjectSave"; export * from "./postApiPlanProjectPlanProjectSave";
export * from "./postApiPlanProjectGetPlanProjectByWeekList"; export * from "./postApiPlanProjectGetPlanProjectByWeekList";
export * from "./postApiPlanProjectGetPlanProjectByDayList"; export * from "./postApiPlanProjectGetPlanProjectByDayList";
export * from "./postApiPlanProjectGetPlanScheduleByDayList";
export * from "./getApiPlanProjectGetPlanProjectByMyList"; export * from "./getApiPlanProjectGetPlanProjectByMyList";
...@@ -3,4 +3,5 @@ export * from "./getApiPlanProjectPlanProjectAheadInit"; ...@@ -3,4 +3,5 @@ export * from "./getApiPlanProjectPlanProjectAheadInit";
export * from "./postApiPlanProjectPlanProjectSave"; export * from "./postApiPlanProjectPlanProjectSave";
export * from "./postApiPlanProjectGetPlanProjectByWeekList"; export * from "./postApiPlanProjectGetPlanProjectByWeekList";
export * from "./postApiPlanProjectGetPlanProjectByDayList"; export * from "./postApiPlanProjectGetPlanProjectByDayList";
export * from "./postApiPlanProjectGetPlanScheduleByDayList";
export * from "./getApiPlanProjectGetPlanProjectByMyList"; export * from "./getApiPlanProjectGetPlanProjectByMyList";
import { type AxiosRequestConfig } from "axios";
import { type PlanScheduleByDayListRequest } from "../../interface";
/**
* 日程天视图
* /api/PlanProject/GetPlanScheduleByDayList
*/
export declare function postApiPlanProjectGetPlanScheduleByDayList(input?: PlanScheduleByDayListRequest, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
id: string;
date: string;
week: string;
createtime: string;
userid: string;
usercard: string;
username: string;
dept_id: string;
dept_name: string;
leader_nature_id: string;
leader_nature_name: string;
schedule: {
plan_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
duty_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
meet_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
};
}[];
}, any>>;
import request from "@/util/axios.js";
/**
* 日程天视图
* /api/PlanProject/GetPlanScheduleByDayList
*/
export function postApiPlanProjectGetPlanScheduleByDayList(input, config) {
return request.post(`/api/PlanProject/GetPlanScheduleByDayList`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取日程表
* /api/PlanSchedule/GetPlanScheduleCalendar
*/
export declare function getApiPlanScheduleGetPlanScheduleCalendar(params: GetApiPlanScheduleGetPlanScheduleCalendarParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
date: string;
week: string;
plandatas: {
leader_id: string;
leader_number: string;
leader_name: string;
dept_id: string;
dept_name: string;
leader_nature_id: string;
leader_nature_name: string;
schedule: {
plan_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
duty_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
meet_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
};
}[];
}[];
}, any>>;
export interface GetApiPlanScheduleGetPlanScheduleCalendarParams {
begin: string;
end: string;
role_id: string;
}
import request from "@/util/axios.js";
/**
* 获取日程表
* /api/PlanSchedule/GetPlanScheduleCalendar
*/
export function getApiPlanScheduleGetPlanScheduleCalendar(params, config) {
const paramsInput = {
begin: params.begin,
end: params.end,
role_id: params.role_id,
};
return request.get(`/api/PlanSchedule/GetPlanScheduleCalendar`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取日程详情
* /api/PlanSchedule/GetPlanScheduleInfo
*/
export declare function getApiPlanScheduleGetPlanScheduleInfo(params: GetApiPlanScheduleGetPlanScheduleInfoParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
plan_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
file_list: {
id: string;
createby: string;
createtime: string;
path: string;
suffix: string;
size: string;
file_name: string;
}[];
}[];
duty_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
file_list: {
id: string;
createby: string;
createtime: string;
path: string;
suffix: string;
size: string;
file_name: string;
}[];
}[];
meet_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
file_list: {
id: string;
createby: string;
createtime: string;
path: string;
suffix: string;
size: string;
file_name: string;
}[];
}[];
};
}, any>>;
export interface GetApiPlanScheduleGetPlanScheduleInfoParams {
userid: string;
date: string;
}
import request from "@/util/axios.js";
/**
* 获取日程详情
* /api/PlanSchedule/GetPlanScheduleInfo
*/
export function getApiPlanScheduleGetPlanScheduleInfo(params, config) {
const paramsInput = {
userid: params.userid,
date: params.date,
};
return request.get(`/api/PlanSchedule/GetPlanScheduleInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取日程操作轨迹
* /api/PlanSchedule/GetPlanScheduleTrackList
*/
export declare function getApiPlanScheduleGetPlanScheduleTrackList(params: GetApiPlanScheduleGetPlanScheduleTrackListParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
id: string;
plan_schedule_id: string;
state: number;
state_name: string;
remark: string;
createby: string;
createname: string;
createtime: string;
}[];
}, any>>;
export interface GetApiPlanScheduleGetPlanScheduleTrackListParams {
userid: string;
date: string;
}
import request from "@/util/axios.js";
/**
* 获取日程操作轨迹
* /api/PlanSchedule/GetPlanScheduleTrackList
*/
export function getApiPlanScheduleGetPlanScheduleTrackList(params, config) {
const paramsInput = {
userid: params.userid,
date: params.date,
};
return request.get(`/api/PlanSchedule/GetPlanScheduleTrackList`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 下载模板
* /api/PlanSchedule/PlanScheduleTemplate
*/
export declare function getApiPlanSchedulePlanScheduleTemplate(params: GetApiPlanSchedulePlanScheduleTemplateParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiPlanSchedulePlanScheduleTemplateParams {
begin: string;
end: string;
}
import request from "@/util/axios.js";
/**
* 下载模板
* /api/PlanSchedule/PlanScheduleTemplate
*/
export function getApiPlanSchedulePlanScheduleTemplate(params, config) {
const paramsInput = {
begin: params.begin,
end: params.end,
};
return request.get(`/api/PlanSchedule/PlanScheduleTemplate`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 手动推送
* /api/PlanSchedule/ScheduleMegPush
*/
export declare function getApiPlanScheduleScheduleMegPush(params: GetApiPlanScheduleScheduleMegPushParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiPlanScheduleScheduleMegPushParams {
date: string;
leader_number: string;
}
import request from "@/util/axios.js";
/**
* 手动推送
* /api/PlanSchedule/ScheduleMegPush
*/
export function getApiPlanScheduleScheduleMegPush(params, config) {
const paramsInput = {
date: params.date,
leader_number: params.leader_number,
};
return request.get(`/api/PlanSchedule/ScheduleMegPush`, {
params: paramsInput,
...config,
});
}
export * from "./getApiPlanScheduleGetPlanScheduleCalendar";
export * from "./getApiPlanScheduleGetPlanScheduleInfo";
export * from "./postApiPlanSchedulePlanScheduleIns";
export * from "./postApiPlanSchedulePlanScheduleSave";
export * from "./postApiPlanSchedulePlanScheduleDel";
export * from "./getApiPlanScheduleGetPlanScheduleTrackList";
export * from "./getApiPlanSchedulePlanScheduleTemplate";
export * from "./postApiPlanSchedulePlanScheduleImport";
export * from "./getApiPlanScheduleScheduleMegPush";
export * from "./getApiPlanScheduleGetPlanScheduleCalendar";
export * from "./getApiPlanScheduleGetPlanScheduleInfo";
export * from "./postApiPlanSchedulePlanScheduleIns";
export * from "./postApiPlanSchedulePlanScheduleSave";
export * from "./postApiPlanSchedulePlanScheduleDel";
export * from "./getApiPlanScheduleGetPlanScheduleTrackList";
export * from "./getApiPlanSchedulePlanScheduleTemplate";
export * from "./postApiPlanSchedulePlanScheduleImport";
export * from "./getApiPlanScheduleScheduleMegPush";
import { type AxiosRequestConfig } from "axios";
/**
* 删除日程信息
* /api/PlanSchedule/PlanScheduleDel
*/
export declare function postApiPlanSchedulePlanScheduleDel(params: PostApiPlanSchedulePlanScheduleDelParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface PostApiPlanSchedulePlanScheduleDelParams {
id: string;
}
import request from "@/util/axios.js";
/**
* 删除日程信息
* /api/PlanSchedule/PlanScheduleDel
*/
export function postApiPlanSchedulePlanScheduleDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.post(`/api/PlanSchedule/PlanScheduleDel`, null, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 模板导入
* /api/PlanSchedule/PlanScheduleImport
*/
export declare function postApiPlanSchedulePlanScheduleImport(input?: PostApiPlanSchedulePlanScheduleImportInput, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface PostApiPlanSchedulePlanScheduleImportInput {
file: File;
}
import request from "@/util/axios.js";
/**
* 模板导入
* /api/PlanSchedule/PlanScheduleImport
*/
export function postApiPlanSchedulePlanScheduleImport(input, config) {
return request.post(`/api/PlanSchedule/PlanScheduleImport`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type PlanScheduleInsRequest } from "../../interface";
/**
* 新增日程
* /api/PlanSchedule/PlanScheduleIns
*/
export declare function postApiPlanSchedulePlanScheduleIns(input?: PlanScheduleInsRequest, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "@/util/axios.js";
/**
* 新增日程
* /api/PlanSchedule/PlanScheduleIns
*/
export function postApiPlanSchedulePlanScheduleIns(input, config) {
return request.post(`/api/PlanSchedule/PlanScheduleIns`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type PlanScheduleSaveRequest } from "../../interface";
/**
* 修改日程
* /api/PlanSchedule/PlanScheduleSave
*/
export declare function postApiPlanSchedulePlanScheduleSave(input?: PlanScheduleSaveRequest, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "@/util/axios.js";
/**
* 修改日程
* /api/PlanSchedule/PlanScheduleSave
*/
export function postApiPlanSchedulePlanScheduleSave(input, config) {
return request.post(`/api/PlanSchedule/PlanScheduleSave`, input, config);
}
...@@ -16,5 +16,6 @@ export declare function getApiSysConfigSysConfigInit(config?: AxiosRequestConfig ...@@ -16,5 +16,6 @@ export declare function getApiSysConfigSysConfigInit(config?: AxiosRequestConfig
nowrite_remind: string; nowrite_remind: string;
ahead_write: string; ahead_write: string;
write_remind: string; write_remind: string;
timing_switch: number;
}; };
}, any>>; }, any>>;
import { type AxiosRequestConfig } from "axios";
/**
* 获取定时开关
* /api/SysConfig/TimingSwitchInit
*/
export declare function getApiSysConfigTimingSwitchInit(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "@/util/axios.js";
/**
* 获取定时开关
* /api/SysConfig/TimingSwitchInit
*/
export function getApiSysConfigTimingSwitchInit(config) {
return request.get(`/api/SysConfig/TimingSwitchInit`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 保存定时开关
* /api/SysConfig/TimingSwitchSave
*/
export declare function getApiSysConfigTimingSwitchSave(params: GetApiSysConfigTimingSwitchSaveParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
export interface GetApiSysConfigTimingSwitchSaveParams {
timing_switch: number;
}
import request from "@/util/axios.js";
/**
* 保存定时开关
* /api/SysConfig/TimingSwitchSave
*/
export function getApiSysConfigTimingSwitchSave(params, config) {
const paramsInput = {
timing_switch: params.timing_switch,
};
return request.get(`/api/SysConfig/TimingSwitchSave`, {
params: paramsInput,
...config,
});
}
export * from "./getApiSysConfigSysConfigInit"; export * from "./getApiSysConfigSysConfigInit";
export * from "./postApiSysConfigSysConfigSave"; export * from "./postApiSysConfigSysConfigSave";
export * from "./getApiSysConfigTimingSwitchInit";
export * from "./getApiSysConfigTimingSwitchSave";
export * from "./getApiSysConfigSysConfigInit"; export * from "./getApiSysConfigSysConfigInit";
export * from "./postApiSysConfigSysConfigSave"; export * from "./postApiSysConfigSysConfigSave";
export * from "./getApiSysConfigTimingSwitchInit";
export * from "./getApiSysConfigTimingSwitchSave";
import { type AxiosRequestConfig } from "axios";
/**
* 定时推送
* /api/TimeTask/MessageTimedPush
*/
export declare function getApiTimeTaskMessageTimedPush(config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "@/util/axios.js";
/**
* 定时推送
* /api/TimeTask/MessageTimedPush
*/
export function getApiTimeTaskMessageTimedPush(config) {
return request.get(`/api/TimeTask/MessageTimedPush`, config);
}
export * from "./getApiTimeTaskNoWriteRemind"; export * from "./getApiTimeTaskNoWriteRemind";
export * from "./getApiTimeTaskWriteRemind"; export * from "./getApiTimeTaskWriteRemind";
export * from "./getApiTimeTaskMessageTimedPush";
export * from "./getApiTimeTaskNoWriteRemind"; export * from "./getApiTimeTaskNoWriteRemind";
export * from "./getApiTimeTaskWriteRemind"; export * from "./getApiTimeTaskWriteRemind";
export * from "./getApiTimeTaskMessageTimedPush";
...@@ -37,6 +37,10 @@ export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetU ...@@ -37,6 +37,10 @@ export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetU
id: string; id: string;
name: string; name: string;
}[]; }[];
role_list: {
role_id: string;
role_name: string;
}[];
}; };
}[]; }[];
query: { query: {
...@@ -44,6 +48,7 @@ export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetU ...@@ -44,6 +48,7 @@ export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetU
}; };
}, any>>; }, any>>;
export interface GetApiUserRoleGetUserRoleListParams { export interface GetApiUserRoleGetUserRoleListParams {
card_name?: string;
page_index?: number; page_index?: number;
page_size?: number; page_size?: number;
} }
...@@ -5,6 +5,7 @@ import request from "@/util/axios.js"; ...@@ -5,6 +5,7 @@ import request from "@/util/axios.js";
*/ */
export function getApiUserRoleGetUserRoleList(params, config) { export function getApiUserRoleGetUserRoleList(params, config) {
const paramsInput = { const paramsInput = {
card_name: params.card_name,
page_index: params.page_index, page_index: params.page_index,
page_size: params.page_size, page_size: params.page_size,
}; };
......
...@@ -37,6 +37,10 @@ export declare function getApiUserRoleGetUserRoleSearch(params: GetApiUserRoleGe ...@@ -37,6 +37,10 @@ export declare function getApiUserRoleGetUserRoleSearch(params: GetApiUserRoleGe
id: string; id: string;
name: string; name: string;
}[]; }[];
role_list: {
role_id: string;
role_name: string;
}[];
}; };
}[]; }[];
query: { query: {
......
...@@ -2,4 +2,5 @@ export * from "./getApiUserRoleGetUserRoleList"; ...@@ -2,4 +2,5 @@ export * from "./getApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleGetUserRoleInfo"; export * from "./getApiUserRoleGetUserRoleInfo";
export * from "./getApiUserRoleGetUserRoleSearch"; export * from "./getApiUserRoleGetUserRoleSearch";
export * from "./getApiUserRoleUserRoleIns"; export * from "./getApiUserRoleUserRoleIns";
export * from "./postApiUserRoleUserRoleDepIns";
export * from "./postApiUserRoleUserRoleSave"; export * from "./postApiUserRoleUserRoleSave";
...@@ -2,4 +2,5 @@ export * from "./getApiUserRoleGetUserRoleList"; ...@@ -2,4 +2,5 @@ export * from "./getApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleGetUserRoleInfo"; export * from "./getApiUserRoleGetUserRoleInfo";
export * from "./getApiUserRoleGetUserRoleSearch"; export * from "./getApiUserRoleGetUserRoleSearch";
export * from "./getApiUserRoleUserRoleIns"; export * from "./getApiUserRoleUserRoleIns";
export * from "./postApiUserRoleUserRoleDepIns";
export * from "./postApiUserRoleUserRoleSave"; export * from "./postApiUserRoleUserRoleSave";
import { type AxiosRequestConfig } from "axios";
import { type UserRoleDepInsRequest } from "../../interface";
/**
* 用户权限和所管部门创建
* /api/UserRole/UserRoleDepIns
*/
export declare function postApiUserRoleUserRoleDepIns(input?: UserRoleDepInsRequest, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "@/util/axios.js";
/**
* 用户权限和所管部门创建
* /api/UserRole/UserRoleDepIns
*/
export function postApiUserRoleUserRoleDepIns(input, config) {
return request.post(`/api/UserRole/UserRoleDepIns`, input, config);
}
export * from "./Collect"; export * from "./Collect";
export * from "./Common"; export * from "./Common";
export * from "./DbFirst";
export * from "./File";
export * from "./Login"; export * from "./Login";
export * from "./PlanProject"; export * from "./PlanProject";
export * from "./PlanSchedule";
export * from "./SysConfig"; export * from "./SysConfig";
export * from "./TimeTask"; export * from "./TimeTask";
export * from "./UserRole"; export * from "./UserRole";
export * from "./Collect"; export * from "./Collect";
export * from "./Common"; export * from "./Common";
export * from "./DbFirst";
export * from "./File";
export * from "./Login"; export * from "./Login";
export * from "./PlanProject"; export * from "./PlanProject";
export * from "./PlanSchedule";
export * from "./SysConfig"; export * from "./SysConfig";
export * from "./TimeTask"; export * from "./TimeTask";
export * from "./UserRole"; export * from "./UserRole";
export interface FilePreviewViewModel {
image?: string[];
pdf?: string;
}
import { type FilePreviewViewModel } from "../../interface";
export interface FilePreviewViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: FilePreviewViewModel;
}
export interface PlanScheduleByDayListRequest {
role_id?: string;
date?: string;
dept_id_list?: string[];
tid_list?: string[];
}
import { type PlanScheduleData } from "../../interface";
export interface PlanScheduleCalendarViewModel {
date?: string;
week?: string;
plandatas?: PlanScheduleData[];
}
import { type PlanScheduleCalendarViewModel } from "../../interface";
export interface PlanScheduleCalendarViewModelListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: PlanScheduleCalendarViewModel[];
}
import { type ScheduleData } from "../../interface";
export interface PlanScheduleData {
leader_id?: string;
leader_number?: string;
leader_name?: string;
dept_id?: string;
dept_name?: string;
leader_nature_id?: string;
leader_nature_name?: string;
schedule?: ScheduleData;
}
import { type ScheduleData } from "../../interface";
export interface PlanScheduleDayViewModel {
id?: string;
date?: string;
week?: string;
createtime?: string;
userid?: string;
usercard?: string;
username?: string;
dept_id?: string;
dept_name?: string;
leader_nature_id?: string;
leader_nature_name?: string;
schedule?: ScheduleData;
}
import { type PlanScheduleDayViewModel } from "../../interface";
export interface PlanScheduleDayViewModelListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: PlanScheduleDayViewModel[];
}
import { type WeekplanFile } from "../../interface";
export interface PlanScheduleGroup {
id?: string;
date?: string;
begin?: string;
end?: string;
content?: string;
file_list?: WeekplanFile[];
}
import { type PlanScheduleGroup } from "../../interface";
export interface PlanScheduleInfoResponse {
/** 日程安排 */
plan_list?: PlanScheduleGroup[];
/** 值班安排 */
duty_list?: PlanScheduleGroup[];
/** 会议安排 */
meet_list?: PlanScheduleGroup[];
}
import { type PlanScheduleInfoResponse } from "../../interface";
export interface PlanScheduleInfoResponseMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: PlanScheduleInfoResponse;
}
export interface PlanScheduleInsRequest {
userid: string;
date: string;
begin?: string;
end?: string;
content: string;
/** 附件id */
file_id_list?: string[];
}
export interface PlanScheduleSaveRequest {
id: string;
begin?: string;
end?: string;
content?: string;
/** 附件id */
file_id_list?: string[];
}
export interface PlanScheduleTrackListResponse {
id?: string;
/**
* Desc:日程id
* Default:
* Nullable:True
*/
plan_schedule_id?: string;
/**
* Desc:操作状态 -1删除。1-添加
* Default:
* Nullable:True
*/
state?: number;
state_name?: string;
/**
* Desc:备注
* Default:
* Nullable:True
*/
remark?: string;
/**
* Desc:创建人
* Default:
* Nullable:True
*/
createby?: string;
/**
* Desc:创建人
* Default:
* Nullable:True
*/
createname?: string;
/**
* Desc:创建时间
* Default:
* Nullable:True
*/
createtime?: string;
}
import { type PlanScheduleTrackListResponse } from "../../interface";
export interface PlanScheduleTrackListResponseListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: PlanScheduleTrackListResponse[];
}
import { type ScheduleGroup } from "../../interface";
export interface ScheduleData {
plan_list?: ScheduleGroup[];
duty_list?: ScheduleGroup[];
meet_list?: ScheduleGroup[];
}
export interface ScheduleGroup {
id?: string;
date?: string;
begin?: string;
end?: string;
content?: string;
}
export interface SsoTokenRequests {
token?: string;
}
...@@ -6,4 +6,5 @@ export interface SysConfig { ...@@ -6,4 +6,5 @@ export interface SysConfig {
nowrite_remind?: string; nowrite_remind?: string;
ahead_write?: string; ahead_write?: string;
write_remind?: string; write_remind?: string;
timing_switch?: number;
} }
export interface UserListRequest {
role_id: string;
dept_list?: string[];
}
import { type Dept, type RoleModel } from "../../interface";
export interface UserRoleDepInsRequest {
userid: string;
dept_list?: Dept[];
role_list?: RoleModel[];
}
import { type Dept } from "../../interface"; import { type Dept, type RoleModel } from "../../interface";
export interface UserRoleViewModel { export interface UserRoleViewModel {
userroleid?: string; userroleid?: string;
userid?: string; userid?: string;
usercard?: string; usercard?: string;
username?: string; username?: string;
dept_list?: Dept[]; dept_list?: Dept[];
role_list?: RoleModel[];
} }
export interface WeekplanFile {
id?: string;
createby?: string;
createtime?: string;
path?: string;
suffix?: string;
size?: string;
file_name?: string;
}
import { type WeekplanFile } from "../../interface";
export interface WeekplanFileMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WeekplanFile;
}
export * from "./apiTypes/PlanProject"; export * from "./apiTypes/PlanProjectDayViewModel";
export * from "./apiTypes/PlanProjectListMessageModel"; export * from "./apiTypes/PlanProjectDayViewModelListMessageModel";
export * from "./apiTypes/StringMessageModel"; export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SelectResponses"; export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel"; export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/UserListRequest";
export * from "./apiTypes/MenuRoleViewModel"; export * from "./apiTypes/MenuRoleViewModel";
export * from "./apiTypes/MenuRoleViewModelMessageModel"; export * from "./apiTypes/MenuRoleViewModelMessageModel";
export * from "./apiTypes/WeekplanFile";
export * from "./apiTypes/WeekplanFileMessageModel";
export * from "./apiTypes/FilePreviewViewModel";
export * from "./apiTypes/FilePreviewViewModelMessageModel";
export * from "./apiTypes/TokenViewModel"; export * from "./apiTypes/TokenViewModel";
export * from "./apiTypes/ComplexTokenViewModel"; export * from "./apiTypes/ComplexTokenViewModel";
export * from "./apiTypes/ComplexTokenViewModelMessageModel"; export * from "./apiTypes/ComplexTokenViewModelMessageModel";
export * from "./apiTypes/SsoTokenRequests";
export * from "./apiTypes/UserJwtViewModel"; export * from "./apiTypes/UserJwtViewModel";
export * from "./apiTypes/UserJwtViewModelMessageModel"; export * from "./apiTypes/UserJwtViewModelMessageModel";
export * from "./apiTypes/TokenViewModelMessageModel"; export * from "./apiTypes/TokenViewModelMessageModel";
export * from "./apiTypes/PlanProject";
export * from "./apiTypes/PlanProjectListMessageModel";
export * from "./apiTypes/ViewRequests"; export * from "./apiTypes/ViewRequests";
export * from "./apiTypes/WeekData"; export * from "./apiTypes/WeekData";
export * from "./apiTypes/PlanProjectWeekViewModel"; export * from "./apiTypes/PlanProjectWeekViewModel";
export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel"; export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel";
export * from "./apiTypes/PlanProjectDayViewModel"; export * from "./apiTypes/PlanScheduleByDayListRequest";
export * from "./apiTypes/PlanProjectDayViewModelListMessageModel"; export * from "./apiTypes/ScheduleGroup";
export * from "./apiTypes/ScheduleData";
export * from "./apiTypes/PlanScheduleDayViewModel";
export * from "./apiTypes/PlanScheduleDayViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel"; export * from "./apiTypes/PlanProjectMessageModel";
export * from "./apiTypes/PlanScheduleData";
export * from "./apiTypes/PlanScheduleCalendarViewModel";
export * from "./apiTypes/PlanScheduleCalendarViewModelListMessageModel";
export * from "./apiTypes/PlanScheduleGroup";
export * from "./apiTypes/PlanScheduleInfoResponse";
export * from "./apiTypes/PlanScheduleInfoResponseMessageModel";
export * from "./apiTypes/PlanScheduleInsRequest";
export * from "./apiTypes/PlanScheduleSaveRequest";
export * from "./apiTypes/PlanScheduleTrackListResponse";
export * from "./apiTypes/PlanScheduleTrackListResponseListMessageModel";
export * from "./apiTypes/SysConfig"; export * from "./apiTypes/SysConfig";
export * from "./apiTypes/SysConfigMessageModel"; export * from "./apiTypes/SysConfigMessageModel";
export * from "./apiTypes/Option"; export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle"; export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Dept"; export * from "./apiTypes/Dept";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleViewModel"; export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel"; export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/UserRoleViewModelMessageModelPageModel"; export * from "./apiTypes/UserRoleViewModelMessageModelPageModel";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleInfoViewModel"; export * from "./apiTypes/UserRoleInfoViewModel";
export * from "./apiTypes/UserRoleInfoViewModelMessageModel"; export * from "./apiTypes/UserRoleInfoViewModelMessageModel";
export * from "./apiTypes/UserRoleDepInsRequest";
export type Primitive = undefined | null | boolean | string | number | symbol; export type Primitive = undefined | null | boolean | string | number | symbol;
export type DeepRequired<T> = T extends Primitive ? T : keyof T extends never ? T : { export type DeepRequired<T> = T extends Primitive ? T : keyof T extends never ? T : {
[K in keyof T]-?: DeepRequired<T[K]>; [K in keyof T]-?: DeepRequired<T[K]>;
......
export * from "./apiTypes/PlanProject"; export * from "./apiTypes/PlanProjectDayViewModel";
export * from "./apiTypes/PlanProjectListMessageModel"; export * from "./apiTypes/PlanProjectDayViewModelListMessageModel";
export * from "./apiTypes/StringMessageModel"; export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SelectResponses"; export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel"; export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/UserListRequest";
export * from "./apiTypes/MenuRoleViewModel"; export * from "./apiTypes/MenuRoleViewModel";
export * from "./apiTypes/MenuRoleViewModelMessageModel"; export * from "./apiTypes/MenuRoleViewModelMessageModel";
export * from "./apiTypes/WeekplanFile";
export * from "./apiTypes/WeekplanFileMessageModel";
export * from "./apiTypes/FilePreviewViewModel";
export * from "./apiTypes/FilePreviewViewModelMessageModel";
export * from "./apiTypes/TokenViewModel"; export * from "./apiTypes/TokenViewModel";
export * from "./apiTypes/ComplexTokenViewModel"; export * from "./apiTypes/ComplexTokenViewModel";
export * from "./apiTypes/ComplexTokenViewModelMessageModel"; export * from "./apiTypes/ComplexTokenViewModelMessageModel";
export * from "./apiTypes/SsoTokenRequests";
export * from "./apiTypes/UserJwtViewModel"; export * from "./apiTypes/UserJwtViewModel";
export * from "./apiTypes/UserJwtViewModelMessageModel"; export * from "./apiTypes/UserJwtViewModelMessageModel";
export * from "./apiTypes/TokenViewModelMessageModel"; export * from "./apiTypes/TokenViewModelMessageModel";
export * from "./apiTypes/PlanProject";
export * from "./apiTypes/PlanProjectListMessageModel";
export * from "./apiTypes/ViewRequests"; export * from "./apiTypes/ViewRequests";
export * from "./apiTypes/WeekData"; export * from "./apiTypes/WeekData";
export * from "./apiTypes/PlanProjectWeekViewModel"; export * from "./apiTypes/PlanProjectWeekViewModel";
export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel"; export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel";
export * from "./apiTypes/PlanProjectDayViewModel"; export * from "./apiTypes/PlanScheduleByDayListRequest";
export * from "./apiTypes/PlanProjectDayViewModelListMessageModel"; export * from "./apiTypes/ScheduleGroup";
export * from "./apiTypes/ScheduleData";
export * from "./apiTypes/PlanScheduleDayViewModel";
export * from "./apiTypes/PlanScheduleDayViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel"; export * from "./apiTypes/PlanProjectMessageModel";
export * from "./apiTypes/PlanScheduleData";
export * from "./apiTypes/PlanScheduleCalendarViewModel";
export * from "./apiTypes/PlanScheduleCalendarViewModelListMessageModel";
export * from "./apiTypes/PlanScheduleGroup";
export * from "./apiTypes/PlanScheduleInfoResponse";
export * from "./apiTypes/PlanScheduleInfoResponseMessageModel";
export * from "./apiTypes/PlanScheduleInsRequest";
export * from "./apiTypes/PlanScheduleSaveRequest";
export * from "./apiTypes/PlanScheduleTrackListResponse";
export * from "./apiTypes/PlanScheduleTrackListResponseListMessageModel";
export * from "./apiTypes/SysConfig"; export * from "./apiTypes/SysConfig";
export * from "./apiTypes/SysConfigMessageModel"; export * from "./apiTypes/SysConfigMessageModel";
export * from "./apiTypes/Option"; export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle"; export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Dept"; export * from "./apiTypes/Dept";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleViewModel"; export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel"; export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/UserRoleViewModelMessageModelPageModel"; export * from "./apiTypes/UserRoleViewModelMessageModelPageModel";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleInfoViewModel"; export * from "./apiTypes/UserRoleInfoViewModel";
export * from "./apiTypes/UserRoleInfoViewModelMessageModel"; export * from "./apiTypes/UserRoleInfoViewModelMessageModel";
export * from "./apiTypes/UserRoleDepInsRequest";
{ {
"docsUrl": "https://asc.hnasct.cn/weekplan/swagger/Dormitoryscore/swagger.json", "docsUrl": "https://asc.hnasct.cn/weekplan/swagger/weekplan/swagger.json",
"axiosInstanceUrl": "@/util/axios.js" "axiosInstanceUrl": "@/util/axios.js"
} }
<template> <template>
<div class="mb-4 p-1 flex w-full h-[50px] rounded-[8px]"> <div class="mb-4 p-1 flex w-full h-[50px] rounded-[8px]">
<div class="w-1/2 h-full "> <div class="w-1/3 h-full ">
<div @click="back" style="background: white" <div @click="back" style="background: white"
class="child flex w-[45px] h-full rounded-[8px] justify-center items-center text-[18px] text-[#323233]"> class="child flex w-[45px] h-full rounded-[8px] justify-center items-center text-[18px] text-[#323233]">
<van-icon name="wap-home-o"/> <van-icon name="wap-home-o"/>
</div> </div>
</div> </div>
<div class="w-1/2 h-full flex justify-end items-center"> <div @click="init.userInfo.show = true" class="w-2/3 h-full flex justify-end items-center">
<div class="mx-2"> <div class="mx-2">
<div class="font-bold ml text-[#323233] flex justify-end">{{ hooks.getUserInfo().name }}</div> <div class="font-bold text-[18px] ml flex justify-end font-[黑体] text-[#000]">
<div class="text-[14px] text-neutral-400">{{ hooks.getUserInfo().dept_name }}</div> {{ useUserInfo().getUserInfo().name }}
</div> </div>
<div> <span
class="text-[16px] text-neutral-400"> {{
useUserInfo().getUserInfo().dept_name + ' ' + useUserInfo().getUserInfo().currentRole.name
}}
</span>
</div>
<div class="w-[50px] h-[50px] relative ">
<van-image
round
width="100%"
height="100%"
:src="tx"
/>
<div class="absolute bottom-0 right-0">
<van-image <van-image
round round
width="40px" width="15px"
height="40px" height="15px"
:src="hooks.getImage('tx')" :src="qh"
/> />
</div> </div>
</div> </div>
</div> </div>
</div>
<!-- 身份权限 -->
<van-popup
v-model:show="init.userInfo.show"
round
:style="{ width: '90%',top:'30vh' }"
>
<div style="
display: flex;
justify-content: center;
align-items: center;
background: #f4f4f4;
height: 50px;
position: sticky;
top: 0;"
>身份切换
</div>
<van-radio-group v-model="init.userInfo.curRole" @change="switchPermission">
<van-cell-group>
<van-cell v-for="(item,index) in init.userInfo.roleArray" :key="index" :title="item.label" clickable
@click="init.userInfo.curRole = item.value" size="large">
<template #right-icon>
<van-radio :name="item.value"></van-radio>
</template>
</van-cell>
</van-cell-group>
</van-radio-group>
</van-popup>
</template> </template>
<script setup> <script setup>
import * as hooks from "@/hooks/index.js"; import * as hooks from "@/hooks/index.js";
import {useRouter} from "vue-router"; import {useRouter} from "vue-router";
import tx from '@/assets/头像.png'
import qh from '@/assets/qh.png'
import {useUserInfo} from "@/store/modules/index.js";
import {onMounted, reactive} from "vue";
const router = useRouter() const router = useRouter()
const props = defineProps({ const props = defineProps({
...@@ -34,10 +81,38 @@ const props = defineProps({ ...@@ -34,10 +81,38 @@ const props = defineProps({
default: '' default: ''
}, },
}) })
const init = reactive({
userInfo: {
show: false,
//遍历用户权限格式
roleArray: useUserInfo().getUserInfo().roleList.map(cur => {
return {
value: cur.id,
label: cur.name,
}
}),
curRole: useUserInfo().getUserInfo().currentRole.id
}
})
//返回OA
function back() { function back() {
//返回OA
window.location.href = '/TeacherMobOA' window.location.href = '/TeacherMobOA'
} }
</script>
//切换权限
function switchPermission(curRole) {
init.userInfo.roleArray.forEach(cur => {
if (cur.value === curRole) useUserInfo().setUserInfo({
...useUserInfo().getUserInfo(),
currentRole: {
id: cur.value,
name: cur.label
},
})
})
router.go(0)
}
</script>
...@@ -2,64 +2,53 @@ ...@@ -2,64 +2,53 @@
<div <div
class=" w-full h-auto rounded-[8px] text-[#323233] text-[18px] flex-wrap flex backdrop-brightness-100 bg-white mb-3"> class=" w-full h-auto rounded-[8px] text-[#323233] text-[18px] flex-wrap flex backdrop-brightness-100 bg-white mb-3">
<div class="w-full min-h-11 flex p-2 items-center justify-between border-b-[1px] border-[#dedede] border-solid"> <div class="w-full min-h-11 flex p-2 items-center justify-between border-b-[1px] border-[#dedede] border-solid">
<div class="w-[60%] h-full flex items-center text-wrap"> <div class="w-full h-full flex items-center text-wrap">
<div :style="{background:props.data.peopleBg,color:props.data.peopleCl}">{{ props.data.username }}</div> <div :style="{background:props.data.peopleBg,color:props.data.peopleCl}">{{ props.data.username }}</div>
- -
<div <div
:style="{background:props.data.deptBg,color:props.data.deptCl}">{{ props.data.dept_name }} :style="{background:props.data.deptBg,color:props.data.deptCl}">{{ props.data.dept_name }}
</div> </div>
</div> </div>
<!-- v-if="props.data.planid "-->
<div class="w-[30%] h-full flex justify-end items-center ">
<van-button
v-if="props.data.planid && props.attentionButtonIdentifier === 'dayView' || props.attentionButtonIdentifier === 'index'"
@click="cancel($parent,props.data)" :type="['default','warning'][props.data.attention]" plain
size="small">
{{ props.data.attention !== void 0 ? ['关注', '已关注'][props.data.attention] : '已关注' }}
</van-button>
</div> </div>
</div>
<div v-if="props.alldayOrMidafternoonStatus" class="w-[63%] h-auto p-2 ">
<div class="w-full min-h-full flex">
<div class="w-[30%] h-full">全天:</div>
<div class="w-[70%] h-full">
<van-text-ellipsis
rows="4"
:content="props.data.after_plan"
expand-text="详细"
collapse-text="收起"
/> <div class="w-[63%] min-h-[108px] p-2 ">
</div> <!-- 日程安排-->
<div v-show="props.data.schedule.plan_list.map(cur=>cur.content).join(';')" class="w-full min-h-[45px] flex ">
<div class="w-full h-1/3">
<p class="w-full overflow-hidden text-nowrap text-ellipsis">{{'日程安排: '+props.data.schedule.plan_list.map(cur => cur.content).join(';')}}</p>
<!-- <van-text-ellipsis-->
<!-- rows="3"-->
<!-- :content="'日程安排: '+props.data.schedule.plan_list.map(cur => cur.content).join(';')"-->
<!-- expand-text="详细"-->
<!-- collapse-text="收起"-->
<!-- />-->
</div> </div>
</div> </div>
<div v-else class="w-[63%] min-h-[108px] p-2 "> <!-- 值班安排-->
<!-- 上下午--> <div v-show="props.data.schedule.duty_list.map(cur=>cur.content).join(';')" class="w-full min-h-[45px] flex ">
<div class="w-full min-h-[45px] flex "> <div class="w-full h-1/3">
<div class="w-[30%] h-full">上午:</div> <p class="w-full overflow-hidden text-nowrap text-ellipsis">{{'值班安排: '+props.data.schedule.duty_list.map(cur => cur.content).join(';')}}</p>
<div class="w-[70%] h-full"> <!-- <van-text-ellipsis-->
<van-text-ellipsis <!-- rows="3"-->
rows="2" <!-- :content="'日程安排: '+props.data.schedule.plan_list.map(cur => cur.content).join(';')"-->
:content="props.data.fore_plan" <!-- expand-text="详细"-->
expand-text="详细" <!-- collapse-text="收起"-->
collapse-text="收起" <!-- />-->
/>
</div> </div>
</div> </div>
<div class="w-full min-h-[45px] flex "> <!-- 会议安排-->
<div class="w-[30%] h-full">上午:</div> <div v-show="props.data.schedule.meet_list.map(cur=>cur.content).join(';')" class="w-full min-h-[45px] flex ">
<div class="w-[70%] h-full"> <div class="w-full h-1/3">
<van-text-ellipsis <p class="w-full overflow-hidden text-nowrap text-ellipsis">{{'会议安排: '+props.data.schedule.meet_list.map(cur => cur.content).join(';')}}</p>
rows="2" <!-- <van-text-ellipsis-->
:content="props.data.after_plan" <!-- rows="3"-->
expand-text="详细" <!-- :content="'日程安排: '+props.data.schedule.plan_list.map(cur => cur.content).join(';')"-->
collapse-text="收起" <!-- expand-text="详细"-->
/> <!-- collapse-text="收起"-->
<!-- />-->
</div> </div>
</div> </div>
</div> </div>
<!-- 全天-->
<div <div
class="w-[37%] text-[18px] flex items-center min-h-[108px] "> class="w-[37%] text-[18px] flex items-center min-h-[108px] ">
......
export const projectCommonIdentifying = 'weekPlan-wx-'
\ No newline at end of file
...@@ -39,43 +39,42 @@ export const go2Router = (path) => { ...@@ -39,43 +39,42 @@ export const go2Router = (path) => {
}) })
} }
export async function myEncapsulationFunction(fun) { export async function myEncapsulationFunction(fun, isShowSuccessText = false, loadingText = '正在提交') {
/**
* isShowSuccessText=>true||false
*
* */
const toast = showLoadingToast({ const toast = showLoadingToast({
duration: 0, duration: 0,
forbidClick: true, forbidClick: true,
message: '正在提交', message: loadingText,
}); });
let res = await fun() let res = await fun()
if (isShowSuccessText) return toast.close();
try { try {
switch (res.code) { switch (res.code) {
case 1 : case 1 :
toast.close() toast.close()
showSuccessToast({ showSuccessToast({
message: res.response message: res.msg
}) })
setTimeout(() => closeToast(), 1500) setTimeout(() => closeToast(), 1500)
// showNotify({type: 'success', message: res.response});
break; break;
default : default :
// showNotify({type: 'danger', message: res.msg_detail});
toast.close() toast.close()
showFailToast({ showFailToast({
message: res.msg_detail message: res.msg_detail
}) })
setTimeout(() => closeToast(), 1500) setTimeout(() => closeToast(), 1500)
} }
// Spin.hide()
return res return res
} catch (e) { } catch (e) {
// showNotify({type: 'danger', message: res.msg_detail || '报错,无msg_detail'});
toast.close() toast.close()
showFailToast({ showFailToast({
message: res.msg_detail message: res.msg_detail
}) })
setTimeout(() => closeToast(), 1500) setTimeout(() => closeToast(), 1500)
} }
} }
export function getInitListRequest(fun) { export function getInitListRequest(fun) {
......
...@@ -32,12 +32,14 @@ import headerInput from '@/components/headerInput.vue' ...@@ -32,12 +32,14 @@ import headerInput from '@/components/headerInput.vue'
import ElementPlus from 'element-plus' import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' import 'element-plus/dist/index.css'
import {initStore, store} from "@/store/index.js";
const app = createApp(App) const app = createApp(App)
app.use(ElementPlus) app.use(ElementPlus)
initStore(app)
//使用测试按钮Vxonsole //使用测试按钮Vxonsole
// const vConsole = new VConsole(); // const vConsole = new VConsole();
app.config.globalProperties.$cookies = VueCookies app.config.globalProperties.$cookies = VueCookies;
app.config.globalProperties.asc = api app.config.globalProperties.asc = api
app.use(router) app.use(router)
app.component('indexHeader', indexHeader) app.component('indexHeader', indexHeader)
...@@ -53,5 +55,12 @@ app.component('weekDate', weekDate) ...@@ -53,5 +55,12 @@ app.component('weekDate', weekDate)
app.component('loading', loading) app.component('loading', loading)
app.component('headerInput', headerInput) app.component('headerInput', headerInput)
app.directive('font', (el, binding, vnode, prevVNode) => {
let arg = binding.arg !== void 0 ? JSON.parse(JSON.stringify(binding.arg)) : '{}';
//...eval(`(${arg})` 字符串转对象
let argument = {...{family: '黑体', size: '16', color: '#FFFFFF'}, ...eval(`(${arg})`)};
el.style.fontFamily = argument.family;
el.style.fontSize = argument.size + 'px';
el.style.color = argument.color;
})
app.mount('#app') app.mount('#app')
...@@ -10,13 +10,25 @@ import Cookies from 'js-cookie' ...@@ -10,13 +10,25 @@ import Cookies from 'js-cookie'
import {useRouter} from 'vue-router' import {useRouter} from 'vue-router'
import {onMounted} from 'vue' import {onMounted} from 'vue'
import * as api from '@/api/index.js' import * as api from '@/api/index.js'
import {useUserInfo} from "@/store/modules/index.js";
import * as scheduleApi from '@/api/apis/controller/index.js'
const router = useRouter() const router = useRouter()
//获取用户信息
const getUserInfo = ()=>{
api.GetTokenInfo().then(user=>{
Cookies.set('oneWeekARange-user-info', JSON.stringify(user.response))
scheduleApi.getApiCommonGetCurrentUserRoleList().then(res=>{
useUserInfo().setUserInfo({...user.response,roleList:res.response,currentRole:res.response[0]})
router.replace({
name: 'welcome'
})
})
})
}
//PC单点
const getTokenAction = async (date) => { const getTokenAction = async (date) => {
const res = await api.SSOPC(date) const res = await api.SSOPC(date)
if (res === void 0) { if (res === void 0) {
console.log("🚀🚀🚀,", res)
await router.replace({ await router.replace({
name: '403' name: '403'
}) })
...@@ -24,13 +36,10 @@ const getTokenAction = async (date) => { ...@@ -24,13 +36,10 @@ const getTokenAction = async (date) => {
// access_token.token_content // access_token.token_content
Cookies.set('oneWeekARange-management-token', res.response.access_token.token_content) Cookies.set('oneWeekARange-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires) Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo() getUserInfo()
Cookies.set('oneWeekARange-user-info', JSON.stringify(user.response))
await router.replace({
name: 'welcome'
})
} }
} }
//微信单点
const getTokenActionWx = async (date) => { const getTokenActionWx = async (date) => {
const res = await api.wx(date) const res = await api.wx(date)
if (res === void 0) { if (res === void 0) {
...@@ -40,11 +49,7 @@ const getTokenActionWx = async (date) => { ...@@ -40,11 +49,7 @@ const getTokenActionWx = async (date) => {
} else if (res.response.access_token.token_content !== '') { } else if (res.response.access_token.token_content !== '') {
Cookies.set('oneWeekARange-management-token', res.response.access_token.token_content) Cookies.set('oneWeekARange-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires) Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo() getUserInfo()
Cookies.set('oneWeekARange-user-info', user.response.role)
await router.replace({
name: 'welcome'
})
} }
} }
const getToken = async () => { const getToken = async () => {
...@@ -75,11 +80,7 @@ const getToken = async () => { ...@@ -75,11 +80,7 @@ const getToken = async () => {
} else if (res.response.access_token.token_content !== '') { } else if (res.response.access_token.token_content !== '') {
Cookies.set('oneWeekARange-management-token', res.response.access_token.token_content) Cookies.set('oneWeekARange-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires) Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo() getUserInfo()
Cookies.set('oneWeekARange-user-info', JSON.stringify(user.response))
await router.replace({
name: 'welcome'
})
} }
} }
} }
......
...@@ -297,15 +297,17 @@ function GetDeptList() { ...@@ -297,15 +297,17 @@ function GetDeptList() {
} }
function getData() { function getData() {
hooks.myEncapsulationFunction(()=>{
return api.getApiUserRoleGetUserRoleList(init.initParams).then(res => { return api.getApiUserRoleGetUserRoleList(init.initParams).then(res => {
init.data = res.response.data.map(cur => { init.data = res.response.data.map(cur => {
return { return {
...cur, ...cur,
// customCss: 1
} }
}) })
init.total = res.response.data_count init.total = res.response.data_count
return res
}) })
},true,'加载中...')
} }
// function IntersectionObserver() { // function IntersectionObserver() {
......
<!--
赛事目录申请 详情界面
-->
<template>
<!-- 1-退回到上个节点 // 2-退回到发起人-->
<van-popup v-model:show="init.approval.showPopup" position="bottom">
<van-picker
:columns="init.approval.columns"
show-toolbar
@cancel="init.approval.showPopup = false"
@confirm="onConfirm_approval"
/>
</van-popup>
<div class="container1 ">
<!--content-->
<div class="w-screen h-screen overflow-y-auto relative">
<!--header-->
<div class="w-full h-[108px] bg-white z-50 sticky top-0">
<childrenIndexHeader path="/welcome" title="日程详情"/>
<div class="w-full h-[54px]">
<van-tabs v-model:active="active" swipeable @change="tabChange">
<van-tab v-for="(item,index) in tabArray" :key="index" :title="item.text"/>
</van-tabs>
</div>
</div>
<!--content_content-->
<div
:class="`${init.formData.flowType ==='await' ? 'h-[calc(100%-172px)]':'h-[calc(100%-108px)]'}`"
class="w-full overflow-y-auto relative bg-red-600">
<div v-show="active == 0" class="">1</div>
<div v-show="active == 1" class="">2</div>
<div v-show="active == 2" class="">3</div>
</div>
<!--审批-->
<div class="w-full h-[64px] flex justify-center items-center sticky bottom-0 px-2 bg-white">
<van-button round class="w-[50%]" @click="back">返回</van-button>
</div>
</div>
</div>
</template>
<script setup>
import {reactive, defineAsyncComponent, ref, onMounted, provide, inject, nextTick} from "vue";
import * as hooks from '@/hooks/index.js'
import * as api from '@/api/apis/controller/index.js'
import router from "@/router/index.js";
const active = ref(0)
const tabArray = ref([
{text: '日程安排', value: '0'},
{text: '值班安排', value: '1'},
{text: '会议安排', value: '2'},
{text: '操作轨迹', value: '3'},
])
const init = reactive({
formData: {},
approval: {
active: '0',
showPopup: false,
show: false,
columns: [
{value: 1, text: "退回到上个节点"},
{value: 2, text: "退回到发起人"},
],
formData: {
taskid: '',
remark: '',
action: '',
},
}
})
const back = () => {
if (init.formData.pushMessage !== void 0) {
//消息推送 进入 需返回 主页
hooks.go2Router('welcome')
} else {
//正常返回上一级
router.back()
}
}
const tabChange = (e) => {
active.value = e
}
const activityPeopleCard = ref('')
function getInitObject(card) {
//获取活动基础数据 用户参与人列表
activityPeopleCard.value = card
}
function onConfirm_approval(value) {
//创建团队》是否备用
const info = value.selectedOptions[0];
init.approval.formData.action = info.value;
init.approval.value = info.text;
init.approval.showPopup = false;
}
function submitApproval() {
//审批
let info = competitionFormInfo.getFormData()
if (init.approval.active == 0) {
//通过
hooks.myEncapsulationFunction(() => {
return api.getApiFlowApiFlowFlowApproval({
taskid: info.taskid,
action: init.approval.formData.action,
remark: init.approval.formData.remark,
}).then(res => {
hooks.responseSuccessAction(res, () => back())
return res
})
})
} else {
hooks.myEncapsulationFunction(() => {
//退回
return api.getApiFlowApiFlowFlowRevocation({
taskid: info.taskid,
action: init.approval.formData.action,
remark: init.approval.formData.remark,
}).then(res => {
hooks.responseSuccessAction(res, () => back())
return res
})
})
}
}
onMounted(() => {
init.formData = router.currentRoute.value.query
})
</script>
<style scoped>
</style>
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
</childrenIndexHeader> </childrenIndexHeader>
<div class="w-full h-[50px] flex bg-white justify-between items-center p-2"> <div class="w-full h-[50px] flex bg-white justify-between items-center p-2">
<el-radio-group @change="changeView($event,$refs)" v-model="init.switchView.show" size="mini"> <el-radio-group @change="changeView($event,$refs)" v-model="init.switchView.show" size="mini">
<el-radio-button label="天" :value="true" /> <el-radio-button label="天" :value="true"/>
<el-radio-button label="周" :value="false" /> <el-radio-button label="周" :value="false"/>
</el-radio-group> </el-radio-group>
<div :style="{ <div :style="{
background:['#FFFFFF','#1989FA'][Number(init.select.action)], background:['#FFFFFF','#1989FA'][Number(init.select.action)],
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
<Date v-if="init.switchView.show" ref="dateDay" @searchDayData="searchDayData"/> <Date v-if="init.switchView.show" ref="dateDay" @searchDayData="searchDayData"/>
<div v-if="init.switchView.show" class="w-full h-2"></div> <div v-if="init.switchView.show" class="w-full h-2"></div>
<van-tabs v-if="!init.switchView.show"> <van-tabs v-if="!init.switchView.show">
<van-tab v-for="(item,index) in init.initWeekArray" :key="index" > <van-tab v-for="(item,index) in init.initWeekArray" :key="index">
<template #title> <template #title>
<span @click="selectTheExternalDepartment(item.deptId)">{{item.deptName}}</span> <span @click="selectTheExternalDepartment(item.deptId)">{{ item.deptName }}</span>
</template> </template>
</van-tab> </van-tab>
</van-tabs> </van-tabs>
...@@ -35,40 +35,43 @@ ...@@ -35,40 +35,43 @@
${['h-[calc(100%-205px)]','h-[calc(100%-163.4px)]'][Number(init.switchView.show)]} ` "> ${['h-[calc(100%-205px)]','h-[calc(100%-163.4px)]'][Number(init.switchView.show)]} ` ">
<div v-if="init.switchView.show"> <div v-if="init.switchView.show">
<!-- 天视图 --> <!-- 天视图 -->
<van-empty
v-if="init.dayArray.length==0"
image="https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png"
image-size="80"
description="暂无数据"
/>
<my-focus-card
v-else
@click="showDetails(item)"
attentionButtonIdentifier="dayView"
:data="item"
v-for="(item,index) in init.dayArray"
:key="index"
:alldayOrMidafternoonStatus="Boolean(Number(item.is_allday))"
/>
<my-focus-card attentionButtonIdentifier="dayView" :data="item" v-for="(item,index) in init.dayArray" :key="index"
:alldayOrMidafternoonStatus="Boolean(Number(item.is_allday))"/>
</div> </div>
<div v-if="!init.switchView.show"> <div v-if="!init.switchView.show">
<!-- 周视图 --> <!-- 周视图 -->
<div class="w-full h-auto bg-white text-gray-600" :key="init.weekKey"> <div class="w-full h-auto bg-white text-gray-600" :key="init.weekKey">
<div class="w-full min-h-[80px] flex-wrap ccFlex " <div class="w-full min-h-[80px] flex-wrap ccFlex "
v-for="(item,index) in init.weekArray" :key="index"> v-for="(item,index) in init.weekArray" :key="index">
<!-- 一个部门-->
<!-- <div @click="selectTheExternalDepartment(item.deptId)" :style="{-->
<!-- background:item.deptBg,color:item.deptCl-->
<!-- }" class="w-[35px] min-h-[80px] ">-->
<!-- &lt;!&ndash; 部门名称&ndash;&gt;-->
<!-- <div class=" aaa w-full min-h-[80px] ccFlex p-1">{{ item.deptName }}</div>-->
<!-- </div>-->
<div class="w-[calc(100%)] h-full "> <div class="w-[calc(100%)] h-full ">
<!-- 人员信息--> <!-- 人员信息-->
<div class="w-full h-auto flex " v-for="(ite,inde) in item.nameData" :key="inde"> <div class="w-full h-auto flex " v-for="(ite,inde) in item.nameData" :key="inde">
<div @click="pickSomeoneFromTheOutside(ite.userId)" :style="{ <div
background:ite.peopleBg,color:ite.peopleCl @click="pickSomeoneFromTheOutside(ite.userId)"
}" class=" w-[35px] min-h-[80px] ccFlex "> :style="{background:ite.peopleBg,color:ite.peopleCl}"
<!-- 姓名--> class=" w-[35px] min-h-[80px] ccFlex "
>
<!--姓名-->
<div class="aaa ">{{ ite.userName }}</div> <div class="aaa ">{{ ite.userName }}</div>
</div> </div>
<div class="w-[35px] min-h-[80px] "> <div class="w-[35px] min-h-[80px] ">
<!-- 上下午--> <!--上下午-->
<div class="w-full h-1/2 ccFlex">上</div>
<div class="w-full h-1/2 ccFlex"> <div class="w-full h-1/2 ccFlex">下</div>
上
</div>
<div class="w-full h-1/2 ccFlex">
下
</div>
</div> </div>
<!--v-for="(it,ind) in ite.nameArray" :key="ind"--> <!--v-for="(it,ind) in ite.nameArray" :key="ind"-->
<div class="w-[calc(100%-105px)] min-h-[80px] mb-2"> <div class="w-[calc(100%-105px)] min-h-[80px] mb-2">
...@@ -92,9 +95,8 @@ ...@@ -92,9 +95,8 @@
<div :style="{background:ite.bg,color:ite.cl}" class="w-[35px] min-h-[80px] ccFlex "> <div :style="{background:ite.bg,color:ite.cl}" class="w-[35px] min-h-[80px] ccFlex ">
<!-- 是否关注--> <!-- 是否关注-->
<div @click="followOrUnfollow(ite,ite.attention)" class="aaa "> <div @click="followOrUnfollow(ite,ite.attention)" class="aaa ">
<van-icon :name="['star-o','star'][ite.attention]" color="#FD9700"/>
<van-icon :name="['star-o','star'][ite.attention]" color="#FD9700" /> <!-- {{ ['关注', '取消关注'][ite.attention] }}-->
<!-- {{ ['关注', '取消关注'][ite.attention] }}-->
</div> </div>
</div> </div>
...@@ -232,6 +234,9 @@ import dayjs from "dayjs"; ...@@ -232,6 +234,9 @@ import dayjs from "dayjs";
import {onMounted, reactive, ref} from "vue"; import {onMounted, reactive, ref} 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 {useUserInfo} from "@/store/modules/index.js";
import {go2Router, myEncapsulationFunction} from "@/hooks/index.js";
import {useDayViewItemData} from "@/store/modules/dayView.js";
// 导出excel文件 // 导出excel文件
const exportExcel = (fileData) => { const exportExcel = (fileData) => {
function formattedDate(date) { function formattedDate(date) {
...@@ -246,36 +251,36 @@ const exportExcel = (fileData) => { ...@@ -246,36 +251,36 @@ const exportExcel = (fileData) => {
const sheet1 = workbook.addWorksheet("sheet1"); const sheet1 = workbook.addWorksheet("sheet1");
console.log("🚀已处理🚀🚀,",init.weekArray) console.log("🚀已处理🚀🚀,", init.weekArray)
console.log("🚀未处里🚀🚀,",init.importExcelData) console.log("🚀未处里🚀🚀,", init.importExcelData)
const data1 = fileData const data1 = fileData
// 将标题写入第一行 // 将标题写入第一行
sheet1.addRow([`中层干部周工作安排(${formattedDate(data1[0].data[0].date)+'-'+formattedDate(data1[0].data[data1[0].data.length-1].date)})`]); sheet1.addRow([`中层干部周工作安排(${formattedDate(data1[0].data[0].date) + '-' + formattedDate(data1[0].data[data1[0].data.length - 1].date)})`]);
sheet1.mergeCells('A1:G1') sheet1.mergeCells('A1:G1')
sheet1.getColumn(1).alignment = { vertical: 'middle', horizontal: 'center' } sheet1.getColumn(1).alignment = {vertical: 'middle', horizontal: 'center'}
sheet1.getRow(1).height = 70 sheet1.getRow(1).height = 70
// 设置字体 // 设置字体
sheet1.getRow(1).font = { sheet1.getRow(1).font = {
bold: true, bold: true,
size: 20, size: 20,
name: '黑体', name: '黑体',
color: { argb: '#FFFFFF' } color: {argb: '#FFFFFF'}
}; };
// 将标题写入第二行 // 将标题写入第二行
const headers = ['所在部门/单位','姓名',...data1[0].data.map(cur=>cur.week+`(${formattedDate(cur.date)})`)] const headers = ['所在部门/单位', '姓名', ...data1[0].data.map(cur => cur.week + `(${formattedDate(cur.date)})`)]
sheet1.addRow(headers); sheet1.addRow(headers);
sheet1.getColumn(2).alignment = { vertical: 'middle', horizontal: 'center' } sheet1.getColumn(2).alignment = {vertical: 'middle', horizontal: 'center'}
sheet1.getRow( 2).alignment = { vertical: 'middle', horizontal: 'center' } sheet1.getRow(2).alignment = {vertical: 'middle', horizontal: 'center'}
sheet1.getRow(2).height = 70 sheet1.getRow(2).height = 70
sheet1.getRow(2).font = { sheet1.getRow(2).font = {
bold: true, bold: true,
name: '黑体', name: '黑体',
color: { argb: '#FFFFFF' } color: {argb: '#FFFFFF'}
}; };
...@@ -289,7 +294,7 @@ const exportExcel = (fileData) => { ...@@ -289,7 +294,7 @@ const exportExcel = (fileData) => {
if (indices.length > 0) { if (indices.length > 0) {
indices[indices.length - 1].endIndex = i - 1; indices[indices.length - 1].endIndex = i - 1;
} }
indices.push({ dept_name: data[i].dept_name, startIndex: i }); indices.push({dept_name: data[i].dept_name, startIndex: i});
currentDept = data[i].dept_name; currentDept = data[i].dept_name;
} }
} }
...@@ -300,45 +305,51 @@ const exportExcel = (fileData) => { ...@@ -300,45 +305,51 @@ const exportExcel = (fileData) => {
return indices; return indices;
} }
// 得到 startIndex和endIndex // 得到 startIndex和endIndex
const deptIndices = findDeptIndices(data1); const deptIndices = findDeptIndices(data1);
deptIndices.forEach((row,index) => { deptIndices.forEach((row, index) => {
//基于部门始标和尾标数据 合并行以及指定合并后的数据 //基于部门始标和尾标数据 合并行以及指定合并后的数据
sheet1.mergeCells(`A${(2*row.startIndex)+3}:A${(2*row.endIndex)+4}`) sheet1.mergeCells(`A${(2 * row.startIndex) + 3}:A${(2 * row.endIndex) + 4}`)
sheet1.getCell(`A${(2*row.startIndex)+3}:A${(2*row.endIndex)+4}`).value = row.dept_name sheet1.getCell(`A${(2 * row.startIndex) + 3}:A${(2 * row.endIndex) + 4}`).value = row.dept_name
}); });
data1.forEach((row,index) => { data1.forEach((row, index) => {
//基于初始化数据 合并行人员行以及指定合并后的数据 //基于初始化数据 合并行人员行以及指定合并后的数据
sheet1.mergeCells(`B${(2*index)+3}:B${(2*index)+4}`) sheet1.mergeCells(`B${(2 * index) + 3}:B${(2 * index) + 4}`)
sheet1.getCell(`B${(2*index)+3}:B${(2*index)+4}`).value = row.username sheet1.getCell(`B${(2 * index) + 3}:B${(2 * index) + 4}`).value = row.username
let headerIndex = ['C','D','E','F','G',] // 日期列表 let headerIndex = ['C', 'D', 'E', 'F', 'G',] // 日期列表
row.data.forEach((cu,inde)=>{ row.data.forEach((cu, inde) => {
//基于该条数据的日期数据 插入对用的上下午日期 //基于该条数据的日期数据 插入对用的上下午日期
sheet1.getCell(String(headerIndex[inde])+Number((2*index)+3)).value = '上午:'+cu.fore_plan sheet1.getCell(String(headerIndex[inde]) + Number((2 * index) + 3)).value = '上午:' + cu.fore_plan
sheet1.getCell(String(headerIndex[inde])+Number((2*index)+4)).value = '下午:'+cu.after_plan sheet1.getCell(String(headerIndex[inde]) + Number((2 * index) + 4)).value = '下午:' + cu.after_plan
//设置对齐方式 //设置对齐方式
sheet1.getCell(String(headerIndex[inde])+Number((2*index)+3)).alignment = { vertical: 'middle', horizontal: 'left' } sheet1.getCell(String(headerIndex[inde]) + Number((2 * index) + 3)).alignment = {
sheet1.getCell(String(headerIndex[inde])+Number((2*index)+4)).alignment = { vertical: 'middle', horizontal: 'left' } vertical: 'middle',
horizontal: 'left'
}
sheet1.getCell(String(headerIndex[inde]) + Number((2 * index) + 4)).alignment = {
vertical: 'middle',
horizontal: 'left'
}
}) })
sheet1.getRow(index*2 + 3).height = 70 sheet1.getRow(index * 2 + 3).height = 70
sheet1.getRow(index*2 +4).height = 70 sheet1.getRow(index * 2 + 4).height = 70
}); });
let columnWidth = [1,1,1,1,1,1,1].forEach((cur,index)=>{ let columnWidth = [1, 1, 1, 1, 1, 1, 1].forEach((cur, index) => {
//设置列宽 //设置列宽
if (index !== 1)sheet1.getColumn( index +1).width =28 if (index !== 1) sheet1.getColumn(index + 1).width = 28
else sheet1.getColumn( index +1).width =14 else sheet1.getColumn(index + 1).width = 14
}) })
// 导出表格文件 // 导出表格文件
workbook.xlsx.writeBuffer().then((buffer) => { workbook.xlsx.writeBuffer().then((buffer) => {
if(isWeixin()){ if (isWeixin()) {
window.localStorage.setItem('fileData',crypto.base64.en(JSON.stringify(init.initWeekArray))) window.localStorage.setItem('fileData', crypto.base64.en(JSON.stringify(init.initWeekArray)))
} }
let file = new Blob([buffer], {type: "application/octet-stream"}); let file = new Blob([buffer], {type: "application/octet-stream"});
...@@ -351,11 +362,11 @@ const exportExcel = (fileData) => { ...@@ -351,11 +362,11 @@ const exportExcel = (fileData) => {
// document.body.removeChild(downloadElement); //下载完成移除body中元素 // document.body.removeChild(downloadElement); //下载完成移除body中元素
// window.URL.revokeObjectURL(href); //释放掉blob对象 // window.URL.revokeObjectURL(href); //释放掉blob对象
FileSaver.saveAs(file, `中层干部周工作安排(${formattedDate(data1[0].data[0].date)+'-'+formattedDate(data1[0].data[data1[0].data.length-1].date)}).xlsx`); FileSaver.saveAs(file, `中层干部周工作安排(${formattedDate(data1[0].data[0].date) + '-' + formattedDate(data1[0].data[data1[0].data.length - 1].date)}).xlsx`);
}).catch(error => console.log('Error writing excel export', error)) }).catch(error => console.log('Error writing excel export', error))
} }
function isWeixin () { function isWeixin() {
var ua = window.navigator.userAgent.toLowerCase() var ua = window.navigator.userAgent.toLowerCase()
if (ua.match(/MicroMessenger/i) == 'micromessenger') { if (ua.match(/MicroMessenger/i) == 'micromessenger') {
return true return true
...@@ -375,7 +386,7 @@ const miniDate1 = new Date(dayjs().year(), dayjs().month() - 1, 1) ...@@ -375,7 +386,7 @@ const miniDate1 = new Date(dayjs().year(), dayjs().month() - 1, 1)
const init = reactive({ const init = reactive({
initWeekArray:[], initWeekArray: [],
dataFlag: 1, dataFlag: 1,
peoPleFlag: false, peoPleFlag: false,
weekFlag: false, weekFlag: false,
...@@ -389,7 +400,7 @@ const init = reactive({ ...@@ -389,7 +400,7 @@ const init = reactive({
"dept_id_list": [], "dept_id_list": [],
"tid_list": [], "tid_list": [],
}, },
importExcelData:[], importExcelData: [],
paramsWeek: { paramsWeek: {
"begin_time": startOfWeek, "begin_time": startOfWeek,
"end_time": endOfWeek, "end_time": endOfWeek,
...@@ -428,10 +439,12 @@ const init = reactive({ ...@@ -428,10 +439,12 @@ const init = reactive({
show: true, show: true,
} }
}) })
function actionPopUp(e) { function actionPopUp(e) {
//关闭popUp //关闭popUp
init.select.showPopup = e init.select.showPopup = e
} }
function onConfirm(value, key) { function onConfirm(value, key) {
//高级筛选确定日期 //高级筛选确定日期
let strategy = { let strategy = {
...@@ -457,9 +470,9 @@ function advancedQuery() { ...@@ -457,9 +470,9 @@ function advancedQuery() {
init.select.showPopup = true init.select.showPopup = true
} }
function changeView(event,refs) { function changeView(event, refs) {
//切换视图 //切换视图
console.log("🚀event🚀🚀,",event) console.log("🚀event🚀🚀,", event)
// init.switchView.show = !init.switchView.show // init.switchView.show = !init.switchView.show
init.calendarKey++ init.calendarKey++
if (init.switchView.show) { if (init.switchView.show) {
...@@ -595,7 +608,7 @@ function closeDateComponent(e) { ...@@ -595,7 +608,7 @@ function closeDateComponent(e) {
function GetDeptList() { function GetDeptList() {
//获取部门列表 //获取部门列表
return api.getApiCommonGetDeptList().then(res => { return api.getApiCommonGetDeptList({role_id: useUserInfo().getUserInfo().currentRole.id}).then(res => {
init.comment.dept = res.response.map(cu => { init.comment.dept = res.response.map(cu => {
return { return {
...cu, ...cu,
...@@ -603,6 +616,7 @@ function GetDeptList() { ...@@ -603,6 +616,7 @@ function GetDeptList() {
cl: '' cl: ''
} }
}) })
console.log("🚀🚀 init.comment.dept🚀,", init.comment.dept)
return res return res
}) })
} }
...@@ -660,7 +674,10 @@ function followOrUnfollow(item, number) { ...@@ -660,7 +674,10 @@ function followOrUnfollow(item, number) {
function GetUserList() { function GetUserList() {
//获取用户列表 //获取用户列表
api.postApiCommonGetUserList(init.comment.deptId).then(res => { api.postApiCommonGetUserList({
dept_list: init.comment.deptId,
role_id: useUserInfo().getUserInfo().currentRole.id
}).then(res => {
init.comment.user = res.response.map(cu => { init.comment.user = res.response.map(cu => {
return { return {
...cu, ...cu,
...@@ -673,7 +690,12 @@ function GetUserList() { ...@@ -673,7 +690,12 @@ function GetUserList() {
function GetPlanProjectByDayList() { function GetPlanProjectByDayList() {
//天视图数据 //天视图数据
return api.postApiPlanProjectGetPlanProjectByDayList(init.paramsDay).then(res => { hooks.myEncapsulationFunction(() => {
return api.postApiPlanProjectGetPlanScheduleByDayList({
...init.paramsDay,
date: init.paramsDay.begin_time,
role_id: useUserInfo().getUserInfo().currentRole.id
}).then(res => {
init.dayArray = res.response.map((cur, index) => { init.dayArray = res.response.map((cur, index) => {
return { return {
...cur, ...cur,
...@@ -683,7 +705,10 @@ function GetPlanProjectByDayList() { ...@@ -683,7 +705,10 @@ function GetPlanProjectByDayList() {
peopleCl: '', peopleCl: '',
} }
}) })
return res
}) })
}, true, '加载中...')
} }
...@@ -842,7 +867,7 @@ function selectTheExternalDepartment(deptId) { ...@@ -842,7 +867,7 @@ function selectTheExternalDepartment(deptId) {
if (init.paramsWeek.dept_id_list.includes(deptId)) { if (init.paramsWeek.dept_id_list.includes(deptId)) {
init.paramsWeek.dept_id_list.splice(init.paramsWeek.dept_id_list.indexOf(deptId), 1) init.paramsWeek.dept_id_list.splice(init.paramsWeek.dept_id_list.indexOf(deptId), 1)
} else { } else {
deptId !=='全部' ? init.paramsWeek.dept_id_list.push(deptId) : '' deptId !== '全部' ? init.paramsWeek.dept_id_list.push(deptId) : ''
} }
if (validateActionSelect()) init.select.action = true if (validateActionSelect()) init.select.action = true
...@@ -910,16 +935,27 @@ const formatter = (day) => { ...@@ -910,16 +935,27 @@ const formatter = (day) => {
} }
return day; return day;
}; };
function tabsChange(e,item) {
function tabsChange(e, item) {
//tabs改变触发 //tabs改变触发
console.log("🚀🚀🚀,",e,item) console.log("🚀🚀🚀,", e, item)
} }
//跳转详情
function showDetails(item) {
useDayViewItemData().setDayViewItemData(item)
go2Router('dayDetails')
}
onMounted(async () => { onMounted(async () => {
if (!isWeixin() && window.localStorage.getItem('fileData')) { if (!isWeixin() && window.localStorage.getItem('fileData')) {
exportExcel(JSON.parse(crypto.base64.de(window.localStorage.getItem('fileData')))) exportExcel(JSON.parse(crypto.base64.de(window.localStorage.getItem('fileData'))))
window.localStorage.removeItem('fileData') window.localStorage.removeItem('fileData')
} }
GetUserList() GetUserList()
GetPlanProjectByDayList() GetPlanProjectByDayList()
await GetDeptList() await GetDeptList()
// .then(res=>{ // .then(res=>{
...@@ -928,18 +964,18 @@ onMounted(async () => { ...@@ -928,18 +964,18 @@ onMounted(async () => {
GetPlanProjectByWeekList().then(res => { GetPlanProjectByWeekList().then(res => {
init.initWeekArray = res init.initWeekArray = res
init.initWeekArray.unshift({ init.initWeekArray.unshift({
deptName:'全部', deptName: '全部',
deptId:'全部', deptId: '全部',
}) })
}) //初始化后 分离出tabs数组 }) //初始化后 分离出tabs数组
}) })
defineExpose({ defineExpose({
init, init,
GetPlanProjectByDayList, GetPlanProjectByDayList,
GetPlanProjectByWeekList, GetPlanProjectByWeekList,
GetDeptList,
}) })
</script> </script>
<style scoped> <style scoped>
...@@ -951,10 +987,11 @@ defineExpose({ ...@@ -951,10 +987,11 @@ defineExpose({
z-index: 99999; z-index: 99999;
transform: translateZ(1001000px); transform: translateZ(1001000px);
} }
/deep/.el-radio-button__original-radio:checked+.el-radio-button__inner {
/deep/ .el-radio-button__original-radio:checked + .el-radio-button__inner {
background-color: white; background-color: white;
border-color: var(--el-radio-button-checked-border-color,var(--el-color-primary)); border-color: var(--el-radio-button-checked-border-color, var(--el-color-primary));
box-shadow: -1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary)); 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)); color: var(--el-radio-button-checked-bg-color, var(--el-color-primary));
} }
</style> </style>
...@@ -2,42 +2,18 @@ ...@@ -2,42 +2,18 @@
<div class="publicContainer "> <div class="publicContainer ">
<indexHeader/> <indexHeader/>
<div class="w-full h-[calc(100%-65px)] box-border overflow-y-auto "> <div class="w-full h-[calc(100%-65px)] box-border overflow-y-auto ">
<!-- <van-divider v-if="!!Object.keys(init.data.mySchedule).length"-->
<!-- :style="{ color: '#1989FA',fontSize:'18px', margin:0, borderColor: '#1989fa', padding:'5px 0'}"-->
<!-- content-position="left">-->
<!-- 今日安排-->
<!-- </van-divider>-->
<weeklyArrangementCard v-if="!!Object.keys(init.data.mySchedule).length"
:data="init.data.mySchedule"/>
<!-- <van-divider v-if="!!init.data.myFocus.length"-->
<!-- :style="{ color: '#1989FA',fontSize:'18px', margin:0, borderColor: '#1989fa',padding:'5px 0' }"-->
<!-- content-position="left">-->
<!-- 我的关注-->
<!-- </van-divider>-->
<div v-if="!!init.data.myFocus.length" class="w-full h-[25px] text-[18px] text-[#646566] flex items-center mb-1">
我的关注
</div>
<my-focus-card attentionButtonIdentifier="index" v-for="(item,index) in init.data.myFocus" :key="index"
:alldayOrMidafternoonStatus="Boolean(Number(item.is_allday))"
:data="item"
/>
<!-- <div id="loading" class="flex justify-center items-center">-->
<!-- <van-loading color="#1989fa"/>-->
<!-- </div>-->
<van-cell class="rounded-[8px] mt-[10px] h-[50px] text-[17px] flex items-center" v-if="init.role.plan_write== 1" <!-- <van-cell class="rounded-[8px] mt-[10px] h-[50px] text-[17px] flex items-center" v-if="init.role.plan_write== 1"-->
title="工作安排填报" <!-- title="工作安排填报"-->
is-link <!-- is-link-->
to="/workArrangementFilling"> <!-- to="/workArrangementFilling">-->
<template #icon> <!-- <template #icon>-->
<img :src="images.icon01.default" style="width: 20px;height: 20px;margin-right: 10px"/> <!-- <img :src="images.icon01.default" style="width: 20px;height: 20px;margin-right: 10px"/>-->
</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-t-[8px] h-[50px] text-[17px] flex items-center" v-if="init.role.examine== 1"
title="分管填报记录" title="分管填报记录"
is-link to="/responsibleForFilingRecords"> is-link to="/responsibleForFilingRecords">
...@@ -300,9 +276,12 @@ function GetCollectList() { ...@@ -300,9 +276,12 @@ function GetCollectList() {
function GetMenuRole() { function GetMenuRole() {
//获取菜单权限 //获取菜单权限
api.getApiCommonGetMenuRole().then(res => { hooks.myEncapsulationFunction(() => {
return api.getApiCommonGetMenuRole().then(res => {
init.role = res.response init.role = res.response
return res
}) })
},true,'加载中...')
} }
function save() { function save() {
...@@ -401,10 +380,9 @@ const onCancel = () => showToast('取消'); ...@@ -401,10 +380,9 @@ const onCancel = () => showToast('取消');
onMounted(() => { onMounted(() => {
GetPlanProjectByMyList() // GetPlanProjectByMyList()
GetCollectList() // GetCollectList()
GetMenuRole() GetMenuRole()
}) })
defineExpose({ defineExpose({
GetCollectList, GetCollectList,
......
...@@ -50,6 +50,12 @@ const routes = [ ...@@ -50,6 +50,12 @@ const routes = [
component: () => import('../pages/system/index.vue'), component: () => import('../pages/system/index.vue'),
meta: {isAuth: true}, meta: {isAuth: true},
}, },
{
name: 'dayDetails',
path: '/dayDetails',
component: () => import('../pages/responsibleForFilingRecords/dayDetails/index.vue'),
meta: {isAuth: true},
},
] ]
......
import {createPinia} from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
const store = createPinia();
store.use(piniaPluginPersistedstate);
const initStore = (app) => {
/**
* 传入VM,将Pinia挂载到VM中
* */
app.use(store);
};
export {store, initStore}
import {defineStore} from "pinia";
import * as config from '@/config'
/***
* 用户状态管理
* */
export const useDayViewItemData = defineStore(config.projectCommonIdentifying + 'dayView', {
state: () => ({
data: {},
}),
actions: {
setDayViewItemData(response) {
this.data = response
},
getDayViewItemData() {
return this.data
},
},
persist: {
paths: ["data",]
}
})
export * from './user.js'
import {defineStore} from "pinia";
import {store} from "@/store/index.js";
import * as crypt from '@/crypto/index.js'
import * as config from '@/config'
/***
* 用户状态管理
* */
export const useUserInfo = defineStore(config.projectCommonIdentifying + 'userInfo', {
state: () => ({
tokenInfo: {
access_token: {
token_content: "",
expires: "",
},
refresh_token: {
token_content: "",
expires: "",
}
},
userInfo: {},
currentRole: {}
}),
actions: {
removeUserInfo() {
this.userInfo = {}
this.tokenInfo = {}
},
setToken(response) {
this.tokenInfo = response
},
getToken() {
return this.tokenInfo.access_token.token_content
},
setUserInfo(response) {
this.userInfo = response
},
getUserInfo() {
return this.userInfo
},
},
persist: {
paths: ["tokenInfo", "userInfo", "currentRole"]
}
})
export function useUserInfoStoreWithOut() {
//重置store
return useUserInfo(store);
}
...@@ -19,24 +19,7 @@ const axiosInstance = axios.create({ ...@@ -19,24 +19,7 @@ const axiosInstance = axios.create({
}); });
// 添加请求拦截器 // 添加请求拦截器
let flag = 1; // 将 flag 移出函数,以便在多次调用之间保持不变 let flag = 1; // 将 flag 移出函数,以便在多次调用之间保持不变
const refreshTokenAction = async () => {
if (flag === 1) {
flag = 2;
let currentTime = dayjs(dayjs().valueOf());
let refreshTime = dayjs(dayjs(Cookies.get('time')).valueOf());
if (refreshTime.diff(currentTime) <= 2 * 60 * 60 * 1000) {
try {
const res = await api.RefreshToken();
Cookies.set('oneWeekARange-management-token', res.response.token_content);
Cookies.set('time', res.response.expires);
} catch (error) {
console.error('刷新 Token 失败', error);
} finally {
flag = 1; // 无论成功或失败,都将 flag 重置为 1
}
}
}
};
axiosInstance.interceptors.request.use( axiosInstance.interceptors.request.use(
(config) => { (config) => {
// 在发送请求之前可以进行一些处理,例如添加认证信息、日志等 // 在发送请求之前可以进行一些处理,例如添加认证信息、日志等
......
...@@ -14,6 +14,7 @@ export default defineConfig({ ...@@ -14,6 +14,7 @@ export default defineConfig({
resolvers: [VantResolver()], resolvers: [VantResolver()],
}), }),
], ],
resolve: { resolve: {
alias: { alias: {
"@": pathResolve("./src"), // 新增 "@": pathResolve("./src"), // 新增
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或