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

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

上级 ccd2e6e3
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-Curk5Ibg.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-hukuK2LI.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(v){const t=m(),c=async o=>{const e=await y(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}},r=async o=>{const e=await d(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",s.response.role),await t.replace({name:"welcome"})}},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await w();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return p(()=>{i()}),(o,e)=>{const s=_;return g(),u("div",R,[l(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[f(" 登录中")]),_:1})])}}};export{A as default};
import{b as l,c as k,a as _,d as m,u as y,L as f,o as d,e as g,g as w,f as n,G as o,C as v,S as x}from"./index-Curk5Ibg.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-hukuK2LI.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){const t=y(),c=async a=>{const e=await x(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"workArrangementFilling"})}},i=async a=>{const e=await(void 0)(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},r=async()=>{({wx:async()=>{let e={token:t.currentRoute.value.query.token};const s=await w(e);if(s===void 0)await t.replace({name:"403"});else if(s.response.access_token.token_content!==""){n.set("site-management-token",s.response.access_token.token_content),n.set("time",s.response.access_token.expires);const u=await o();n.set("site-user-info",JSON.stringify(u.response));let p=t.currentRoute.value.query.id;await t.push({path:"/indexDetail",query:{id:p,pushMessage:1}})}},asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await i(e)},test:async()=>{const e=await v();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}}})[t.currentRoute.value.query.type]()};return l(()=>{r()}),(a,e)=>{const s=f;return d(),k("div",R,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[g(" 登录中")]),_:1})])}}};export{O as default};
import{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-Curk5Ibg.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-hukuK2LI.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const N={class:"publicContainerNoPadding"},V={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},D={class:"w-full h-full flex items-center justify-between p-3"},E={__name:"index",setup(a){const s=y(),e=k({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(t){e.fillInWork.show=t}function f(){A().then(t=>{e.role=t.response})}return v(()=>{f()}),(t,G)=>{const p=b,m=C,c=B,h=I;return i(),x("div",N,[o(p,{path:"/welcome",title:"工作安排填报"}),l("div",V,[o(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),o(h,null,{default:n(()=>[l("div",D,[e.role==1?(i(),g(c,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:_},{default:n(()=>[r(" 添加日期 ")]),_:1})):W("",!0),o(c,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:d},{default:n(()=>[r("保存")]),_:1})])]),_:1})])}}};export{E as default};
import{i as d,l as f,n as y,a as s,F as c,b6 as h,b7 as v,h as z}from"./index-Curk5Ibg.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,b7 as h,b8 as v,h as z}from"./index-hukuK2LI.js";const[u,A]=d("space"),w={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function m(e=[]){const a=[];return e.forEach(t=>{Array.isArray(t)?a.push(...t):t.type===c?a.push(...m(t.children)):a.push(t)}),a.filter(t=>{var i;return!(t&&(t.type===h||t.type===c&&((i=t.children)==null?void 0:i.length)===0||t.type===v&&t.children.trim()===""))})}var S=f({name:u,props:w,setup(e,{slots:a}){const t=y(()=>{var n;return(n=e.align)!=null?n:e.direction==="horizontal"?"center":""}),i=n=>typeof n=="number"?n+"px":n,g=n=>{const r={},o=`${i(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${i(Array.isArray(e.size)?e.size[1]:e.size)}`;return n?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var n;const r=m((n=a.default)==null?void 0:n.call(a));return s("div",{class:[A({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[r.map((o,l)=>s("div",{key:`item-${l}`,class:`${u}-item`,style:g(l===r.length-1)},[o]))])}}});const $=z(S);export{$ as S};
因为 它太大了无法显示 源差异 。您可以改为 查看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-Curk5Ibg.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-hukuK2LI.js";const i={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),d=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),h={__name:"index",setup(r){return a({fillInWork:{show:!1}}),t(()=>{document.title="系统配置"}),(p,u)=>{const o=l;return n(),s("div",i,[c(o,{path:"/welcome",title:"分管填报记录查看"}),_,d])}}};export{h as default};
import{i as H,af as J,m as z,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-Curk5Ibg.js";import{S as ie}from"./index-DLQoKx5Y.js";import{E as re}from"./index-CT4v83lN.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{i as H,af as J,m as z,b2 as W,as as L,l as Y,n as M,aK as q,a as u,b3 as G,b4 as Q,h as X,A as F,_ as Z,r as $,o as f,c as b,B as ee,b as te,E as o,H as A,I as se,F as V,J as B,d as x,K as ne,b5 as ae,V as g,e as E,aR as j,Y as T,a2 as oe,a3 as le}from"./index-hukuK2LI.js";import{S as ie}from"./index-BraEuVXr.js";import{E as re}from"./index-DmusXBfp.js";const[ce,U,K]=H("pagination"),D=(a,r,l)=>({number:a,text:r,active:l}),pe={mode:J("multi"),prevText:String,nextText:String,pageCount:z(0),modelValue:W(0),totalItems:z(0),showPageSize:z(5),itemsPerPage:z(10),forceEllipses:Boolean,showPrevButton:L,showNextButton:L};var de=Y({name:ce,props:pe,emits:["change","update:modelValue"],setup(a,{emit:r,slots:l}){const e=M(()=>{const{pageCount:i,totalItems:d,itemsPerPage:m}=a,_=+i||Math.ceil(+d/+m);return Math.max(1,_)}),k=M(()=>{const i=[],d=e.value,m=+a.showPageSize,{modelValue:_,forceEllipses:t}=a;let s=1,c=d;const h=m<d;h&&(s=Math.max(_-Math.floor(m/2),1),c=s+m-1,c>d&&(c=d,s=c-m+1));for(let p=s;p<=c;p++){const P=D(p,p,p===_);i.push(P)}if(h&&m>0&&t){if(s>1){const p=D(s-1,"...");i.unshift(p)}if(c<d){const p=D(c+1,"...");i.push(p)}}return i}),v=(i,d)=>{i=Q(i,1,e.value),a.modelValue!==i&&(r("update:modelValue",i),d&&r("change",i))};q(()=>v(a.modelValue));const C=()=>u("li",{class:U("page-desc")},[l.pageDesc?l.pageDesc():`${a.modelValue}/${e.value}`]),R=()=>{const{mode:i,modelValue:d,showPrevButton:m}=a;if(!m)return;const _=l["prev-text"],t=d===1;return u("li",{class:[U("item",{disabled:t,border:i==="simple",prev:!0}),G]},[u("button",{type:"button",disabled:t,onClick:()=>v(d-1,!0)},[_?_():a.prevText||K("prev")])])},I=()=>{const{mode:i,modelValue:d,showNextButton:m}=a;if(!m)return;const _=l["next-text"],t=d===e.value;return u("li",{class:[U("item",{disabled:t,border:i==="simple",next:!0}),G]},[u("button",{type:"button",disabled:t,onClick:()=>v(d+1,!0)},[_?_():a.nextText||K("next")])])},y=()=>k.value.map(i=>u("li",{class:[U("item",{active:i.active,page:!0}),G]},[u("button",{type:"button","aria-current":i.active||void 0,onClick:()=>v(i.number,!0)},[l.page?l.page(i):i.text])]));return()=>u("nav",{role:"navigation",class:U()},[u("ul",{class:U("items")},[R(),a.mode==="simple"?C():y(),I()])])}});const ue=X(de);function he(a){return F.get("/api/Common/GetDeptAllList",a)}function me(a){return F.post("/api/Common/GetRoleList",a)}function _e(a,r){const l={page_index:a.page_index,page_size:a.page_size};return F.get("/api/UserRole/GetUserRoleList",{params:l,...r})}function fe(a,r){const l={id:a.id};return F.get("/api/UserRole/GetUserRoleInfo",{params:l,...r})}function ge(a,r){const l={keyword:a.keyword,page_index:a.page_index,page_size:a.page_size};return F.get("/api/UserRole/GetUserRoleSearch",{params:l,...r})}function xe(a,r){const l={userid:a.userid};return F.get("/api/UserRole/UserRoleIns",{params:l,...r})}function ve(a,r){return F.post("/api/UserRole/UserRoleSave",a,r)}const we={class:"w-full h-[55px] page bg-white"},be={__name:"page",props:{page_index:{type:Number,default:1},page_size:{type:Number,default:10},total:{type:Number,default:0}},emits:["pageChange"],setup(a,{expose:r,emit:l}){const e=a,k=$(1);function v(C){l("pageChange",C)}return r({currentPage:k}),(C,R)=>{const I=ue;return f(),b("div",we,[u(I,{onChange:v,modelValue:k.value,"onUpdate:modelValue":R[0]||(R[0]=y=>k.value=y),"total-items":e.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},ke=Z(be,[["__scopeId","data-v-151e55c8"]]),ye={class:"publicContainerNoPadding relative"},Pe={class:"w-full h-[calc(100%-155px)] p-3 overflow-y-auto"},Fe={class:"w-[80%] h-full"},Ce={class:"w-full h-[40px] p-1 flex items-center text-[17px]"},Re={class:"w-full min-h-1/2 p-1"},Ue=["onClick"],Ie=o("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[o("span",{class:"text-5"},"人员权限添加详情")],-1),Se=o("div",{class:"w-full h-3 bg-gray-200"},null,-1),Ve={class:"w-full h-auto bg-white"},Ee={class:"w-full min-h-[110px] p-4 flex justify-between text-[17px] flex-wrap"},Ne=o("div",{class:"h-[30px] w-[15%]"},"姓名:",-1),ze={class:"h-[30px] w-[85%]"},Ae=o("div",{class:"h-[30px] w-[15%]"},"工号:",-1),Be={class:"h-[30px] w-[85%]"},Ge=o("div",{class:"h-[30px] w-[15%]"},"部门:",-1),De={class:"h-[30px] w-[85%]"},$e=o("div",{class:"h-[30px] w-[15%]"},"岗位:",-1),Le={class:"h-[30px] w-[85%]"},Me=o("div",{class:"w-full h-3"},null,-1),je={class:"w-full h-auto bg-white"},Te=o("div",{class:"w-full h-10 p-4 pb-0"},"分管权限",-1),Ke={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Oe=o("div",{class:"w-full h-3"},null,-1),He={class:"w-full h-auto bg-white"},Je=o("div",{class:"w-full h-10 p-4 pb-0"},"分管部门",-1),We={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ye=o("div",{class:"w-full h-3 bg-gray-200"},null,-1),qe={class:"w-full h-full flex justify-between items-center p-3"},et={__name:"index",setup(a){const r=$(),l=$(),e=ee({searchParams:{page_index:1,page_size:10,keyword:""},total:0,observer:"",loading:!0,comment:{dept:[],user:[],deptId:[]},check:{userroleid:"",userid:"",usercard:"",username:"",dept:"",position_name:"",dept_list:[],role_list:[]},select:{showPopup:!1},fillInWork:{show:!1},data:[],initParams:{page_index:1,page_size:10}});function k(){T(()=>ve({...e.check,role_list:e.check.role_list.map(t=>({role_name:"",role_id:t})),dept_list:e.check.dept_list.map(t=>({name:"",id:t}))}).then(t=>(t.code===1&&(l.value.search!==""?m(l.value.search,e.searchParams.page_index):(d(e.initParams.page_index),r.value.currentPage=e.initParams.page_index),e.select.showPopup=!1),t)))}function v(t){e.check.dept_list.includes(t.id)?(e.check.dept_list.forEach((s,c)=>{s===t.id&&e.check.dept_list.splice(c,1)}),e.comment.dept.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")}),e.comment.deptId.forEach((s,c)=>{s===t.id&&e.comment.deptId.splice(c,1)})):(e.check.dept_list.push(t.id),e.comment.deptId.push(t.id),e.comment.dept.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")}))}function C(t){e.check.role_list.includes(t.id)?(e.check.role_list.forEach((s,c)=>{s===t.id&&e.check.role_list.splice(c,1,"")}),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")})):(e.check.role_list.push(t.id),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.role_list)}function R(){me().then(t=>{e.comment.user=t.response.map(s=>({...s,bg:"",cl:""}))})}function I(){he().then(t=>{e.comment.dept=t.response.map(s=>({...s,bg:"",cl:""}))})}function y(){return _e(e.initParams).then(t=>{e.data=t.response.data.map(s=>({...s})),e.total=t.response.data_count})}function i(t){l.value.search===""?(e.initParams.page_index=t,y()):(e.searchParams.page_index=t,m(l.value.search,t))}function d(t=""){l.value.search="",e.initParams={page_index:t||1,page_size:10},r.value.currentPage=1,y()}function m(t,s=1){l.value.search!==""&&(e.initParams.page_index!==1&&(r.value.currentPage=1,e.initParams.page_index=1),ge({...e.searchParams,keyword:t,page_index:s}).then(c=>{e.data=c.response.data.map(h=>({...h})),e.total=c.response.data_count}))}function _(t,s){let c={0:()=>{T(()=>xe({userid:s.userid}).then(h=>(h.code===1&&c[1](h.response),h)))},1:h=>{fe({id:s.userroleid||h}).then(p=>{let P=[],S=[];p.response.dept_list.map((n,w)=>{P.push(n.id)}),p.response.role_list.map((n,w)=>{S.push(n.role_id)}),e.comment.dept.map((n,w)=>(P.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),e.comment.user.map((n,w)=>(S.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),p.response.dept_list=P,p.response.role_list=S,e.check=p.response,p.code===1&&(e.select.showPopup=!0),console.log("🚀🚀🚀,",e.comment,p.response)})}};c[String(t)]()}return te(()=>{y(),R(),I()}),(t,s)=>{const c=re,h=oe,p=ie,P=le,S=ne;return f(),b(V,null,[o("div",ye,[u(ae,{class:"sticky top-0",title:"人员授权列表",ref_key:"headerInput",ref:l,onSearchFun:m,onReset:d,path:"/welcome"},null,512),o("div",Pe,[e.data.length===[]?(f(),A(c,{key:0,description:"暂无授权名单,请通过搜索添加"})):se("",!0),(f(!0),b(V,null,B(e.data,(n,w)=>(f(),b("div",{key:w,class:"w-full min-h-[90px] flex rounded-[10px] p-2 bg-white mb-3"},[o("div",Fe,[o("div",Ce,g(n.username)+" ("+g(n.usercard)+") ",1),o("div",Re,[(f(!0),b(V,null,B(n.dept_list,(N,O)=>(f(),A(h,{style:{padding:"6px",margin:"5px 5px 5px 0",color:"#1989f9","border-color":"#1989f9"},key:O,plain:"",hairline:"",size:"small",type:"primary"},{default:x(()=>[E(g(N.name),1)]),_:2},1024))),128))])]),o("div",{onClick:N=>_(+(n.userroleid!==null),n),class:"w-[20%] flex justify-center items-center text-[#1989f9]"},g(["添加","编辑"][+(n.userroleid!==null)]),9,Ue)]))),128))]),u(ke,{class:"absolute bottom-0",ref_key:"pageRef",ref:r,total:e.total,onPageChange:i},null,8,["total"])]),u(S,{show:e.select.showPopup,height:80,onActionPopUp:s[1]||(s[1]=()=>e.select.showPopup=!1)},{content:x(()=>[Ie,Se,(f(),b("div",{class:"w-full h-[calc(100%-121px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[o("div",Ve,[o("div",Ee,[Ne,o("div",ze,g(e.check.username),1),Ae,o("div",Be,g(e.check.usercard),1),Ge,o("div",De,g(e.check.dept),1),$e,o("div",Le,g(e.check.position_name),1)])]),Me,o("div",je,[Te,o("div",Ke,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.user,(n,w)=>(f(),A(h,{onClick:N=>C(n),style:j({margin:"5px",padding:"15px !important",borderColor:"#1989f9",height:"30px",background:n.bg,color:n.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(g(n.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])]),Oe,o("div",He,[Je,o("div",We,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.dept,(n,w)=>(f(),A(h,{onClick:N=>v(n),key:w,style:j({borderColor:"#1989f9",margin:"5px",padding:"15px !important",height:"30px",background:n.bg,color:n.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(g(n.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Ye])),u(P,null,{default:x(()=>[o("div",qe,[u(h,{round:"",class:"w-[30%]",onClick:s[0]||(s[0]=n=>e.select.showPopup=!1)},{default:x(()=>[E("取消")]),_:1}),u(h,{type:"primary",round:"",class:"w-[64%]",onClick:k},{default:x(()=>[E("确定")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}};export{et as default};
import{c as r,a as e,F as c,u as s,o as _,w as m,N as i}from"./index-Curk5Ibg.js";import{E as l}from"./index-CT4v83lN.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-hukuK2LI.js";import{E as l}from"./index-DmusXBfp.js";const k={__name:"index",setup(p){const t=s(),a=()=>t.back();return(u,f)=>{const n=i,o=l;return _(),r(c,null,[e(n,{"left-text":"返回","left-arrow":"",onClickLeft:a}),e(o,{image:m,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{k as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{i as v,l as w,at as G,a as e,b5 as k,af as M,h as B}from"./index-Curk5Ibg.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,b6 as k,af as M,h as B}from"./index-hukuK2LI.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var b=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),t=r=>`${f}-${r}`,l=r=>`url(#${t(r)})`,i=(r,d,D)=>e("stop",{"stop-color":r,offset:`${d}%`,"stop-opacity":D},null),n=(r,d)=>[i(r,0),i(d,100)],x=r=>[e("defs",null,[e("radialGradient",{id:t(r),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:l(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:t("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:l("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:l("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:t("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:l("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:l("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:t(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:t(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:t(3),x1:"100%",x2:"100%",y2:"100%"},[n("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:t(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:l(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:l(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:l(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:l(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:l(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:l(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:t(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:t(7)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:l(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:l(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:l(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(8)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),x("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:l(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:t(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:t(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:l(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:l(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:l(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:l(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:l(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var r;if(a.image)return a.image();const d={error:g,search:p,network:y,default:E};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const A=B(b);export{A as E};
import{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-Curk5Ibg.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-hukuK2LI.js";const U=R(X),[Pe]=Z("time-picker"),L=s=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(s),Me=["hour","minute","second"],$e=ee({},te,{minHour:y(0),maxHour:y(23),minMinute:y(0),maxMinute:y(59),minSecond:y(0),maxSecond:y(59),minTime:{type:String,validator:L},maxTime:{type:String,validator:L},columnsType:{type:Array,default:()=>["hour","minute"]},filter:Function});var Oe=ne({name:Pe,props:$e,emits:["confirm","cancel","change","update:modelValue"],setup(s,{emit:p,slots:e}){const d=se(s.modelValue),$=i=>{const f=i.split(":");return Me.map((h,x)=>s.columnsType.includes(h)?f[x]:"00")},S=ie(()=>{let{minHour:i,maxHour:f,minMinute:h,maxMinute:x,minSecond:b,maxSecond:P}=s;if(s.minTime||s.maxTime){const c={hour:0,minute:0,second:0};s.columnsType.forEach((_,g)=>{var w;c[_]=(w=d.value[g])!=null?w:0});const{hour:t,minute:n}=c;if(s.minTime){const[_,g,w]=$(s.minTime);i=_,h=+t<=+i?g:"00",b=+t<=+i&&+n<=+h?w:"00"}if(s.maxTime){const[_,g,w]=$(s.maxTime);f=_,x=+t>=+f?g:"59",P=+t>=+f&&+n>=+x?w:"59"}}return s.columnsType.map(c=>{const{filter:t,formatter:n}=s;switch(c){case"hour":return N(+i,+f,c,n,t,d.value);case"minute":return N(+h,+x,c,n,t,d.value);case"second":return N(+b,+P,c,n,t,d.value);default:return[]}})});D(d,i=>{G(i,s.modelValue)||p("update:modelValue",i)}),D(()=>s.modelValue,i=>{i=ae(i,S.value),G(i,d.value)||(d.value=i)},{immediate:!0});const j=(...i)=>p("change",...i),B=(...i)=>p("cancel",...i),F=(...i)=>p("confirm",...i);return()=>r(U,re({modelValue:d.value,"onUpdate:modelValue":i=>d.value=i,columns:S.value,onChange:j,onCancel:B,onConfirm:F},oe(s,le)),e)}});const Ve=R(Oe);function je(s){return M.get("/api/Collect/GetCollectList",s)}function Be(s){return M.get("/api/Common/GetMenuRole",s)}function Fe(s){return M.get("/api/PlanProject/GetPlanProjectByMyList",s)}function Ne(s){return M.get("/api/SysConfig/SysConfigInit",s)}function Ae(s,p){return M.post("/api/SysConfig/SysConfigSave",s,p)}const Ie={class:"publicContainer"},Ke={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},We={key:1,class:"w-full h-[25px] text-[18px] text-[#646566] flex items-center mb-1"},De=["src"],Ge=a("div",{class:"w-full h-[10px]"},null,-1),Ye=["src"],He=["src"],Le=["src"],Re=a("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[a("span",{class:"text-5 text-[#8D8D8D]"},"填报配置")],-1),Ue=a("div",{class:"w-full h-3"},null,-1),Ee=a("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),ze={class:"w-full h-full flex justify-end flex-wrap"},qe=a("div",{class:"w-full h-full"},"重复提醒时间",-1),Je={class:"w-full h-full flex overflow-x-auto"},Qe={class:"text-blue-500"},Xe=["onClick"],Ze=a("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),et={class:"w-full h-full flex justify-end"},st={__name:"index",setup(s,{expose:p}){const e=me({getWeekOrTimeKey:"",columns:[{text:"星期一",value:"星期一"},{text:"星期二",value:"星期二"},{text:"星期三",value:"星期三"},{text:"星期四",value:"星期四"},{text:"星期五",value:"星期五"},{text:"星期六",value:"星期六"},{text:"星期日",value:"星期日"}],loading:!1,search:{date:""},select:{weekShow:!1,timeShow:!1,showPopup:!1},paramsTransfers:{configid:"1",date:[],semester_date_begin:"2024-01-02",semester_date_end:"2024-06-03",period_remind_time:"",period_remind_week:"",nowrite_remind_isCheck:"",nowrite_remind_time:[],ahead_write:"",write_remind_week:"",write_remind_time:""},params:{configid:"",semester_date_begin:"",semester_date_end:"",period_remind:"",nowrite_remind:"",ahead_write:"",write_remind:""},date:{show:!1},role:{plan_write:"0",examine:"0",userrole:"0",write_sysconfig:"0"},data:{mySchedule:{},myFocus:[]}});function d(t){e.paramsTransfers.semester_date_begin=H(t[0]).format("YYYY/MM/DD"),e.paramsTransfers.semester_date_end=H(t[1]).format("YYYY/MM/DD"),e.date.show=!1}function $(){Fe().then(t=>{t.response?e.data.mySchedule=t.response:e.data.mySchedule={}})}function S(){je().then(t=>{e.data.myFocus=t.response})}function j(){Be().then(t=>{e.role=t.response})}function B(){ye(()=>Ae({configid:e.paramsTransfers.configid,semester_date_begin:e.paramsTransfers.semester_date_begin,semester_date_end:e.paramsTransfers.semester_date_end,period_remind:e.paramsTransfers.period_remind_week+"|"+e.paramsTransfers.period_remind_time,nowrite_remind:String(Number(e.paramsTransfers.nowrite_remind_isCheck))+String(String(e.paramsTransfers.nowrite_remind_time.map(t=>"|"+t)).split(",").join("")),ahead_write:String(Number(e.paramsTransfers.ahead_write)),write_remind:e.paramsTransfers.write_remind_week+"|"+e.paramsTransfers.write_remind_time}).then(t=>(t.code===1&&c(),t)))}function F(){e.select.showPopup=!1}function i(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function f(t){e.paramsTransfers.nowrite_remind_time.splice(t,1)}function h({selectedValues:t,selectedOptions:n,selectedIndexes:_}){e.getWeekOrTimeKey==="nowrite_remind_time"?e.paramsTransfers[e.getWeekOrTimeKey].push(t[0]+":"+t[1]):e.paramsTransfers[e.getWeekOrTimeKey]=t[0]+":"+t[1],e.select.timeShow=!1}function x({selectedValues:t,selectedOptions:n,selectedIndexes:_}){e.paramsTransfers[e.getWeekOrTimeKey]=t[0],e.select.weekShow=!1}function b(t){e.select.weekShow=!0,e.getWeekOrTimeKey=t}function P(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function c(){e.select.showPopup=!0,e.loading=!0,Ne().then(t=>{e.paramsTransfers={configid:t.response.configid,date:[],semester_date_begin:t.response.semester_date_begin.split(" ")[0],semester_date_end:t.response.semester_date_end.split(" ")[0],period_remind_time:t.response.period_remind.split("|")[1],period_remind_week:t.response.period_remind.split("|")[0],nowrite_remind_isCheck:!!Number(t.response.nowrite_remind.split("|")[0]),nowrite_remind_time:t.response.nowrite_remind.split("|").filter(n=>n!=0&&n!=1&&Number(n)!=0&&Number(n)!=1),ahead_write:!!Number(t.response.ahead_write),write_remind_week:t.response.write_remind.split("|")[0],write_remind_time:t.response.write_remind.split("|")[1]}}).finally(()=>{e.loading=!1})}return de(()=>{$(),S(),j()}),p({GetCollectList:S}),(t,n)=>{const _=ke,g=ue,w=ve,u=_e,E=Te,K=ce("el-switch"),z=Ce,W=Se,q=be,J=Ve,Q=U;return m(),k(A,null,[a("div",Ie,[r(_),a("div",Ke,[Object.keys(e.data.mySchedule).length?(m(),v(g,{key:0,data:e.data.mySchedule},null,8,["data"])):T("",!0),e.data.myFocus.length?(m(),k("div",We," 我的关注 ")):T("",!0),(m(!0),k(A,null,Y(e.data.myFocus,(o,O)=>(m(),v(w,{attentionButtonIdentifier:"index",key:O,alldayOrMidafternoonStatus:!!Number(o.is_allday),data:o},null,8,["alldayOrMidafternoonStatus","data"]))),128)),e.role.plan_write==1?(m(),v(u,{key:2,class:"rounded-[8px] mt-[10px] h-[50px] text-[17px] flex items-center",title:"工作安排填报","is-link":"",to:"/workArrangementFilling"},{icon:l(()=>[a("img",{src:pe,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,De)]),_:1})):T("",!0),Ge,e.role.examine==1?(m(),v(u,{key:3,class:"rounded-t-[8px] h-[50px] text-[17px] flex items-center",title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"},{icon:l(()=>[a("img",{src:fe,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,Ye)]),_:1})):T("",!0),e.role.userrole==1?(m(),v(u,{key:4,class:"h-[50px] flex text-[17px] items-center",title:"人员授权","is-link":"",to:"/personnelAuthority"},{icon:l(()=>[a("img",{src:we,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,He)]),_:1})):T("",!0),e.role.write_sysconfig==1?(m(),v(u,{key:5,class:"rounded-b-[8px] text-[17px] h-[50px] flex items-center",onClick:c,title:"填报配置","is-link":""},{icon:l(()=>[a("img",{src:he,style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,Le)]),_:1})):T("",!0)])]),r(I,{show:e.select.showPopup,height:60,onActionPopUp:n[9]||(n[9]=()=>e.select.showPopup=!1)},{content:l(()=>[(m(),k("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative overflow-y-auto",key:e.calendarKey},[r(xe,{show:e.loading},null,8,["show"]),Re,Ue,r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"学期范围",onClick:n[0]||(n[0]=o=>e.date.show=!0)},{default:l(()=>[a("span",null,C(e.paramsTransfers.semester_date_begin+" - "+e.paramsTransfers.semester_date_end),1)]),_:1}),r(E,{type:"range",show:e.date.show,"onUpdate:show":n[1]||(n[1]=o=>e.date.show=o),onConfirm:d},null,8,["show"]),r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报刷新周期"},{value:l(()=>[V(" 每周"),a("span",{class:"text-blue-500 mr-2",onClick:n[2]||(n[2]=o=>b("period_remind_week"))},"["+C(e.paramsTransfers.period_remind_week)+"]",1),a("span",{onClick:n[3]||(n[3]=o=>P("period_remind_time")),class:"text-blue-500"},"["+C(e.paramsTransfers.period_remind_time)+"]",1)]),_:1}),Ee,r(u,{inset:"",title:"未填写提醒",class:"w-full h-[45px] bg-white flex items-center"},{value:l(()=>[a("div",ze,[r(K,{modelValue:e.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":n[4]||(n[4]=o=>e.paramsTransfers.nowrite_remind_isCheck=o),size:"large","inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),r(u,{onClick:n[5]||(n[5]=o=>i("nowrite_remind_time")),"is-link":"",class:"w-full h-[45px] bg-white flex items-center"},{title:l(()=>[qe]),value:l(()=>[a("div",Je,[(m(!0),k(A,null,Y(e.paramsTransfers.nowrite_remind_time,(o,O)=>(m(),k("div",{class:"w-20 flex justify-start items-center m-1",key:O},[a("span",Qe,"["+C(o)+"]",1),a("div",{onClick:ge(tt=>f(O),["stop"]),class:"ml-2 w-[15px] h-[15px] ccFlex text-blue-500"},[r(z,{class:"text-red-600",name:"cross"})],8,Xe)]))),128))])]),_:1}),Ze,r(u,{inset:"",title:"提前填写",class:"w-full h-[45px] bg-white flex items-center"},{default:l(()=>[a("div",et,[r(K,{modelValue:e.paramsTransfers.ahead_write,"onUpdate:modelValue":n[6]||(n[6]=o=>e.paramsTransfers.ahead_write=o),size:"large","inline-prompt":"","active-text":"允许","inactive-text":"关闭"},null,8,["modelValue"])])]),_:1}),r(u,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报情况提醒"},{value:l(()=>[V(" 每周"),a("span",{class:"text-blue-500 mr-2",onClick:n[7]||(n[7]=o=>b("write_remind_week"))},"["+C(e.paramsTransfers.write_remind_week)+"]",1),a("span",{onClick:n[8]||(n[8]=o=>P("write_remind_time")),class:"text-blue-500"},"["+C(e.paramsTransfers.write_remind_time)+"]",1)]),_:1})])),r(q,null,{default:l(()=>[r(W,{round:"",class:"w-[32%]",onClick:F},{default:l(()=>[V("关闭")]),_:1}),r(W,{type:"primary",round:"",class:"w-[60%]",onClick:B},{default:l(()=>[V("保存")]),_:1})]),_:1})]),_:1},8,["show"]),r(I,{show:e.select.timeShow,height:60,close:!1},{content:l(()=>[r(J,{onConfirm:h,onCancel:n[10]||(n[10]=o=>e.select.timeShow=!1),title:"选择时间"})]),_:1},8,["show"]),r(I,{show:e.select.weekShow,height:60,close:!1},{content:l(()=>[r(Q,{title:"请选择日期",columns:e.columns,onConfirm:x,onCancel:n[11]||(n[11]=o=>e.select.weekShow=!1)},null,8,["columns"])]),_:1},8,["show"])],64)}}};export{st as default};
.aaa[data-v-6a9b6b4a]{writing-mode:vertical-lr}.xxx[data-v-6a9b6b4a]{z-index:99999;transform:translateZ(1001000px)}[data-v-6a9b6b4a] .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-97360cea]{writing-mode:vertical-lr}.xxx[data-v-97360cea]{z-index:99999;transform:translateZ(1001000px)}[data-v-97360cea] .el-radio-button__original-radio:checked+.el-radio-button__inner{background-color:#fff;border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-bg-color,var(--el-color-primary))}
import{_ as e}from"./index-Curk5Ibg.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{_ as e}from"./index-hukuK2LI.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
......@@ -6,7 +6,7 @@
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title></title>
<script type="module" crossorigin src="./assets/index-Curk5Ibg.js"></script>
<script type="module" crossorigin src="./assets/index-hukuK2LI.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-DlbzLT4D.css">
</head>
<body>
......
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
......@@ -11,6 +11,7 @@
"dependencies": {
"animate.css": "^4.1.1",
"axios": "1.6.7",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.9",
"element-plus": "^2.6.2",
"exceljs": "^4.4.0",
......
import CryptoJS from 'crypto-js'
// ------------AES-------------
function getAesString(data, key, iv) {
//加密
let keys = CryptoJS.enc.Utf8.parse(key)
let vis = CryptoJS.enc.Utf8.parse(iv)
let encrypt = CryptoJS.AES.encrypt(data, keys, {
iv: vis, //iv偏移量 CBC需加偏移量
mode: CryptoJS.mode.CBC, //CBC模式
// mode: CryptoJS.mode.ECB, //ECB模式
padding: CryptoJS.pad.Pkcs7 //padding处理
});
// debugger
return encrypt.toString(); //加密完成后,转换成字符串
}
function getDAesString(encrypted, key, iv) { // 解密
var key = CryptoJS.enc.Utf8.parse(key);
var iv = CryptoJS.enc.Utf8.parse(iv);
var decrypted = CryptoJS.AES.decrypt(encrypted, key, {
iv: iv,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
});
return decrypted.toString(CryptoJS.enc.Utf8);
}
// AES 对称秘钥加密
const aes = {
en: (data, key) => getAesString(data, key.key, key.iv),
de: (data, key) => getDAesString(data, key.key, key.iv)
};
// BASE64
const base64 = {
en: (data) => CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data)),
de: (data) => CryptoJS.enc.Base64.parse(data).toString(CryptoJS.enc.Utf8)
};
// SHA256
const sha256 = (data) => {
return CryptoJS.SHA256(data).toString();
};
// MD5
const md5 = (data) => {
return CryptoJS.MD5(data).toString();
};
export {aes, md5, sha256, base64};
......@@ -2,7 +2,7 @@
<div class="publicContainerNoPadding ">
<childrenIndexHeader path="/welcome" title="分管填报记录查看">
<template v-if="!init.switchView.show" v-slot:importFile>
<span @click="exportExcel" class="text-blue-500">导出</span>
<span @click="exportExcel(init.importExcelData)" class="text-blue-500">导出</span>
</template>
</childrenIndexHeader>
<div class="w-full h-[50px] flex bg-white justify-between items-center p-2">
......@@ -225,6 +225,7 @@
</template>
<script setup>
import * as crypto from '@/crypto/index.js'
import ExcelJS from "exceljs";
import FileSaver from "file-saver";
import dayjs from "dayjs";
......@@ -232,7 +233,7 @@ import {onMounted, reactive, ref} from "vue";
import * as hooks from '@/hooks/index.js'
import * as api from '@/api/apis/controller/index.js'
// 导出excel文件
const exportExcel = () => {
const exportExcel = (fileData) => {
function formattedDate(date) {
//格式化日期
return dayjs(date).format('M月D日')
......@@ -247,493 +248,9 @@ const exportExcel = () => {
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
const data1 = fileData
// 将标题写入第一行
sheet1.addRow([`中层干部周工作安排(${formattedDate(data1[0].data[0].date)+'-'+formattedDate(data1[0].data[data1[0].data.length-1].date)})`]);
......@@ -820,23 +337,33 @@ const exportExcel = () => {
// 导出表格文件
workbook.xlsx.writeBuffer().then((buffer) => {
let file = new Blob([buffer], {type: "application/octet-stream"});
if(isWeixin()){
window.localStorage.setItem('fileData',crypto.base64.en(JSON.stringify(init.initWeekArray)))
}
const downloadElement = document.createElement('a');
const href = window.URL.createObjectURL(file); //创建下载的链接
console.log("🚀🚀href🚀,",href)
downloadElement.href = href;
let file = new Blob([buffer], {type: "application/octet-stream"});
// const downloadElement = document.createElement('a');
// const href = window.URL.createObjectURL(file); //创建下载的链接
// downloadElement.href = href;
// downloadElement.download = `统计导出${dayjs().format('YYYY-MM-DD')}.xls`; //下载后文件名,根据实际情况修改 建议 日期 + 文件名
document.body.appendChild(downloadElement); //元素加入body
downloadElement.click(); //模拟点击下载
window.location.href = href
document.body.removeChild(downloadElement); //下载完成移除body中元素
window.URL.revokeObjectURL(href); //释放掉blob对象
// document.body.appendChild(downloadElement); //元素加入body
// downloadElement.click(); //模拟点击下载
// document.body.removeChild(downloadElement); //下载完成移除body中元素
// window.URL.revokeObjectURL(href); //释放掉blob对象
// FileSaver.saveAs(file, `中层干部周工作安排(${formattedDate(data1[0].data[0].date)+'-'+formattedDate(data1[0].data[data1[0].data.length-1].date)}).xlsx`);
FileSaver.saveAs(file, `中层干部周工作安排(${formattedDate(data1[0].data[0].date)+'-'+formattedDate(data1[0].data[data1[0].data.length-1].date)}).xlsx`);
}).catch(error => console.log('Error writing excel export', error))
}
function isWeixin () {
var ua = window.navigator.userAgent.toLowerCase()
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
return true
} else {
return false
}
}
// 获取本周一和本周五的日期
const startOfWeek = dayjs().startOf('week').add(1, 'day').format('YYYY-MM-DD');
......@@ -1388,7 +915,10 @@ function tabsChange(e,item) {
console.log("🚀🚀🚀,",e,item)
}
onMounted(async () => {
if (!isWeixin() && window.localStorage.getItem('fileData')) {
exportExcel(JSON.parse(crypto.base64.de(window.localStorage.getItem('fileData'))))
window.localStorage.removeItem('fileData')
}
GetUserList()
GetPlanProjectByDayList()
await GetDeptList()
......@@ -1403,6 +933,8 @@ onMounted(async () => {
})
}) //初始化后 分离出tabs数组
})
defineExpose({
init,
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或