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

V20240314 保存

上级 a65ac46e
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 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-DFMcDVET.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-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{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-DFMcDVET.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 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{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-DFMcDVET.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-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{r as o,b as s,a as t,n as e,o as c,E as l}from"./index-DFMcDVET.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{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{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-DFMcDVET.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 X,d as Z,I as ee,a as p,F as m,J as te,T as ae,w as ne,l as j,K as u,A as I,r as se,f as ie,b as c,n,M as Y,O as P,s as k,h,P as le,o,p as L,i as A,E as oe,Q as ce,y as re,z as de,R as _e,H as pe,D as ue}from"./index-DFMcDVET.js";const[V,me]=X("space"),he={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function S(s=[]){const r=[];return s.forEach(i=>{Array.isArray(i)?r.push(...i):i.type===m?r.push(...S(i.children)):r.push(i)}),r.filter(i=>{var _;return!(i&&(i.type===te||i.type===m&&((_=i.children)==null?void 0:_.length)===0||i.type===ae&&i.children.trim()===""))})}var fe=Z({name:V,props:he,setup(s,{slots:r}){const i=ee(()=>{var e;return(e=s.align)!=null?e:s.direction==="horizontal"?"center":""}),_=e=>typeof e=="number"?e+"px":e,C=e=>{const f={},F=`${_(Array.isArray(s.size)?s.size[0]:s.size)}`,y=`${_(Array.isArray(s.size)?s.size[1]:s.size)}`;return e?s.wrap?{marginBottom:y}:{}:(s.direction==="horizontal"&&(f.marginRight=F),(s.direction==="vertical"||s.wrap)&&(f.marginBottom=y),f)};return()=>{var e;const f=S((e=r.default)==null?void 0:e.call(r));return p("div",{class:[me({[s.direction]:s.direction,[`align-${i.value}`]:i.value,wrap:s.wrap,fill:s.fill})]},[f.map((F,y)=>p("div",{key:`item-${y}`,class:`${V}-item`,style:C(y===f.length-1)},[F]))])}}});const ye=ne(fe);function we(s){return j.get("/api/Common/GetDeptList",s)}function ge(s,r){const i={dept_id:s.dept_id};return j.get("/api/Common/GetUserList",{params:i,...r})}function ke(s,r){return j.post("/api/PlanProject/GetPlanProjectByWeekList",s,r)}function be(s,r){return j.post("/api/PlanProject/GetPlanProjectByDayList",s,r)}const ve={class:"publicContainerNoPadding"},xe={class:"w-full h-[50px] flex justify-between items-center p-2"},De={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},Ye={key:0},Fe=n("div",{class:"w-full h-5"},null,-1),Me={key:1},Pe={class:"w-[35px] min-h-[80px]"},Ae={class:"aaa w-full min-h-[80px] ccFlex"},Ce={class:"w-[calc(100%-35px)] h-full"},Be={class:"w-[35px] min-h-[80px] ccFlex"},Ne={class:"aaa"},je=n("div",{class:"w-[35px] min-h-[80px]"},[n("div",{class:"w-full h-1/2 ccFlex"}," 上 "),n("div",{class:"w-full h-1/2 ccFlex"}," 下 ")],-1),Ee={class:"w-[calc(100%-105px)] min-h-[80px]"},$e={class:"w-full h-1/2 ccFlex"},Le={class:"w-full h-1/2 ccFlex"},ze={class:"w-[35px] min-h-[80px] ccFlex"},Ge={class:"aaa"},Ie=n("div",{class:"w-full h-3"},null,-1),Ve=n("div",{class:"w-full h-3"},null,-1),Se={class:"w-full h-auto bg-white"},We=n("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"},Oe=n("div",{class:"w-full h-3"},null,-1),Ue={class:"w-full h-auto bg-white"},He=n("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),Re={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Qe={__name:"index",setup(s,{expose:r}){const i=u().startOf("week").add(1,"day").format("YYYY-MM-DD"),_=u().startOf("week").add(5,"day").format("YYYY-MM-DD"),C=I();I();const e=se({calendarKey:1,weekKey:1,dayArray:[],weekArray:[],paramsDay:{begin_time:u().format("YYYY-MM-DD"),end_time:u().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:i,end_time:_,dept_id_list:[],tid_list:[]},comment:{dept:[],user:[],deptId:""},check:{dept_id_list:[],tid_list:[],begin_time:"",end_time:""},date:{show:!1},search:{date:i+" - "+_},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function f(a){e.date.show=!1,e.search.date=u(a[0]).format("YYYY-MM-DD")+" - "+u(a[1]).format("YYYY-MM-DD"),e.check.begin_time=u(a[0]).format("YYYY-MM-DD"),e.check.end_time=u(a[1]).format("YYYY-MM-DD")}function F(){e.select.showPopup=!0}function y(){e.switchView.show=!e.switchView.show,e.calendarKey++,e.search.date=i+" - "+_,e.switchView.show?(e.paramsDay={begin_time:u().format("YYYY-MM-DD"),end_time:u().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},b()):(e.paramsWeek={begin_time:i,end_time:_,dept_id_list:[],tid_list:[]},M()),z(),e.select.action=!1}function z(a){console.log("🚀🚀🚀,",a),e.check.dept_id_list=[],e.comment.dept.forEach(t=>{t.bg="",t.cl=""}),e.check.tid_list=[],e.comment.user.forEach(t=>{t.bg="",t.cl=""}),e.search.date=i+" - "+_,e.check={dept_id_list:[],tid_list:[],begin_time:"",end_time:""},e.calendarKey++,e.select.action=!1,e.paramsWeek={begin_time:i,end_time:_,dept_id_list:[],tid_list:[]},e.paramsDay={begin_time:u().format("YYYY-MM-DD"),end_time:u().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},a.dateDay.dateArray.array=[],a.dateDay.getInitDate(),b(),M()}function W(){let a={true:()=>{e.paramsDay={...e.check,begin_time:e.check.begin_time?e.check.begin_time:i,end_time:e.check.end_time?e.check.end_time:_},b(),e.select.showPopup=!1},false:()=>{e.paramsWeek={...e.check,begin_time:e.check.begin_time?e.check.begin_time:i,end_time:e.check.end_time?e.check.end_time:_},M(),e.select.showPopup=!1}};e.select.action=!0,a[String(e.switchView.show)]()}function K(){e.select.showPopup=!1}function O(){we().then(a=>{e.comment.dept=a.response.map(t=>({...t,bg:"",cl:""}))})}function U(){ge({dept_id:e.comment.deptId}).then(a=>{e.comment.user=a.response.map(t=>({...t,bg:"",cl:""}))})}function b(){be(e.paramsDay).then(a=>{e.dayArray=a.response})}function H(a){e.paramsDay={...e.paramsDay,begin_time:a,end_time:a},b()}function M(){ke(e.paramsWeek).then(a=>{let t=[];const B=a.response.reduce((E,d)=>{const N=E.find(w=>w.deptName===d.dept_name);return N?N.nameData.push({userId:d.userid,userName:d.username,userCard:d.usercard,attention:d.attention,nameArray:d.data}):t.push({deptName:d.dept_name,deptId:d.dept_id,nameData:[{userId:d.userid,userName:d.username,userCard:d.usercard,attention:d.attention,nameArray:d.data}]}),t},[]);e.weekArray=B})}function R(a){e.check.dept_id_list.includes(a.id)?(e.check.dept_id_list.forEach((t,v)=>{t===a.id&&e.check.dept_id_list.splice(v,1)}),e.comment.dept.forEach(t=>{t.id===a.id&&(t.bg="",t.cl="")})):(e.check.dept_id_list.push(a.id),e.comment.dept.forEach(t=>{t.id===a.id&&(t.bg="#1989FA",t.cl="#FFFFFF")})),console.log("🚀🚀check.dept_id_list🚀,",...e.check.dept_id_list,"")}function T(a){e.check.tid_list.includes(a.id)?(e.check.tid_list.forEach((t,v)=>{t===a.id&&e.check.tid_list.splice(v,1,"")}),e.comment.user.forEach(t=>{t.id===a.id&&(t.bg="",t.cl="")})):(e.check.tid_list.push(a.id),e.comment.user.forEach(t=>{t.id===a.id&&(t.bg="#1989FA",t.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.tid_list)}return ie(()=>{document.title="分管填报记录查看",O(),U(),b(),M()}),r({init:e,GetPlanProjectByDayList:b,GetPlanProjectByWeekList:M}),(a,t)=>{const v=oe,B=ce,E=re,d=de,N=_e,w=pe,G=ye,Q=ue,J=le;return o(),c(m,null,[n("div",ve,[p(v,{path:"/welcome",title:"分管填报记录查看"}),n("div",xe,[n("div",{onClick:y,class:"w-24 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100"}," 切换"+Y(e.switchView.show?"周":"天")+"视图 ",1),n("div",{style:P({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)]),n("div",De,[e.switchView.show?(o(),c("div",Ye,[p(B,{ref_key:"dateDay",ref:C,onSearchDayData:H},null,512),Fe,(o(!0),c(m,null,k(e.dayArray,(l,x)=>(o(),L(E,{data:l,key:x,alldayOrMidafternoonStatus:!!Number(l.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):(o(),c("div",Me,[p(B,{ref_key:"dateDay",ref:C},null,512),(o(),c("div",{class:"w-full h-auto bg-white",key:e.weekKey},[(o(!0),c(m,null,k(e.weekArray,(l,x)=>(o(),c("div",{class:"w-full min-h-[80px] flex-wrap ccFlex",key:x},[n("div",Pe,[n("div",Ae,Y(l.deptName),1)]),n("div",Ce,[(o(!0),c(m,null,k(l.nameData,(D,q)=>(o(),c("div",{class:"w-full h-auto flex",key:q},[n("div",Be,[n("div",Ne,Y(D.userName),1)]),je,n("div",Ee,[n("div",$e,[(o(!0),c(m,null,k(D.nameArray,(g,$)=>(o(),c("div",{style:P({background:["","#D9E2F3"][+(g.fore_plan!=null&&g.fore_plan!=""&&g.fore_plan!=null)]}),key:$,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))]),n("div",Le,[(o(!0),c(m,null,k(D.nameArray,(g,$)=>(o(),c("div",{style:P({background:["","#FFE599"][+(g.fore_plan!=null&&g.fore_plan!=""&&g.fore_plan!=null)]}),key:$,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))])]),n("div",ze,[n("div",Ge,Y(["关注","取消关注"][D.attention]),1)])]))),128))])]))),128))]))]))])]),p(J,{show:e.select.showPopup,height:80},{content:h(()=>[(o(),c("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200",key:e.calendarKey},[Ie,p(d,{inset:"",title:"选择单个日期",value:e.search.date,onClick:t[0]||(t[0]=l=>e.date.show=!0)},null,8,["value"]),p(N,{type:"range",show:e.date.show,"onUpdate:show":t[1]||(t[1]=l=>e.date.show=l),onConfirm:f},null,8,["show"]),Ve,n("div",Se,[We,n("div",Ke,[p(G,{wrap:""},{default:h(()=>[(o(!0),c(m,null,k(e.comment.dept,(l,x)=>(o(),L(w,{onClick:D=>R(l),key:x,style:P({margin:"5px",padding:"15px !important",height:"40px",background:l.bg,color:l.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:h(()=>[A(Y(l.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Oe,n("div",Ue,[He,n("div",Re,[p(G,{wrap:""},{default:h(()=>[(o(!0),c(m,null,k(e.comment.user,(l,x)=>(o(),L(w,{onClick:D=>T(l),style:P({margin:"5px",padding:"15px !important",height:"40px",background:l.bg,color:l.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:h(()=>[A(Y(l.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])])])),p(Q,null,{default:h(()=>[p(w,{type:"primary",round:"",class:"w-[90px]",onClick:t[2]||(t[2]=l=>z(a.$refs))},{default:h(()=>[A("重置")]),_:1}),p(w,{type:"primary",round:"",class:"w-[90px]",onClick:W},{default:h(()=>[A("查询")]),_:1}),p(w,{round:"",class:"w-[90px]",onClick:K},{default:h(()=>[A("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{Qe 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{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-DFMcDVET.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-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{r as o,b as s,a as t,n as e,o as c,E as l}from"./index-DFMcDVET.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-s6w39tH6.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default}; import{_ as e}from"./index-DFMcDVET.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0"> content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title>一周安排</title> <title>一周安排</title>
<script type="module" crossorigin src="./assets/index-s6w39tH6.js"></script> <script type="module" crossorigin src="./assets/index-DFMcDVET.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BiZgieem.css"> <link rel="stylesheet" crossorigin href="./assets/index-BiZgieem.css">
</head> </head>
<body> <body>
......
...@@ -32,7 +32,7 @@ export function RefreshToken(data) { ...@@ -32,7 +32,7 @@ export function RefreshToken(data) {
export function CheckLoginTest(data) { export function CheckLoginTest(data) {
//test token //test token
return requestGet(`/api/sso/test?card=asc666`, data) return requestGet(`/api/sso/test?card=syjs295`, data)
} }
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
:show-indicators="false" :show-indicators="false"
width="100%" width="100%"
> >
<van-swipe-item style="width: 100%;height: 55px"> <van-swipe-item style="width: 100%;height: 55px" class="animate__animated animate__fadeIn">
<div class="w-full h-[55px] flex "> <div class="w-full h-[55px] flex ">
<div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div> <div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div>
<div <div
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</div> </div>
</div> </div>
</van-swipe-item> </van-swipe-item>
<van-swipe-item style="width: 100%;height: 55px"> <van-swipe-item style="width: 100%;height: 55px" class="animate__animated animate__fadeIn">
<div class="w-full h-[55px] flex "> <div class="w-full h-[55px] flex ">
<div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div> <div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div>
<div <div
...@@ -287,5 +287,9 @@ const getInitDate = () => { ...@@ -287,5 +287,9 @@ const getInitDate = () => {
onMounted(() => { onMounted(() => {
getInitDate() getInitDate()
}) })
defineExpose({
getInitDate,
dateArray
})
</script> </script>
<template> <template>
<div class="w-full min-h-[120px] rounded-[5px] text-[#4B5563] p-2 text-[15px] flex bg-white mb-3"> <div class="w-full min-h-[120px] rounded-[5px] text-[#4B5563] p-2 text-[15px] flex bg-white mb-3">
<div v-if="props.data.is_allday == 0" 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 "> <div class="w-full min-h-1/2 ">
<van-text-ellipsis <van-text-ellipsis
rows="2" rows="2"
:content="props.data.fore_plan" :content="`上午:`+props.data.fore_plan"
expand-text="展开" expand-text="展开"
collapse-text="收起" collapse-text="收起"
/> />
...@@ -12,7 +13,7 @@ ...@@ -12,7 +13,7 @@
<div class="w-full min-h-1/2 border-solid border-t-[1px] border-white"> <div class="w-full min-h-1/2 border-solid border-t-[1px] border-white">
<van-text-ellipsis <van-text-ellipsis
rows="2" rows="2"
:content="props.data.after_plan" :content="`下午:`+props.data.after_plan"
expand-text="展开" expand-text="展开"
collapse-text="收起" collapse-text="收起"
/> />
...@@ -22,7 +23,7 @@ ...@@ -22,7 +23,7 @@
<div class="w-full min-h-full "> <div class="w-full min-h-full ">
<van-text-ellipsis <van-text-ellipsis
rows="4" rows="4"
:content="props.data.after_plan" :content="`全天:`+props.data.after_plan"
expand-text="展开" expand-text="展开"
collapse-text="收起" collapse-text="收起"
/> />
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
</template> </template>
<script setup> <script setup>
import dayjs from "dayjs"; import dayjs from "dayjs";
import {onMounted} from "vue";
const props = defineProps({ const props = defineProps({
data: { data: {
...@@ -45,7 +47,9 @@ const props = defineProps({ ...@@ -45,7 +47,9 @@ const props = defineProps({
default: '' default: ''
} }
}) })
onMounted(() => {
console.log("🚀🚀🚀,", props.data)
})
</script> </script>
......
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
<div v-if="init.switchView.show"> <div v-if="init.switchView.show">
<!-- 天视图--> <!-- 天视图-->
<Date @searchDayData="searchDayData"/> <Date ref="dateDay" @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))"/>
</div> </div>
<div v-else> <div v-else>
<!-- 周视图--> <!-- 周视图-->
<Date/> <Date ref="dateDay"/>
<div class="w-full h-auto bg-white" :key="init.weekKey"> <div class="w-full h-auto bg-white" :key="init.weekKey">
<div class="w-full min-h-[80px] flex-wrap ccFlex " <div class="w-full min-h-[80px] flex-wrap ccFlex "
v-for="(item,index) in init.weekArray" :key="index"> v-for="(item,index) in init.weekArray" :key="index">
...@@ -83,9 +83,8 @@ ...@@ -83,9 +83,8 @@
</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" :key="init.calendarKey">
<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"/>
<van-calendar type="range" v-model:show="init.date.show" @confirm="onConfirm"/> <van-calendar type="range" v-model:show="init.date.show" @confirm="onConfirm"/>
...@@ -95,9 +94,16 @@ ...@@ -95,9 +94,16 @@
<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="(item,index) in init.comment.dept" <van-button @click="actionDept(item)"
v-for="(item,index) in init.comment.dept"
:key="index" :key="index"
style="margin: 5px; padding: 15px !important;height: 40px" :style="{
margin: '5px',
padding: '15px !important' ,
height: '40px',
background:item.bg,
color:item.cl,
}"
size="normal" size="normal"
plain hairline plain hairline
...@@ -112,9 +118,15 @@ ...@@ -112,9 +118,15 @@
<div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap"> <div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap">
<van-space wrap> <van-space wrap>
<!-- color:#FFFFFF; #1989FA--> <!-- color:#FFFFFF; #1989FA-->
<van-button v-for="(item,index) in init.comment.dept" <van-button @click="actionUser(item)" v-for="(item,index) in init.comment.user"
style="margin: 5px; padding: 15px !important;height: 40px" :style="{
margin: '5px',
padding: '15px !important' ,
height: '40px',
background:item.bg,
color:item.cl,
}"
size="normal" size="normal"
plain hairline plain hairline
type="primary">{{ item.name }} type="primary">{{ item.name }}
...@@ -126,7 +138,7 @@ ...@@ -126,7 +138,7 @@
</div> </div>
<noPageFooter> <noPageFooter>
<template v-slot:default> <template v-slot:default>
<van-button type="primary" round class="w-[90px]" @click="search">重置</van-button> <van-button type="primary" round class="w-[90px]" @click="reset($refs)">重置</van-button>
<van-button type="primary" round class="w-[90px]" @click="search">查询</van-button> <van-button type="primary" round class="w-[90px]" @click="search">查询</van-button>
<van-button round class="w-[90px]" @click="cancel">取消</van-button> <van-button round class="w-[90px]" @click="cancel">取消</van-button>
</template> </template>
...@@ -138,13 +150,16 @@ ...@@ -138,13 +150,16 @@
</template> </template>
<script setup> <script setup>
import dayjs from "dayjs"; import dayjs from "dayjs";
import {onMounted, reactive} from "vue"; import {onMounted, reactive, ref} from "vue";
import * as hooks from '@/hooks/index.js' import * as hooks from '@/hooks/index.js'
import * as api from '@/api/apis/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 startOfWeek = dayjs().startOf('week').add(1, 'day').format('YYYY-MM-DD');
const endOfWeek = dayjs().startOf('week').add(5, 'day').format('YYYY-MM-DD'); const endOfWeek = dayjs().startOf('week').add(5, 'day').format('YYYY-MM-DD');
const dateDay = ref()
const dateWeek = ref()
const init = reactive({ const init = reactive({
calendarKey: 1,
weekKey: 1, weekKey: 1,
dayArray: [], dayArray: [],
weekArray: [], weekArray: [],
...@@ -167,7 +182,10 @@ const init = reactive({ ...@@ -167,7 +182,10 @@ const init = reactive({
}, },
check: { check: {
value: '', "dept_id_list": [],
"tid_list": [],
"begin_time": '',
"end_time": '',
}, },
date: { date: {
show: false, show: false,
...@@ -192,9 +210,11 @@ const init = reactive({ ...@@ -192,9 +210,11 @@ const init = reactive({
}) })
function onConfirm(value) { function onConfirm(value) {
//确定日期 //高级筛选确定日期
init.date.show = false; init.date.show = false;
init.search.date = dayjs(value[0]).format('YYYY-MM-DD') + ' - ' + dayjs(value[1]).format('YYYY-MM-DD') init.search.date = dayjs(value[0]).format('YYYY-MM-DD') + ' - ' + dayjs(value[1]).format('YYYY-MM-DD')
init.check.begin_time = dayjs(value[0]).format('YYYY-MM-DD')
init.check.end_time = dayjs(value[1]).format('YYYY-MM-DD')
} }
function advancedQuery() { function advancedQuery() {
...@@ -205,6 +225,8 @@ function advancedQuery() { ...@@ -205,6 +225,8 @@ function advancedQuery() {
function changeView() { function changeView() {
//切换视图 //切换视图
init.switchView.show = !init.switchView.show init.switchView.show = !init.switchView.show
init.calendarKey++
init.search.date = startOfWeek + ' - ' + endOfWeek
if (init.switchView.show) { if (init.switchView.show) {
init.paramsDay = { init.paramsDay = {
"begin_time": dayjs().format('YYYY-MM-DD'), "begin_time": dayjs().format('YYYY-MM-DD'),
...@@ -223,12 +245,79 @@ function changeView() { ...@@ -223,12 +245,79 @@ function changeView() {
}, },
GetPlanProjectByWeekList() GetPlanProjectByWeekList()
} }
reset()
init.select.action = false init.select.action = false
} }
function reset(refs) {
console.log("🚀🚀🚀,", refs)
init.check.dept_id_list = [] //加入选中数组
init.comment.dept.forEach(cur => {
//给予选中颜色
cur.bg = ''
cur.cl = ''
})
init.check.tid_list = [] //加入选中数组
init.comment.user.forEach(cur => {
//给予选中颜色
cur.bg = ''
cur.cl = ''
})
init.search.date = startOfWeek + ' - ' + endOfWeek
init.check = {
"dept_id_list": [],
"tid_list": [],
"begin_time": '',
"end_time": '',
}
init.calendarKey++
init.select.action = false
init.paramsWeek = {
"begin_time": startOfWeek,
"end_time": endOfWeek,
"dept_id_list": [],
"tid_list": []
}
init.paramsDay = {
"begin_time": dayjs().format('YYYY-MM-DD'),
"end_time": dayjs().format('YYYY-MM-DD'),
"dept_id_list": [],
"tid_list": [],
}
refs.dateDay.dateArray.array = []
refs.dateDay.getInitDate()
GetPlanProjectByDayList()
GetPlanProjectByWeekList()
}
function search() { function search() {
//查询 //查询
let strategy = {
'true': () => {
init.paramsDay = {
...init.check,
begin_time: init.check.begin_time ? init.check.begin_time : startOfWeek,
end_time: init.check.end_time ? init.check.end_time : endOfWeek
}
GetPlanProjectByDayList()
init.select.showPopup = false
},
'false': () => {
init.paramsWeek = {
...init.check,
begin_time: init.check.begin_time ? init.check.begin_time : startOfWeek,
end_time: init.check.end_time ? init.check.end_time : endOfWeek
}
GetPlanProjectByWeekList()
init.select.showPopup = false
}
}
init.select.action = true
strategy[String(init.switchView.show)]()
} }
function cancel() { function cancel() {
...@@ -244,14 +333,26 @@ function closeDateComponent(e) { ...@@ -244,14 +333,26 @@ function closeDateComponent(e) {
function GetDeptList() { function GetDeptList() {
//获取部门列表 //获取部门列表
api.getApiCommonGetDeptList().then(res => { api.getApiCommonGetDeptList().then(res => {
init.comment.dept = res.response init.comment.dept = res.response.map(cu => {
return {
...cu,
bg: '',
cl: ''
}
})
}) })
} }
function GetUserList() { function GetUserList() {
//获取用户列表 //获取用户列表
api.getApiCommonGetUserList({dept_id: init.comment.deptId}).then(res => { api.getApiCommonGetUserList({dept_id: init.comment.deptId}).then(res => {
init.comment.user = res.response init.comment.user = res.response.map(cu => {
return {
...cu,
bg: '',
cl: ''
}
})
}) })
} }
...@@ -308,6 +409,64 @@ function GetPlanProjectByWeekList() { ...@@ -308,6 +409,64 @@ function GetPlanProjectByWeekList() {
} }
function actionDept(item) {
//高级查询选中部门
if (init.check.dept_id_list.includes(item.id)) {
init.check.dept_id_list.forEach((cur, index) => {
//清除选中数组
if (cur === item.id) {
init.check.dept_id_list.splice(index, 1)
}
})
init.comment.dept.forEach(cur => {
//清出选中颜色
if (cur.id === item.id) {
cur.bg = ''
cur.cl = ''
}
})
} else {
init.check.dept_id_list.push(item.id) //加入选中数组
init.comment.dept.forEach(cur => {
//给予选中颜色
if (cur.id === item.id) {
cur.bg = '#1989FA'
cur.cl = '#FFFFFF'
}
})
}
console.log("🚀🚀check.dept_id_list🚀,", ...init.check.dept_id_list, '')
}
function actionUser(item) {
//高级查询选中用户
if (init.check.tid_list.includes(item.id)) {
init.check.tid_list.forEach((cur, index) => {
//清除选中数组
if (cur === item.id) {
init.check.tid_list.splice(index, 1, '')
}
})
init.comment.user.forEach(cur => {
//清出选中颜色
if (cur.id === item.id) {
cur.bg = ''
cur.cl = ''
}
})
} else {
init.check.tid_list.push(item.id) //加入选中数组
init.comment.user.forEach(cur => {
//给予选中颜色
if (cur.id === item.id) {
cur.bg = '#1989FA'
cur.cl = '#FFFFFF'
}
})
}
console.log("🚀🚀check.tid_list🚀,", ...init.check.tid_list)
}
onMounted(() => { onMounted(() => {
document.title = '分管填报记录查看' document.title = '分管填报记录查看'
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<script setup> <script setup>
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'
import {onMounted, reactive} from "vue"; import {nextTick, onMounted, reactive} from "vue";
const init = reactive({ const init = reactive({
data: { data: {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或