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

V20240314 保存

上级 051b58e0
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 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-s6w39tH6.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 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{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-s6w39tH6.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 R,d as T,I as Q,a as c,F as p,J,T as q,w as X,l as C,K as w,r as Z,f as ee,b as l,n as t,M as k,O as L,s as g,h as m,P as te,o as s,p as z,i as Y,E as ae,Q as ne,y as se,z as ie,R as oe,H as le,D as re}from"./index-s6w39tH6.js";const[V,ce]=R("space"),de={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function S(a=[]){const i=[];return a.forEach(n=>{Array.isArray(n)?i.push(...n):n.type===p?i.push(...S(n.children)):i.push(n)}),i.filter(n=>{var _;return!(n&&(n.type===J||n.type===p&&((_=n.children)==null?void 0:_.length)===0||n.type===q&&n.children.trim()===""))})}var ue=T({name:V,props:de,setup(a,{slots:i}){const n=Q(()=>{var d;return(d=a.align)!=null?d:a.direction==="horizontal"?"center":""}),_=d=>typeof d=="number"?d+"px":d,e=d=>{const f={},D=`${_(Array.isArray(a.size)?a.size[0]:a.size)}`,h=`${_(Array.isArray(a.size)?a.size[1]:a.size)}`;return d?a.wrap?{marginBottom:h}:{}:(a.direction==="horizontal"&&(f.marginRight=D),(a.direction==="vertical"||a.wrap)&&(f.marginBottom=h),f)};return()=>{var d;const f=S((d=i.default)==null?void 0:d.call(i));return c("div",{class:[ce({[a.direction]:a.direction,[`align-${n.value}`]:n.value,wrap:a.wrap,fill:a.fill})]},[f.map((D,h)=>c("div",{key:`item-${h}`,class:`${V}-item`,style:e(h===f.length-1)},[D]))])}}});const pe=X(ue);function _e(a){return C.get("/api/Common/GetDeptList",a)}function me(a,i){const n={dept_id:a.dept_id};return C.get("/api/Common/GetUserList",{params:n,...i})}function fe(a,i){return C.post("/api/PlanProject/GetPlanProjectByWeekList",a,i)}function he(a,i){return C.post("/api/PlanProject/GetPlanProjectByDayList",a,i)}const we={class:"publicContainerNoPadding"},ye={class:"w-full h-[50px] flex justify-between items-center p-2"},ve={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},xe={key:0},ge=t("div",{class:"w-full h-5"},null,-1),be={key:1},ke={class:"w-[35px] min-h-[80px]"},De={class:"aaa w-full min-h-[80px] ccFlex"},Ye={class:"w-[calc(100%-35px)] h-full"},Pe={class:"w-[35px] min-h-[80px] ccFlex"},Fe={class:"aaa"},Ae=t("div",{class:"w-[35px] min-h-[80px]"},[t("div",{class:"w-full h-1/2 ccFlex"}," 上 "),t("div",{class:"w-full h-1/2 ccFlex"}," 下 ")],-1),Me={class:"w-[calc(100%-105px)] min-h-[80px]"},Ce={class:"w-full h-1/2 ccFlex"},Be={class:"w-full h-1/2 ccFlex"},Ne={class:"w-[35px] min-h-[80px] ccFlex"},je={class:"aaa"},Le={class:"w-full h-[calc(100%-64px)] bg-gray-200"},ze=t("div",{class:"w-full h-3"},null,-1),Ge=t("div",{class:"w-full h-3"},null,-1),Ie={class:"w-full h-auto bg-white"},Ve=t("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),Se={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},$e=t("div",{class:"w-full h-3"},null,-1),We={class:"w-full h-auto bg-white"},Oe=t("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),Ee={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},He={__name:"index",setup(a,{expose:i}){const n=w().startOf("week").add(1,"day").format("YYYY-MM-DD"),_=w().startOf("week").add(5,"day").format("YYYY-MM-DD"),e=Z({weekKey:1,dayArray:[],weekArray:[],paramsDay:{begin_time:w().format("YYYY-MM-DD"),end_time:w().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:n,end_time:_,dept_id_list:[],tid_list:[]},comment:{dept:[],user:[],deptId:""},check:{value:""},date:{show:!1},search:{date:n+" - "+_},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function d(r){e.date.show=!1,e.search.date=w(r[0]).format("YYYY-MM-DD")+" - "+w(r[1]).format("YYYY-MM-DD")}function f(){e.select.showPopup=!0}function D(){e.switchView.show=!e.switchView.show,e.switchView.show?(e.paramsDay={begin_time:w().format("YYYY-MM-DD"),end_time:w().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},P()):(e.paramsWeek={begin_time:n,end_time:_,dept_id_list:[],tid_list:[]},B()),e.select.action=!1}function h(){}function $(){e.select.showPopup=!1}function W(){_e().then(r=>{e.comment.dept=r.response})}function O(){me({dept_id:e.comment.deptId}).then(r=>{e.comment.user=r.response})}function P(){he(e.paramsDay).then(r=>{e.dayArray=r.response})}function E(r){e.paramsDay={...e.paramsDay,begin_time:r,end_time:r},P()}function B(){fe(e.paramsWeek).then(r=>{let y=[];const F=r.response.reduce((N,o)=>{const A=N.find(v=>v.deptName===o.dept_name);return A?A.nameData.push({userId:o.userid,userName:o.username,userCard:o.usercard,attention:o.attention,nameArray:o.data}):y.push({deptName:o.dept_name,deptId:o.dept_id,nameData:[{userId:o.userid,userName:o.username,userCard:o.usercard,attention:o.attention,nameArray:o.data}]}),y},[]);e.weekArray=F})}return ee(()=>{document.title="分管填报记录查看",W(),O(),P(),B()}),i({init:e,GetPlanProjectByDayList:P,GetPlanProjectByWeekList:B}),(r,y)=>{const G=ae,F=ne,N=se,o=ie,A=oe,v=le,I=pe,U=re,H=te;return s(),l(p,null,[t("div",we,[c(G,{path:"/welcome",title:"分管填报记录查看"}),t("div",ye,[t("div",{onClick:D,class:"w-24 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100"}," 切换"+k(e.switchView.show?"周":"天")+"视图 ",1),t("div",{style:L({background:["#FFFFFF","#1989FA"][Number(e.select.action)],color:["#4B5563","#FFFFFF"][Number(e.select.action)]}),onClick:f,class:"w-20 h-8 flex justify-center items-center border-solid border-[1px]"}," 高级查询 ",4)]),t("div",ve,[e.switchView.show?(s(),l("div",xe,[c(F,{onSearchDayData:E}),ge,(s(!0),l(p,null,g(e.dayArray,(u,b)=>(s(),z(N,{data:u,key:b,alldayOrMidafternoonStatus:!!Number(u.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):(s(),l("div",be,[c(F),(s(),l("div",{class:"w-full h-auto bg-white",key:e.weekKey},[(s(!0),l(p,null,g(e.weekArray,(u,b)=>(s(),l("div",{class:"w-full min-h-[80px] flex-wrap ccFlex",key:b},[t("div",ke,[t("div",De,k(u.deptName),1)]),t("div",Ye,[(s(!0),l(p,null,g(u.nameData,(M,K)=>(s(),l("div",{class:"w-full h-auto flex",key:K},[t("div",Pe,[t("div",Fe,k(M.userName),1)]),Ae,t("div",Me,[t("div",Ce,[(s(!0),l(p,null,g(M.nameArray,(x,j)=>(s(),l("div",{style:L({background:["","#D9E2F3"][+(x.fore_plan!=null&&x.fore_plan!=""&&x.fore_plan!=null)]}),key:j,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))]),t("div",Be,[(s(!0),l(p,null,g(M.nameArray,(x,j)=>(s(),l("div",{style:L({background:["","#FFE599"][+(x.fore_plan!=null&&x.fore_plan!=""&&x.fore_plan!=null)]}),key:j,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))])]),t("div",Ne,[t("div",je,k(["关注","取消关注"][M.attention]),1)])]))),128))])]))),128))]))]))])]),c(H,{show:e.select.showPopup,height:80},{content:m(()=>[t("div",Le,[ze,c(o,{inset:"",title:"选择单个日期",value:e.search.date,onClick:y[0]||(y[0]=u=>e.date.show=!0)},null,8,["value"]),c(A,{type:"range",show:e.date.show,"onUpdate:show":y[1]||(y[1]=u=>e.date.show=u),onConfirm:d},null,8,["show"]),Ge,t("div",Ie,[Ve,t("div",Se,[c(I,{wrap:""},{default:m(()=>[(s(!0),l(p,null,g(e.comment.dept,(u,b)=>(s(),z(v,{key:b,style:{margin:"5px",padding:"15px !important",height:"40px"},size:"normal",plain:"",hairline:"",type:"primary"},{default:m(()=>[Y(k(u.name),1)]),_:2},1024))),128))]),_:1})])]),$e,t("div",We,[Oe,t("div",Ee,[c(I,{wrap:""},{default:m(()=>[(s(!0),l(p,null,g(e.comment.dept,(u,b)=>(s(),z(v,{style:{margin:"5px",padding:"15px !important",height:"40px"},size:"normal",plain:"",hairline:"",type:"primary"},{default:m(()=>[Y(k(u.name),1)]),_:2},1024))),256))]),_:1})])])]),c(U,null,{default:m(()=>[c(v,{type:"primary",round:"",class:"w-[90px]",onClick:h},{default:m(()=>[Y("重置")]),_:1}),c(v,{type:"primary",round:"",class:"w-[90px]",onClick:h},{default:m(()=>[Y("查询")]),_:1}),c(v,{round:"",class:"w-[90px]",onClick:$},{default:m(()=>[Y("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{He 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{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{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-s6w39tH6.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{r as o,b as s,a as t,n as e,o as c,E as l}from"./index-s6w39tH6.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{_ 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{_ as e}from"./index-s6w39tH6.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}; 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-s6w39tH6.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};
import{c as D,d as w,u as k,a as e,g as _,m as B,w as G,b as M,F as S,e as C,o as b,N as z}from"./index-Db76niLa.js";const[A,s]=D("empty"),I={image:B("default"),imageSize:[Number,String,Array],description:String};var N=w({name:A,props:I,setup(o,{slots:a}){const h=()=>{const l=a.description?a.description():o.description;if(l)return e("p",{class:s("description")},[l])},x=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=k(),r=l=>`${f}-${l}`,t=l=>`url(#${r(l)})`,n=(l,d,v)=>e("stop",{"stop-color":l,offset:`${d}%`,"stop-opacity":v},null),i=(l,d)=>[n(l,0),n(d,100)],F=l=>[e("defs",null,[e("radialGradient",{id:r(l),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[n("#EBEDF0",0),n("#F2F3F5",100,.3)])]),e("ellipse",{fill:t(l),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:r("a"),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:t("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:t("a")},null)])],u=()=>[e("defs",null,[e("linearGradient",{id:r("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[n("#F2F3F5",0,.3),n("#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:t("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:t("b")},null)])],p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:r(1),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#F2F3F5",100)]),e("linearGradient",{id:r(2),x1:"50%",x2:"50%",y2:"84%"},[n("#EBEDF0",0),n("#DCDEE0",100,0)]),e("linearGradient",{id:r(3),x1:"100%",x2:"100%",y2:"100%"},[i("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:r(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[n("#EBEDF0",0),n("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:t(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:t(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:t(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:t(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:t(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:t(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)])])]),y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(5)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:r(6)},[i("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:r(7)},[i("#EAEDF1","#DCDEE0")])]),c(),u(),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:t(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:t(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:t(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:r(8)},[i("#EAEDF1","#DCDEE0")])]),c(),u(),F("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:t(8)},null)]),m=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:r(9)},[i("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:r(10)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(11)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(12)},[i("#FFF","#F7F8FA")])]),c(),u(),F("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:t(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:t(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:t(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:t(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:t(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),E=()=>{var l;if(a.image)return a.image();const d={error:g,search:m,network:p,default:y};return((l=d[o.image])==null?void 0:l.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:_(o.imageSize)},[E()]),h(),x()])}});const H=G(N),$={__name:"index",setup(o){const a=C(),h=()=>a.replace({name:"welcome"});return(x,f)=>{const r=z,t=H;return b(),M(S,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:h}),e(t,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{$ as default}; import{c as D,d as w,u as k,a as e,g as _,m as B,w as G,b as M,F as S,e as C,o as b,N as z}from"./index-s6w39tH6.js";const[A,s]=D("empty"),I={image:B("default"),imageSize:[Number,String,Array],description:String};var N=w({name:A,props:I,setup(o,{slots:a}){const h=()=>{const l=a.description?a.description():o.description;if(l)return e("p",{class:s("description")},[l])},x=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=k(),r=l=>`${f}-${l}`,t=l=>`url(#${r(l)})`,n=(l,d,v)=>e("stop",{"stop-color":l,offset:`${d}%`,"stop-opacity":v},null),i=(l,d)=>[n(l,0),n(d,100)],F=l=>[e("defs",null,[e("radialGradient",{id:r(l),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[n("#EBEDF0",0),n("#F2F3F5",100,.3)])]),e("ellipse",{fill:t(l),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:r("a"),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:t("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:t("a")},null)])],u=()=>[e("defs",null,[e("linearGradient",{id:r("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[n("#F2F3F5",0,.3),n("#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:t("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:t("b")},null)])],p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:r(1),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#F2F3F5",100)]),e("linearGradient",{id:r(2),x1:"50%",x2:"50%",y2:"84%"},[n("#EBEDF0",0),n("#DCDEE0",100,0)]),e("linearGradient",{id:r(3),x1:"100%",x2:"100%",y2:"100%"},[i("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:r(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[n("#EBEDF0",0),n("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:t(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:t(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:t(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:t(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:t(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:t(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)])])]),y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(5)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:r(6)},[i("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:r(7)},[i("#EAEDF1","#DCDEE0")])]),c(),u(),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:t(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:t(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:t(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:r(8)},[i("#EAEDF1","#DCDEE0")])]),c(),u(),F("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:t(8)},null)]),m=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:r(9)},[i("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:r(10)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(11)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(12)},[i("#FFF","#F7F8FA")])]),c(),u(),F("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:t(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:t(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:t(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:t(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:t(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),E=()=>{var l;if(a.image)return a.image();const d={error:g,search:m,network:p,default:y};return((l=d[o.image])==null?void 0:l.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:_(o.imageSize)},[E()]),h(),x()])}});const H=G(N),$={__name:"index",setup(o){const a=C(),h=()=>a.replace({name:"welcome"});return(x,f)=>{const r=z,t=H;return b(),M(S,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:h}),e(t,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{$ 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{r as o,b as s,a as t,n as e,o as c,E as l}from"./index-s6w39tH6.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};
...@@ -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-Db76niLa.js"></script> <script type="module" crossorigin src="./assets/index-s6w39tH6.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BX392dhT.css"> <link rel="stylesheet" crossorigin href="./assets/index-BiZgieem.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<van-swipe <van-swipe
ref="swipe" ref="swipe"
@touchstart="touchStart" @touchstart="touchStart"
@touchend="touchEnd" @touchend="touchEnd($event,$parent)"
:initial-swipe="0" :initial-swipe="0"
:show-indicators="false" :show-indicators="false"
width="100%" width="100%"
...@@ -59,6 +59,9 @@ import {showToast} from "vant"; ...@@ -59,6 +59,9 @@ import {showToast} from "vant";
import Cookies from "js-cookie"; import Cookies from "js-cookie";
import {next} from "lodash/seq.js"; import {next} from "lodash/seq.js";
const emit = defineEmits([
'searchDayData'
])
const swipe = ref() const swipe = ref()
let dateArray = reactive({ let dateArray = reactive({
swiper: { swiper: {
...@@ -97,6 +100,10 @@ let GetWatchListObject = reactive({ ...@@ -97,6 +100,10 @@ let GetWatchListObject = reactive({
function centerDateValue(date, parent) { function centerDateValue(date, parent) {
//选中日期focus //选中日期focus
if (parent.init.switchView.show) {
//parent.init.switchView 父组件的切换视图按钮
emit('searchDayData', date)
//日期背景
dateArray.array.forEach(cur => { dateArray.array.forEach(cur => {
if (date === cur.date && cur.date === dayjs().format('YYYY-MM-DD')) { if (date === cur.date && cur.date === dayjs().format('YYYY-MM-DD')) {
console.log("🚀🚀🚀1,") console.log("🚀🚀🚀1,")
...@@ -113,13 +120,10 @@ function centerDateValue(date, parent) { ...@@ -113,13 +120,10 @@ function centerDateValue(date, parent) {
console.log("🚀🚀🚀3,") console.log("🚀🚀🚀3,")
cur.bg = '' cur.bg = ''
cur.acColor = '' cur.acColor = ''
} }
}) })
parent.init.select.action = true parent.init.select.action = true
}
} }
function touchStart(event) { function touchStart(event) {
...@@ -127,7 +131,7 @@ function touchStart(event) { ...@@ -127,7 +131,7 @@ function touchStart(event) {
dateArray.swiper.beginPosition = event.touches[0].clientX dateArray.swiper.beginPosition = event.touches[0].clientX
} }
function touchEnd(event) { function touchEnd(event, parent) {
// 获取结束活动坐标 开始与结束坐标比较 得到左或右滑动 begin > end 左滑 begin < end 右滑 // 获取结束活动坐标 开始与结束坐标比较 得到左或右滑动 begin > end 左滑 begin < end 右滑
dateArray.swiper.endPosition = event.changedTouches[0].clientX dateArray.swiper.endPosition = event.changedTouches[0].clientX
let swiperDirection; let swiperDirection;
...@@ -136,10 +140,26 @@ function touchEnd(event) { ...@@ -136,10 +140,26 @@ function touchEnd(event) {
'right': () => { 'right': () => {
//右滑 查询过去日期 //右滑 查询过去日期
reductionDate() reductionDate()
if (!parent.init.switchView.show) {
parent.init.paramsWeek = {
...parent.init.paramsWeek,
begin_time: dateArray.array[0].date,
end_time: dateArray.array[dateArray.array.length - 1].date
}
parent.GetPlanProjectByWeekList()
}
}, },
'left': () => { 'left': () => {
//左滑 查询未来日期 //左滑 查询未来日期
addDate() addDate()
if (!parent.init.switchView.show) {
parent.init.paramsWeek = {
...parent.init.paramsWeek,
begin_time: dateArray.array[0].date,
end_time: dateArray.array[dateArray.array.length - 1].date
}
parent.GetPlanProjectByWeekList()
}
} }
} }
strategy[swiperDirection]() strategy[swiperDirection]()
......
...@@ -43,7 +43,9 @@ ...@@ -43,7 +43,9 @@
</div> </div>
<div class="w-full h-11 p-2 flex items-center justify-end border-t-[1px] border-[#E5E7EB] border-solid"> <div class="w-full h-11 p-2 flex items-center justify-end border-t-[1px] border-[#E5E7EB] border-solid">
<van-button @click="cancel($parent)" type="primary" size="small">取消关注</van-button> <van-button class="w-20" @click="cancel($parent,props.data)" type="primary" size="small">
{{ props.data.attention !== void 0 ? ['关注', '取消关注'][props.data.attention] : '取消关注' }}
</van-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -65,8 +67,40 @@ const props = defineProps({ ...@@ -65,8 +67,40 @@ const props = defineProps({
} }
}) })
function cancel(parent) { function cancel(parent, data) {
//取消关注 //取消关注 或关注 不含有attention表示天或周
if (props.data.attention !== void 0) {
//视图
let strategy = {
'0': (value = 1) => {
hooks.myEncapsulationFunction(() => {
return api.getApiCollectCollectClick({
id: props.data.planid,
collect_type: value
}).then(res => {
if (res.code === 1) parent.GetPlanProjectByDayList()
return res
})
})
},
'1': (value = 0) => {
hooks.publicConfirm(() => {
hooks.myEncapsulationFunction(() => {
return api.getApiCollectUnCollect({
plan_id: props.data.planid,
collect_userid: props.data.userid
}).then(res => {
if (res.code === 1) parent.GetPlanProjectByDayList()
return res
})
})
})
}
}
strategy[props.data.attention]()
} else {
//主页
hooks.publicConfirm(() => { hooks.publicConfirm(() => {
hooks.myEncapsulationFunction(() => { hooks.myEncapsulationFunction(() => {
return api.getApiCollectUnCollect({plan_id: props.data.planid, collect_userid: props.data.userid}).then(res => { return api.getApiCollectUnCollect({plan_id: props.data.planid, collect_userid: props.data.userid}).then(res => {
...@@ -75,6 +109,7 @@ function cancel(parent) { ...@@ -75,6 +109,7 @@ function cancel(parent) {
}) })
}) })
}) })
}
} }
</script> </script>
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<childrenIndexHeader path="/welcome" title="分管填报记录查看"></childrenIndexHeader> <childrenIndexHeader path="/welcome" title="分管填报记录查看"></childrenIndexHeader>
<div class="w-full h-[50px] flex justify-between items-center p-2"> <div class="w-full h-[50px] flex justify-between items-center p-2">
<div @click="changeView" <div @click="changeView"
class="w-20 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100 "> class="w-24 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100 ">
切换视图 切换{{ init.switchView.show ? '周' : '天' }}视图
</div> </div>
<div :style="{ <div :style="{
background:['#FFFFFF','#1989FA'][Number(init.select.action)], background:['#FFFFFF','#1989FA'][Number(init.select.action)],
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div v-if="init.switchView.show"> <div v-if="init.switchView.show">
<!-- 天视图--> <!-- 天视图-->
<Date/> <Date @searchDayData="searchDayData"/>
<div class="w-full h-5"></div> <div class="w-full h-5"></div>
<my-focus-card :data="item" v-for="(item,index) in init.dayArray" :key="index" <my-focus-card :data="item" v-for="(item,index) in init.dayArray" :key="index"
:alldayOrMidafternoonStatus="Boolean(Number(item.is_allday))"/> :alldayOrMidafternoonStatus="Boolean(Number(item.is_allday))"/>
...@@ -27,40 +27,52 @@ ...@@ -27,40 +27,52 @@
<div v-else> <div v-else>
<!-- 周视图--> <!-- 周视图-->
<Date/> <Date/>
<div class="w-full h-auto bg-white"> <div class="w-full h-auto bg-white" :key="init.weekKey">
<div class="w-full min-h-[80px] flex-wrap ccFlex " v-for="item in [1,2,3,4,5]"> <div class="w-full min-h-[80px] flex-wrap ccFlex "
v-for="(item,index) in init.weekArray" :key="index">
<!-- 一个部门--> <!-- 一个部门-->
<div class="w-[35px] min-h-[80px] "> <div class="w-[35px] min-h-[80px] ">
<!-- 部门名称--> <!-- 部门名称-->
<div class=" aaa w-full min-h-[80px] ccFlex">教务处</div> <div class=" aaa w-full min-h-[80px] ccFlex">{{ item.deptName }}</div>
</div> </div>
<div class="w-[calc(100%-35px)] h-full "> <div class="w-[calc(100%-35px)] h-full ">
<!-- 人员信息--> <!-- 人员信息-->
<div class="w-full h-auto flex " v-for="item in [1,2,3,4,5]"> <div class="w-full h-auto flex " v-for="(ite,inde) in item.nameData" :key="inde">
<div class="w-[35px] min-h-[80px] ccFlex bg-red-600"> <div class=" w-[35px] min-h-[80px] ccFlex ">
<!-- 姓名--> <!-- 姓名-->
{{ item }} <div class="aaa ">{{ ite.userName }}</div>
</div> </div>
<div class="w-[35px] min-h-[80px] bg-blue-600"> <div class="w-[35px] min-h-[80px] ">
<!-- 上下午--> <!-- 上下午-->
<div class="w-full h-1/2 "></div> <div class="w-full h-1/2 ccFlex">
<div class="w-full h-1/2 "></div> 上
</div>
<div class="w-full h-1/2 ccFlex">
下
</div> </div>
</div>
<!--v-for="(it,ind) in ite.nameArray" :key="ind"-->
<div class="w-[calc(100%-105px)] min-h-[80px] "> <div class="w-[calc(100%-105px)] min-h-[80px] ">
<!-- 周安排--> <!-- 周安排-->
<div class="w-full h-1/2 ccFlex"> <div class="w-full h-1/2 ccFlex">
<div :style="{background:['','#D9E2F3'][item]}" v-for="item in [1,2,3,4,5]" class="w-1/5 h-full"> <div
:style="{background:['','#D9E2F3'][Number(it.fore_plan!=null&&it.fore_plan!=''&&it.fore_plan!=void 0)]}"
v-for="(it,ind) in ite.nameArray" :key="ind"
class="w-1/5 h-full border-gray-300 border-solid border-[0.5px]">
</div> </div>
</div> </div>
<div class="w-full h-1/2 ccFlex"> <div class="w-full h-1/2 ccFlex">
<div :style="{background:['','#FFE599'][item]}" v-for="item in [1,2,3,4,5]" class="w-1/5 h-full"> <div
:style="{background:['','#FFE599'][Number(it.fore_plan!=null&&it.fore_plan!=''&&it.fore_plan!=void 0)]}"
v-for="(it,ind) in ite.nameArray" :key="ind"
class="w-1/5 h-full border-gray-300 border-solid border-[0.5px]">
</div> </div>
</div> </div>
</div> </div>
<div class="w-[35px] min-h-[80px] ccFlex bg-gray-600 "> <div class="w-[35px] min-h-[80px] ccFlex ">
<!-- 是否关注--> <!-- 是否关注-->
{{ item }} <div class="aaa ">{{ ['关注', '取消关注'][ite.attention] }}</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -68,13 +80,11 @@ ...@@ -68,13 +80,11 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- 高级查询 --> <!-- 高级查询 -->
<popup :show="init.select.showPopup" :height="80"> <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-[calc(100%-64px)] bg-gray-200">
<div class="w-full h-3"></div> <div class="w-full h-3"></div>
<van-cell inset title="选择单个日期" :value="init.search.date" @click="init.date.show = true"/> <van-cell inset title="选择单个日期" :value="init.search.date" @click="init.date.show = true"/>
...@@ -85,30 +95,30 @@ ...@@ -85,30 +95,30 @@
<div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap"> <div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap">
<van-space wrap> <van-space wrap>
<!-- background:#1989FA;color:#FFFFFF--> <!-- background:#1989FA;color:#FFFFFF-->
<van-button v-for="it in [1,1,1,1,1,1,1,1]" <van-button v-for="(item,index) in init.comment.dept"
:key="index"
style="margin: 5px; padding: 15px !important;height: 40px" style="margin: 5px; padding: 15px !important;height: 40px"
text="细边框按钮"
size="normal" size="normal"
plain hairline plain hairline
type="primary"/> type="primary">{{ item.name }}
</van-button>
</van-space> </van-space>
</div> </div>
</div> </div>
<div class="w-full h-3"></div> <div class="w-full h-3"></div>
<div class="w-full h-auto bg-white "> <div class="w-full h-auto bg-white ">
<div class="w-full h-10 p-4 pb-0 font-bold">中层干部</div> <div class="w-full h-10 p-4 pb-0 font-bold">中层干部</div>
<div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap"> <div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap">
<van-space wrap> <van-space wrap>
<van-button v-for="it in [1,1,1,1,1,1,1,1]" <!-- color:#FFFFFF; #1989FA-->
<van-button v-for="(item,index) in init.comment.dept"
style="margin: 5px; background: #1989FA;color:#FFFFFF; padding: 15px !important;height: 40px" style="margin: 5px; padding: 15px !important;height: 40px"
text="细边框按钮"
size="normal" size="normal"
plain hairline plain hairline
type="primary"/> type="primary">{{ item.name }}
</van-button>
</van-space> </van-space>
</div> </div>
...@@ -131,8 +141,11 @@ import dayjs from "dayjs"; ...@@ -131,8 +141,11 @@ import dayjs from "dayjs";
import {onMounted, reactive} from "vue"; import {onMounted, reactive} from "vue";
import * as hooks from '@/hooks/index.js' import * as hooks from '@/hooks/index.js'
import * as api from '@/api/apis/dist/controller/index.js' import * as api from '@/api/apis/dist/controller/index.js'
// 获取本周一和本周五的日期
const startOfWeek = dayjs().startOf('week').add(1, 'day').format('YYYY-MM-DD');
const endOfWeek = dayjs().startOf('week').add(5, 'day').format('YYYY-MM-DD');
const init = reactive({ const init = reactive({
weekKey: 1,
dayArray: [], dayArray: [],
weekArray: [], weekArray: [],
paramsDay: { paramsDay: {
...@@ -142,8 +155,8 @@ const init = reactive({ ...@@ -142,8 +155,8 @@ const init = reactive({
"tid_list": [], "tid_list": [],
}, },
paramsWeek: { paramsWeek: {
"begin_time": "", "begin_time": startOfWeek,
"end_time": "", "end_time": endOfWeek,
"dept_id_list": [], "dept_id_list": [],
"tid_list": [] "tid_list": []
}, },
...@@ -160,7 +173,8 @@ const init = reactive({ ...@@ -160,7 +173,8 @@ const init = reactive({
show: false, show: false,
}, },
search: { search: {
date: '' date: startOfWeek + ' - ' + endOfWeek
}, },
weekView: { weekView: {
minHeigth: 80, minHeigth: 80,
...@@ -191,6 +205,24 @@ function advancedQuery() { ...@@ -191,6 +205,24 @@ function advancedQuery() {
function changeView() { function changeView() {
//切换视图 //切换视图
init.switchView.show = !init.switchView.show init.switchView.show = !init.switchView.show
if (init.switchView.show) {
init.paramsDay = {
"begin_time": dayjs().format('YYYY-MM-DD'),
"end_time": dayjs().format('YYYY-MM-DD'),
"dept_id_list": [],
"tid_list": [],
}
GetPlanProjectByDayList()
} else {
init.paramsWeek = {
"begin_time": startOfWeek,
"end_time": endOfWeek,
"dept_id_list": [],
"tid_list": []
},
GetPlanProjectByWeekList()
}
init.select.action = false init.select.action = false
} }
...@@ -230,14 +262,64 @@ function GetPlanProjectByDayList() { ...@@ -230,14 +262,64 @@ function GetPlanProjectByDayList() {
}) })
} }
function searchDayData(date) {
//查询天数据
init.paramsDay = {...init.paramsDay, begin_time: date, end_time: date}
GetPlanProjectByDayList()
}
function GetPlanProjectByWeekList() {
//天视图数据
api.postApiPlanProjectGetPlanProjectByWeekList(init.paramsWeek).then(res => {
let ccc = []
// let data = [res.response[0], res.response[0], res.response[0], res.response[1], res.response[1], res.response[1]]
let data = res.response
const result = data.reduce((acc, cur) => {
const foundDept = acc.find(dept => dept.deptName === cur.dept_name);
if (foundDept) {
// 如果找到了相同的部门,就在 nameData 中添加新的元素
foundDept.nameData.push({
userId: cur.userid,
userName: cur.username,
userCard: cur.usercard,
attention: cur.attention,
nameArray: cur.data,
});
} else {
// 如果没有找到相同的部门,就创建新的部门元素
ccc.push({
deptName: cur.dept_name,
deptId: cur.dept_id,
nameData: [{
userId: cur.userid,
userName: cur.username,
userCard: cur.usercard,
attention: cur.attention,
nameArray: cur.data,
}]
});
}
return ccc;
}, []);
init.weekArray = result
})
}
onMounted(() => { onMounted(() => {
document.title = '分管填报记录查看' document.title = '分管填报记录查看'
GetDeptList() GetDeptList()
GetUserList() GetUserList()
GetPlanProjectByDayList() GetPlanProjectByDayList()
GetPlanProjectByWeekList()
}) })
defineExpose({ defineExpose({
init, init,
GetPlanProjectByDayList,
GetPlanProjectByWeekList,
}) })
</script> </script>
<style> <style>
......
...@@ -44,7 +44,7 @@ axiosInstance.interceptors.request.use( ...@@ -44,7 +44,7 @@ axiosInstance.interceptors.request.use(
config.headers['Authorization'] = 'Bearer ' + token config.headers['Authorization'] = 'Bearer ' + token
if (config.url.indexOf('ImageUpLoad') !== -1) if (config.url.indexOf('ImageUpLoad') !== -1)
config.headers['Content-Type'] = 'multipart/form-data' config.headers['Content-Type'] = 'multipart/form-data'
refreshTokenAction() // refreshTokenAction()
return config; return config;
}, },
(error) => { (error) => {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或