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

V20240314 保存

上级 f0e57974
import{f as p,b as l,a as u,h as k,e as m,L as _,o as f,i as g,C as w,j as n,G as a,S as y,k as d}from"./index-Db76niLa.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(v){const t=m(),c=async o=>{const e=await y(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}},r=async o=>{const e=await d(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",s.response.role),await t.replace({name:"welcome"})}},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await w();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return p(()=>{i()}),(o,e)=>{const s=_;return f(),l("div",R,[u(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[g(" 登录中")]),_:1})])}}};export{A as default};
import{f as l,b as p,a as u,h as k,e as m,L as _,o as f,i as g,C as w,j as n,G as a,S as d,k as y}from"./index-D0OkD0Ym.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 d(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",s.response.role),await t.replace({name:"welcome"})}},r=async o=>{const e=await y(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",s.response.role),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return l(()=>{i()}),(o,e)=>{const s=_;return f(),p("div",R,[u(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[g(" 登录中")]),_:1})])}}};export{A as default};
import{f as i,b as l,a as p,h as k,e as _,j as s,L as d,o as m,i as y}from"./index-D0OkD0Ym.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=_(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},r=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},c=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await r(n)}};return i(()=>{c()}),(n,t)=>{const o=d;return m(),l("div",f,[p(o,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[y(" 登录中")]),_:1})])}}};export{q as default};
import{f as i,b as l,a as p,h as k,e as _,j as s,L as d,o as m,i as y}from"./index-Db76niLa.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=_(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},r=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},c=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await r(n)}};return i(()=>{c()}),(n,t)=>{const o=d;return m(),l("div",f,[p(o,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[y(" 登录中")]),_:1})])}}};export{q as default};
import{c as V,d as I,I as E,a as s,F as c,J as U,T as H,w as O,l as D,r as R,K as v,f as T,b as o,n as t,M as F,s as h,h as f,O as Q,o as i,p as W,P as A,i as k,E as J,Q as K,y as q,z as X,R as Z,H as ee,D as te}from"./index-Db76niLa.js";const[Y,ne]=V("space"),se={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function B(n=[]){const a=[];return n.forEach(e=>{Array.isArray(e)?a.push(...e):e.type===c?a.push(...B(e.children)):a.push(e)}),a.filter(e=>{var p;return!(e&&(e.type===U||e.type===c&&((p=e.children)==null?void 0:p.length)===0||e.type===H&&e.children.trim()===""))})}var ae=I({name:Y,props:se,setup(n,{slots:a}){const e=E(()=>{var l;return(l=n.align)!=null?l:n.direction==="horizontal"?"center":""}),p=l=>typeof l=="number"?l+"px":l,g=l=>{const r={},m=`${p(Array.isArray(n.size)?n.size[0]:n.size)}`,_=`${p(Array.isArray(n.size)?n.size[1]:n.size)}`;return l?n.wrap?{marginBottom:_}:{}:(n.direction==="horizontal"&&(r.marginRight=m),(n.direction==="vertical"||n.wrap)&&(r.marginBottom=_),r)};return()=>{var l;const r=B((l=a.default)==null?void 0:l.call(a));return s("div",{class:[ne({[n.direction]:n.direction,[`align-${e.value}`]:e.value,wrap:n.wrap,fill:n.fill})]},[r.map((m,_)=>s("div",{key:`item-${_}`,class:`${Y}-item`,style:g(_===r.length-1)},[m]))])}}});const le=O(ae);function ie(n){return D.get("/api/Common/GetDeptList",n)}function oe(n,a){const e={dept_id:n.dept_id};return D.get("/api/Common/GetUserList",{params:e,...a})}function ce(n,a){return D.post("/api/PlanProject/GetPlanProjectByDayList",n,a)}const re={class:"publicContainerNoPadding"},de={class:"w-full h-[50px] flex justify-between items-center p-2"},ue={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},pe={key:0},_e=t("div",{class:"w-full h-5"},null,-1),he={key:1},fe={class:"w-full h-auto bg-white"},me={class:"w-full min-h-[80px] flex-wrap ccFlex"},we=t("div",{class:"w-[35px] min-h-[80px]"},[t("div",{class:"aaa w-full min-h-[80px] ccFlex"},"教务处")],-1),ye={class:"w-[calc(100%-35px)] h-full"},xe={class:"w-full h-auto flex"},ve={class:"w-[35px] min-h-[80px] ccFlex bg-red-600"},ge=t("div",{class:"w-[35px] min-h-[80px] bg-blue-600"},[t("div",{class:"w-full h-1/2"}),t("div",{class:"w-full h-1/2"})],-1),be={class:"w-[calc(100%-105px)] min-h-[80px]"},Fe={class:"w-full h-1/2 ccFlex"},ke={class:"w-full h-1/2 ccFlex"},De={class:"w-[35px] min-h-[80px] ccFlex bg-gray-600"},Ce={class:"w-full h-[calc(100%-64px)] bg-gray-200"},Pe=t("div",{class:"w-full h-3"},null,-1),Ae=t("div",{class:"w-full h-3"},null,-1),Ye={class:"w-full h-auto bg-white"},Be=t("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),Me={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},ze=t("div",{class:"w-full h-3"},null,-1),je={class:"w-full h-auto bg-white"},Le=t("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),$e={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ne={__name:"index",setup(n,{expose:a}){const e=R({dayArray:[],weekArray:[],paramsDay:{begin_time:v().format("YYYY-MM-DD"),end_time:v().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:"",end_time:"",dept_id_list:[],tid_list:[]},comment:{dept:[],user:[],deptId:""},check:{value:""},date:{show:!1},search:{date:""},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function p(d){e.date.show=!1,e.search.date=v(d[0]).format("YYYY-MM-DD")+" - "+v(d[1]).format("YYYY-MM-DD")}function g(){e.select.showPopup=!0}function l(){e.switchView.show=!e.switchView.show,e.select.action=!1}function r(){}function m(){e.select.showPopup=!1}function _(){ie().then(d=>{e.comment.dept=d.response})}function M(){oe({dept_id:e.comment.deptId}).then(d=>{e.comment.user=d.response})}function z(){ce(e.paramsDay).then(d=>{e.dayArray=d.response})}return T(()=>{document.title="分管填报记录查看",_(),M(),z()}),a({init:e}),(d,y)=>{const j=J,C=K,L=q,$=X,G=Z,w=ee,P=le,N=te,S=Q;return i(),o(c,null,[t("div",re,[s(j,{path:"/welcome",title:"分管填报记录查看"}),t("div",de,[t("div",{onClick:l,class:"w-20 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100"}," 切换视图 "),t("div",{style:F({background:["#FFFFFF","#1989FA"][Number(e.select.action)],color:["#4B5563","#FFFFFF"][Number(e.select.action)]}),onClick:g,class:"w-20 h-8 flex justify-center items-center border-solid border-[1px]"}," 高级查询 ",4)]),t("div",ue,[e.switchView.show?(i(),o("div",pe,[s(C),_e,(i(!0),o(c,null,h(e.dayArray,(u,x)=>(i(),W(L,{data:u,key:x,alldayOrMidafternoonStatus:!!Number(u.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):(i(),o("div",he,[s(C),t("div",fe,[(i(),o(c,null,h([1,2,3,4,5],u=>t("div",me,[we,t("div",ye,[(i(),o(c,null,h([1,2,3,4,5],x=>t("div",xe,[t("div",ve,A(x),1),ge,t("div",be,[t("div",Fe,[(i(),o(c,null,h([1,2,3,4,5],b=>t("div",{style:F({background:["","#D9E2F3"][b]}),class:"w-1/5 h-full"},null,4)),64))]),t("div",ke,[(i(),o(c,null,h([1,2,3,4,5],b=>t("div",{style:F({background:["","#FFE599"][b]}),class:"w-1/5 h-full"},null,4)),64))])]),t("div",De,A(x),1)])),64))])])),64))])]))])]),s(S,{show:e.select.showPopup,height:80},{content:f(()=>[t("div",Ce,[Pe,s($,{inset:"",title:"选择单个日期",value:e.search.date,onClick:y[0]||(y[0]=u=>e.date.show=!0)},null,8,["value"]),s(G,{type:"range",show:e.date.show,"onUpdate:show":y[1]||(y[1]=u=>e.date.show=u),onConfirm:p},null,8,["show"]),Ae,t("div",Ye,[Be,t("div",Me,[s(P,{wrap:""},{default:f(()=>[(i(),o(c,null,h([1,1,1,1,1,1,1,1],u=>s(w,{style:{margin:"5px",padding:"15px !important",height:"40px"},text:"细边框按钮",size:"normal",plain:"",hairline:"",type:"primary"})),64))]),_:1})])]),ze,t("div",je,[Le,t("div",$e,[s(P,{wrap:""},{default:f(()=>[(i(),o(c,null,h([1,1,1,1,1,1,1,1],u=>s(w,{style:{margin:"5px",background:"#1989FA",color:"#FFFFFF",padding:"15px !important",height:"40px"},text:"细边框按钮",size:"normal",plain:"",hairline:"",type:"primary"})),64))]),_:1})])])]),s(N,null,{default:f(()=>[s(w,{type:"primary",round:"",class:"w-[90px]",onClick:r},{default:f(()=>[k("重置")]),_:1}),s(w,{type:"primary",round:"",class:"w-[90px]",onClick:r},{default:f(()=>[k("查询")]),_:1}),s(w,{round:"",class:"w-[90px]",onClick:m},{default:f(()=>[k("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{Ne as default};
import{s as a,b as o,a as t,l as e,o as c,y as l}from"./index-D0OkD0Ym.js";const n={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),i=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),f={__name:"index",setup(r){return a({fillInWork:{show:!1}}),(d,p)=>{const s=l;return c(),o("div",n,[t(s,{path:"/welcome",title:"分管填报记录查看"}),_,i])}}};export{f as default};
import{r as o,b as s,a as t,n as e,o as c,E as l}from"./index-Db76niLa.js";const n={class:"publicContainerNoPadding"},r=e("div",{class:"w-full h-[10px]"},null,-1),_=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),f={__name:"index",setup(i){return o({fillInWork:{show:!1}}),(d,p)=>{const a=l;return c(),s("div",n,[t(a,{path:"/welcome",title:"分管填报记录查看"}),r,_])}}};export{f as default};
import{c as Y,d as D,z as P,a as s,F as d,A as j,T as E,w as O,s as I,f as H,b as c,l as t,D as g,E as f,h,H as T,o as r,I as C,q as _,J as M,i as b,K as S,y as R,r as q,M as J,B as K,x as L}from"./index-D0OkD0Ym.js";const[z,Q]=Y("space"),U={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function A(l=[]){const a=[];return l.forEach(e=>{Array.isArray(e)?a.push(...e):e.type===d?a.push(...A(e.children)):a.push(e)}),a.filter(e=>{var u;return!(e&&(e.type===j||e.type===d&&((u=e.children)==null?void 0:u.length)===0||e.type===E&&e.children.trim()===""))})}var W=D({name:z,props:U,setup(l,{slots:a}){const e=P(()=>{var n;return(n=l.align)!=null?n:l.direction==="horizontal"?"center":""}),u=n=>typeof n=="number"?n+"px":n,v=n=>{const i={},w=`${u(Array.isArray(l.size)?l.size[0]:l.size)}`,o=`${u(Array.isArray(l.size)?l.size[1]:l.size)}`;return n?l.wrap?{marginBottom:o}:{}:(l.direction==="horizontal"&&(i.marginRight=w),(l.direction==="vertical"||l.wrap)&&(i.marginBottom=o),i)};return()=>{var n;const i=A((n=a.default)==null?void 0:n.call(a));return s("div",{class:[Q({[l.direction]:l.direction,[`align-${e.value}`]:e.value,wrap:l.wrap,fill:l.fill})]},[i.map((w,o)=>s("div",{key:`item-${o}`,class:`${z}-item`,style:v(o===i.length-1)},[w]))])}}});const G=O(W),X={class:"publicContainerNoPadding"},Z={class:"w-full h-[50px] flex justify-between items-center p-2"},ee={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},te={key:0},se=t("div",{class:"w-full h-5"},null,-1),le={key:1},ne={class:"w-full h-auto bg-white"},ae={class:"w-full min-h-[80px] flex-wrap ccFlex"},ie=t("div",{class:"w-[35px] min-h-[80px]"},[t("div",{class:"aaa w-full min-h-[80px] ccFlex"},"教务处")],-1),oe={class:"w-[calc(100%-35px)] h-full"},ce={class:"w-full h-auto flex"},re={class:"w-[35px] min-h-[80px] ccFlex bg-red-600"},de=t("div",{class:"w-[35px] min-h-[80px] bg-blue-600"},[t("div",{class:"w-full h-1/2"}),t("div",{class:"w-full h-1/2"})],-1),ue={class:"w-[calc(100%-105px)] min-h-[80px]"},he={class:"w-full h-1/2 ccFlex"},fe={class:"w-full h-1/2 ccFlex"},_e={class:"w-[35px] min-h-[80px] ccFlex bg-gray-600"},we={class:"w-full h-[calc(100%-64px)] bg-gray-200"},pe=t("div",{class:"w-full h-3"},null,-1),me=t("div",{class:"w-full h-3"},null,-1),xe={class:"w-full h-auto bg-white"},ve=t("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),ye={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},ge=t("div",{class:"w-full h-3"},null,-1),be={class:"w-full h-auto bg-white"},Fe=t("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),ke={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Me={__name:"index",setup(l,{expose:a}){const e=I({check:{value:""},date:{show:!1},search:{date:""},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!1}});function u(o){e.date.show=!1,e.search.date=S(o[0]).format("YYYY-MM-DD")+" - "+S(o[1]).format("YYYY-MM-DD")}function v(){e.select.showPopup=!0}function n(){e.switchView.show=!e.switchView.show,e.select.action=!1}function i(){}function w(){e.select.showPopup=!1}return H(()=>{document.title="分管填报记录查看"}),a({init:e}),(o,x)=>{const B=R,$=q,V=J,p=K,F=G,N=L;return r(),c(d,null,[t("div",X,[s(B,{path:"/welcome",title:"分管填报记录查看"}),t("div",Z,[t("div",{onClick:n,class:"w-20 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100"}," 切换视图 "),t("div",{style:g({background:["#FFFFFF","#1989FA"][Number(e.select.action)],color:["#4B5563","#FFFFFF"][Number(e.select.action)]}),onClick:v,class:"w-20 h-8 flex justify-center items-center border-solid border-[1px]"}," 高级查询 ",4)]),t("div",ee,[e.switchView.show?(r(),c("div",te,[s(C),se,s(_,{alldayOrMidafternoonStatus:!1}),s(_,{alldayOrMidafternoonStatus:!0}),s(_,{alldayOrMidafternoonStatus:!1}),s(_,{alldayOrMidafternoonStatus:!0}),s(_,{alldayOrMidafternoonStatus:!1}),s(_,{alldayOrMidafternoonStatus:!0})])):(r(),c("div",le,[s(C),t("div",ne,[(r(),c(d,null,f([1,2,3,4,5],m=>t("div",ae,[ie,t("div",oe,[(r(),c(d,null,f([1,2,3,4,5],k=>t("div",ce,[t("div",re,M(k),1),de,t("div",ue,[t("div",he,[(r(),c(d,null,f([1,2,3,4,5],y=>t("div",{style:g({background:["","#D9E2F3"][y]}),class:"w-1/5 h-full"},null,4)),64))]),t("div",fe,[(r(),c(d,null,f([1,2,3,4,5],y=>t("div",{style:g({background:["","#FFE599"][y]}),class:"w-1/5 h-full"},null,4)),64))])]),t("div",_e,M(k),1)])),64))])])),64))])]))])]),s(T,{show:e.select.showPopup,height:80},{content:h(()=>[t("div",we,[pe,s($,{inset:"",title:"选择单个日期",value:e.search.date,onClick:x[0]||(x[0]=m=>e.date.show=!0)},null,8,["value"]),s(V,{type:"range",show:e.date.show,"onUpdate:show":x[1]||(x[1]=m=>e.date.show=m),onConfirm:u},null,8,["show"]),me,t("div",xe,[ve,t("div",ye,[s(F,{wrap:""},{default:h(()=>[(r(),c(d,null,f([1,1,1,1,1,1,1,1],m=>s(p,{style:{margin:"5px",padding:"15px !important",height:"40px"},text:"细边框按钮",size:"normal",plain:"",hairline:"",type:"primary"})),64))]),_:1})])]),ge,t("div",be,[Fe,t("div",ke,[s(F,{wrap:""},{default:h(()=>[(r(),c(d,null,f([1,1,1,1,1,1,1,1],m=>s(p,{style:{margin:"5px",background:"#1989FA",color:"#FFFFFF",padding:"15px !important",height:"40px"},text:"细边框按钮",size:"normal",plain:"",hairline:"",type:"primary"})),64))]),_:1})])])]),s(N,null,{default:h(()=>[s(p,{type:"primary",round:"",class:"w-[90px]",onClick:i},{default:h(()=>[b("重置")]),_:1}),s(p,{type:"primary",round:"",class:"w-[90px]",onClick:i},{default:h(()=>[b("查询")]),_:1}),s(p,{round:"",class:"w-[90px]",onClick:w},{default:h(()=>[b("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{Me as default};
import{c as u,d as p,a as e,t as m,m as v,w as h,f as g,b as x,l as c,h as s,o as y,i as d,n as S,p as b,q as k,L as C,r as w}from"./index-D0OkD0Ym.js";const[M,A]=u("divider"),F={dashed:Boolean,hairline:m,vertical:Boolean,contentPosition:v("center")};var O=p({name:M,props:F,setup(t,{slots:a}){return()=>{var r;return e("div",{role:"separator",class:A({dashed:t.dashed,hairline:t.hairline,vertical:t.vertical,[`content-${t.contentPosition}`]:!!a.default&&!t.vertical})},[!t.vertical&&((r=a.default)==null?void 0:r.call(a))])}}});const B=h(O),P={class:"publicContainer"},N={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},z={id:"loadding",class:"flex justify-center items-center"},$={__name:"index",setup(t){return g(()=>{document.title="一周安排"}),(a,r)=>{const _=S,l=B,o=b,n=k,f=C,i=w;return y(),x("div",P,[e(_),c("div",N,[e(l,{style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:s(()=>[d(" 我的周安排 ")]),_:1}),e(o),e(o),e(o),e(o),e(o),e(l,{style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:s(()=>[d(" 我的关注 ")]),_:1}),e(n,{alldayOrMidafternoonStatus:!1}),e(n,{alldayOrMidafternoonStatus:!0}),e(n,{alldayOrMidafternoonStatus:!1}),e(n,{alldayOrMidafternoonStatus:!0}),e(n,{alldayOrMidafternoonStatus:!1}),e(n,{alldayOrMidafternoonStatus:!0}),c("div",z,[e(f,{color:"#1989fa"})]),e(l,{style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:s(()=>[d(" 菜单栏 ")]),_:1}),e(i,{title:"工作安排填报","is-link":"",to:"/workArrangementFilling"}),e(i,{title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"}),e(i,{title:"人员授权","is-link":"",to:"/personnelAuthority"}),e(i,{title:"填报配置","is-link":"",to:"/system"})])])}}};export{$ as default};
import{s as p,b as f,a as o,l as c,h as e,v as h,x as m,o as w,i as a,y as x,B as k}from"./index-D0OkD0Ym.js";const v={class:"publicContainerNoPadding"},C=c("div",{class:"w-full h-[10px]"},null,-1),y={class:"w-full h-[calc(100%-120px)] p-2 overflow-y-auto"},N={__name:"index",setup(B){const n=p({fillInWork:{show:!1}});function l(){n.fillInWork.show=!0}function _(){}function i(t){n.fillInWork.show=t}return(t,I)=>{const r=x,u=h,s=k,d=m;return w(),f("div",v,[o(r,{path:"/welcome",title:"填报工作安排"}),C,c("div",y,[o(u,{show:n.fillInWork.show,onCloseDateComponent:i},null,8,["show"])]),o(d,null,{default:e(()=>[o(s,{type:"primary",round:"",class:"w-[120px]",onClick:l},{default:e(()=>[a("添加日期")]),_:1}),o(s,{type:"success",round:"",class:"w-[120px]",onClick:_},{default:e(()=>[a("保存")]),_:1})]),_:1})])}}};export{N as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{_ as e}from"./index-D0OkD0Ym.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{_ as e}from"./index-Db76niLa.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{A as p,r as m,f as h,b as w,a as e,n as l,h as n,B as v,D as x,o as k,i as c,E as C,H as y}from"./index-Db76niLa.js";const I={class:"publicContainerNoPadding"},g=l("div",{class:"w-full h-[10px]"},null,-1),B={class:"w-full h-[calc(100%-120px)] p-2 overflow-y-auto"},b={__name:"index",setup(D){const t=p(),o=m({data:{myFillingIn:[]},fillInWork:{show:!1}});function i(){o.fillInWork.show=!0}function _(){t.value.save()}function r(s){o.fillInWork.show=s}return h(()=>{}),(s,N)=>{const u=C,d=v,a=y,f=x;return k(),w("div",I,[e(u,{path:"/welcome",title:"填报工作安排"}),g,l("div",B,[e(d,{ref_key:"saveRef",ref:t,show:o.fillInWork.show,onCloseDateComponent:r},null,8,["show"])]),e(f,null,{default:n(()=>[e(a,{type:"primary",round:"",class:"w-[120px]",onClick:i},{default:n(()=>[c("添加日期")]),_:1}),e(a,{type:"success",round:"",class:"w-[120px]",onClick:_},{default:n(()=>[c("保存")]),_:1})]),_:1})])}}};export{b as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{c as x,d as P,a as t,t as C,m as k,w as F,l as p,r as b,f as B,b as m,n as S,h as s,p as _,q as A,F as w,s as L,v as G,o as l,i as c,x as M,y as N,z as j}from"./index-Db76niLa.js";const[z,V]=x("divider"),$={dashed:Boolean,hairline:C,vertical:Boolean,contentPosition:k("center")};var I=P({name:z,props:$,setup(e,{slots:n}){return()=>{var a;return t("div",{role:"separator",class:V({dashed:e.dashed,hairline:e.hairline,vertical:e.vertical,[`content-${e.contentPosition}`]:!!n.default&&!e.vertical})},[!e.vertical&&((a=n.default)==null?void 0:a.call(n))])}}});const O=F(I);function q(e){return p.get("/api/Collect/GetCollectList",e)}function D(e){return p.get("/api/PlanProject/GetPlanProjectByMyList",e)}const E={class:"publicContainer"},H={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},J={__name:"index",setup(e,{expose:n}){const a=b({data:{mySchedule:{},myFocus:[]},params:{}});function f(){D().then(o=>{a.data.mySchedule=o.response})}function d(){q().then(o=>{a.data.myFocus=o.response})}return B(()=>{document.title="一周安排",f(),d()}),n({GetCollectList:d}),(o,R)=>{const y=M,r=O,h=G,v=N,i=j;return l(),m("div",E,[t(y),S("div",H,[t(r,{style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:s(()=>[c(" 我的周安排 ")]),_:1}),t(h,{data:a.data.mySchedule},null,8,["data"]),a.data.myFocus.length?(l(),_(r,{key:0,style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:s(()=>[c(" 我的关注 ")]),_:1})):A("",!0),(l(!0),m(w,null,L(a.data.myFocus,(u,g)=>(l(),_(v,{key:g,alldayOrMidafternoonStatus:!!Number(u.is_allday),data:u},null,8,["alldayOrMidafternoonStatus","data"]))),128)),t(r,{style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:s(()=>[c(" 菜单栏 ")]),_:1}),t(i,{title:"工作安排填报","is-link":"",to:"/workArrangementFilling"}),t(i,{title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"}),t(i,{title:"人员授权","is-link":"",to:"/personnelAuthority"}),t(i,{title:"填报配置","is-link":"",to:"/system"})])])}}};export{J as default};
import{r as o,b as s,a as t,n as e,o as c,E as l}from"./index-Db76niLa.js";const n={class:"publicContainerNoPadding"},r=e("div",{class:"w-full h-[10px]"},null,-1),_=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),f={__name:"index",setup(i){return o({fillInWork:{show:!1}}),(d,p)=>{const a=l;return c(),s("div",n,[t(a,{path:"/welcome",title:"分管填报记录查看"}),r,_])}}};export{f as default};
import{s as a,b as o,a as t,l as e,o as c,y as l}from"./index-D0OkD0Ym.js";const n={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),i=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),f={__name:"index",setup(r){return a({fillInWork:{show:!1}}),(d,p)=>{const s=l;return c(),o("div",n,[t(s,{path:"/welcome",title:"分管填报记录查看"}),_,i])}}};export{f as default};
......@@ -6,8 +6,8 @@
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title>一周安排</title>
<script type="module" crossorigin src="./assets/index-D0OkD0Ym.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CRPTLrea.css">
<script type="module" crossorigin src="./assets/index-Db76niLa.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BX392dhT.css">
</head>
<body>
<div id="app"></div>
......
......@@ -25,5 +25,6 @@ export declare function postApiPlanProjectGetPlanProjectByDayList(input?: ViewRe
username: string;
dept_id: string;
dept_name: string;
attention: number;
}[];
}, any>>;
......@@ -15,6 +15,7 @@ export declare function postApiPlanProjectGetPlanProjectByWeekList(input?: ViewR
username: string;
dept_id: string;
dept_name: string;
attention: number;
data: {
date: string;
week: string;
......
import { type AxiosRequestConfig } from "axios";
/**
* /api/TimeTask/NoWriteRemind
*/
export declare function getApiTimeTaskNoWriteRemind(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/NoWriteRemind
*/
export function getApiTimeTaskNoWriteRemind(config) {
return request.get(`/api/TimeTask/NoWriteRemind`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* /api/TimeTask/WriteRemind
*/
export declare function getApiTimeTaskWriteRemind(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/WriteRemind
*/
export function getApiTimeTaskWriteRemind(config) {
return request.get(`/api/TimeTask/WriteRemind`, config);
}
export * from "./getApiTimeTaskNoWriteRemind";
export * from "./getApiTimeTaskWriteRemind";
export * from "./getApiTimeTaskNoWriteRemind";
export * from "./getApiTimeTaskWriteRemind";
......@@ -2,3 +2,4 @@ export * from "./Collect";
export * from "./Common";
export * from "./Login";
export * from "./PlanProject";
export * from "./TimeTask";
......@@ -2,3 +2,4 @@ export * from "./Collect";
export * from "./Common";
export * from "./Login";
export * from "./PlanProject";
export * from "./TimeTask";
export interface PlanProjectDayViewModel {
planid?: string;
date?: string;
week?: string;
fore_plan?: string;
after_plan?: string;
is_allday?: number;
createtime?: string;
is_del?: number;
modify_time?: string;
modifyby?: string;
userid?: string;
usercard?: string;
username?: string;
dept_id?: string;
dept_name?: string;
attention?: number;
}
import { type PlanProjectDayViewModel } from "../../interface";
export interface PlanProjectDayViewModelListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: PlanProjectDayViewModel[];
}
......@@ -5,5 +5,6 @@ export interface PlanProjectWeekViewModel {
username?: string;
dept_id?: string;
dept_name?: string;
attention?: number;
data?: WeekData[];
}
......@@ -13,6 +13,8 @@ export * from "./apiTypes/ViewRequests";
export * from "./apiTypes/WeekData";
export * from "./apiTypes/PlanProjectWeekViewModel";
export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel";
export * from "./apiTypes/PlanProjectDayViewModel";
export * from "./apiTypes/PlanProjectDayViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel";
export type Primitive = undefined | null | boolean | string | number | symbol;
export type DeepRequired<T> = T extends Primitive ? T : keyof T extends never ? T : {
......
......@@ -13,4 +13,6 @@ export * from "./apiTypes/ViewRequests";
export * from "./apiTypes/WeekData";
export * from "./apiTypes/PlanProjectWeekViewModel";
export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel";
export * from "./apiTypes/PlanProjectDayViewModel";
export * from "./apiTypes/PlanProjectDayViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel";
......@@ -32,7 +32,7 @@ export function RefreshToken(data) {
export function CheckLoginTest(data) {
//test token
return requestGet(`/api/sso/test?card="asc666"`, data)
return requestGet(`/api/sso/test?card=asc666`, data)
}
......@@ -15,12 +15,13 @@
:style="{background:item.bg,color:item.acColor}"
class="w-[16%] h-full "
v-for="(item,index) in dateArray.array" :key="index">
<div :style="{color: item.color}" class="w-full h-full flex flex-wrap justify-center items-center ">
<div @click="centerDateValue(item.date,$parent)" :style="{color: item.color}"
class="w-full h-full flex flex-wrap justify-center items-center ">
<div class="w-full h-1/2 flex justify-center items-center ">
{{ item.weekDay }}
</div>
<div class="w-full h-1/2 flex justify-center content-center "
@click="centerDateValue(item.date,$parent)">
>
{{ item.dateDay }}
</div>
</div>
......@@ -34,12 +35,13 @@
:style="{background:item.bg}"
class="w-[16%] h-full "
v-for="(item,index) in dateArray.array" :key="index">
<div :style="{color: item.color}" class="w-full h-full flex flex-wrap justify-center items-center ">
<div @click="centerDateValue(item.date,$parent)" :style="{color: item.color}"
class="w-full h-full flex flex-wrap justify-center items-center ">
<div class="w-full h-1/2 flex justify-center items-center ">
{{ item.weekDay }}
</div>
<div class="w-full h-1/2 flex justify-center content-center "
@click="centerDateValue(item.date,$parent)">
>
{{ item.dateDay }}
</div>
</div>
......@@ -226,7 +228,7 @@ const addDate = () => {
if (validateIsATheTwodayOffs(cur.date)) dateArray.array.splice(index, 1)
})
dateArray.month = dateArray.array[0].month
console.log("🚀🚀dateArray.array🚀,", ...dateArray.array)
}
const getInitDate = () => {
// 获取本周日期
......@@ -259,8 +261,6 @@ const getInitDate = () => {
if (validateIsATheTwodayOffs(cur.date)) dateArray.array.splice(index, 1)
})
dateArray.month = dateArray.array[0].month
}
......
......@@ -8,8 +8,8 @@
</div>
<div class="w-1/2 h-full flex justify-end items-center">
<div class="mx-2">
<div class="font-bold ml flex justify-end">张三</div>
<div class="text-[14px] text-neutral-400">zhangsan</div>
<div class="font-bold ml flex justify-end">{{ hooks.getUserInfo().name }}</div>
<div class="text-[14px] text-neutral-400">{{ hooks.getUserInfo().card_number }}</div>
</div>
<div>
<van-image
......
......@@ -2,14 +2,15 @@
<div
class="text-[15px] w-full h-auto rounded-[5px] text-[#4B5563] flex-wrap flex backdrop-brightness-100 bg-white mb-3">
<div class="w-full h-11 flex p-2 items-center border-b-[1px] border-[#E5E7EB] border-solid">
<span>张三-教务处</span>
<span>{{ props.data.username }}-{{ props.data.dept_name }}</span>
</div>
<div v-if="props.alldayOrMidafternoonStatus" class="w-[65%] min-h-full p-2">
<!-- 上下午-->
<div class="w-full min-h-1/2 ">
<van-text-ellipsis
rows="2"
content="上午:部门工作部署,修改从严治党会议材料"
:content="props.data.fore_plan"
expand-text="展开"
collapse-text="收起"
/>
......@@ -17,17 +18,18 @@
<div class="w-full min-h-1/2 border-solid border-t-[1px] text-[#4B5563]">
<van-text-ellipsis
rows="2"
content="下午:医院警示教育,赴海口监狱省反腐倡廉警示教育地参观学习"
:content="props.data.after_plan"
expand-text="展开"
collapse-text="收起"
/>
</div>
</div>
<!-- 全天-->
<div v-else class="w-[65%] min-h-[108px] p-2">
<div class="w-full min-h-full ">
<van-text-ellipsis
rows="4"
content="全天:医院警示教育,赴海口监狱省反腐倡廉警示教育地参观学习医院警示教育,赴海口监狱省反腐倡廉警示教育地参观学习医院警示教育,赴海口监狱省反腐倡廉警示教育地参观学习"
:content="props.data.after_plan"
expand-text="展开"
collapse-text="收起"
/>
......@@ -36,23 +38,45 @@
<div
class="w-[35%] flex items-center flex-wrap content-center min-h-[108px] border-[#E5E7EB] border-l-[1px] border-dashed p-3">
<p class="w-full text-[14px]">2024年3月11日</p>
<p class="w-full ">星期四</p>
<p class="w-full text-[14px]">{{ dayjs(props.data.date).format('YYYY年MM月DD日') }}</p>
<p class="w-full ">{{ props.data.week }}</p>
</div>
<div class="w-full h-11 p-2 flex items-center justify-end border-t-[1px] border-[#E5E7EB] border-solid">
<van-button type="primary" size="small">取消关注</van-button>
<van-button @click="cancel($parent)" type="primary" size="small">取消关注</van-button>
</div>
</div>
</template>
<script setup>
import dayjs from "dayjs";
import * as api from '@/api/apis/dist/controller/index.js'
import * as hooks from '@/hooks/index.js'
const props = defineProps({
alldayOrMidafternoonStatus: {
//全天或上下午状态
type: Boolean,
default: true
},
data: {
type: Object,
default: ''
}
})
function cancel(parent) {
//取消关注
hooks.publicConfirm(() => {
hooks.myEncapsulationFunction(() => {
return api.getApiCollectUnCollect({plan_id: props.data.planid, collect_userid: props.data.userid}).then(res => {
if (res.code === 1) parent.GetCollectList()
return res
})
})
})
}
</script>
<style scoped>
......
<template>
<div class="w-full min-h-[120px] rounded-[5px] text-[#4B5563] p-2 text-[15px] flex bg-white mb-3">
<div v-if="false" class="w-[65%] min-h-full">
<div v-if="props.data.is_allday == 0" class="w-[65%] min-h-full">
<div class="w-full min-h-1/2 ">
<van-text-ellipsis
rows="2"
content="上午:部门工作部署,修改从严治党会议材料"
:content="props.data.fore_plan"
expand-text="展开"
collapse-text="收起"
/>
......@@ -12,7 +12,7 @@
<div class="w-full min-h-1/2 border-solid border-t-[1px] border-white">
<van-text-ellipsis
rows="2"
content="下午:医院警示教育,赴海口监狱省反腐倡廉警示教育地参观学习"
:content="props.data.after_plan"
expand-text="展开"
collapse-text="收起"
/>
......@@ -22,7 +22,7 @@
<div class="w-full min-h-full ">
<van-text-ellipsis
rows="4"
content="全天:医院警示教育,赴海口监狱省反腐倡廉警示教育地参观学习医院警示教育,赴海口监狱省反腐倡廉警示教育地参观学习医院警示教育,赴海口监狱省反腐倡廉警示教育地参观学习"
:content="props.data.after_plan"
expand-text="展开"
collapse-text="收起"
/>
......@@ -30,13 +30,21 @@
</div>
<div
class="w-[35%] flex items-center flex-wrap content-center min-h-full border-[#E5E7EB] border-l-[1px] border-dashed p-3">
<p class="w-full text-[14px]">2024年3月11日</p>
<p class="w-full ">星期四</p>
class="w-[35%] flex items-center flex-wrap content-center min-h-full border-[#E5E7EB] border-l-[1px] border-dashed p-3 pr-2">
<p class="w-full text-[14px]">{{ dayjs(props.data.date).format('YYYY年MM月DD日') }}</p>
<p class="w-full ">{{ props.data.week }}</p>
</div>
</div>
</template>
<script setup>
import dayjs from "dayjs";
const props = defineProps({
data: {
type: Object,
default: ''
}
})
</script>
......
......@@ -145,7 +145,7 @@ export const store = {
},
}
export const getUserInfo = () => {
return JSON.parse(Cookies.get('site-user-info'))
return JSON.parse(Cookies.get('oneWeekARange-user-info'))
}
export function getRole() {
......
......@@ -25,7 +25,7 @@ const getTokenAction = async (date) => {
Cookies.set('oneWeekARange-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo()
Cookies.set('oneWeekARange-user-info', user.response.role)
Cookies.set('oneWeekARange-user-info', JSON.stringify(user.response))
await router.replace({
name: 'welcome'
})
......@@ -76,7 +76,7 @@ const getToken = async () => {
Cookies.set('oneWeekARange-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo()
Cookies.set('oneWeekARange-user-info', user.response.role)
Cookies.set('oneWeekARange-user-info', JSON.stringify(user.response))
await router.replace({
name: 'welcome'
})
......
......@@ -21,12 +21,8 @@
<!-- 天视图-->
<Date/>
<div class="w-full h-5"></div>
<my-focus-card :alldayOrMidafternoonStatus="false"/>
<my-focus-card :alldayOrMidafternoonStatus="true"/>
<my-focus-card :alldayOrMidafternoonStatus="false"/>
<my-focus-card :alldayOrMidafternoonStatus="true"/>
<my-focus-card :alldayOrMidafternoonStatus="false"/>
<my-focus-card :alldayOrMidafternoonStatus="true"/>
<my-focus-card :data="item" v-for="(item,index) in init.dayArray" :key="index"
:alldayOrMidafternoonStatus="Boolean(Number(item.is_allday))"/>
</div>
<div v-else>
<!-- 周视图-->
......@@ -74,9 +70,10 @@
</div>
</div>
<!-- 高级查询 -->
<popup :show="init.select.showPopup" :height="80">
<template #content>
<template #content>
<div class="w-full h-[calc(100%-64px)] bg-gray-200">
<div class="w-full h-3"></div>
......@@ -132,12 +129,30 @@
<script setup>
import dayjs from "dayjs";
import {onMounted, reactive} from "vue";
import MyFocusCard from "@/components/myFocusCard.vue";
import Date from "@/components/Date.vue";
import Popup from "@/components/popup.vue";
import * as hooks from '@/hooks/index.js'
import * as api from '@/api/apis/dist/controller/index.js'
const init = reactive({
dayArray: [],
weekArray: [],
paramsDay: {
"begin_time": dayjs().format('YYYY-MM-DD'),
"end_time": dayjs().format('YYYY-MM-DD'),
"dept_id_list": [],
"tid_list": [],
},
paramsWeek: {
"begin_time": "",
"end_time": "",
"dept_id_list": [],
"tid_list": []
},
comment: {
dept: [],
user: [],
deptId: '',
},
check: {
value: '',
},
......@@ -158,7 +173,7 @@ const init = reactive({
show: false
},
switchView: {
show: false,
show: true,
}
})
......@@ -194,8 +209,32 @@ function closeDateComponent(e) {
init.fillInWork.show = e
}
function GetDeptList() {
//获取部门列表
api.getApiCommonGetDeptList().then(res => {
init.comment.dept = res.response
})
}
function GetUserList() {
//获取用户列表
api.getApiCommonGetUserList({dept_id: init.comment.deptId}).then(res => {
init.comment.user = res.response
})
}
function GetPlanProjectByDayList() {
//天视图数据
api.postApiPlanProjectGetPlanProjectByDayList(init.paramsDay).then(res => {
init.dayArray = res.response
})
}
onMounted(() => {
document.title = '分管填报记录查看'
GetDeptList()
GetUserList()
GetPlanProjectByDayList()
})
defineExpose({
init,
......
......@@ -6,26 +6,22 @@
content-position="left">
我的周安排
</van-divider>
<weeklyArrangementCard/>
<weeklyArrangementCard/>
<weeklyArrangementCard/>
<weeklyArrangementCard/>
<weeklyArrangementCard/>
<weeklyArrangementCard :data="init.data.mySchedule"/>
<van-divider :style="{ color: '#1989FA',fontSize:'18px', margin:0, borderColor: '#1989fa',padding:'5px 0' }"
<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>
<my-focus-card :alldayOrMidafternoonStatus="false"/>
<my-focus-card :alldayOrMidafternoonStatus="true"/>
<my-focus-card :alldayOrMidafternoonStatus="false"/>
<my-focus-card :alldayOrMidafternoonStatus="true"/>
<my-focus-card :alldayOrMidafternoonStatus="false"/>
<my-focus-card :alldayOrMidafternoonStatus="true"/>
<div id="loadding" class="flex justify-center items-center">
<van-loading color="#1989fa"/>
</div>
<my-focus-card 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-divider :style="{ color: '#1989FA',fontSize:'18px', margin:0, borderColor: '#1989fa',padding:'5px 0' }"
content-position="left">
......@@ -42,11 +38,37 @@
<script setup>
import * as hooks from '@/hooks/index.js'
import * as api from '@/api/apis/dist/controller/index.js'
import {onMounted} from "vue";
import {onMounted, reactive} from "vue";
const init = reactive({
data: {
mySchedule: {},
myFocus: [],
},
params: {},
})
function GetPlanProjectByMyList() {
//获取我的安排
api.getApiPlanProjectGetPlanProjectByMyList().then(res => {
init.data.mySchedule = res.response
})
}
function GetCollectList() {
//获取我关注的周安排
api.getApiCollectGetCollectList().then(res => {
init.data.myFocus = res.response
})
}
onMounted(() => {
document.title = '一周安排'
GetPlanProjectByMyList()
GetCollectList()
})
defineExpose({
GetCollectList,
})
</script>
<style>
......
......@@ -4,6 +4,7 @@
<div class="w-full h-[10px]"></div>
<div class="w-full h-[calc(100%-120px)] p-2 overflow-y-auto">
<filling-card
ref="saveRef"
:show="init.fillInWork.show"
@closeDateComponent="closeDateComponent"
/>
......@@ -19,11 +20,16 @@
</template>
<script setup>
import * as hooks from '@/hooks/index.js'
import * as api from '@/api/apis/dist/controller/index.js'
import dayjs from "dayjs";
import {reactive} from "vue";
import {onMounted, reactive, ref} from "vue";
const saveRef = ref()
const init = reactive({
data: {
myFillingIn: [],
},
fillInWork: {
show: false
}
......@@ -36,10 +42,16 @@ function addDate() {
function save() {
//保存填写基础
saveRef.value.save()
}
function closeDateComponent(e) {
//关闭日期组件
init.fillInWork.show = e
}
onMounted(() => {
})
</script>
......@@ -27,7 +27,7 @@ const refreshTokenAction = async () => {
if (refreshTime.diff(currentTime) <= 2 * 60 * 60 * 1000) {
try {
const res = await api.RefreshToken();
Cookies.set('site-management-token', res.response.token_content);
Cookies.set('oneWeekARange-management-token', res.response.token_content);
Cookies.set('time', res.response.expires);
} catch (error) {
console.error('刷新 Token 失败', error);
......@@ -40,7 +40,7 @@ const refreshTokenAction = async () => {
axiosInstance.interceptors.request.use(
(config) => {
// 在发送请求之前可以进行一些处理,例如添加认证信息、日志等
let token = Cookies.get('site-management-token')
let token = Cookies.get('oneWeekARange-management-token')
config.headers['Authorization'] = 'Bearer ' + token
if (config.url.indexOf('ImageUpLoad') !== -1)
config.headers['Content-Type'] = 'multipart/form-data'
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或