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

V20240421 增加周视图数据前端导出功能

上级 e452dba5
...@@ -8,7 +8,7 @@ stages: ...@@ -8,7 +8,7 @@ stages:
build: build:
stage: publish stage: publish
script: script:
- remove-item -Force -Recurse D:\ASC_web\A00051\oneWeekArrangement\wx* - remove-item -Force -Recurse D:\ASC_web\A00051\qth5*
- xcopy "dist" "D:\ASC_web\A00051\oneWeekArrangement\wx\" /s/e/y/ - xcopy "dist" "D:\ASC_web\A00051\oneWeekArrangement\wx\" /s/e/y/
only: only:
- wx - wx
import{b as p,c as u,a as l,d as k,u as m,L as _,o as g,e as f,C as w,f as n,G as a,S as y,g as d}from"./index-BpfJPTKP.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(v){const t=m(),c=async o=>{const e=await y(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}},r=async o=>{const e=await d(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",s.response.role),await t.replace({name:"welcome"})}},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await w();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return p(()=>{i()}),(o,e)=>{const s=_;return g(),u("div",R,[l(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[f(" 登录中")]),_:1})])}}};export{A as default}; import{b as p,c as u,a as l,d as k,u as m,L as _,o as g,e as f,C as w,f as n,G as a,S as y,g as d}from"./index-C8Nk4suT.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(v){const t=m(),c=async o=>{const e=await y(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}},r=async o=>{const e=await d(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",s.response.role),await t.replace({name:"welcome"})}},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await w();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return p(()=>{i()}),(o,e)=>{const s=_;return g(),u("div",R,[l(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[f(" 登录中")]),_:1})])}}};export{A as default};
import{b as l,c as k,a as _,d as m,u as y,L as f,o as d,e as g,g as w,f as n,G as o,C as v,S as x}from"./index-BpfJPTKP.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){const t=y(),c=async a=>{const e=await x(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"workArrangementFilling"})}},i=async a=>{const e=await(void 0)(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},r=async()=>{({wx:async()=>{let e={token:t.currentRoute.value.query.token};const s=await w(e);if(s===void 0)await t.replace({name:"403"});else if(s.response.access_token.token_content!==""){n.set("site-management-token",s.response.access_token.token_content),n.set("time",s.response.access_token.expires);const u=await o();n.set("site-user-info",JSON.stringify(u.response));let p=t.currentRoute.value.query.id;await t.push({path:"/indexDetail",query:{id:p,pushMessage:1}})}},asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await i(e)},test:async()=>{const e=await v();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}}})[t.currentRoute.value.query.type]()};return l(()=>{r()}),(a,e)=>{const s=f;return d(),k("div",R,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[g(" 登录中")]),_:1})])}}};export{O as default}; import{b as l,c as k,a as _,d as m,u as y,L as f,o as d,e as g,g as w,f as n,G as o,C as v,S as x}from"./index-C8Nk4suT.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){const t=y(),c=async a=>{const e=await x(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"workArrangementFilling"})}},i=async a=>{const e=await(void 0)(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},r=async()=>{({wx:async()=>{let e={token:t.currentRoute.value.query.token};const s=await w(e);if(s===void 0)await t.replace({name:"403"});else if(s.response.access_token.token_content!==""){n.set("site-management-token",s.response.access_token.token_content),n.set("time",s.response.access_token.expires);const u=await o();n.set("site-user-info",JSON.stringify(u.response));let p=t.currentRoute.value.query.id;await t.push({path:"/indexDetail",query:{id:p,pushMessage:1}})}},asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await i(e)},test:async()=>{const e=await v();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}}})[t.currentRoute.value.query.type]()};return l(()=>{r()}),(a,e)=>{const s=f;return d(),k("div",R,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[g(" 登录中")]),_:1})])}}};export{O as default};
import{i as H,af as J,m as z,a_ as W,as as L,l as Y,n as M,aK as q,a as u,a$ as G,b0 as Q,h as X,A as F,_ as Z,r as $,o as f,c as b,B as ee,b as te,E as o,H as A,I as se,F as V,J as B,d as x,K as ae,b1 as ne,V as g,e as E,aR as j,Y as T,a2 as oe,a3 as le}from"./index-BpfJPTKP.js";import{S as ie}from"./index-BPf63eM7.js";import{E as re}from"./index-CF8Fji5s.js";const[ce,U,K]=H("pagination"),D=(n,r,l)=>({number:n,text:r,active:l}),pe={mode:J("multi"),prevText:String,nextText:String,pageCount:z(0),modelValue:W(0),totalItems:z(0),showPageSize:z(5),itemsPerPage:z(10),forceEllipses:Boolean,showPrevButton:L,showNextButton:L};var de=Y({name:ce,props:pe,emits:["change","update:modelValue"],setup(n,{emit:r,slots:l}){const e=M(()=>{const{pageCount:i,totalItems:d,itemsPerPage:m}=n,_=+i||Math.ceil(+d/+m);return Math.max(1,_)}),k=M(()=>{const i=[],d=e.value,m=+n.showPageSize,{modelValue:_,forceEllipses:t}=n;let s=1,c=d;const h=m<d;h&&(s=Math.max(_-Math.floor(m/2),1),c=s+m-1,c>d&&(c=d,s=c-m+1));for(let p=s;p<=c;p++){const P=D(p,p,p===_);i.push(P)}if(h&&m>0&&t){if(s>1){const p=D(s-1,"...");i.unshift(p)}if(c<d){const p=D(c+1,"...");i.push(p)}}return i}),v=(i,d)=>{i=Q(i,1,e.value),n.modelValue!==i&&(r("update:modelValue",i),d&&r("change",i))};q(()=>v(n.modelValue));const C=()=>u("li",{class:U("page-desc")},[l.pageDesc?l.pageDesc():`${n.modelValue}/${e.value}`]),R=()=>{const{mode:i,modelValue:d,showPrevButton:m}=n;if(!m)return;const _=l["prev-text"],t=d===1;return u("li",{class:[U("item",{disabled:t,border:i==="simple",prev:!0}),G]},[u("button",{type:"button",disabled:t,onClick:()=>v(d-1,!0)},[_?_():n.prevText||K("prev")])])},I=()=>{const{mode:i,modelValue:d,showNextButton:m}=n;if(!m)return;const _=l["next-text"],t=d===e.value;return u("li",{class:[U("item",{disabled:t,border:i==="simple",next:!0}),G]},[u("button",{type:"button",disabled:t,onClick:()=>v(d+1,!0)},[_?_():n.nextText||K("next")])])},y=()=>k.value.map(i=>u("li",{class:[U("item",{active:i.active,page:!0}),G]},[u("button",{type:"button","aria-current":i.active||void 0,onClick:()=>v(i.number,!0)},[l.page?l.page(i):i.text])]));return()=>u("nav",{role:"navigation",class:U()},[u("ul",{class:U("items")},[R(),n.mode==="simple"?C():y(),I()])])}});const ue=X(de);function he(n){return F.get("/api/Common/GetDeptAllList",n)}function me(n){return F.post("/api/Common/GetRoleList",n)}function _e(n,r){const l={page_index:n.page_index,page_size:n.page_size};return F.get("/api/UserRole/GetUserRoleList",{params:l,...r})}function fe(n,r){const l={id:n.id};return F.get("/api/UserRole/GetUserRoleInfo",{params:l,...r})}function ge(n,r){const l={keyword:n.keyword,page_index:n.page_index,page_size:n.page_size};return F.get("/api/UserRole/GetUserRoleSearch",{params:l,...r})}function xe(n,r){const l={userid:n.userid};return F.get("/api/UserRole/UserRoleIns",{params:l,...r})}function ve(n,r){return F.post("/api/UserRole/UserRoleSave",n,r)}const we={class:"w-full h-[55px] page bg-white"},be={__name:"page",props:{page_index:{type:Number,default:1},page_size:{type:Number,default:10},total:{type:Number,default:0}},emits:["pageChange"],setup(n,{expose:r,emit:l}){const e=n,k=$(1);function v(C){l("pageChange",C)}return r({currentPage:k}),(C,R)=>{const I=ue;return f(),b("div",we,[u(I,{onChange:v,modelValue:k.value,"onUpdate:modelValue":R[0]||(R[0]=y=>k.value=y),"total-items":e.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},ke=Z(be,[["__scopeId","data-v-151e55c8"]]),ye={class:"publicContainerNoPadding relative"},Pe={class:"w-full h-[calc(100%-155px)] p-3 overflow-y-auto"},Fe={class:"w-[80%] h-full"},Ce={class:"w-full h-[40px] p-1 flex items-center text-[17px]"},Re={class:"w-full min-h-1/2 p-1"},Ue=["onClick"],Ie=o("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[o("span",{class:"text-5"},"人员权限添加详情")],-1),Se=o("div",{class:"w-full h-3 bg-gray-200"},null,-1),Ve={class:"w-full h-auto bg-white"},Ee={class:"w-full min-h-[110px] p-4 flex justify-between text-[17px] flex-wrap"},Ne=o("div",{class:"h-[30px] w-[15%]"},"姓名:",-1),ze={class:"h-[30px] w-[85%]"},Ae=o("div",{class:"h-[30px] w-[15%]"},"工号:",-1),Be={class:"h-[30px] w-[85%]"},Ge=o("div",{class:"h-[30px] w-[15%]"},"部门:",-1),De={class:"h-[30px] w-[85%]"},$e=o("div",{class:"h-[30px] w-[15%]"},"岗位:",-1),Le={class:"h-[30px] w-[85%]"},Me=o("div",{class:"w-full h-3"},null,-1),je={class:"w-full h-auto bg-white"},Te=o("div",{class:"w-full h-10 p-4 pb-0"},"分管权限",-1),Ke={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Oe=o("div",{class:"w-full h-3"},null,-1),He={class:"w-full h-auto bg-white"},Je=o("div",{class:"w-full h-10 p-4 pb-0"},"分管部门",-1),We={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ye=o("div",{class:"w-full h-3 bg-gray-200"},null,-1),qe={class:"w-full h-full flex justify-between items-center p-3"},et={__name:"index",setup(n){const r=$(),l=$(),e=ee({searchParams:{page_index:1,page_size:10,keyword:""},total:0,observer:"",loading:!0,comment:{dept:[],user:[],deptId:[]},check:{userroleid:"",userid:"",usercard:"",username:"",dept:"",position_name:"",dept_list:[],role_list:[]},select:{showPopup:!1},fillInWork:{show:!1},data:[],initParams:{page_index:1,page_size:10}});function k(){T(()=>ve({...e.check,role_list:e.check.role_list.map(t=>({role_name:"",role_id:t})),dept_list:e.check.dept_list.map(t=>({name:"",id:t}))}).then(t=>(t.code===1&&(l.value.search!==""?m(l.value.search,e.searchParams.page_index):(d(e.initParams.page_index),r.value.currentPage=e.initParams.page_index),e.select.showPopup=!1),t)))}function v(t){e.check.dept_list.includes(t.id)?(e.check.dept_list.forEach((s,c)=>{s===t.id&&e.check.dept_list.splice(c,1)}),e.comment.dept.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")}),e.comment.deptId.forEach((s,c)=>{s===t.id&&e.comment.deptId.splice(c,1)})):(e.check.dept_list.push(t.id),e.comment.deptId.push(t.id),e.comment.dept.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")}))}function C(t){e.check.role_list.includes(t.id)?(e.check.role_list.forEach((s,c)=>{s===t.id&&e.check.role_list.splice(c,1,"")}),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")})):(e.check.role_list.push(t.id),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.role_list)}function R(){me().then(t=>{e.comment.user=t.response.map(s=>({...s,bg:"",cl:""}))})}function I(){he().then(t=>{e.comment.dept=t.response.map(s=>({...s,bg:"",cl:""}))})}function y(){return _e(e.initParams).then(t=>{e.data=t.response.data.map(s=>({...s})),e.total=t.response.data_count})}function i(t){l.value.search===""?(e.initParams.page_index=t,y()):(e.searchParams.page_index=t,m(l.value.search,t))}function d(t=""){l.value.search="",e.initParams={page_index:t||1,page_size:10},r.value.currentPage=1,y()}function m(t,s=1){l.value.search!==""&&(e.initParams.page_index!==1&&(r.value.currentPage=1,e.initParams.page_index=1),ge({...e.searchParams,keyword:t,page_index:s}).then(c=>{e.data=c.response.data.map(h=>({...h})),e.total=c.response.data_count}))}function _(t,s){let c={0:()=>{T(()=>xe({userid:s.userid}).then(h=>(h.code===1&&c[1](h.response),h)))},1:h=>{fe({id:s.userroleid||h}).then(p=>{let P=[],S=[];p.response.dept_list.map((a,w)=>{P.push(a.id)}),p.response.role_list.map((a,w)=>{S.push(a.role_id)}),e.comment.dept.map((a,w)=>(P.includes(a.id)?(a.bg="#1989FA",a.cl="#FFFFFF"):(a.bg="",a.cl=""),a)),e.comment.user.map((a,w)=>(S.includes(a.id)?(a.bg="#1989FA",a.cl="#FFFFFF"):(a.bg="",a.cl=""),a)),p.response.dept_list=P,p.response.role_list=S,e.check=p.response,p.code===1&&(e.select.showPopup=!0),console.log("🚀🚀🚀,",e.comment,p.response)})}};c[String(t)]()}return te(()=>{y(),R(),I()}),(t,s)=>{const c=re,h=oe,p=ie,P=le,S=ae;return f(),b(V,null,[o("div",ye,[u(ne,{class:"sticky top-0",title:"人员授权列表",ref_key:"headerInput",ref:l,onSearchFun:m,onReset:d,path:"/welcome"},null,512),o("div",Pe,[e.data.length===[]?(f(),A(c,{key:0,description:"暂无授权名单,请通过搜索添加"})):se("",!0),(f(!0),b(V,null,B(e.data,(a,w)=>(f(),b("div",{key:w,class:"w-full min-h-[90px] flex rounded-[10px] p-2 bg-white mb-3"},[o("div",Fe,[o("div",Ce,g(a.username)+" ("+g(a.usercard)+") ",1),o("div",Re,[(f(!0),b(V,null,B(a.dept_list,(N,O)=>(f(),A(h,{style:{padding:"6px",margin:"5px 5px 5px 0",color:"#1989f9","border-color":"#1989f9"},key:O,plain:"",hairline:"",size:"small",type:"primary"},{default:x(()=>[E(g(N.name),1)]),_:2},1024))),128))])]),o("div",{onClick:N=>_(+(a.userroleid!==null),a),class:"w-[20%] flex justify-center items-center text-[#1989f9]"},g(["添加","编辑"][+(a.userroleid!==null)]),9,Ue)]))),128))]),u(ke,{class:"absolute bottom-0",ref_key:"pageRef",ref:r,total:e.total,onPageChange:i},null,8,["total"])]),u(S,{show:e.select.showPopup,height:80,onActionPopUp:s[1]||(s[1]=()=>e.select.showPopup=!1)},{content:x(()=>[Ie,Se,(f(),b("div",{class:"w-full h-[calc(100%-121px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[o("div",Ve,[o("div",Ee,[Ne,o("div",ze,g(e.check.username),1),Ae,o("div",Be,g(e.check.usercard),1),Ge,o("div",De,g(e.check.dept),1),$e,o("div",Le,g(e.check.position_name),1)])]),Me,o("div",je,[Te,o("div",Ke,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.user,(a,w)=>(f(),A(h,{onClick:N=>C(a),style:j({margin:"5px",padding:"15px !important",borderColor:"#1989f9",height:"30px",background:a.bg,color:a.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(g(a.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])]),Oe,o("div",He,[Je,o("div",We,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.dept,(a,w)=>(f(),A(h,{onClick:N=>v(a),key:w,style:j({borderColor:"#1989f9",margin:"5px",padding:"15px !important",height:"30px",background:a.bg,color:a.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(g(a.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Ye])),u(P,null,{default:x(()=>[o("div",qe,[u(h,{round:"",class:"w-[30%]",onClick:s[0]||(s[0]=a=>e.select.showPopup=!1)},{default:x(()=>[E("取消")]),_:1}),u(h,{type:"primary",round:"",class:"w-[64%]",onClick:k},{default:x(()=>[E("确定")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}};export{et as default}; import{i as H,af as J,m as z,b1 as W,as as L,l as Y,n as M,aK as q,a as u,b2 as G,b3 as Q,h as X,A as F,_ as Z,r as $,o as f,c as b,B as ee,b as te,E as o,H as A,I as se,F as V,J as B,d as x,K as ne,b4 as ae,V as g,e as E,aR as j,Y as T,a2 as oe,a3 as le}from"./index-C8Nk4suT.js";import{S as ie}from"./index-D6bBD4gB.js";import{E as re}from"./index-BP9hqv_Y.js";const[ce,U,K]=H("pagination"),D=(a,r,l)=>({number:a,text:r,active:l}),pe={mode:J("multi"),prevText:String,nextText:String,pageCount:z(0),modelValue:W(0),totalItems:z(0),showPageSize:z(5),itemsPerPage:z(10),forceEllipses:Boolean,showPrevButton:L,showNextButton:L};var de=Y({name:ce,props:pe,emits:["change","update:modelValue"],setup(a,{emit:r,slots:l}){const e=M(()=>{const{pageCount:i,totalItems:d,itemsPerPage:m}=a,_=+i||Math.ceil(+d/+m);return Math.max(1,_)}),k=M(()=>{const i=[],d=e.value,m=+a.showPageSize,{modelValue:_,forceEllipses:t}=a;let s=1,c=d;const h=m<d;h&&(s=Math.max(_-Math.floor(m/2),1),c=s+m-1,c>d&&(c=d,s=c-m+1));for(let p=s;p<=c;p++){const P=D(p,p,p===_);i.push(P)}if(h&&m>0&&t){if(s>1){const p=D(s-1,"...");i.unshift(p)}if(c<d){const p=D(c+1,"...");i.push(p)}}return i}),v=(i,d)=>{i=Q(i,1,e.value),a.modelValue!==i&&(r("update:modelValue",i),d&&r("change",i))};q(()=>v(a.modelValue));const C=()=>u("li",{class:U("page-desc")},[l.pageDesc?l.pageDesc():`${a.modelValue}/${e.value}`]),R=()=>{const{mode:i,modelValue:d,showPrevButton:m}=a;if(!m)return;const _=l["prev-text"],t=d===1;return u("li",{class:[U("item",{disabled:t,border:i==="simple",prev:!0}),G]},[u("button",{type:"button",disabled:t,onClick:()=>v(d-1,!0)},[_?_():a.prevText||K("prev")])])},I=()=>{const{mode:i,modelValue:d,showNextButton:m}=a;if(!m)return;const _=l["next-text"],t=d===e.value;return u("li",{class:[U("item",{disabled:t,border:i==="simple",next:!0}),G]},[u("button",{type:"button",disabled:t,onClick:()=>v(d+1,!0)},[_?_():a.nextText||K("next")])])},y=()=>k.value.map(i=>u("li",{class:[U("item",{active:i.active,page:!0}),G]},[u("button",{type:"button","aria-current":i.active||void 0,onClick:()=>v(i.number,!0)},[l.page?l.page(i):i.text])]));return()=>u("nav",{role:"navigation",class:U()},[u("ul",{class:U("items")},[R(),a.mode==="simple"?C():y(),I()])])}});const ue=X(de);function he(a){return F.get("/api/Common/GetDeptAllList",a)}function me(a){return F.post("/api/Common/GetRoleList",a)}function _e(a,r){const l={page_index:a.page_index,page_size:a.page_size};return F.get("/api/UserRole/GetUserRoleList",{params:l,...r})}function fe(a,r){const l={id:a.id};return F.get("/api/UserRole/GetUserRoleInfo",{params:l,...r})}function ge(a,r){const l={keyword:a.keyword,page_index:a.page_index,page_size:a.page_size};return F.get("/api/UserRole/GetUserRoleSearch",{params:l,...r})}function xe(a,r){const l={userid:a.userid};return F.get("/api/UserRole/UserRoleIns",{params:l,...r})}function ve(a,r){return F.post("/api/UserRole/UserRoleSave",a,r)}const we={class:"w-full h-[55px] page bg-white"},be={__name:"page",props:{page_index:{type:Number,default:1},page_size:{type:Number,default:10},total:{type:Number,default:0}},emits:["pageChange"],setup(a,{expose:r,emit:l}){const e=a,k=$(1);function v(C){l("pageChange",C)}return r({currentPage:k}),(C,R)=>{const I=ue;return f(),b("div",we,[u(I,{onChange:v,modelValue:k.value,"onUpdate:modelValue":R[0]||(R[0]=y=>k.value=y),"total-items":e.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},ke=Z(be,[["__scopeId","data-v-151e55c8"]]),ye={class:"publicContainerNoPadding relative"},Pe={class:"w-full h-[calc(100%-155px)] p-3 overflow-y-auto"},Fe={class:"w-[80%] h-full"},Ce={class:"w-full h-[40px] p-1 flex items-center text-[17px]"},Re={class:"w-full min-h-1/2 p-1"},Ue=["onClick"],Ie=o("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[o("span",{class:"text-5"},"人员权限添加详情")],-1),Se=o("div",{class:"w-full h-3 bg-gray-200"},null,-1),Ve={class:"w-full h-auto bg-white"},Ee={class:"w-full min-h-[110px] p-4 flex justify-between text-[17px] flex-wrap"},Ne=o("div",{class:"h-[30px] w-[15%]"},"姓名:",-1),ze={class:"h-[30px] w-[85%]"},Ae=o("div",{class:"h-[30px] w-[15%]"},"工号:",-1),Be={class:"h-[30px] w-[85%]"},Ge=o("div",{class:"h-[30px] w-[15%]"},"部门:",-1),De={class:"h-[30px] w-[85%]"},$e=o("div",{class:"h-[30px] w-[15%]"},"岗位:",-1),Le={class:"h-[30px] w-[85%]"},Me=o("div",{class:"w-full h-3"},null,-1),je={class:"w-full h-auto bg-white"},Te=o("div",{class:"w-full h-10 p-4 pb-0"},"分管权限",-1),Ke={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Oe=o("div",{class:"w-full h-3"},null,-1),He={class:"w-full h-auto bg-white"},Je=o("div",{class:"w-full h-10 p-4 pb-0"},"分管部门",-1),We={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ye=o("div",{class:"w-full h-3 bg-gray-200"},null,-1),qe={class:"w-full h-full flex justify-between items-center p-3"},et={__name:"index",setup(a){const r=$(),l=$(),e=ee({searchParams:{page_index:1,page_size:10,keyword:""},total:0,observer:"",loading:!0,comment:{dept:[],user:[],deptId:[]},check:{userroleid:"",userid:"",usercard:"",username:"",dept:"",position_name:"",dept_list:[],role_list:[]},select:{showPopup:!1},fillInWork:{show:!1},data:[],initParams:{page_index:1,page_size:10}});function k(){T(()=>ve({...e.check,role_list:e.check.role_list.map(t=>({role_name:"",role_id:t})),dept_list:e.check.dept_list.map(t=>({name:"",id:t}))}).then(t=>(t.code===1&&(l.value.search!==""?m(l.value.search,e.searchParams.page_index):(d(e.initParams.page_index),r.value.currentPage=e.initParams.page_index),e.select.showPopup=!1),t)))}function v(t){e.check.dept_list.includes(t.id)?(e.check.dept_list.forEach((s,c)=>{s===t.id&&e.check.dept_list.splice(c,1)}),e.comment.dept.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")}),e.comment.deptId.forEach((s,c)=>{s===t.id&&e.comment.deptId.splice(c,1)})):(e.check.dept_list.push(t.id),e.comment.deptId.push(t.id),e.comment.dept.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")}))}function C(t){e.check.role_list.includes(t.id)?(e.check.role_list.forEach((s,c)=>{s===t.id&&e.check.role_list.splice(c,1,"")}),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")})):(e.check.role_list.push(t.id),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.role_list)}function R(){me().then(t=>{e.comment.user=t.response.map(s=>({...s,bg:"",cl:""}))})}function I(){he().then(t=>{e.comment.dept=t.response.map(s=>({...s,bg:"",cl:""}))})}function y(){return _e(e.initParams).then(t=>{e.data=t.response.data.map(s=>({...s})),e.total=t.response.data_count})}function i(t){l.value.search===""?(e.initParams.page_index=t,y()):(e.searchParams.page_index=t,m(l.value.search,t))}function d(t=""){l.value.search="",e.initParams={page_index:t||1,page_size:10},r.value.currentPage=1,y()}function m(t,s=1){l.value.search!==""&&(e.initParams.page_index!==1&&(r.value.currentPage=1,e.initParams.page_index=1),ge({...e.searchParams,keyword:t,page_index:s}).then(c=>{e.data=c.response.data.map(h=>({...h})),e.total=c.response.data_count}))}function _(t,s){let c={0:()=>{T(()=>xe({userid:s.userid}).then(h=>(h.code===1&&c[1](h.response),h)))},1:h=>{fe({id:s.userroleid||h}).then(p=>{let P=[],S=[];p.response.dept_list.map((n,w)=>{P.push(n.id)}),p.response.role_list.map((n,w)=>{S.push(n.role_id)}),e.comment.dept.map((n,w)=>(P.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),e.comment.user.map((n,w)=>(S.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),p.response.dept_list=P,p.response.role_list=S,e.check=p.response,p.code===1&&(e.select.showPopup=!0),console.log("🚀🚀🚀,",e.comment,p.response)})}};c[String(t)]()}return te(()=>{y(),R(),I()}),(t,s)=>{const c=re,h=oe,p=ie,P=le,S=ne;return f(),b(V,null,[o("div",ye,[u(ae,{class:"sticky top-0",title:"人员授权列表",ref_key:"headerInput",ref:l,onSearchFun:m,onReset:d,path:"/welcome"},null,512),o("div",Pe,[e.data.length===[]?(f(),A(c,{key:0,description:"暂无授权名单,请通过搜索添加"})):se("",!0),(f(!0),b(V,null,B(e.data,(n,w)=>(f(),b("div",{key:w,class:"w-full min-h-[90px] flex rounded-[10px] p-2 bg-white mb-3"},[o("div",Fe,[o("div",Ce,g(n.username)+" ("+g(n.usercard)+") ",1),o("div",Re,[(f(!0),b(V,null,B(n.dept_list,(N,O)=>(f(),A(h,{style:{padding:"6px",margin:"5px 5px 5px 0",color:"#1989f9","border-color":"#1989f9"},key:O,plain:"",hairline:"",size:"small",type:"primary"},{default:x(()=>[E(g(N.name),1)]),_:2},1024))),128))])]),o("div",{onClick:N=>_(+(n.userroleid!==null),n),class:"w-[20%] flex justify-center items-center text-[#1989f9]"},g(["添加","编辑"][+(n.userroleid!==null)]),9,Ue)]))),128))]),u(ke,{class:"absolute bottom-0",ref_key:"pageRef",ref:r,total:e.total,onPageChange:i},null,8,["total"])]),u(S,{show:e.select.showPopup,height:80,onActionPopUp:s[1]||(s[1]=()=>e.select.showPopup=!1)},{content:x(()=>[Ie,Se,(f(),b("div",{class:"w-full h-[calc(100%-121px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[o("div",Ve,[o("div",Ee,[Ne,o("div",ze,g(e.check.username),1),Ae,o("div",Be,g(e.check.usercard),1),Ge,o("div",De,g(e.check.dept),1),$e,o("div",Le,g(e.check.position_name),1)])]),Me,o("div",je,[Te,o("div",Ke,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.user,(n,w)=>(f(),A(h,{onClick:N=>C(n),style:j({margin:"5px",padding:"15px !important",borderColor:"#1989f9",height:"30px",background:n.bg,color:n.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(g(n.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])]),Oe,o("div",He,[Je,o("div",We,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.dept,(n,w)=>(f(),A(h,{onClick:N=>v(n),key:w,style:j({borderColor:"#1989f9",margin:"5px",padding:"15px !important",height:"30px",background:n.bg,color:n.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(g(n.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Ye])),u(P,null,{default:x(()=>[o("div",qe,[u(h,{round:"",class:"w-[30%]",onClick:s[0]||(s[0]=n=>e.select.showPopup=!1)},{default:x(()=>[E("取消")]),_:1}),u(h,{type:"primary",round:"",class:"w-[64%]",onClick:k},{default:x(()=>[E("确定")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}};export{et as default};
import{_ as e}from"./index-BpfJPTKP.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default}; import{_ as e}from"./index-C8Nk4suT.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{i as v,l as w,at as G,a as e,b2 as k,af as M,h as B}from"./index-BpfJPTKP.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var b=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),t=r=>`${f}-${r}`,l=r=>`url(#${t(r)})`,i=(r,d,D)=>e("stop",{"stop-color":r,offset:`${d}%`,"stop-opacity":D},null),n=(r,d)=>[i(r,0),i(d,100)],x=r=>[e("defs",null,[e("radialGradient",{id:t(r),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:l(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:t("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:l("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:l("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:t("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:l("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:l("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:t(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:t(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:t(3),x1:"100%",x2:"100%",y2:"100%"},[n("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:t(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:l(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:l(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:l(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:l(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:l(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:l(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:t(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:t(7)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:l(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:l(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:l(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(8)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),x("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:l(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:t(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:t(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:l(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:l(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:l(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:l(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:l(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var r;if(a.image)return a.image();const d={error:g,search:p,network:y,default:E};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const A=B(b);export{A as E}; import{i as v,l as w,at as G,a as e,b5 as k,af as M,h as B}from"./index-C8Nk4suT.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var b=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),t=r=>`${f}-${r}`,l=r=>`url(#${t(r)})`,i=(r,d,D)=>e("stop",{"stop-color":r,offset:`${d}%`,"stop-opacity":D},null),n=(r,d)=>[i(r,0),i(d,100)],x=r=>[e("defs",null,[e("radialGradient",{id:t(r),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:l(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:t("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:l("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:l("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:t("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:l("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:l("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:t(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:t(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:t(3),x1:"100%",x2:"100%",y2:"100%"},[n("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:t(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:l(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:l(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:l(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:l(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:l(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:l(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:t(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:t(7)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:l(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:l(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:l(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(8)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),x("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:l(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:t(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:t(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:l(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:l(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:l(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:l(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:l(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var r;if(a.image)return a.image();const d={error:g,search:p,network:y,default:E};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const A=B(b);export{A as E};
import{a6 as Re,a7 as xe,a8 as Ne,a9 as Je,aa as Qe,ab as et,ac as tt,ad as Ve,i as de,ae as ne,af as Ee,m as se,l as ue,r as N,ag as Oe,B as Ce,n as L,ah as Le,j as je,ai as at,p as U,aj as ze,ak as De,al as ae,am as oe,an as Ue,ao as nt,a as _,h as Ye,ap as be,b as Ge,aq as Ie,ar as it,as as _e,at as He,au as lt,av as st,aw as ot,ax as rt,ay as Be,az as Fe,aA as ct,aB as dt,aC as Se,aD as ut,aE as ft,aF as pt,aG as mt,aH as ht,aI as _t,aJ as vt,aK as wt,aL as yt,aM as gt,aN as bt,aO as kt,aP as Ke,aQ as xt,aR as q,v as Dt,x as Ae,aS as Ft,A as ve,_ as Ct,X as C,D as Te,c as B,E as g,d as V,H as j,I as le,F as z,J as X,K as Yt,o as x,V as me,aT as We,e as ce,a5 as It,$ as Bt,a1 as St,a0 as At,O as Tt,a2 as Wt,aU as Mt,aV as Pt,Y as Me,aW as $t,aX as Rt,aY as Nt,aZ as Vt}from"./index-BpfJPTKP.js";import{S as Et}from"./index-BPf63eM7.js";function Ot(t,o,r){let c,v=0;const i=t.scrollLeft,u=r===0?1:Math.round(r*1e3/16);function e(){Re(c)}function k(){t.scrollLeft+=(o-i)/u,++v<u&&(c=xe(k))}return k(),e}function Lt(t,o,r,c){let v,i=Ne(t);const u=i<o,e=r===0?1:Math.round(r*1e3/16),k=(o-i)/e;function I(){Re(v)}function T(){i+=k,(u&&i>o||!u&&i<o)&&(i=o),Je(t,i),u&&i<o||!u&&i>o?v=xe(T):c&&(v=xe(c))}return T(),I}function Ze(t,o){if(!Qe||!window.IntersectionObserver)return;const r=new IntersectionObserver(i=>{o(i[0].intersectionRatio>0)},{root:document.body}),c=()=>{t.value&&r.observe(t.value)},v=()=>{t.value&&r.unobserve(t.value)};et(v),tt(v),Ve(c)}const[jt,zt]=de("sticky"),Ut={zIndex:ne,position:Ee("top"),container:Object,offsetTop:se(0),offsetBottom:se(0)};var Gt=ue({name:jt,props:Ut,emits:["scroll","change"],setup(t,{emit:o,slots:r}){const c=N(),v=Oe(c),i=Ce({fixed:!1,width:0,height:0,transform:0}),u=N(!1),e=L(()=>Le(t.position==="top"?t.offsetTop:t.offsetBottom)),k=L(()=>{if(u.value)return;const{fixed:w,height:M,width:y}=i;if(w)return{width:`${y}px`,height:`${M}px`}}),I=L(()=>{if(!i.fixed||u.value)return;const w=je(at(t.zIndex),{width:`${i.width}px`,height:`${i.height}px`,[t.position]:`${e.value}px`});return i.transform&&(w.transform=`translate3d(0, ${i.transform}px, 0)`),w}),T=w=>o("scroll",{scrollTop:w,isFixed:i.fixed}),E=()=>{if(!c.value||De(c))return;const{container:w,position:M}=t,y=oe(c),W=Ne(window);if(i.width=y.width,i.height=y.height,M==="top")if(w){const m=oe(w),$=m.bottom-e.value-i.height;i.fixed=e.value>y.top&&m.bottom>0,i.transform=$<0?$:0}else i.fixed=e.value>y.top;else{const{clientHeight:m}=document.documentElement;if(w){const $=oe(w),p=m-$.top-e.value-i.height;i.fixed=m-e.value<y.bottom&&m>$.top,i.transform=p<0?-p:0}else i.fixed=m-e.value<y.bottom}T(W)};return U(()=>i.fixed,w=>o("change",w)),ze("scroll",E,{target:v,passive:!0}),Ze(c,E),U([Ue,nt],()=>{!c.value||De(c)||!i.fixed||(u.value=!0,ae(()=>{const w=oe(c);i.width=w.width,i.height=w.height,u.value=!1}))}),()=>{var w;return _("div",{ref:c,style:k.value},[_("div",{class:zt({fixed:i.fixed&&!u.value}),style:I.value},[(w=r.default)==null?void 0:w.call(r)])])}}});const Ht=Ye(Gt),[Kt,Pe]=de("tabs");var Zt=ue({name:Kt,props:{count:be(Number),inited:Boolean,animated:Boolean,duration:be(ne),swipeable:Boolean,lazyRender:Boolean,currentIndex:be(Number)},emits:["change"],setup(t,{emit:o,slots:r}){const c=N(),v=e=>o("change",e),i=()=>{var e;const k=(e=r.default)==null?void 0:e.call(r);return t.animated||t.swipeable?_(it,{ref:c,loop:!1,class:Pe("track"),duration:+t.duration*1e3,touchable:t.swipeable,lazyRender:t.lazyRender,showIndicators:!1,onChange:v},{default:()=>[k]}):k},u=e=>{const k=c.value;k&&k.state.active!==e&&k.swipeTo(e,{immediate:!t.inited})};return U(()=>t.currentIndex,u),Ge(()=>{u(t.currentIndex)}),Ie({swipeRef:c}),()=>_("div",{class:Pe("content",{animated:t.animated||t.swipeable})},[i()])}});const[Xe,he]=de("tabs"),Xt={type:Ee("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:se(0),duration:se(.3),animated:Boolean,ellipsis:_e,swipeable:Boolean,scrollspy:Boolean,offsetTop:se(0),background:String,lazyRender:_e,lineWidth:ne,lineHeight:ne,beforeChange:Function,swipeThreshold:se(5),titleActiveColor:String,titleInactiveColor:String},qe=Symbol(Xe);var qt=ue({name:Xe,props:Xt,emits:["change","scroll","rendered","clickTab","update:active"],setup(t,{emit:o,slots:r}){let c,v,i,u,e;const k=N(),I=N(),T=N(),E=N(),w=He(),M=Oe(k),[y,W]=lt(),{children:m,linkChildren:$}=st(qe),p=Ce({inited:!1,position:"",lineStyle:{},currentIndex:-1}),Q=L(()=>m.length>+t.swipeThreshold||!t.ellipsis||t.shrink),P=L(()=>({borderColor:t.color,background:t.background})),ee=(s,d)=>{var l;return(l=s.name)!=null?l:d},ie=L(()=>{const s=m[p.currentIndex];if(s)return ee(s,p.currentIndex)}),G=L(()=>Le(t.offsetTop)),fe=L(()=>t.sticky?G.value+c:0),H=s=>{const d=I.value,l=y.value;if(!Q.value||!d||!l||!l[p.currentIndex])return;const F=l[p.currentIndex].$el,h=F.offsetLeft-(d.offsetWidth-F.offsetWidth)/2;u&&u(),u=Ot(d,h,s?0:+t.duration)},O=()=>{const s=p.inited;ae(()=>{const d=y.value;if(!d||!d[p.currentIndex]||t.type!=="line"||De(k.value))return;const l=d[p.currentIndex].$el,{lineWidth:F,lineHeight:h}=t,R=l.offsetLeft+l.offsetWidth/2,A={width:Be(F),backgroundColor:t.color,transform:`translateX(${R}px) translateX(-50%)`};if(s&&(A.transitionDuration=`${t.duration}s`),Fe(h)){const Z=Be(h);A.height=Z,A.borderRadius=Z}p.lineStyle=A})},n=s=>{const d=s<p.currentIndex?-1:1;for(;s>=0&&s<m.length;){if(!m[s].disabled)return s;s+=d}},a=(s,d)=>{const l=n(s);if(!Fe(l))return;const F=m[l],h=ee(F,l),R=p.currentIndex!==null;p.currentIndex!==l&&(p.currentIndex=l,d||H(),O()),h!==t.active&&(o("update:active",h),R&&o("change",h,F.title)),i&&!t.scrollspy&&dt(Math.ceil(Se(k.value)-G.value))},b=(s,d)=>{const l=m.find((h,R)=>ee(h,R)===s),F=l?m.indexOf(l):0;a(F,d)},D=(s=!1)=>{if(t.scrollspy){const d=m[p.currentIndex].$el;if(d&&M.value){const l=Se(d,M.value)-fe.value;v=!0,e&&e(),e=Lt(M.value,l,s?0:+t.duration,()=>{v=!1})}}},S=(s,d,l)=>{const{title:F,disabled:h}=m[d],R=ee(m[d],d);h||(ut(t.beforeChange,{args:[R],done:()=>{a(d),D()}}),ft(s)),o("clickTab",{name:R,title:F,event:l,disabled:h})},f=s=>{i=s.isFixed,o("scroll",s)},Y=s=>{ae(()=>{b(s),D(!0)})},K=()=>{for(let s=0;s<m.length;s++){const{top:d}=oe(m[s].$el);if(d>fe.value)return s===0?0:s-1}return m.length-1},we=()=>{if(t.scrollspy&&!v){const s=K();a(s)}},ye=()=>{if(t.type==="line"&&m.length)return _("div",{class:he("line"),style:p.lineStyle},null)},pe=()=>{var s,d,l;const{type:F,border:h,sticky:R}=t,A=[_("div",{ref:R?void 0:T,class:[he("wrap"),{[ct]:F==="line"&&h}]},[_("div",{ref:I,role:"tablist",class:he("nav",[F,{shrink:t.shrink,complete:Q.value}]),style:P.value,"aria-orientation":"horizontal"},[(s=r["nav-left"])==null?void 0:s.call(r),m.map(Z=>Z.renderTitle(S)),ye(),(d=r["nav-right"])==null?void 0:d.call(r)])]),(l=r["nav-bottom"])==null?void 0:l.call(r)];return R?_("div",{ref:T},[A]):A},re=()=>{O(),ae(()=>{var s,d;H(!0),(d=(s=E.value)==null?void 0:s.swipeRef.value)==null||d.resize()})};U(()=>[t.color,t.duration,t.lineWidth,t.lineHeight],O),U(Ue,re),U(()=>t.active,s=>{s!==ie.value&&b(s)}),U(()=>m.length,()=>{p.inited&&(b(t.active),O(),ae(()=>{H(!0)}))});const ge=()=>{b(t.active,!0),ae(()=>{p.inited=!0,T.value&&(c=oe(T.value).height),H(!0)})},te=(s,d)=>o("rendered",s,d);return Ie({resize:re,scrollTo:Y}),ot(O),rt(O),Ve(ge),Ze(k,O),ze("scroll",we,{target:M,passive:!0}),$({id:w,props:t,setLine:O,scrollable:Q,onRendered:te,currentName:ie,setTitleRefs:W,scrollIntoView:H}),()=>_("div",{ref:k,class:he([t.type])},[t.sticky?_(Ht,{container:k.value,offsetTop:G.value,onScroll:f},{default:()=>[pe()]}):pe(),_(Zt,{ref:E,count:m.length,inited:p.inited,animated:t.animated,duration:t.duration,swipeable:t.swipeable,lazyRender:t.lazyRender,currentIndex:p.currentIndex,onChange:a},{default:()=>{var s;return[(s=r.default)==null?void 0:s.call(r)]}})])}});const Jt=Symbol(),[Qt,$e]=de("tab"),ea=ue({name:Qt,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:ne,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:_e},setup(t,{slots:o}){const r=L(()=>{const v={},{type:i,color:u,disabled:e,isActive:k,activeColor:I,inactiveColor:T}=t;u&&i==="card"&&(v.borderColor=u,e||(k?v.backgroundColor=u:v.color=u));const w=k?I:T;return w&&(v.color=w),v}),c=()=>{const v=_("span",{class:$e("text",{ellipsis:!t.scrollable})},[o.title?o.title():t.title]);return t.dot||Fe(t.badge)&&t.badge!==""?_(pt,{dot:t.dot,content:t.badge,showZero:t.showZeroBadge},{default:()=>[v]}):v};return()=>_("div",{id:t.id,role:"tab",class:[$e([t.type,{grow:t.scrollable&&!t.shrink,shrink:t.shrink,active:t.isActive,disabled:t.disabled}])],style:r.value,tabindex:t.disabled?void 0:t.isActive?0:-1,"aria-selected":t.isActive,"aria-disabled":t.disabled||void 0,"aria-controls":t.controls},[c()])}}),[ta,ke]=de("tab"),aa=je({},mt,{dot:Boolean,name:ne,badge:ne,title:String,disabled:Boolean,titleClass:ht,titleStyle:[String,Object],showZeroBadge:_e});var na=ue({name:ta,props:aa,setup(t,{slots:o}){const r=He(),c=N(!1),v=_t(),{parent:i,index:u}=vt(qe);if(!i)return;const e=()=>{var y;return(y=t.name)!=null?y:u.value},k=()=>{c.value=!0,i.props.lazyRender&&ae(()=>{i.onRendered(e(),t.title)})},I=L(()=>{const y=e()===i.currentName.value;return y&&!c.value&&k(),y}),T=N(""),E=N("");wt(()=>{const{titleClass:y,titleStyle:W}=t;T.value=y?Ke(y):"",E.value=W&&typeof W!="string"?xt(q(W)):W});const w=y=>_(ea,Dt({key:r,id:`${i.id}-${u.value}`,ref:i.setTitleRefs(u.value),style:E.value,class:T.value,isActive:I.value,controls:r,scrollable:i.scrollable.value,activeColor:i.props.titleActiveColor,inactiveColor:i.props.titleInactiveColor,onClick:W=>y(v.proxy,u.value,W)},Ae(i.props,["type","color","shrink"]),Ae(t,["dot","badge","title","disabled","showZeroBadge"])),{title:o.title}),M=N(!I.value);return U(I,y=>{y?M.value=!1:yt(()=>{M.value=!0})}),U(()=>t.title,()=>{i.setLine(),i.scrollIntoView()}),gt(Jt,I),Ie({id:r,renderTitle:w}),()=>{var y;const W=`${i.id}-${u.value}`,{animated:m,swipeable:$,scrollspy:p,lazyRender:Q}=i.props;if(!o.default&&!m)return;const P=p||I.value;if(m||$)return _(bt,{id:r,role:"tabpanel",class:ke("panel-wrapper",{inactive:M.value}),tabindex:I.value?0:-1,"aria-hidden":!I.value,"aria-labelledby":W},{default:()=>{var G;return[_("div",{class:ke("panel")},[(G=o.default)==null?void 0:G.call(o)])]}});const ie=c.value||p||!Q?(y=o.default)==null?void 0:y.call(o):null;return kt(_("div",{id:r,role:"tabpanel",class:ke("panel"),tabindex:P?0:-1,"aria-labelledby":W},[ie]),[[Ft,P]])}}});const ia=Ye(na),la=Ye(qt);function sa(t){return ve.get("/api/Common/GetDeptList",t)}function oa(t,o){return ve.post("/api/Common/GetUserList",t,o)}function ra(t,o){return ve.post("/api/PlanProject/GetPlanProjectByWeekList",t,o)}function ca(t,o){return ve.post("/api/PlanProject/GetPlanProjectByDayList",t,o)}const J=t=>(Mt("data-v-07c990c3"),t=t(),Pt(),t),da={class:"publicContainerNoPadding"},ua={class:"w-full h-[50px] flex bg-white justify-between items-center p-2"},fa={key:1,class:"w-full h-2"},pa=["onClick"],ma={key:0},ha={key:1},_a={class:"w-[calc(100%)] h-full"},va=["onClick"],wa={class:"aaa"},ya=J(()=>g("div",{class:"w-[35px] min-h-[80px]"},[g("div",{class:"w-full h-1/2 ccFlex"}," 上 "),g("div",{class:"w-full h-1/2 ccFlex"}," 下 ")],-1)),ga={class:"w-[calc(100%-105px)] min-h-[80px] mb-2"},ba={class:"w-full h-1/2 ccFlex"},ka={class:"w-full h-1/2 ccFlex"},xa=["onClick"],Da=J(()=>g("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[g("span",{class:"text-5 text-[#8D8D8D]"},"高级查询")],-1)),Fa=J(()=>g("div",{class:"w-full h-3"},null,-1)),Ca=J(()=>g("span",{class:"text-[#8D8D8D]"},"选择日期",-1)),Ya=J(()=>g("div",{class:"w-full h-3"},null,-1)),Ia={class:"w-full h-auto bg-white"},Ba=J(()=>g("div",{class:"w-full h-10 p-4 pb-0 text-[#8D8D8D]"},"分管部门",-1)),Sa={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Aa=J(()=>g("div",{class:"w-full h-3"},null,-1)),Ta={class:"w-full h-auto bg-white"},Wa=J(()=>g("div",{class:"w-full h-10 p-4 pb-0 text-[#8D8D8D]"},"中层干部",-1)),Ma={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Pa={class:"w-full h-[64px] flex items-center justify-evenly"},$a={__name:"index",setup(t,{expose:o}){const r=C().startOf("week").add(1,"day").format("YYYY-MM-DD"),c=C().startOf("week").add(5,"day").format("YYYY-MM-DD"),v=N(),i=N();C(C().startOf("week").add(1,"day").format("YYYY-MM-DD")).format("YYYY-MM-DD");const u=new Date(C().year(),C().month()-1,1),e=Ce({initWeekArray:[],dataFlag:1,peoPleFlag:!1,weekFlag:!1,calendarKey:1,weekKey:1,dayArray:[],weekArray:[],paramsDay:{begin_time:C().format("YYYY-MM-DD"),end_time:C().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:r,end_time:c,dept_id_list:[],tid_list:[]},comment:{dept:[],user:[],deptId:[]},check:{dept_id_list:[],tid_list:[],begin_time:"",end_time:""},date:{show:!1},search:{dateWeek:r+" - "+c,dateDay:C().format("YYYY-MM-DD")},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function k(n){e.select.showPopup=n}function I(n,a){({day:()=>{e.date.show=!1,e.search.dateDay=C(n).format("YYYY-MM-DD"),e.check.begin_time=C(n).format("YYYY-MM-DD"),e.check.end_time=C(n).format("YYYY-MM-DD")},week:()=>{e.date.show=!1,e.search.dateWeek=C(n[0]).format("YYYY-MM-DD")+" - "+C(n[1]).format("YYYY-MM-DD"),e.check.begin_time=C(n[0]).format("YYYY-MM-DD"),e.check.end_time=C(n[1]).format("YYYY-MM-DD")}})[a]()}function T(){e.select.showPopup=!0}function E(n,a){console.log("🚀event🚀🚀,",n),e.calendarKey++,e.switchView.show?(e.search.dateDay=C().format("YYYY-MM-DD"),e.paramsDay={begin_time:C().format("YYYY-MM-DD"),end_time:C().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},p()):(e.search.dateWeek=r+" - "+c,e.paramsWeek={begin_time:r,end_time:c,dept_id_list:[],tid_list:[]},P()),w(a),e.select.action=!1}function w(n){e.check.dept_id_list=[],e.comment.dept.forEach(a=>{a.bg="",a.cl=""}),e.check.tid_list=[],e.comment.user.forEach(a=>{a.bg="",a.cl=""}),e.search.dateDay=C().format("YYYY-MM-DD"),e.search.dateWeek=r+" - "+c,e.check={dept_id_list:[],tid_list:[],begin_time:"",end_time:""},e.calendarKey++,e.select.action=!1,e.paramsWeek={begin_time:r,end_time:c,dept_id_list:[],tid_list:[]},e.paramsDay={begin_time:C().format("YYYY-MM-DD"),end_time:C().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},n.dateDay&&(n.dateDay.dateArray.array=[],n.dateDay.getInitDate()),n.dateWeek&&(n.dateWeek.dateArray.array=[],n.dateWeek.getInitDate()),e.comment.deptId=[],$(),p(),P()}function M(n){let a={true:async()=>{e.paramsDay={...e.check,begin_time:e.check.begin_time?e.check.begin_time:r,end_time:e.check.end_time?e.check.end_time:C().format("YYYY-MM-DD")},n.dateDay.deleteDateBg(),await p(),n.dateDay.dateArrayAssignmentRelatedData(e.paramsDay.end_time),e.dayArray.map((b,D)=>{e.paramsDay.dept_id_list.includes(b.dept_id)&&(b.deptBg="#1989FA",b.deptCl="#FFFFFF"),e.paramsDay.tid_list.includes(b.userid)&&(b.peopleBg="#1989FA",b.peopleCl="#FFFFFF")}),e.select.showPopup=!1},false:()=>{e.paramsWeek={...e.check,begin_time:e.check.begin_time?e.check.begin_time:r,end_time:e.check.end_time?e.check.end_time:c},P(),n.dateWeek.dateArrayAssignmentRelatedData(e.paramsWeek.end_time),e.select.showPopup=!1}};e.select.action=!0,a[String(e.switchView.show)]()}function y(){e.select.showPopup=!1}function W(){return sa().then(n=>(e.comment.dept=n.response.map(a=>({...a,bg:"",cl:""})),n))}function m(n,a){({true:()=>{Me(()=>$t({plan_id:"",collect_userid:n.userId}).then(D=>(D.code===1&&(e.weekArray.forEach((S,f)=>{S.nameData.forEach((Y,K)=>{n.userId===Y.userId&&(Y.bg="",Y.cl="",Y.attention=0)})}),P()),D)))},false:()=>{Me(()=>Rt({id:n.userId,collect_type:0}).then(D=>(D.code===1&&(e.weekArray.forEach((S,f)=>{S.nameData.forEach((Y,K)=>{n.userId===Y.userId&&(Y.bg="",Y.cl="#FFFFFF",Y.attention=1)})}),P()),D)))}})[String(!!Number(n.attention))]()}function $(){oa(e.comment.deptId).then(n=>{e.comment.user=n.response.map(a=>({...a,bg:"",cl:""}))})}function p(){return ca(e.paramsDay).then(n=>{e.dayArray=n.response.map((a,b)=>({...a,deptBg:"",deptCl:"",peopleBg:"",peopleCl:""}))})}function Q(n){e.paramsDay={...e.paramsDay,begin_time:n,end_time:n},p()}function P(){return ra(e.paramsWeek).then(n=>{let a=[],D=n.response.reduce((S,f)=>{const Y=S.find(K=>K.deptName===f.dept_name);return Y?Y.nameData.push({userId:f.userid,userName:f.username,userCard:f.usercard,attention:f.attention,nameArray:f.data,peopleBg:f.peopleBg?f.peopleBg:"",peopleCl:f.peopleCl?f.peopleCl:""}):a.push({deptName:f.dept_name,deptId:f.dept_id,deptBg:f.deptBg?f.deptBg:"",deptCl:f.deptCl?f.deptCl:"",nameData:[{userId:f.userid,userName:f.username,userCard:f.usercard,attention:f.attention,nameArray:f.data,peopleBg:f.peopleBg?f.peopleBg:"",peopleCl:f.peopleCl?f.peopleCl:""}]}),a},[]);return e.weekArray=D.map((S,f)=>(e.paramsWeek.dept_id_list.includes(S.deptId)&&(S.deptBg="#1989FA",S.deptCl="#FFFFFF"),S.nameData.map((Y,K)=>(e.paramsWeek.tid_list.includes(Y.userId)&&(Y.peopleBg="#1989FA",Y.peopleCl="#FFFFFF"),Y)),S)),D})}function ee(n){e.check.dept_id_list.includes(n.id)?(e.check.dept_id_list.forEach((a,b)=>{a===n.id&&e.check.dept_id_list.splice(b,1)}),e.comment.dept.forEach(a=>{a.id===n.id&&(a.bg="",a.cl="")}),e.comment.deptId.forEach((a,b)=>{a===n.id&&e.comment.deptId.splice(b,1)})):(e.check.dept_id_list.push(n.id),e.comment.deptId.push(n.id),e.comment.dept.forEach(a=>{a.id===n.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})),$(),console.log("🚀🚀check.dept_id_list🚀,",...e.check.dept_id_list,"")}function ie(n){e.check.tid_list.includes(n.id)?(e.check.tid_list.forEach((a,b)=>{a===n.id&&e.check.tid_list.splice(b,1,"")}),e.comment.user.forEach(a=>{a.id===n.id&&(a.bg="",a.cl="")})):(e.check.tid_list.push(n.id),e.comment.user.forEach(a=>{a.id===n.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.tid_list)}function G(n){e.paramsWeek.dept_id_list=[],e.paramsWeek.dept_id_list.includes(n)?e.paramsWeek.dept_id_list.splice(e.paramsWeek.dept_id_list.indexOf(n),1):n!=="全部"&&e.paramsWeek.dept_id_list.push(n),H()?e.select.action=!0:e.select.action=!1,e.weekArray.map((a,b)=>(e.paramsWeek.dept_id_list.includes(a.deptId)&&(a.deptBg="#1989FA",a.deptCl="#FFFFFF"),a.nameData.map((D,S)=>(e.paramsWeek.tid_list.includes(D.userId)&&(D.peopleBg="#1989FA",D.peopleCl="#FFFFFF"),D)),a)),P()}function fe(n){e.paramsWeek.tid_list.includes(n)?e.paramsWeek.tid_list.splice(e.paramsWeek.tid_list.indexOf(n),1):e.paramsWeek.tid_list.push(n),H()?e.select.action=!0:e.select.action=!1,e.weekArray.map((a,b)=>(e.paramsWeek.dept_id_list.includes(a.deptId)&&(a.deptBg="#1989FA",a.deptCl="#FFFFFF"),a.nameData.map((D,S)=>(e.paramsWeek.tid_list.includes(D.userId)&&(D.peopleBg="#1989FA",D.peopleCl="#FFFFFF"),D)),a)),P()}function H(){return!!e.paramsWeek.dept_id_list.length||!!e.paramsWeek.tid_list.length}const O=n=>{let b=new Date(n.date).getDay();return(b==0||b==6)&&(n.type="disabled"),n};return Ge(async()=>{$(),p(),await W(),P().then(n=>{e.initWeekArray=n,e.initWeekArray.unshift({deptName:"全部",deptId:"全部"})})}),o({init:e,GetPlanProjectByDayList:p,GetPlanProjectByWeekList:P}),(n,a)=>{const b=It,D=Te("el-radio-button"),S=Te("el-radio-group"),f=Nt,Y=ia,K=la,we=Vt,ye=Bt,pe=St,re=At,ge=Tt,te=Wt,s=Et,d=Yt;return x(),B(z,null,[g("div",da,[_(b,{path:"/welcome",title:"分管填报记录查看"}),g("div",ua,[_(S,{onChange:a[0]||(a[0]=l=>E(l,n.$refs)),modelValue:e.switchView.show,"onUpdate:modelValue":a[1]||(a[1]=l=>e.switchView.show=l),size:"mini"},{default:V(()=>[_(D,{label:"天",value:!0}),_(D,{label:"周",value:!1})]),_:1},8,["modelValue"]),g("div",{style:q({background:["#FFFFFF","#1989FA"][Number(e.select.action)],color:["#4B5563","#FFFFFF"][Number(e.select.action)]}),onClick:T,class:"w-20 h-8 flex justify-center items-center border-solid border-[1px]"}," 高级查询 ",4)]),e.switchView.show?(x(),j(f,{key:0,ref_key:"dateDay",ref:v,onSearchDayData:Q},null,512)):le("",!0),e.switchView.show?(x(),B("div",fa)):le("",!0),e.switchView.show?le("",!0):(x(),j(K,{key:2},{default:V(()=>[(x(!0),B(z,null,X(e.initWeekArray,(l,F)=>(x(),j(Y,{key:F},{title:V(()=>[g("span",{onClick:h=>G(l.deptId)},me(l.deptName),9,pa)]),_:2},1024))),128))]),_:1})),e.switchView.show?le("",!0):(x(),j(we,{key:3,ref_key:"dateWeek",ref:i},null,512)),g("div",{class:Ke(`w-full overflow-y-auto
${["","p-3"][Number(e.switchView.show)]}
${["h-[calc(100%-205px)]","h-[calc(100%-163.4px)]"][Number(e.switchView.show)]} `)},[e.switchView.show?(x(),B("div",ma,[(x(!0),B(z,null,X(e.dayArray,(l,F)=>(x(),j(ye,{attentionButtonIdentifier:"dayView",data:l,key:F,alldayOrMidafternoonStatus:!!Number(l.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):le("",!0),e.switchView.show?le("",!0):(x(),B("div",ha,[(x(),B("div",{class:"w-full h-auto bg-white text-gray-600",key:e.weekKey},[(x(!0),B(z,null,X(e.weekArray,(l,F)=>(x(),B("div",{class:"w-full min-h-[80px] flex-wrap ccFlex",key:F},[g("div",_a,[(x(!0),B(z,null,X(l.nameData,(h,R)=>(x(),B("div",{class:"w-full h-auto flex",key:R},[g("div",{onClick:A=>fe(h.userId),style:q({background:h.peopleBg,color:h.peopleCl}),class:"w-[35px] min-h-[80px] ccFlex"},[g("div",wa,me(h.userName),1)],12,va),ya,g("div",ga,[g("div",ba,[(x(!0),B(z,null,X(h.nameArray,(A,Z)=>(x(),B("div",{style:q({background:["","#D9E2F3"][+(A.fore_plan!=null&&A.fore_plan!=""&&A.fore_plan!=null)]}),key:Z,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))]),g("div",ka,[(x(!0),B(z,null,X(h.nameArray,(A,Z)=>(x(),B("div",{style:q({background:["","#FFE599"][+(A.after_plan!=null&&A.after_plan!=""&&A.after_plan!=null)]}),key:Z,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))])]),g("div",{style:q({background:h.bg,color:h.cl}),class:"w-[35px] min-h-[80px] ccFlex"},[g("div",{onClick:A=>m(h,h.attention),class:"aaa"},[_(pe,{name:["star-o","star"][h.attention],color:"#FD9700"},null,8,["name"])],8,xa)],4)]))),128))])]))),128))]))]))],2)]),_(d,{show:e.select.showPopup,height:80,onActionPopUp:k},{content:V(()=>[e.switchView.show?(x(),j(re,{key:0,formatter:O,"min-date":new Date(We(u)),show:e.date.show,"onUpdate:show":a[2]||(a[2]=l=>e.date.show=l),style:{height:"calc(100% - 64px)"},onConfirm:a[3]||(a[3]=l=>I(l,"day"))},null,8,["min-date","show"])):(x(),j(re,{key:1,formatter:O,"min-date":new Date(We(u)),"max-range":5,"range-prompt":"最多选择 5 天",type:"range",show:e.date.show,"onUpdate:show":a[4]||(a[4]=l=>e.date.show=l),style:{height:"calc(100%-64px)"},onConfirm:a[5]||(a[5]=l=>I(l,"week"))},null,8,["min-date","show"])),Da,(x(),B("div",{class:"w-full h-[calc(100%-109px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[Fa,_(ge,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",value:[e.search.dateWeek,e.search.dateDay][Number(e.switchView.show)],onClick:a[6]||(a[6]=l=>e.date.show=!0)},{title:V(()=>[Ca]),_:1},8,["value"]),Ya,g("div",Ia,[Ba,g("div",Sa,[_(s,{wrap:""},{default:V(()=>[(x(!0),B(z,null,X(e.comment.dept,(l,F)=>(x(),j(te,{onClick:h=>ee(l),key:F,style:q({margin:"5px",padding:"15px !important",height:"40px",background:l.bg,color:l.cl}),class:"rounded-[18px]",size:"large",plain:"",hairline:"",type:"primary"},{default:V(()=>[ce(me(l.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Aa,g("div",Ta,[Wa,g("div",Ma,[_(s,{wrap:""},{default:V(()=>[(x(!0),B(z,null,X(e.comment.user,(l,F)=>(x(),j(te,{onClick:h=>ie(l),style:q({margin:"5px",padding:"15px !important",height:"40px",background:l.bg,color:l.cl}),size:"large",plain:"",hairline:"",type:"primary"},{default:V(()=>[ce(me(l.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])])])),g("div",Pa,[_(te,{round:"",class:"w-[30%]",onClick:y},{default:V(()=>[ce("取消")]),_:1}),_(te,{type:"primary",round:"",plain:"",class:"w-[30%]",onClick:a[7]||(a[7]=l=>w(n.$refs))},{default:V(()=>[ce("重置")]),_:1}),_(te,{type:"primary",round:"",class:"w-[30%]",onClick:a[8]||(a[8]=l=>M(n.$refs))},{default:V(()=>[ce("查询")]),_:1})])]),_:1},8,["show"])],64)}}},Va=Ct($a,[["__scopeId","data-v-07c990c3"]]);export{Va as default};
import{c as r,a as e,F as c,u as s,o as _,w as m,N as i}from"./index-BpfJPTKP.js";import{E as l}from"./index-CF8Fji5s.js";const k={__name:"index",setup(p){const t=s(),a=()=>t.back();return(u,f)=>{const n=i,o=l;return _(),r(c,null,[e(n,{"left-text":"返回","left-arrow":"",onClickLeft:a}),e(o,{image:m,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{k as default}; import{c as r,a as e,F as c,u as s,o as _,w as m,N as i}from"./index-C8Nk4suT.js";import{E as l}from"./index-BP9hqv_Y.js";const k={__name:"index",setup(p){const t=s(),a=()=>t.back();return(u,f)=>{const n=i,o=l;return _(),r(c,null,[e(n,{"left-text":"返回","left-arrow":"",onClickLeft:a}),e(o,{image:m,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{k as default};
import{i as d,l as f,n as y,a as s,F as c,b3 as h,b4 as v,h as z}from"./index-BpfJPTKP.js";const[u,A]=d("space"),w={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function m(e=[]){const a=[];return e.forEach(t=>{Array.isArray(t)?a.push(...t):t.type===c?a.push(...m(t.children)):a.push(t)}),a.filter(t=>{var i;return!(t&&(t.type===h||t.type===c&&((i=t.children)==null?void 0:i.length)===0||t.type===v&&t.children.trim()===""))})}var S=f({name:u,props:w,setup(e,{slots:a}){const t=y(()=>{var n;return(n=e.align)!=null?n:e.direction==="horizontal"?"center":""}),i=n=>typeof n=="number"?n+"px":n,g=n=>{const r={},o=`${i(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${i(Array.isArray(e.size)?e.size[1]:e.size)}`;return n?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var n;const r=m((n=a.default)==null?void 0:n.call(a));return s("div",{class:[A({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[r.map((o,l)=>s("div",{key:`item-${l}`,class:`${u}-item`,style:g(l===r.length-1)},[o]))])}}});const $=z(S);export{$ as S}; import{i as d,l as f,n as y,a as s,F as c,b6 as h,b7 as v,h as z}from"./index-C8Nk4suT.js";const[u,A]=d("space"),w={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function m(e=[]){const a=[];return e.forEach(t=>{Array.isArray(t)?a.push(...t):t.type===c?a.push(...m(t.children)):a.push(t)}),a.filter(t=>{var i;return!(t&&(t.type===h||t.type===c&&((i=t.children)==null?void 0:i.length)===0||t.type===v&&t.children.trim()===""))})}var S=f({name:u,props:w,setup(e,{slots:a}){const t=y(()=>{var n;return(n=e.align)!=null?n:e.direction==="horizontal"?"center":""}),i=n=>typeof n=="number"?n+"px":n,g=n=>{const r={},o=`${i(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${i(Array.isArray(e.size)?e.size[1]:e.size)}`;return n?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var n;const r=m((n=a.default)==null?void 0:n.call(a));return s("div",{class:[A({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[r.map((o,l)=>s("div",{key:`item-${l}`,class:`${u}-item`,style:g(l===r.length-1)},[o]))])}}});const $=z(S);export{$ as S};
import{h as R,s as X,i as Z,j as ee,k as te,m as y,l as ne,r as se,n as ie,p as D,q as G,t as ae,a as r,v as re,x as oe,y as le,z as N,A as M,B as me,b as de,D as ce,c as k,E as a,H as v,I as T,F as A,J as Y,d as l,K as I,M as ue,O as _e,o as m,P as pe,Q as fe,R as we,T as he,U as xe,V as C,e as V,W as ge,X as H,Y as ye,Z as ke,$ as ve,a0 as Te,a1 as Ce,a2 as Se,a3 as be}from"./index-BpfJPTKP.js";const U=R(X),[Pe]=Z("time-picker"),L=s=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(s),Me=["hour","minute","second"],$e=ee({},te,{minHour:y(0),maxHour:y(23),minMinute:y(0),maxMinute:y(59),minSecond:y(0),maxSecond:y(59),minTime:{type:String,validator:L},maxTime:{type:String,validator:L},columnsType:{type:Array,default:()=>["hour","minute"]},filter:Function});var Oe=ne({name:Pe,props:$e,emits:["confirm","cancel","change","update:modelValue"],setup(s,{emit:p,slots:e}){const d=se(s.modelValue),$=i=>{const f=i.split(":");return Me.map((h,x)=>s.columnsType.includes(h)?f[x]:"00")},S=ie(()=>{let{minHour:i,maxHour:f,minMinute:h,maxMinute:x,minSecond:b,maxSecond:P}=s;if(s.minTime||s.maxTime){const c={hour:0,minute:0,second:0};s.columnsType.forEach((_,g)=>{var w;c[_]=(w=d.value[g])!=null?w:0});const{hour:t,minute:n}=c;if(s.minTime){const[_,g,w]=$(s.minTime);i=_,h=+t<=+i?g:"00",b=+t<=+i&&+n<=+h?w:"00"}if(s.maxTime){const[_,g,w]=$(s.maxTime);f=_,x=+t>=+f?g:"59",P=+t>=+f&&+n>=+x?w:"59"}}return s.columnsType.map(c=>{const{filter:t,formatter:n}=s;switch(c){case"hour":return N(+i,+f,c,n,t,d.value);case"minute":return N(+h,+x,c,n,t,d.value);case"second":return N(+b,+P,c,n,t,d.value);default:return[]}})});D(d,i=>{G(i,s.modelValue)||p("update:modelValue",i)}),D(()=>s.modelValue,i=>{i=ae(i,S.value),G(i,d.value)||(d.value=i)},{immediate:!0});const j=(...i)=>p("change",...i),B=(...i)=>p("cancel",...i),F=(...i)=>p("confirm",...i);return()=>r(U,re({modelValue:d.value,"onUpdate:modelValue":i=>d.value=i,columns:S.value,onChange:j,onCancel:B,onConfirm:F},oe(s,le)),e)}});const Ve=R(Oe);function je(s){return M.get("/api/Collect/GetCollectList",s)}function Be(s){return M.get("/api/Common/GetMenuRole",s)}function Fe(s){return M.get("/api/PlanProject/GetPlanProjectByMyList",s)}function Ne(s){return M.get("/api/SysConfig/SysConfigInit",s)}function Ae(s,p){return M.post("/api/SysConfig/SysConfigSave",s,p)}const Ie={class:"publicContainer"},Ke={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},We={key:1,class:"w-full h-[25px] text-[18px] text-[#646566] flex items-center mb-1"},De=["src"],Ge=a("div",{class:"w-full h-[10px]"},null,-1),Ye=["src"],He=["src"],Le=["src"],Re=a("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[a("span",{class:"text-5 text-[#8D8D8D]"},"填报配置")],-1),Ue=a("div",{class:"w-full h-3"},null,-1),Ee=a("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),ze={class:"w-full h-full flex justify-end flex-wrap"},qe=a("div",{class:"w-full h-full"},"重复提醒时间",-1),Je={class:"w-full h-full flex overflow-x-auto"},Qe={class:"text-blue-500"},Xe=["onClick"],Ze=a("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),et={class:"w-full h-full flex justify-end"},st={__name:"index",setup(s,{expose:p}){const e=me({getWeekOrTimeKey:"",columns:[{text:"星期一",value:"星期一"},{text:"星期二",value:"星期二"},{text:"星期三",value:"星期三"},{text:"星期四",value:"星期四"},{text:"星期五",value:"星期五"},{text:"星期六",value:"星期六"},{text:"星期日",value:"星期日"}],loading:!1,search:{date:""},select:{weekShow:!1,timeShow:!1,showPopup:!1},paramsTransfers:{configid:"1",date:[],semester_date_begin:"2024-01-02",semester_date_end:"2024-06-03",period_remind_time:"",period_remind_week:"",nowrite_remind_isCheck:"",nowrite_remind_time:[],ahead_write:"",write_remind_week:"",write_remind_time:""},params:{configid:"",semester_date_begin:"",semester_date_end:"",period_remind:"",nowrite_remind:"",ahead_write:"",write_remind:""},date:{show:!1},role:{plan_write:"0",examine:"0",userrole:"0",write_sysconfig:"0"},data:{mySchedule:{},myFocus:[]}});function d(t){e.paramsTransfers.semester_date_begin=H(t[0]).format("YYYY/MM/DD"),e.paramsTransfers.semester_date_end=H(t[1]).format("YYYY/MM/DD"),e.date.show=!1}function $(){Fe().then(t=>{t.response?e.data.mySchedule=t.response:e.data.mySchedule={}})}function S(){je().then(t=>{e.data.myFocus=t.response})}function j(){Be().then(t=>{e.role=t.response})}function B(){ye(()=>Ae({configid:e.paramsTransfers.configid,semester_date_begin:e.paramsTransfers.semester_date_begin,semester_date_end:e.paramsTransfers.semester_date_end,period_remind:e.paramsTransfers.period_remind_week+"|"+e.paramsTransfers.period_remind_time,nowrite_remind:String(Number(e.paramsTransfers.nowrite_remind_isCheck))+String(String(e.paramsTransfers.nowrite_remind_time.map(t=>"|"+t)).split(",").join("")),ahead_write:String(Number(e.paramsTransfers.ahead_write)),write_remind:e.paramsTransfers.write_remind_week+"|"+e.paramsTransfers.write_remind_time}).then(t=>(t.code===1&&c(),t)))}function F(){e.select.showPopup=!1}function i(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function f(t){e.paramsTransfers.nowrite_remind_time.splice(t,1)}function h({selectedValues:t,selectedOptions:n,selectedIndexes:_}){e.getWeekOrTimeKey==="nowrite_remind_time"?e.paramsTransfers[e.getWeekOrTimeKey].push(t[0]+":"+t[1]):e.paramsTransfers[e.getWeekOrTimeKey]=t[0]+":"+t[1],e.select.timeShow=!1}function x({selectedValues:t,selectedOptions:n,selectedIndexes:_}){e.paramsTransfers[e.getWeekOrTimeKey]=t[0],e.select.weekShow=!1}function b(t){e.select.weekShow=!0,e.getWeekOrTimeKey=t}function P(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function c(){e.select.showPopup=!0,e.loading=!0,Ne().then(t=>{e.paramsTransfers={configid:t.response.configid,date:[],semester_date_begin:t.response.semester_date_begin.split(" ")[0],semester_date_end:t.response.semester_date_end.split(" ")[0],period_remind_time:t.response.period_remind.split("|")[1],period_remind_week:t.response.period_remind.split("|")[0],nowrite_remind_isCheck:!!Number(t.response.nowrite_remind.split("|")[0]),nowrite_remind_time:t.response.nowrite_remind.split("|").filter(n=>n!=0&&n!=1&&Number(n)!=0&&Number(n)!=1),ahead_write:!!Number(t.response.ahead_write),write_remind_week:t.response.write_remind.split("|")[0],write_remind_time:t.response.write_remind.split("|")[1]}}).finally(()=>{e.loading=!1})}return de(()=>{$(),S(),j()}),p({GetCollectList:S}),(t,n)=>{const _=ke,g=ue,w=ve,u=_e,E=Te,K=ce("el-switch"),z=Ce,W=Se,q=be,J=Ve,Q=U;return m(),k(A,null,[a("div",Ie,[r(_),a("div",Ke,[Object.keys(e.data.mySchedule).length?(m(),v(g,{key:0,data:e.data.mySchedule},null,8,["data"])):T("",!0),e.data.myFocus.length?(m(),k("div",We," 我的关注 ")):T("",!0),(m(!0),k(A,null,Y(e.data.myFocus,(o,O)=>(m(),v(w,{attentionButtonIdentifier:"index",key:O,alldayOrMidafternoonStatus:!!Number(o.is_allday),data:o},null,8,["alldayOrMidafternoonStatus","data"]))),128)),e.role.plan_write==1?(m(),v(u,{key:2,class:"rounded-[8px] mt-[10px] h-[50px] text-[17px] flex items-center",title:"工作安排填报","is-link":"",to:"/workArrangementFilling"},{icon:l(()=>[a("img",{src:pe,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,De)]),_:1})):T("",!0),Ge,e.role.examine==1?(m(),v(u,{key:3,class:"rounded-t-[8px] h-[50px] text-[17px] flex items-center",title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"},{icon:l(()=>[a("img",{src:fe,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,Ye)]),_:1})):T("",!0),e.role.userrole==1?(m(),v(u,{key:4,class:"h-[50px] flex text-[17px] items-center",title:"人员授权","is-link":"",to:"/personnelAuthority"},{icon:l(()=>[a("img",{src:we,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,He)]),_:1})):T("",!0),e.role.write_sysconfig==1?(m(),v(u,{key:5,class:"rounded-b-[8px] text-[17px] h-[50px] flex items-center",onClick:c,title:"填报配置","is-link":""},{icon:l(()=>[a("img",{src:he,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,Le)]),_:1})):T("",!0)])]),r(I,{show:e.select.showPopup,height:60,onActionPopUp:n[9]||(n[9]=()=>e.select.showPopup=!1)},{content:l(()=>[(m(),k("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative overflow-y-auto",key:e.calendarKey},[r(xe,{show:e.loading},null,8,["show"]),Re,Ue,r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"学期范围",onClick:n[0]||(n[0]=o=>e.date.show=!0)},{default:l(()=>[a("span",null,C(e.paramsTransfers.semester_date_begin+" - "+e.paramsTransfers.semester_date_end),1)]),_:1}),r(E,{type:"range",show:e.date.show,"onUpdate:show":n[1]||(n[1]=o=>e.date.show=o),onConfirm:d},null,8,["show"]),r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报刷新周期"},{value:l(()=>[V(" 每周"),a("span",{class:"text-blue-500 mr-2",onClick:n[2]||(n[2]=o=>b("period_remind_week"))},"["+C(e.paramsTransfers.period_remind_week)+"]",1),a("span",{onClick:n[3]||(n[3]=o=>P("period_remind_time")),class:"text-blue-500"},"["+C(e.paramsTransfers.period_remind_time)+"]",1)]),_:1}),Ee,r(u,{inset:"",title:"未填写提醒",class:"w-full h-[45px] bg-white flex items-center"},{value:l(()=>[a("div",ze,[r(K,{modelValue:e.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":n[4]||(n[4]=o=>e.paramsTransfers.nowrite_remind_isCheck=o),size:"large","inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),r(u,{onClick:n[5]||(n[5]=o=>i("nowrite_remind_time")),"is-link":"",class:"w-full h-[45px] bg-white flex items-center"},{title:l(()=>[qe]),value:l(()=>[a("div",Je,[(m(!0),k(A,null,Y(e.paramsTransfers.nowrite_remind_time,(o,O)=>(m(),k("div",{class:"w-20 flex justify-start items-center m-1",key:O},[a("span",Qe,"["+C(o)+"]",1),a("div",{onClick:ge(tt=>f(O),["stop"]),class:"ml-2 w-[15px] h-[15px] ccFlex text-blue-500"},[r(z,{class:"text-red-600",name:"cross"})],8,Xe)]))),128))])]),_:1}),Ze,r(u,{inset:"",title:"提前填写",class:"w-full h-[45px] bg-white flex items-center"},{default:l(()=>[a("div",et,[r(K,{modelValue:e.paramsTransfers.ahead_write,"onUpdate:modelValue":n[6]||(n[6]=o=>e.paramsTransfers.ahead_write=o),size:"large","inline-prompt":"","active-text":"允许","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报情况提醒"},{value:l(()=>[V(" 每周"),a("span",{class:"text-blue-500 mr-2",onClick:n[7]||(n[7]=o=>b("write_remind_week"))},"["+C(e.paramsTransfers.write_remind_week)+"]",1),a("span",{onClick:n[8]||(n[8]=o=>P("write_remind_time")),class:"text-blue-500"},"["+C(e.paramsTransfers.write_remind_time)+"]",1)]),_:1})])),r(q,null,{default:l(()=>[r(W,{round:"",class:"w-[32%]",onClick:F},{default:l(()=>[V("关闭")]),_:1}),r(W,{type:"primary",round:"",class:"w-[60%]",onClick:B},{default:l(()=>[V("保存")]),_:1})]),_:1})]),_:1},8,["show"]),r(I,{show:e.select.timeShow,height:60,close:!1},{content:l(()=>[r(J,{onConfirm:h,onCancel:n[10]||(n[10]=o=>e.select.timeShow=!1),title:"选择时间"})]),_:1},8,["show"]),r(I,{show:e.select.weekShow,height:60,close:!1},{content:l(()=>[r(Q,{title:"请选择日期",columns:e.columns,onConfirm:x,onCancel:n[11]||(n[11]=o=>e.select.weekShow=!1)},null,8,["columns"])]),_:1},8,["show"])],64)}}};export{st as default}; import{h as R,s as X,i as Z,j as ee,k as te,m as y,l as ne,r as se,n as ie,p as D,q as G,t as ae,a as r,v as re,x as oe,y as le,z as N,A as M,B as me,b as de,D as ce,c as k,E as a,H as v,I as T,F as A,J as Y,d as l,K as I,M as ue,O as _e,o as m,P as pe,Q as fe,R as we,T as he,U as xe,V as C,e as V,W as ge,X as H,Y as ye,Z as ke,$ as ve,a0 as Te,a1 as Ce,a2 as Se,a3 as be}from"./index-C8Nk4suT.js";const U=R(X),[Pe]=Z("time-picker"),L=s=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(s),Me=["hour","minute","second"],$e=ee({},te,{minHour:y(0),maxHour:y(23),minMinute:y(0),maxMinute:y(59),minSecond:y(0),maxSecond:y(59),minTime:{type:String,validator:L},maxTime:{type:String,validator:L},columnsType:{type:Array,default:()=>["hour","minute"]},filter:Function});var Oe=ne({name:Pe,props:$e,emits:["confirm","cancel","change","update:modelValue"],setup(s,{emit:p,slots:e}){const d=se(s.modelValue),$=i=>{const f=i.split(":");return Me.map((h,x)=>s.columnsType.includes(h)?f[x]:"00")},S=ie(()=>{let{minHour:i,maxHour:f,minMinute:h,maxMinute:x,minSecond:b,maxSecond:P}=s;if(s.minTime||s.maxTime){const c={hour:0,minute:0,second:0};s.columnsType.forEach((_,g)=>{var w;c[_]=(w=d.value[g])!=null?w:0});const{hour:t,minute:n}=c;if(s.minTime){const[_,g,w]=$(s.minTime);i=_,h=+t<=+i?g:"00",b=+t<=+i&&+n<=+h?w:"00"}if(s.maxTime){const[_,g,w]=$(s.maxTime);f=_,x=+t>=+f?g:"59",P=+t>=+f&&+n>=+x?w:"59"}}return s.columnsType.map(c=>{const{filter:t,formatter:n}=s;switch(c){case"hour":return N(+i,+f,c,n,t,d.value);case"minute":return N(+h,+x,c,n,t,d.value);case"second":return N(+b,+P,c,n,t,d.value);default:return[]}})});D(d,i=>{G(i,s.modelValue)||p("update:modelValue",i)}),D(()=>s.modelValue,i=>{i=ae(i,S.value),G(i,d.value)||(d.value=i)},{immediate:!0});const j=(...i)=>p("change",...i),B=(...i)=>p("cancel",...i),F=(...i)=>p("confirm",...i);return()=>r(U,re({modelValue:d.value,"onUpdate:modelValue":i=>d.value=i,columns:S.value,onChange:j,onCancel:B,onConfirm:F},oe(s,le)),e)}});const Ve=R(Oe);function je(s){return M.get("/api/Collect/GetCollectList",s)}function Be(s){return M.get("/api/Common/GetMenuRole",s)}function Fe(s){return M.get("/api/PlanProject/GetPlanProjectByMyList",s)}function Ne(s){return M.get("/api/SysConfig/SysConfigInit",s)}function Ae(s,p){return M.post("/api/SysConfig/SysConfigSave",s,p)}const Ie={class:"publicContainer"},Ke={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},We={key:1,class:"w-full h-[25px] text-[18px] text-[#646566] flex items-center mb-1"},De=["src"],Ge=a("div",{class:"w-full h-[10px]"},null,-1),Ye=["src"],He=["src"],Le=["src"],Re=a("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[a("span",{class:"text-5 text-[#8D8D8D]"},"填报配置")],-1),Ue=a("div",{class:"w-full h-3"},null,-1),Ee=a("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),ze={class:"w-full h-full flex justify-end flex-wrap"},qe=a("div",{class:"w-full h-full"},"重复提醒时间",-1),Je={class:"w-full h-full flex overflow-x-auto"},Qe={class:"text-blue-500"},Xe=["onClick"],Ze=a("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),et={class:"w-full h-full flex justify-end"},st={__name:"index",setup(s,{expose:p}){const e=me({getWeekOrTimeKey:"",columns:[{text:"星期一",value:"星期一"},{text:"星期二",value:"星期二"},{text:"星期三",value:"星期三"},{text:"星期四",value:"星期四"},{text:"星期五",value:"星期五"},{text:"星期六",value:"星期六"},{text:"星期日",value:"星期日"}],loading:!1,search:{date:""},select:{weekShow:!1,timeShow:!1,showPopup:!1},paramsTransfers:{configid:"1",date:[],semester_date_begin:"2024-01-02",semester_date_end:"2024-06-03",period_remind_time:"",period_remind_week:"",nowrite_remind_isCheck:"",nowrite_remind_time:[],ahead_write:"",write_remind_week:"",write_remind_time:""},params:{configid:"",semester_date_begin:"",semester_date_end:"",period_remind:"",nowrite_remind:"",ahead_write:"",write_remind:""},date:{show:!1},role:{plan_write:"0",examine:"0",userrole:"0",write_sysconfig:"0"},data:{mySchedule:{},myFocus:[]}});function d(t){e.paramsTransfers.semester_date_begin=H(t[0]).format("YYYY/MM/DD"),e.paramsTransfers.semester_date_end=H(t[1]).format("YYYY/MM/DD"),e.date.show=!1}function $(){Fe().then(t=>{t.response?e.data.mySchedule=t.response:e.data.mySchedule={}})}function S(){je().then(t=>{e.data.myFocus=t.response})}function j(){Be().then(t=>{e.role=t.response})}function B(){ye(()=>Ae({configid:e.paramsTransfers.configid,semester_date_begin:e.paramsTransfers.semester_date_begin,semester_date_end:e.paramsTransfers.semester_date_end,period_remind:e.paramsTransfers.period_remind_week+"|"+e.paramsTransfers.period_remind_time,nowrite_remind:String(Number(e.paramsTransfers.nowrite_remind_isCheck))+String(String(e.paramsTransfers.nowrite_remind_time.map(t=>"|"+t)).split(",").join("")),ahead_write:String(Number(e.paramsTransfers.ahead_write)),write_remind:e.paramsTransfers.write_remind_week+"|"+e.paramsTransfers.write_remind_time}).then(t=>(t.code===1&&c(),t)))}function F(){e.select.showPopup=!1}function i(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function f(t){e.paramsTransfers.nowrite_remind_time.splice(t,1)}function h({selectedValues:t,selectedOptions:n,selectedIndexes:_}){e.getWeekOrTimeKey==="nowrite_remind_time"?e.paramsTransfers[e.getWeekOrTimeKey].push(t[0]+":"+t[1]):e.paramsTransfers[e.getWeekOrTimeKey]=t[0]+":"+t[1],e.select.timeShow=!1}function x({selectedValues:t,selectedOptions:n,selectedIndexes:_}){e.paramsTransfers[e.getWeekOrTimeKey]=t[0],e.select.weekShow=!1}function b(t){e.select.weekShow=!0,e.getWeekOrTimeKey=t}function P(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function c(){e.select.showPopup=!0,e.loading=!0,Ne().then(t=>{e.paramsTransfers={configid:t.response.configid,date:[],semester_date_begin:t.response.semester_date_begin.split(" ")[0],semester_date_end:t.response.semester_date_end.split(" ")[0],period_remind_time:t.response.period_remind.split("|")[1],period_remind_week:t.response.period_remind.split("|")[0],nowrite_remind_isCheck:!!Number(t.response.nowrite_remind.split("|")[0]),nowrite_remind_time:t.response.nowrite_remind.split("|").filter(n=>n!=0&&n!=1&&Number(n)!=0&&Number(n)!=1),ahead_write:!!Number(t.response.ahead_write),write_remind_week:t.response.write_remind.split("|")[0],write_remind_time:t.response.write_remind.split("|")[1]}}).finally(()=>{e.loading=!1})}return de(()=>{$(),S(),j()}),p({GetCollectList:S}),(t,n)=>{const _=ke,g=ue,w=ve,u=_e,E=Te,K=ce("el-switch"),z=Ce,W=Se,q=be,J=Ve,Q=U;return m(),k(A,null,[a("div",Ie,[r(_),a("div",Ke,[Object.keys(e.data.mySchedule).length?(m(),v(g,{key:0,data:e.data.mySchedule},null,8,["data"])):T("",!0),e.data.myFocus.length?(m(),k("div",We," 我的关注 ")):T("",!0),(m(!0),k(A,null,Y(e.data.myFocus,(o,O)=>(m(),v(w,{attentionButtonIdentifier:"index",key:O,alldayOrMidafternoonStatus:!!Number(o.is_allday),data:o},null,8,["alldayOrMidafternoonStatus","data"]))),128)),e.role.plan_write==1?(m(),v(u,{key:2,class:"rounded-[8px] mt-[10px] h-[50px] text-[17px] flex items-center",title:"工作安排填报","is-link":"",to:"/workArrangementFilling"},{icon:l(()=>[a("img",{src:pe,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,De)]),_:1})):T("",!0),Ge,e.role.examine==1?(m(),v(u,{key:3,class:"rounded-t-[8px] h-[50px] text-[17px] flex items-center",title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"},{icon:l(()=>[a("img",{src:fe,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,Ye)]),_:1})):T("",!0),e.role.userrole==1?(m(),v(u,{key:4,class:"h-[50px] flex text-[17px] items-center",title:"人员授权","is-link":"",to:"/personnelAuthority"},{icon:l(()=>[a("img",{src:we,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,He)]),_:1})):T("",!0),e.role.write_sysconfig==1?(m(),v(u,{key:5,class:"rounded-b-[8px] text-[17px] h-[50px] flex items-center",onClick:c,title:"填报配置","is-link":""},{icon:l(()=>[a("img",{src:he,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,Le)]),_:1})):T("",!0)])]),r(I,{show:e.select.showPopup,height:60,onActionPopUp:n[9]||(n[9]=()=>e.select.showPopup=!1)},{content:l(()=>[(m(),k("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative overflow-y-auto",key:e.calendarKey},[r(xe,{show:e.loading},null,8,["show"]),Re,Ue,r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"学期范围",onClick:n[0]||(n[0]=o=>e.date.show=!0)},{default:l(()=>[a("span",null,C(e.paramsTransfers.semester_date_begin+" - "+e.paramsTransfers.semester_date_end),1)]),_:1}),r(E,{type:"range",show:e.date.show,"onUpdate:show":n[1]||(n[1]=o=>e.date.show=o),onConfirm:d},null,8,["show"]),r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报刷新周期"},{value:l(()=>[V(" 每周"),a("span",{class:"text-blue-500 mr-2",onClick:n[2]||(n[2]=o=>b("period_remind_week"))},"["+C(e.paramsTransfers.period_remind_week)+"]",1),a("span",{onClick:n[3]||(n[3]=o=>P("period_remind_time")),class:"text-blue-500"},"["+C(e.paramsTransfers.period_remind_time)+"]",1)]),_:1}),Ee,r(u,{inset:"",title:"未填写提醒",class:"w-full h-[45px] bg-white flex items-center"},{value:l(()=>[a("div",ze,[r(K,{modelValue:e.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":n[4]||(n[4]=o=>e.paramsTransfers.nowrite_remind_isCheck=o),size:"large","inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),r(u,{onClick:n[5]||(n[5]=o=>i("nowrite_remind_time")),"is-link":"",class:"w-full h-[45px] bg-white flex items-center"},{title:l(()=>[qe]),value:l(()=>[a("div",Je,[(m(!0),k(A,null,Y(e.paramsTransfers.nowrite_remind_time,(o,O)=>(m(),k("div",{class:"w-20 flex justify-start items-center m-1",key:O},[a("span",Qe,"["+C(o)+"]",1),a("div",{onClick:ge(tt=>f(O),["stop"]),class:"ml-2 w-[15px] h-[15px] ccFlex text-blue-500"},[r(z,{class:"text-red-600",name:"cross"})],8,Xe)]))),128))])]),_:1}),Ze,r(u,{inset:"",title:"提前填写",class:"w-full h-[45px] bg-white flex items-center"},{default:l(()=>[a("div",et,[r(K,{modelValue:e.paramsTransfers.ahead_write,"onUpdate:modelValue":n[6]||(n[6]=o=>e.paramsTransfers.ahead_write=o),size:"large","inline-prompt":"","active-text":"允许","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报情况提醒"},{value:l(()=>[V(" 每周"),a("span",{class:"text-blue-500 mr-2",onClick:n[7]||(n[7]=o=>b("write_remind_week"))},"["+C(e.paramsTransfers.write_remind_week)+"]",1),a("span",{onClick:n[8]||(n[8]=o=>P("write_remind_time")),class:"text-blue-500"},"["+C(e.paramsTransfers.write_remind_time)+"]",1)]),_:1})])),r(q,null,{default:l(()=>[r(W,{round:"",class:"w-[32%]",onClick:F},{default:l(()=>[V("关闭")]),_:1}),r(W,{type:"primary",round:"",class:"w-[60%]",onClick:B},{default:l(()=>[V("保存")]),_:1})]),_:1})]),_:1},8,["show"]),r(I,{show:e.select.timeShow,height:60,close:!1},{content:l(()=>[r(J,{onConfirm:h,onCancel:n[10]||(n[10]=o=>e.select.timeShow=!1),title:"选择时间"})]),_:1},8,["show"]),r(I,{show:e.select.weekShow,height:60,close:!1},{content:l(()=>[r(Q,{title:"请选择日期",columns:e.columns,onConfirm:x,onCancel:n[11]||(n[11]=o=>e.select.weekShow=!1)},null,8,["columns"])]),_:1},8,["show"])],64)}}};export{st as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{B as a,b as t,c as s,a as c,E as e,o as n,a5 as l}from"./index-BpfJPTKP.js";const i={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),d=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),h={__name:"index",setup(r){return a({fillInWork:{show:!1}}),t(()=>{document.title="系统配置"}),(p,u)=>{const o=l;return n(),s("div",i,[c(o,{path:"/welcome",title:"分管填报记录查看"}),_,d])}}};export{h as default}; import{B as a,b as t,c as s,a as c,E as e,o as n,a5 as l}from"./index-C8Nk4suT.js";const i={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),d=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),h={__name:"index",setup(r){return a({fillInWork:{show:!1}}),t(()=>{document.title="系统配置"}),(p,u)=>{const o=l;return n(),s("div",i,[c(o,{path:"/welcome",title:"分管填报记录查看"}),_,d])}}};export{h as default};
import{A as w,r as y,B as k,b as v,c as x,a as o,E as l,d as n,a4 as C,a3 as I,o as i,H as g,e as r,I as W,a5 as b,a2 as B}from"./index-BpfJPTKP.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const N={class:"publicContainerNoPadding"},V={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},D={class:"w-full h-full flex items-center justify-between p-3"},E={__name:"index",setup(a){const s=y(),e=k({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(t){e.fillInWork.show=t}function f(){A().then(t=>{e.role=t.response})}return v(()=>{f()}),(t,G)=>{const p=b,m=C,c=B,h=I;return i(),x("div",N,[o(p,{path:"/welcome",title:"工作安排填报"}),l("div",V,[o(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),o(h,null,{default:n(()=>[l("div",D,[e.role==1?(i(),g(c,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:_},{default:n(()=>[r(" 添加日期 ")]),_:1})):W("",!0),o(c,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:d},{default:n(()=>[r("保存")]),_:1})])]),_:1})])}}};export{E as default}; import{A as w,r as y,B as k,b as v,c as x,a as o,E as l,d as n,a4 as C,a3 as I,o as i,H as g,e as r,I as W,a5 as b,a2 as B}from"./index-C8Nk4suT.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const N={class:"publicContainerNoPadding"},V={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},D={class:"w-full h-full flex items-center justify-between p-3"},E={__name:"index",setup(a){const s=y(),e=k({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(t){e.fillInWork.show=t}function f(){A().then(t=>{e.role=t.response})}return v(()=>{f()}),(t,G)=>{const p=b,m=C,c=B,h=I;return i(),x("div",N,[o(p,{path:"/welcome",title:"工作安排填报"}),l("div",V,[o(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),o(h,null,{default:n(()=>[l("div",D,[e.role==1?(i(),g(c,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:_},{default:n(()=>[r(" 添加日期 ")]),_:1})):W("",!0),o(c,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:d},{default:n(()=>[r("保存")]),_:1})])]),_:1})])}}};export{E as default};
.aaa[data-v-07c990c3]{writing-mode:vertical-lr}.xxx[data-v-07c990c3]{z-index:99999;transform:translateZ(1001000px)}[data-v-07c990c3] .el-radio-button__original-radio:checked+.el-radio-button__inner{background-color:#fff;border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-bg-color,var(--el-color-primary))} .aaa[data-v-9fee04e0]{writing-mode:vertical-lr}.xxx[data-v-9fee04e0]{z-index:99999;transform:translateZ(1001000px)}[data-v-9fee04e0] .el-radio-button__original-radio:checked+.el-radio-button__inner{background-color:#fff;border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-bg-color,var(--el-color-primary))}
...@@ -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-BpfJPTKP.js"></script> <script type="module" crossorigin src="./assets/index-C8Nk4suT.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-TAB2wlrW.css"> <link rel="stylesheet" crossorigin href="./assets/index-DlbzLT4D.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script type="module" src="/src/main.js"></script> <script defer type="module" src="/src/main.js"></script>
</body> </body>
</html> </html>
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
{ {
"name": "site-management", "name": "一周安排",
"private": true, "private": true,
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
"axios": "1.6.7", "axios": "1.6.7",
"dayjs": "^1.11.9", "dayjs": "^1.11.9",
"element-plus": "^2.6.2", "element-plus": "^2.6.2",
"exceljs": "^4.4.0",
"file-saver": "^2.0.5",
"jquery": "^3.7.1", "jquery": "^3.7.1",
"js-cookie": "^3.0.5", "js-cookie": "^3.0.5",
"jweixin-module": "^1.6.0", "jweixin-module": "^1.6.0",
......
<template> <template>
<div class="w-full h-[46px] bg-red-600"> <div class="w-full h-[46px] ">
<van-nav-bar <van-nav-bar
:title="props.title" :title="props.title"
left-text="返回" left-text="返回"
left-arrow left-arrow
@click-left="onClickLeft" @click-left="onClickLeft"
/> >
<template #right>
<slot name="importFile"></slot>
</template>
</van-nav-bar>
</div> </div>
</template> </template>
<script setup> <script setup>
......
<template> <template>
<div class="publicContainerNoPadding "> <div class="publicContainerNoPadding ">
<childrenIndexHeader path="/welcome" title="分管填报记录查看"></childrenIndexHeader> <childrenIndexHeader path="/welcome" title="分管填报记录查看">
<template v-if="!init.switchView.show" v-slot:importFile>
<span @click="exportExcel" class="text-blue-500">导出</span>
</template>
</childrenIndexHeader>
<div class="w-full h-[50px] flex bg-white justify-between items-center p-2"> <div class="w-full h-[50px] flex bg-white justify-between items-center p-2">
<!-- <div @click="changeView($refs)"-->
<!-- class="w-24 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100 ">-->
<!-- 切换{{ init.switchView.show ? '周' : '天' }}视图-->
<!-- </div>-->
<el-radio-group @change="changeView($event,$refs)" v-model="init.switchView.show" size="mini"> <el-radio-group @change="changeView($event,$refs)" v-model="init.switchView.show" size="mini">
<el-radio-button label="天" :value="true" /> <el-radio-button label="天" :value="true" />
<el-radio-button label="周" :value="false" /> <el-radio-button label="周" :value="false" />
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
</div> </div>
<Date v-if="init.switchView.show" ref="dateDay" @searchDayData="searchDayData"/> <Date v-if="init.switchView.show" ref="dateDay" @searchDayData="searchDayData"/>
<div v-if="init.switchView.show" class="w-full h-2"></div> <div v-if="init.switchView.show" class="w-full h-2"></div>
<van-tabs v-if="!init.switchView.show"> <van-tabs v-if="!init.switchView.show">
<van-tab v-for="(item,index) in init.initWeekArray" :key="index" > <van-tab v-for="(item,index) in init.initWeekArray" :key="index" >
<template #title> <template #title>
...@@ -206,12 +205,9 @@ ...@@ -206,12 +205,9 @@
</van-button> </van-button>
</van-space> </van-space>
</div> </div>
</div> </div>
</div> </div>
<div class="w-full h-[64px] flex items-center justify-evenly"> <div class="w-full h-[64px] flex items-center justify-evenly">
<van-button round class="w-[30%]" @click="cancel">取消</van-button> <van-button round class="w-[30%]" @click="cancel">取消</van-button>
<van-button type="primary" round plain class="w-[30%]" @click="reset($refs)">重置</van-button> <van-button type="primary" round plain class="w-[30%]" @click="reset($refs)">重置</van-button>
<van-button type="primary" round class="w-[30%]" @click="search($refs)">查询</van-button> <van-button type="primary" round class="w-[30%]" @click="search($refs)">查询</van-button>
...@@ -229,10 +225,606 @@ ...@@ -229,10 +225,606 @@
</template> </template>
<script setup> <script setup>
import ExcelJS from "exceljs";
import FileSaver from "file-saver";
import dayjs from "dayjs"; import dayjs from "dayjs";
import {nextTick, onMounted, reactive, ref} from "vue"; import {onMounted, reactive, ref} from "vue";
import * as hooks from '@/hooks/index.js' import * as hooks from '@/hooks/index.js'
import * as api from '@/api/apis/controller/index.js' import * as api from '@/api/apis/controller/index.js'
// 导出excel文件
const exportExcel = () => {
function formattedDate(date) {
//格式化日期
return dayjs(date).format('M月D日')
}
// 创建工作簿
const workbook = new ExcelJS.Workbook();
// 添加工作表,名为sheet1
const sheet1 = workbook.addWorksheet("sheet1");
console.log("🚀已处理🚀🚀,",init.weekArray)
console.log("🚀未处里🚀🚀,",init.importExcelData)
// 导出数据列表
// const data1 =[
// {
// "userid": "945625543858978818",
// "usercard": "j100089",
// "username": "德容石",
// "dept_id": "f3972866-8b8e-48c3-90a9-aba75978769a",
// "dept_name": "公共基础教学部",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// },
// {
// "userid": "1130675773846323200",
// "usercard": "110010",
// "username": "测试员",
// "dept_id": "cfb95279-fd81-4031-b90e-576290dbcd9c",
// "dept_name": "教务科",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// },
// {
// "userid": "1130755931240398848",
// "usercard": "10002321",
// "username": "潘家风",
// "dept_id": "cfb95279-fd81-4031-b90e-576290dbcd9c",
// "dept_name": "教务科",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// },
// {
// "userid": "945625543858978821",
// "usercard": "j100092",
// "username": "金龙",
// "dept_id": "cfb95279-fd81-4031-b90e-576290dbcd9c",
// "dept_name": "教务科",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// },
// {
// "userid": "5",
// "usercard": "86313C0D-FB71-4625-A84D-845C18BD95FD",
// "username": "syjs130",
// "dept_id": "cfb95279-fd81-4031-b90e-576290dbcd9c",
// "dept_name": "教务科",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// },
// {
// "userid": "86313C0D-FB71-4625-A84D-845C18BD95FD",
// "usercard": "syjs130",
// "username": "吴豪",
// "dept_id": "59ee0d7b-aa07-45ed-9295-278e7ec3e4a8",
// "dept_name": "信息工程系",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// },
// {
// "userid": "59620840-DF37-4EF2-B10E-DC1910D3EE4B",
// "usercard": "syjs305",
// "username": "苏才学",
// "dept_id": "d11e97e1-464f-4748-a521-52eec8aa1b76",
// "dept_name": "学生科",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// },
// {
// "userid": "8F3ABDE2-41DB-4465-8D7D-006849DE7218",
// "usercard": "syjs371",
// "username": "徐虹",
// "dept_id": "f38463f3-8a7a-463a-a78c-19e3b14f6981",
// "dept_name": "旅游管理系",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// },
//
// {
// "userid": "1196092380025978880",
// "usercard": "36001012",
// "username": "曲龙",
// "dept_id": "f38463f3-8a7a-463a-a78c-19e3b14f6981",
// "dept_name": "旅游管理系",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// },
// {
// "userid": "07E5CE0F-C342-482E-899B-7FD377D7DBEC",
// "usercard": "syjs516",
// "username": "黎万引",
// "dept_id": "117c96a1-5c8f-4c71-8574-d45ec049db3b",
// "dept_name": "电气工程系",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// },
// {
// "userid": "6E37E17C-79AD-4801-B7C5-A7F3AE78E807",
// "usercard": "syjs524",
// "username": "周凯",
// "dept_id": "117c96a1-5c8f-4c71-8574-d45ec049db3b",
// "dept_name": "电气工程系",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// },
//
// {
// "userid": "edb66444-2dea-42fd-a5db-ba88ae71362a",
// "usercard": "test013",
// "username": "测试13号",
// "dept_id": "b22de984-75c2-4169-9479-3336292a16a8",
// "dept_name": "测试部门5",
// "attention": 0,
// "data": [
// {
// "date": "2024-04-15 00:00",
// "week": "星期一",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-16 00:00",
// "week": "星期二",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-17 00:00",
// "week": "星期三",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-18 00:00",
// "week": "星期四",
// "fore_plan": "",
// "after_plan": ""
// },
// {
// "date": "2024-04-19 00:00",
// "week": "星期五",
// "fore_plan": "",
// "after_plan": ""
// }
// ]
// }
// ]
const data1 = init.importExcelData
// 将标题写入第一行
sheet1.addRow([`中层干部周工作安排(${formattedDate(data1[0].data[0].date)+'-'+formattedDate(data1[0].data[data1[0].data.length-1].date)})`]);
sheet1.mergeCells('A1:G1')
sheet1.getColumn(1).alignment = { vertical: 'middle', horizontal: 'center' }
sheet1.getRow(1).height = 70
// 设置字体
sheet1.getRow(1).font = {
bold: true,
size: 20,
name: '黑体',
color: { argb: '#FFFFFF' }
};
// 将标题写入第二行
const headers = ['所在部门/单位','姓名',...data1[0].data.map(cur=>cur.week+`(${formattedDate(cur.date)})`)]
sheet1.addRow(headers);
sheet1.getColumn(2).alignment = { vertical: 'middle', horizontal: 'center' }
sheet1.getRow( 2).alignment = { vertical: 'middle', horizontal: 'center' }
sheet1.getRow(2).height = 70
sheet1.getRow(2).font = {
bold: true,
name: '黑体',
color: { argb: '#FFFFFF' }
};
function findDeptIndices(data) {
//获取相同部门的下标范围
let indices = [];
let currentDept = null;
for (let i = 0; i < data.length; i++) {
if (data[i].dept_name !== currentDept) {
if (indices.length > 0) {
indices[indices.length - 1].endIndex = i - 1;
}
indices.push({ dept_name: data[i].dept_name, startIndex: i });
currentDept = data[i].dept_name;
}
}
if (indices.length > 0) {
indices[indices.length - 1].endIndex = data.length - 1;
}
return indices;
}
// 得到 startIndex和endIndex
const deptIndices = findDeptIndices(data1);
deptIndices.forEach((row,index) => {
//基于部门始标和尾标数据 合并行以及指定合并后的数据
sheet1.mergeCells(`A${(2*row.startIndex)+3}:A${(2*row.endIndex)+4}`)
sheet1.getCell(`A${(2*row.startIndex)+3}:A${(2*row.endIndex)+4}`).value = row.dept_name
});
data1.forEach((row,index) => {
//基于初始化数据 合并行人员行以及指定合并后的数据
sheet1.mergeCells(`B${(2*index)+3}:B${(2*index)+4}`)
sheet1.getCell(`B${(2*index)+3}:B${(2*index)+4}`).value = row.username
let headerIndex = ['C','D','E','F','G',] // 日期列表
row.data.forEach((cu,inde)=>{
//基于该条数据的日期数据 插入对用的上下午日期
sheet1.getCell(String(headerIndex[inde])+Number((2*index)+3)).value = '上午:'+cu.fore_plan
sheet1.getCell(String(headerIndex[inde])+Number((2*index)+4)).value = '下午:'+cu.after_plan
//设置对齐方式
sheet1.getCell(String(headerIndex[inde])+Number((2*index)+3)).alignment = { vertical: 'middle', horizontal: 'left' }
sheet1.getCell(String(headerIndex[inde])+Number((2*index)+4)).alignment = { vertical: 'middle', horizontal: 'left' }
})
sheet1.getRow(index*2 + 3).height = 70
sheet1.getRow(index*2 +4).height = 70
});
let columnWidth = [1,1,1,1,1,1,1].forEach((cur,index)=>{
//设置列宽
if (index !== 1)sheet1.getColumn( index +1).width =28
else sheet1.getColumn( index +1).width =14
})
// 导出表格文件
workbook.xlsx.writeBuffer().then((buffer) => {
let file = new Blob([buffer], {type: "application/octet-stream"});
FileSaver.saveAs(file, `中层干部周工作安排(${formattedDate(data1[0].data[0].date)+'-'+formattedDate(data1[0].data[data1[0].data.length-1].date)}).xlsx`);
}).catch(error => console.log('Error writing excel export', error))
}
// 获取本周一和本周五的日期 // 获取本周一和本周五的日期
const startOfWeek = dayjs().startOf('week').add(1, 'day').format('YYYY-MM-DD'); const startOfWeek = dayjs().startOf('week').add(1, 'day').format('YYYY-MM-DD');
...@@ -258,6 +850,7 @@ const init = reactive({ ...@@ -258,6 +850,7 @@ const init = reactive({
"dept_id_list": [], "dept_id_list": [],
"tid_list": [], "tid_list": [],
}, },
importExcelData:[],
paramsWeek: { paramsWeek: {
"begin_time": startOfWeek, "begin_time": startOfWeek,
"end_time": endOfWeek, "end_time": endOfWeek,
...@@ -564,6 +1157,9 @@ function searchDayData(date) { ...@@ -564,6 +1157,9 @@ function searchDayData(date) {
function GetPlanProjectByWeekList() { function GetPlanProjectByWeekList() {
//天视图数据 //天视图数据
return api.postApiPlanProjectGetPlanProjectByWeekList(init.paramsWeek).then(res => { return api.postApiPlanProjectGetPlanProjectByWeekList(init.paramsWeek).then(res => {
//获取未处理列表数据合并表格 只用于导出列表
init.importExcelData = res.response;
let ccc = [] 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[0], res.response[0], res.response[0], res.response[1], res.response[1], res.response[1]]
let data = res.response let data = res.response
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或