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

V20240320 保存

上级 50732a77
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-DE9mkwar.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-xGd5Trjm.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-DE9mkwar.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-xGd5Trjm.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{P as w,r as k,Q as v,b as x,c as C,a as t,R as r,d as n,a7 as g,a6 as y,o as l,T as I,e as i,U as W,a8 as B,a5 as N}from"./index-DE9mkwar.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const V={class:"publicContainerNoPadding"},b=r("div",{class:"w-full h-[10px]"},null,-1),D={class:"w-full h-[calc(100%-120px)] p-2 overflow-y-auto"},R={__name:"index",setup(a){const s=k(),e=v({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(o){e.fillInWork.show=o}function f(){A().then(o=>{e.role=o.response})}return x(()=>{f()}),(o,G)=>{const p=B,m=g,c=N,h=y;return l(),C("div",V,[t(p,{path:"/welcome",title:"填报工作安排"}),b,r("div",D,[t(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),t(h,null,{default:n(()=>[e.role==1?(l(),I(c,{key:0,type:"primary",round:"",class:"w-[120px]",onClick:_},{default:n(()=>[i("添加日期 ")]),_:1})):W("",!0),t(c,{type:"success",round:"",class:"w-[120px]",onClick:d},{default:n(()=>[i("保存")]),_:1})]),_:1})])}}};export{R as default}; import{P as w,r as k,Q as v,b as x,c as C,a as t,R as r,d as n,a7 as g,a6 as y,o as l,T as I,e as i,U as W,a8 as B,a5 as N}from"./index-xGd5Trjm.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const V={class:"publicContainerNoPadding"},b=r("div",{class:"w-full h-[10px]"},null,-1),D={class:"w-full h-[calc(100%-120px)] p-2 overflow-y-auto"},R={__name:"index",setup(a){const s=k(),e=v({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(o){e.fillInWork.show=o}function f(){A().then(o=>{e.role=o.response})}return x(()=>{f()}),(o,G)=>{const p=B,m=g,c=N,h=y;return l(),C("div",V,[t(p,{path:"/welcome",title:"填报工作安排"}),b,r("div",D,[t(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),t(h,null,{default:n(()=>[e.role==1?(l(),I(c,{key:0,type:"primary",round:"",class:"w-[120px]",onClick:_},{default:n(()=>[i("添加日期 ")]),_:1})):W("",!0),t(c,{type:"success",round:"",class:"w-[120px]",onClick:d},{default:n(()=>[i("保存")]),_:1})]),_:1})])}}};export{R as default};
import{q as d,j as f,l as y,a as s,F as c,am as h,an as v,h as z}from"./index-DE9mkwar.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 n=[];return e.forEach(t=>{Array.isArray(t)?n.push(...t):t.type===c?n.push(...m(t.children)):n.push(t)}),n.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:n}){const t=y(()=>{var a;return(a=e.align)!=null?a:e.direction==="horizontal"?"center":""}),i=a=>typeof a=="number"?a+"px":a,g=a=>{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 a?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var a;const r=m((a=n.default)==null?void 0:a.call(n));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 B=z(S);export{B as S}; import{q as d,j as f,l as y,a as s,F as c,am as h,an as v,h as z}from"./index-xGd5Trjm.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 n=[];return e.forEach(t=>{Array.isArray(t)?n.push(...t):t.type===c?n.push(...m(t.children)):n.push(t)}),n.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:n}){const t=y(()=>{var a;return(a=e.align)!=null?a:e.direction==="horizontal"?"center":""}),i=a=>typeof a=="number"?a+"px":a,g=a=>{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 a?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var a;const r=m((a=n.default)==null?void 0:a.call(n));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 B=z(S);export{B as S};
import{q,j as H,l as L,af as K,a as u,D as Q,H as E,ag as Z,t as M,ah as D,ai as J,h as X,P as F,_ as Y,r as $,o as f,c as b,Q as ee,b as te,R as i,T as A,U as se,F as V,V as B,d as x,W as ae,aj as ne,Z as g,e as N,a9 as j,a0 as T,a5 as oe,a6 as le}from"./index-DE9mkwar.js";import{S as ie}from"./index-DxN5vYZy.js";import{E as re}from"./index-CdMS_H06.js";const[ce,U,O]=q("pagination"),G=(n,r,o)=>({number:n,text:r,active:o}),pe={mode:Q("multi"),prevText:String,nextText:String,pageCount:E(0),modelValue:Z(0),totalItems:E(0),showPageSize:E(5),itemsPerPage:E(10),forceEllipses:Boolean,showPrevButton:M,showNextButton:M};var de=H({name:ce,props:pe,emits:["change","update:modelValue"],setup(n,{emit:r,slots:o}){const e=L(()=>{const{pageCount:l,totalItems:d,itemsPerPage:_}=n,h=+l||Math.ceil(+d/+_);return Math.max(1,h)}),k=L(()=>{const l=[],d=e.value,_=+n.showPageSize,{modelValue:h,forceEllipses:t}=n;let s=1,c=d;const m=_<d;m&&(s=Math.max(h-Math.floor(_/2),1),c=s+_-1,c>d&&(c=d,s=c-_+1));for(let p=s;p<=c;p++){const y=G(p,p,p===h);l.push(y)}if(m&&_>0&&t){if(s>1){const p=G(s-1,"...");l.unshift(p)}if(c<d){const p=G(c+1,"...");l.push(p)}}return l}),v=(l,d)=>{l=J(l,1,e.value),n.modelValue!==l&&(r("update:modelValue",l),d&&r("change",l))};K(()=>v(n.modelValue));const R=()=>u("li",{class:U("page-desc")},[o.pageDesc?o.pageDesc():`${n.modelValue}/${e.value}`]),C=()=>{const{mode:l,modelValue:d,showPrevButton:_}=n;if(!_)return;const h=o["prev-text"],t=d===1;return u("li",{class:[U("item",{disabled:t,border:l==="simple",prev:!0}),D]},[u("button",{type:"button",disabled:t,onClick:()=>v(d-1,!0)},[h?h():n.prevText||O("prev")])])},I=()=>{const{mode:l,modelValue:d,showNextButton:_}=n;if(!_)return;const h=o["next-text"],t=d===e.value;return u("li",{class:[U("item",{disabled:t,border:l==="simple",next:!0}),D]},[u("button",{type:"button",disabled:t,onClick:()=>v(d+1,!0)},[h?h():n.nextText||O("next")])])},P=()=>k.value.map(l=>u("li",{class:[U("item",{active:l.active,page:!0}),D]},[u("button",{type:"button","aria-current":l.active||void 0,onClick:()=>v(l.number,!0)},[o.page?o.page(l):l.text])]));return()=>u("nav",{role:"navigation",class:U()},[u("ul",{class:U("items")},[C(),n.mode==="simple"?R():P(),I()])])}});const ue=X(de);function me(n){return F.get("/api/Common/GetDeptAllList",n)}function _e(n){return F.post("/api/Common/GetRoleList",n)}function he(n,r){const o={page_index:n.page_index,page_size:n.page_size};return F.get("/api/UserRole/GetUserRoleList",{params:o,...r})}function fe(n,r){const o={id:n.id};return F.get("/api/UserRole/GetUserRoleInfo",{params:o,...r})}function ge(n,r){const o={keyword:n.keyword,page_index:n.page_index,page_size:n.page_size};return F.get("/api/UserRole/GetUserRoleSearch",{params:o,...r})}function xe(n,r){const o={userid:n.userid};return F.get("/api/UserRole/UserRoleIns",{params:o,...r})}function ve(n,r){return F.post("/api/UserRole/UserRoleSave",n,r)}const we={class:"w-full h-[55px] page"},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:o}){const e=n,k=$(1);function v(R){o("pageChange",R)}return r({currentPage:k}),(R,C)=>{const I=ue;return f(),b("div",we,[u(I,{onChange:v,modelValue:k.value,"onUpdate:modelValue":C[0]||(C[0]=P=>k.value=P),"total-items":e.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},ke=Y(be,[["__scopeId","data-v-54a6d0b5"]]),Pe={class:"publicContainerNoPadding"},ye={class:"w-full h-[calc(100%-111px)] p-3 overflow-y-auto"},Fe={class:"w-[80%] h-full"},Re={class:"w-full h-[40px] p-1 flex items-center"},Ce={class:"w-full min-h-1/2 p-1"},Ue=["onClick"],Ie={class:"w-full h-auto bg-white"},Se={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ve=i("div",{class:"h-[30px] w-[20%]"},"姓名:",-1),Ne={class:"h-[30px] w-[80%]"},ze=i("div",{class:"h-[30px] w-[20%]"},"工号:",-1),Ee={class:"h-[30px] w-[80%]"},Ae=i("div",{class:"h-[30px] w-[20%]"},"部门:",-1),Be={class:"h-[30px] w-[80%]"},De=i("div",{class:"h-[30px] w-[20%]"},"岗位:",-1),Ge={class:"h-[30px] w-[80%]"},$e=i("div",{class:"w-full h-3"},null,-1),Le={class:"w-full h-auto bg-white"},Me=i("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"操作权限",-1),je={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Te=i("div",{class:"w-full h-3"},null,-1),Oe={class:"w-full h-auto bg-white"},We=i("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),qe={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ze={__name:"index",setup(n){const r=$(),o=$(),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&&(o.value.search!==""?_(o.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 R(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 C(){_e().then(t=>{e.comment.user=t.response.map(s=>({...s,bg:"",cl:""}))})}function I(){me().then(t=>{e.comment.dept=t.response.map(s=>({...s,bg:"",cl:""}))})}function P(){return he(e.initParams).then(t=>{e.data=t.response.data.map(s=>({...s})),e.total=t.response.data_count})}function l(t){o.value.search===""?(e.initParams.page_index=t,P()):(e.searchParams.page_index=t,_(o.value.search,t))}function d(t=""){o.value.search="",e.initParams={page_index:t||1,page_size:10},r.value.currentPage=1,P()}function _(t,s=1){o.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(m=>({...m})),e.total=c.response.data_count}))}function h(t,s){let c={0:()=>{T(()=>xe({userid:s.userid}).then(m=>(m.code===1&&c[1](m.response),m)))},1:m=>{fe({id:s.userroleid||m}).then(p=>{let y=[],S=[];p.response.dept_list.map((a,w)=>{y.push(a.id)}),p.response.role_list.map((a,w)=>{S.push(a.role_id)}),e.comment.dept.map((a,w)=>(y.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=y,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(()=>{document.title="人员授权",P(),C(),I()}),(t,s)=>{const c=re,m=oe,p=ie,y=le,S=ae;return f(),b(V,null,[i("div",Pe,[u(ne,{ref_key:"headerInput",ref:o,onSearchFun:_,onReset:d,path:"/welcome"},null,512),i("div",ye,[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-[5px] p-2 bg-white mb-3"},[i("div",Fe,[i("div",Re,g(a.username)+"("+g(a.usercard)+")",1),i("div",Ce,[(f(!0),b(V,null,B(a.dept_list,(z,W)=>(f(),A(m,{style:{margin:"5px 5px 5px 0"},key:W,plain:"",hairline:"",size:"small",type:"primary"},{default:x(()=>[N(g(z.name),1)]),_:2},1024))),128))])]),i("div",{onClick:z=>h(+(a.userroleid!==null),a),class:"w-[20%] flex justify-center items-center text-blue-500"},g(["添加","编辑"][+(a.userroleid!==null)]),9,Ue)]))),128))]),u(ke,{ref_key:"pageRef",ref:r,total:e.total,onPageChange:l},null,8,["total"])]),u(S,{show:e.select.showPopup,height:80},{content:x(()=>[(f(),b("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[i("div",Ie,[i("div",Se,[Ve,i("div",Ne,g(e.check.username),1),ze,i("div",Ee,g(e.check.usercard),1),Ae,i("div",Be,g(e.check.dept),1),De,i("div",Ge,g(e.check.position_name),1)])]),$e,i("div",Le,[Me,i("div",je,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.user,(a,w)=>(f(),A(m,{onClick:z=>R(a),style:j({margin:"5px",padding:"15px !important",height:"40px",background:a.bg,color:a.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:x(()=>[N(g(a.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])]),Te,i("div",Oe,[We,i("div",qe,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.dept,(a,w)=>(f(),A(m,{onClick:z=>v(a),key:w,style:j({margin:"5px",padding:"15px !important",height:"40px",background:a.bg,color:a.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:x(()=>[N(g(a.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])])])),u(y,null,{default:x(()=>[u(m,{type:"primary",round:"",class:"w-[90px]",onClick:k},{default:x(()=>[N("确定")]),_:1}),u(m,{round:"",class:"w-[90px]",onClick:s[0]||(s[0]=a=>e.select.showPopup=!1)},{default:x(()=>[N("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{Ze as default}; import{q,j as H,l as L,af as K,a as u,D as Q,H as E,ag as Z,t as M,ah as D,ai as J,h as X,P as F,_ as Y,r as $,o as f,c as b,Q as ee,b as te,R as i,T as A,U as se,F as V,V as B,d as x,W as ae,aj as ne,Z as g,e as N,a9 as j,a0 as T,a5 as oe,a6 as le}from"./index-xGd5Trjm.js";import{S as ie}from"./index-CAZIZmua.js";import{E as re}from"./index-DxEW6TpL.js";const[ce,U,O]=q("pagination"),G=(n,r,o)=>({number:n,text:r,active:o}),pe={mode:Q("multi"),prevText:String,nextText:String,pageCount:E(0),modelValue:Z(0),totalItems:E(0),showPageSize:E(5),itemsPerPage:E(10),forceEllipses:Boolean,showPrevButton:M,showNextButton:M};var de=H({name:ce,props:pe,emits:["change","update:modelValue"],setup(n,{emit:r,slots:o}){const e=L(()=>{const{pageCount:l,totalItems:d,itemsPerPage:_}=n,h=+l||Math.ceil(+d/+_);return Math.max(1,h)}),k=L(()=>{const l=[],d=e.value,_=+n.showPageSize,{modelValue:h,forceEllipses:t}=n;let s=1,c=d;const m=_<d;m&&(s=Math.max(h-Math.floor(_/2),1),c=s+_-1,c>d&&(c=d,s=c-_+1));for(let p=s;p<=c;p++){const y=G(p,p,p===h);l.push(y)}if(m&&_>0&&t){if(s>1){const p=G(s-1,"...");l.unshift(p)}if(c<d){const p=G(c+1,"...");l.push(p)}}return l}),v=(l,d)=>{l=J(l,1,e.value),n.modelValue!==l&&(r("update:modelValue",l),d&&r("change",l))};K(()=>v(n.modelValue));const R=()=>u("li",{class:U("page-desc")},[o.pageDesc?o.pageDesc():`${n.modelValue}/${e.value}`]),C=()=>{const{mode:l,modelValue:d,showPrevButton:_}=n;if(!_)return;const h=o["prev-text"],t=d===1;return u("li",{class:[U("item",{disabled:t,border:l==="simple",prev:!0}),D]},[u("button",{type:"button",disabled:t,onClick:()=>v(d-1,!0)},[h?h():n.prevText||O("prev")])])},I=()=>{const{mode:l,modelValue:d,showNextButton:_}=n;if(!_)return;const h=o["next-text"],t=d===e.value;return u("li",{class:[U("item",{disabled:t,border:l==="simple",next:!0}),D]},[u("button",{type:"button",disabled:t,onClick:()=>v(d+1,!0)},[h?h():n.nextText||O("next")])])},P=()=>k.value.map(l=>u("li",{class:[U("item",{active:l.active,page:!0}),D]},[u("button",{type:"button","aria-current":l.active||void 0,onClick:()=>v(l.number,!0)},[o.page?o.page(l):l.text])]));return()=>u("nav",{role:"navigation",class:U()},[u("ul",{class:U("items")},[C(),n.mode==="simple"?R():P(),I()])])}});const ue=X(de);function me(n){return F.get("/api/Common/GetDeptAllList",n)}function _e(n){return F.post("/api/Common/GetRoleList",n)}function he(n,r){const o={page_index:n.page_index,page_size:n.page_size};return F.get("/api/UserRole/GetUserRoleList",{params:o,...r})}function fe(n,r){const o={id:n.id};return F.get("/api/UserRole/GetUserRoleInfo",{params:o,...r})}function ge(n,r){const o={keyword:n.keyword,page_index:n.page_index,page_size:n.page_size};return F.get("/api/UserRole/GetUserRoleSearch",{params:o,...r})}function xe(n,r){const o={userid:n.userid};return F.get("/api/UserRole/UserRoleIns",{params:o,...r})}function ve(n,r){return F.post("/api/UserRole/UserRoleSave",n,r)}const we={class:"w-full h-[55px] page"},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:o}){const e=n,k=$(1);function v(R){o("pageChange",R)}return r({currentPage:k}),(R,C)=>{const I=ue;return f(),b("div",we,[u(I,{onChange:v,modelValue:k.value,"onUpdate:modelValue":C[0]||(C[0]=P=>k.value=P),"total-items":e.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},ke=Y(be,[["__scopeId","data-v-54a6d0b5"]]),Pe={class:"publicContainerNoPadding"},ye={class:"w-full h-[calc(100%-111px)] p-3 overflow-y-auto"},Fe={class:"w-[80%] h-full"},Re={class:"w-full h-[40px] p-1 flex items-center"},Ce={class:"w-full min-h-1/2 p-1"},Ue=["onClick"],Ie={class:"w-full h-auto bg-white"},Se={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ve=i("div",{class:"h-[30px] w-[20%]"},"姓名:",-1),Ne={class:"h-[30px] w-[80%]"},ze=i("div",{class:"h-[30px] w-[20%]"},"工号:",-1),Ee={class:"h-[30px] w-[80%]"},Ae=i("div",{class:"h-[30px] w-[20%]"},"部门:",-1),Be={class:"h-[30px] w-[80%]"},De=i("div",{class:"h-[30px] w-[20%]"},"岗位:",-1),Ge={class:"h-[30px] w-[80%]"},$e=i("div",{class:"w-full h-3"},null,-1),Le={class:"w-full h-auto bg-white"},Me=i("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"操作权限",-1),je={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Te=i("div",{class:"w-full h-3"},null,-1),Oe={class:"w-full h-auto bg-white"},We=i("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),qe={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ze={__name:"index",setup(n){const r=$(),o=$(),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&&(o.value.search!==""?_(o.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 R(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 C(){_e().then(t=>{e.comment.user=t.response.map(s=>({...s,bg:"",cl:""}))})}function I(){me().then(t=>{e.comment.dept=t.response.map(s=>({...s,bg:"",cl:""}))})}function P(){return he(e.initParams).then(t=>{e.data=t.response.data.map(s=>({...s})),e.total=t.response.data_count})}function l(t){o.value.search===""?(e.initParams.page_index=t,P()):(e.searchParams.page_index=t,_(o.value.search,t))}function d(t=""){o.value.search="",e.initParams={page_index:t||1,page_size:10},r.value.currentPage=1,P()}function _(t,s=1){o.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(m=>({...m})),e.total=c.response.data_count}))}function h(t,s){let c={0:()=>{T(()=>xe({userid:s.userid}).then(m=>(m.code===1&&c[1](m.response),m)))},1:m=>{fe({id:s.userroleid||m}).then(p=>{let y=[],S=[];p.response.dept_list.map((a,w)=>{y.push(a.id)}),p.response.role_list.map((a,w)=>{S.push(a.role_id)}),e.comment.dept.map((a,w)=>(y.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=y,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(()=>{document.title="人员授权",P(),C(),I()}),(t,s)=>{const c=re,m=oe,p=ie,y=le,S=ae;return f(),b(V,null,[i("div",Pe,[u(ne,{ref_key:"headerInput",ref:o,onSearchFun:_,onReset:d,path:"/welcome"},null,512),i("div",ye,[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-[5px] p-2 bg-white mb-3"},[i("div",Fe,[i("div",Re,g(a.username)+"("+g(a.usercard)+")",1),i("div",Ce,[(f(!0),b(V,null,B(a.dept_list,(z,W)=>(f(),A(m,{style:{margin:"5px 5px 5px 0"},key:W,plain:"",hairline:"",size:"small",type:"primary"},{default:x(()=>[N(g(z.name),1)]),_:2},1024))),128))])]),i("div",{onClick:z=>h(+(a.userroleid!==null),a),class:"w-[20%] flex justify-center items-center text-blue-500"},g(["添加","编辑"][+(a.userroleid!==null)]),9,Ue)]))),128))]),u(ke,{ref_key:"pageRef",ref:r,total:e.total,onPageChange:l},null,8,["total"])]),u(S,{show:e.select.showPopup,height:80},{content:x(()=>[(f(),b("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[i("div",Ie,[i("div",Se,[Ve,i("div",Ne,g(e.check.username),1),ze,i("div",Ee,g(e.check.usercard),1),Ae,i("div",Be,g(e.check.dept),1),De,i("div",Ge,g(e.check.position_name),1)])]),$e,i("div",Le,[Me,i("div",je,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.user,(a,w)=>(f(),A(m,{onClick:z=>R(a),style:j({margin:"5px",padding:"15px !important",height:"40px",background:a.bg,color:a.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:x(()=>[N(g(a.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])]),Te,i("div",Oe,[We,i("div",qe,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.dept,(a,w)=>(f(),A(m,{onClick:z=>v(a),key:w,style:j({margin:"5px",padding:"15px !important",height:"40px",background:a.bg,color:a.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:x(()=>[N(g(a.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])])])),u(y,null,{default:x(()=>[u(m,{type:"primary",round:"",class:"w-[90px]",onClick:k},{default:x(()=>[N("确定")]),_:1}),u(m,{round:"",class:"w-[90px]",onClick:s[0]||(s[0]=a=>e.select.showPopup=!1)},{default:x(()=>[N("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{Ze as default};
import{Q as a,b as t,c as s,a as c,R as e,o as n,a8 as l}from"./index-DE9mkwar.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{Q as a,b as t,c as s,a as c,R as e,o as n,a8 as l}from"./index-xGd5Trjm.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{P,$ as o,r as S,Q as le,b as oe,c as p,R as i,a as f,Z as M,a9 as F,F as g,V as x,d as h,W as de,o as d,T as B,e as A,aa as U,a8 as re,ab as ce,a2 as pe,ac as me,a3 as _e,a4 as fe,a5 as he,a6 as ue,a0 as K,ad as we,ae as ye}from"./index-DE9mkwar.js";import{S as ke}from"./index-DxN5vYZy.js";function Fe(y){return P.get("/api/Common/GetDeptList",y)}function ge(y,D){return P.post("/api/Common/GetUserList",y,D)}function De(y,D){return P.post("/api/PlanProject/GetPlanProjectByWeekList",y,D)}function Ye(y,D){return P.post("/api/PlanProject/GetPlanProjectByDayList",y,D)}const be={class:"publicContainerNoPadding"},xe={class:"w-full h-[50px] flex justify-between items-center p-2"},Ce={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},ve={key:0},Me=i("div",{class:"w-full h-5"},null,-1),Ae={key:1},We=["onClick"],Be={class:"aaa w-full min-h-[80px] ccFlex p-1"},Pe={class:"w-[calc(100%-35px)] h-full"},Ie=["onClick"],Ee={class:"aaa"},$e=i("div",{class:"w-[35px] min-h-[80px]"},[i("div",{class:"w-full h-1/2 ccFlex"}," 上 "),i("div",{class:"w-full h-1/2 ccFlex"}," 下 ")],-1),Ne={class:"w-[calc(100%-105px)] min-h-[80px]"},je={class:"w-full h-1/2 ccFlex"},Ve={class:"w-full h-1/2 ccFlex"},Le=["onClick"],Ge=i("div",{class:"w-full h-3"},null,-1),Oe=i("div",{class:"w-full h-3"},null,-1),Se={class:"w-full h-auto bg-white"},Ue=i("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),Ke={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Te=i("div",{class:"w-full h-3"},null,-1),ze={class:"w-full h-auto bg-white"},Re=i("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),He={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},qe={__name:"index",setup(y,{expose:D}){const k=o().startOf("week").add(1,"day").format("YYYY-MM-DD"),Y=o().startOf("week").add(5,"day").format("YYYY-MM-DD"),T=S(),z=S();o(o().startOf("week").add(1,"day").format("YYYY-MM-DD")).format("YYYY-MM-DD");const N=new Date(o().year(),o().month()-1,1),e=le({dataFlag:1,peoPleFlag:!1,weekFlag:!1,calendarKey:1,weekKey:1,dayArray:[],weekArray:[],paramsDay:{begin_time:o().format("YYYY-MM-DD"),end_time:o().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:k,end_time:Y,dept_id_list:[],tid_list:[]},comment:{dept:[],user:[],deptId:[]},check:{dept_id_list:[],tid_list:[],begin_time:"",end_time:""},date:{show:!1},search:{dateWeek:k+" - "+Y,dateDay:o().format("YYYY-MM-DD")},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function j(a,t){({day:()=>{e.date.show=!1,e.search.dateDay=o(a).format("YYYY-MM-DD"),e.check.begin_time=o(a).format("YYYY-MM-DD"),e.check.end_time=o(a).format("YYYY-MM-DD")},week:()=>{e.date.show=!1,e.search.dateWeek=o(a[0]).format("YYYY-MM-DD")+" - "+o(a[1]).format("YYYY-MM-DD"),e.check.begin_time=o(a[0]).format("YYYY-MM-DD"),e.check.end_time=o(a[1]).format("YYYY-MM-DD")}})[t]()}function R(){e.select.showPopup=!0}function H(a){e.switchView.show=!e.switchView.show,e.calendarKey++,e.switchView.show?(e.search.dateDay=o().format("YYYY-MM-DD"),e.paramsDay={begin_time:o().format("YYYY-MM-DD"),end_time:o().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},C()):(e.search.dateWeek=k+" - "+Y,e.paramsWeek={begin_time:k,end_time:Y,dept_id_list:[],tid_list:[]},u()),V(a),e.select.action=!1}function V(a){e.check.dept_id_list=[],e.comment.dept.forEach(t=>{t.bg="",t.cl=""}),e.check.tid_list=[],e.comment.user.forEach(t=>{t.bg="",t.cl=""}),e.search.dateDay=o().format("YYYY-MM-DD"),e.search.dateWeek=k+" - "+Y,e.check={dept_id_list:[],tid_list:[],begin_time:"",end_time:""},e.calendarKey++,e.select.action=!1,e.paramsWeek={begin_time:k,end_time:Y,dept_id_list:[],tid_list:[]},e.paramsDay={begin_time:o().format("YYYY-MM-DD"),end_time:o().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},a.dateDay&&(a.dateDay.dateArray.array=[],a.dateDay.getInitDate()),a.dateWeek&&(a.dateWeek.dateArray.array=[],a.dateWeek.getInitDate()),e.comment.deptId=[],I(),C(),u()}function Q(a){let t={true:async()=>{e.paramsDay={...e.check,begin_time:e.check.begin_time?e.check.begin_time:k,end_time:e.check.end_time?e.check.end_time:o().format("YYYY-MM-DD")},a.dateDay.deleteDateBg(),await C(),a.dateDay.dateArrayAssignmentRelatedData(e.paramsDay.end_time),e.dayArray.map((l,r)=>{e.paramsDay.dept_id_list.includes(l.dept_id)&&(l.deptBg="#1989FA",l.deptCl="#FFFFFF"),e.paramsDay.tid_list.includes(l.userid)&&(l.peopleBg="#1989FA",l.peopleCl="#FFFFFF")}),e.select.showPopup=!1},false:()=>{e.paramsWeek={...e.check,begin_time:e.check.begin_time?e.check.begin_time:k,end_time:e.check.end_time?e.check.end_time:Y},u(),a.dateWeek.dateArrayAssignmentRelatedData(e.paramsWeek.end_time),e.select.showPopup=!1}};e.select.action=!0,t[String(e.switchView.show)]()}function Z(){e.select.showPopup=!1}function q(){Fe().then(a=>{e.comment.dept=a.response.map(t=>({...t,bg:"",cl:""}))})}function J(a,t){({true:()=>{K(()=>we({plan_id:"",collect_userid:a.userId}).then(r=>(r.code===1&&(e.weekArray.forEach((m,n)=>{m.nameData.forEach((c,b)=>{a.userId===c.userId&&(c.bg="",c.cl="",c.attention=0)})}),u()),r)))},false:()=>{K(()=>ye({id:a.userId,collect_type:0}).then(r=>(r.code===1&&(e.weekArray.forEach((m,n)=>{m.nameData.forEach((c,b)=>{a.userId===c.userId&&(c.bg="#1989FA",c.cl="#FFFFFF",c.attention=1)})}),u()),r)))}})[String(!!Number(a.attention))]()}function I(){ge(e.comment.deptId).then(a=>{e.comment.user=a.response.map(t=>({...t,bg:"",cl:""}))})}function C(){return Ye(e.paramsDay).then(a=>{e.dayArray=a.response.map((t,l)=>({...t,deptBg:"",deptCl:"",peopleBg:"",peopleCl:""}))})}function X(a){e.paramsDay={...e.paramsDay,begin_time:a,end_time:a},C()}function u(){return De(e.paramsWeek).then(a=>{let t=[],r=a.response.reduce((m,n)=>{const c=m.find(b=>b.deptName===n.dept_name);return c?c.nameData.push({userId:n.userid,userName:n.username,userCard:n.usercard,attention:n.attention,nameArray:n.data,bg:n.attention==1?"#1989FA":"",cl:n.attention==1?"#FFFFFF":"",peopleBg:n.peopleBg?n.peopleBg:"",peopleCl:n.peopleCl?n.peopleCl:""}):t.push({deptName:n.dept_name,deptId:n.dept_id,deptBg:n.deptBg?n.deptBg:"",deptCl:n.deptCl?n.deptCl:"",nameData:[{userId:n.userid,userName:n.username,userCard:n.usercard,attention:n.attention,nameArray:n.data,bg:n.attention==1?"#1989FA":"",cl:n.attention==1?"#FFFFFF":"",peopleBg:n.peopleBg?n.peopleBg:"",peopleCl:n.peopleCl?n.peopleCl:""}]}),t},[]);e.weekArray=r.map((m,n)=>(e.paramsWeek.dept_id_list.includes(m.deptId)&&(m.deptBg="#1989FA",m.deptCl="#FFFFFF"),m.nameData.map((c,b)=>(e.paramsWeek.tid_list.includes(c.userId)&&(c.peopleBg="#1989FA",c.peopleCl="#FFFFFF"),c)),m))})}function ee(a){e.check.dept_id_list.includes(a.id)?(e.check.dept_id_list.forEach((t,l)=>{t===a.id&&e.check.dept_id_list.splice(l,1)}),e.comment.dept.forEach(t=>{t.id===a.id&&(t.bg="",t.cl="")}),e.comment.deptId.forEach((t,l)=>{t===a.id&&e.comment.deptId.splice(l,1)})):(e.check.dept_id_list.push(a.id),e.comment.deptId.push(a.id),e.comment.dept.forEach(t=>{t.id===a.id&&(t.bg="#1989FA",t.cl="#FFFFFF")})),I(),console.log("🚀🚀check.dept_id_list🚀,",...e.check.dept_id_list,"")}function te(a){e.check.tid_list.includes(a.id)?(e.check.tid_list.forEach((t,l)=>{t===a.id&&e.check.tid_list.splice(l,1,"")}),e.comment.user.forEach(t=>{t.id===a.id&&(t.bg="",t.cl="")})):(e.check.tid_list.push(a.id),e.comment.user.forEach(t=>{t.id===a.id&&(t.bg="#1989FA",t.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.tid_list)}function ae(a){e.paramsWeek.dept_id_list.includes(a)?e.paramsWeek.dept_id_list.splice(e.paramsWeek.dept_id_list.indexOf(a),1):e.paramsWeek.dept_id_list.push(a),L()?e.select.action=!0:e.select.action=!1,e.weekArray.map((t,l)=>(e.paramsWeek.dept_id_list.includes(t.deptId)&&(t.deptBg="#1989FA",t.deptCl="#FFFFFF"),t.nameData.map((r,m)=>(e.paramsWeek.tid_list.includes(r.userId)&&(r.peopleBg="#1989FA",r.peopleCl="#FFFFFF"),r)),t)),u()}function ne(a){e.paramsWeek.tid_list.includes(a)?e.paramsWeek.tid_list.splice(e.paramsWeek.tid_list.indexOf(a),1):e.paramsWeek.tid_list.push(a),L()?e.select.action=!0:e.select.action=!1,e.weekArray.map((t,l)=>(e.paramsWeek.dept_id_list.includes(t.deptId)&&(t.deptBg="#1989FA",t.deptCl="#FFFFFF"),t.nameData.map((r,m)=>(e.paramsWeek.tid_list.includes(r.userId)&&(r.peopleBg="#1989FA",r.peopleCl="#FFFFFF"),r)),t)),u()}function L(){return!!e.paramsWeek.dept_id_list.length||!!e.paramsWeek.tid_list.length}const G=a=>{let l=new Date(a.date).getDay();return(l==0||l==6)&&(a.type="disabled"),a};return oe(()=>{document.title="分管填报记录查看",q(),I(),C(),u()}),D({init:e,GetPlanProjectByDayList:C,GetPlanProjectByWeekList:u}),(a,t)=>{const l=re,r=ce,m=pe,n=me,c=_e,b=fe,E=de,W=he,O=ke,se=ue;return d(),p(g,null,[i("div",be,[f(l,{path:"/welcome",title:"分管填报记录查看"}),i("div",xe,[i("div",{onClick:t[0]||(t[0]=s=>H(a.$refs)),class:"w-24 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100"}," 切换"+M(e.switchView.show?"周":"天")+"视图 ",1),i("div",{style:F({background:["#FFFFFF","#1989FA"][Number(e.select.action)],color:["#4B5563","#FFFFFF"][Number(e.select.action)]}),onClick:R,class:"w-20 h-8 flex justify-center items-center border-solid border-[1px]"}," 高级查询 ",4)]),i("div",Ce,[e.switchView.show?(d(),p("div",ve,[f(r,{ref_key:"dateDay",ref:T,onSearchDayData:X},null,512),Me,(d(!0),p(g,null,x(e.dayArray,(s,v)=>(d(),B(m,{data:s,key:v,alldayOrMidafternoonStatus:!!Number(s.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):(d(),p("div",Ae,[f(n,{ref_key:"dateWeek",ref:z},null,512),(d(),p("div",{class:"w-full h-auto bg-white text-gray-600",key:e.weekKey},[(d(!0),p(g,null,x(e.weekArray,(s,v)=>(d(),p("div",{class:"w-full min-h-[80px] flex-wrap ccFlex",key:v},[i("div",{onClick:_=>ae(s.deptId),style:F({background:s.deptBg,color:s.deptCl}),class:"w-[35px] min-h-[80px]"},[i("div",Be,M(s.deptName),1)],12,We),i("div",Pe,[(d(!0),p(g,null,x(s.nameData,(_,ie)=>(d(),p("div",{class:"w-full h-auto flex",key:ie},[i("div",{onClick:w=>ne(_.userId),style:F({background:_.peopleBg,color:_.peopleCl}),class:"w-[35px] min-h-[80px] ccFlex"},[i("div",Ee,M(_.userName),1)],12,Ie),$e,i("div",Ne,[i("div",je,[(d(!0),p(g,null,x(_.nameArray,(w,$)=>(d(),p("div",{style:F({background:["","#D9E2F3"][+(w.fore_plan!=null&&w.fore_plan!=""&&w.fore_plan!=null)]}),key:$,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))]),i("div",Ve,[(d(!0),p(g,null,x(_.nameArray,(w,$)=>(d(),p("div",{style:F({background:["","#FFE599"][+(w.after_plan!=null&&w.after_plan!=""&&w.after_plan!=null)]}),key:$,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))])]),i("div",{style:F({background:_.bg,color:_.cl}),class:"w-[35px] min-h-[80px] ccFlex"},[i("div",{onClick:w=>J(_,_.attention),class:"aaa"},M(["关注","取消关注"][_.attention]),9,Le)],4)]))),128))])]))),128))]))]))])]),f(E,{show:e.select.showPopup,height:80},{content:h(()=>[(d(),p("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[Ge,f(c,{inset:"",title:"选择日期",value:[e.search.dateWeek,e.search.dateDay][Number(e.switchView.show)],onClick:t[1]||(t[1]=s=>e.date.show=!0)},null,8,["value"]),A(" 1 "),e.switchView.show?(d(),B(E,{key:0,show:e.date.show,height:80},{content:h(()=>[f(b,{formatter:G,"min-date":new Date(U(N)),show:e.date.show,"onUpdate:show":t[2]||(t[2]=s=>e.date.show=s),onConfirm:t[3]||(t[3]=s=>j(s,"day"))},null,8,["min-date","show"])]),_:1},8,["show"])):(d(),B(E,{key:1,show:e.date.show,height:80},{content:h(()=>[f(b,{formatter:G,"min-date":new Date(U(N)),"max-range":5,"range-prompt":"最多选择 5 天",type:"range",show:e.date.show,"onUpdate:show":t[4]||(t[4]=s=>e.date.show=s),onConfirm:t[5]||(t[5]=s=>j(s,"week"))},null,8,["min-date","show"])]),_:1},8,["show"])),Oe,i("div",Se,[Ue,i("div",Ke,[f(O,{wrap:""},{default:h(()=>[(d(!0),p(g,null,x(e.comment.dept,(s,v)=>(d(),B(W,{onClick:_=>ee(s),key:v,style:F({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:h(()=>[A(M(s.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Te,i("div",ze,[Re,i("div",He,[f(O,{wrap:""},{default:h(()=>[(d(!0),p(g,null,x(e.comment.user,(s,v)=>(d(),B(W,{onClick:_=>te(s),style:F({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:h(()=>[A(M(s.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])])])),f(se,null,{default:h(()=>[f(W,{type:"primary",round:"",class:"w-[90px]",onClick:t[6]||(t[6]=s=>V(a.$refs))},{default:h(()=>[A("重置")]),_:1}),f(W,{type:"primary",round:"",class:"w-[90px]",onClick:t[7]||(t[7]=s=>Q(a.$refs))},{default:h(()=>[A("查询")]),_:1}),f(W,{round:"",class:"w-[90px]",onClick:Z},{default:h(()=>[A("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{qe as default}; import{P,$ as o,r as O,Q as le,b as oe,c as p,R as i,a as f,Z as M,a9 as F,F as g,V as x,d as y,W as de,o as d,T as W,aa as S,e as B,a8 as re,ab as ce,a2 as pe,ac as me,a3 as _e,a4 as fe,a5 as he,a6 as ue,a0 as U,ad as ye,ae as ke}from"./index-xGd5Trjm.js";import{S as we}from"./index-CAZIZmua.js";function Fe(k){return P.get("/api/Common/GetDeptList",k)}function ge(k,D){return P.post("/api/Common/GetUserList",k,D)}function De(k,D){return P.post("/api/PlanProject/GetPlanProjectByWeekList",k,D)}function Ye(k,D){return P.post("/api/PlanProject/GetPlanProjectByDayList",k,D)}const be={class:"publicContainerNoPadding"},xe={class:"w-full h-[50px] flex justify-between items-center p-2"},Ce={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},ve={key:0},Me=i("div",{class:"w-full h-5"},null,-1),Ae={key:1},We=["onClick"],Be={class:"aaa w-full min-h-[80px] ccFlex p-1"},Pe={class:"w-[calc(100%-35px)] h-full"},Ie=["onClick"],Ee={class:"aaa"},$e=i("div",{class:"w-[35px] min-h-[80px]"},[i("div",{class:"w-full h-1/2 ccFlex"}," 上 "),i("div",{class:"w-full h-1/2 ccFlex"}," 下 ")],-1),Ne={class:"w-[calc(100%-105px)] min-h-[80px]"},je={class:"w-full h-1/2 ccFlex"},Ve={class:"w-full h-1/2 ccFlex"},Le=["onClick"],Ge=i("div",{class:"w-full h-3"},null,-1),Oe=i("div",{class:"w-full h-3"},null,-1),Se={class:"w-full h-auto bg-white"},Ue=i("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),Ke={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},ze=i("div",{class:"w-full h-3"},null,-1),Te={class:"w-full h-auto bg-white"},Re=i("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),He={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},qe={__name:"index",setup(k,{expose:D}){const w=o().startOf("week").add(1,"day").format("YYYY-MM-DD"),Y=o().startOf("week").add(5,"day").format("YYYY-MM-DD"),K=O(),z=O();o(o().startOf("week").add(1,"day").format("YYYY-MM-DD")).format("YYYY-MM-DD");const $=new Date(o().year(),o().month()-1,1),e=le({dataFlag:1,peoPleFlag:!1,weekFlag:!1,calendarKey:1,weekKey:1,dayArray:[],weekArray:[],paramsDay:{begin_time:o().format("YYYY-MM-DD"),end_time:o().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:w,end_time:Y,dept_id_list:[],tid_list:[]},comment:{dept:[],user:[],deptId:[]},check:{dept_id_list:[],tid_list:[],begin_time:"",end_time:""},date:{show:!1},search:{dateWeek:w+" - "+Y,dateDay:o().format("YYYY-MM-DD")},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function N(a,t){({day:()=>{e.date.show=!1,e.search.dateDay=o(a).format("YYYY-MM-DD"),e.check.begin_time=o(a).format("YYYY-MM-DD"),e.check.end_time=o(a).format("YYYY-MM-DD")},week:()=>{e.date.show=!1,e.search.dateWeek=o(a[0]).format("YYYY-MM-DD")+" - "+o(a[1]).format("YYYY-MM-DD"),e.check.begin_time=o(a[0]).format("YYYY-MM-DD"),e.check.end_time=o(a[1]).format("YYYY-MM-DD")}})[t]()}function T(){e.select.showPopup=!0}function R(a){e.switchView.show=!e.switchView.show,e.calendarKey++,e.switchView.show?(e.search.dateDay=o().format("YYYY-MM-DD"),e.paramsDay={begin_time:o().format("YYYY-MM-DD"),end_time:o().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},C()):(e.search.dateWeek=w+" - "+Y,e.paramsWeek={begin_time:w,end_time:Y,dept_id_list:[],tid_list:[]},h()),j(a),e.select.action=!1}function j(a){e.check.dept_id_list=[],e.comment.dept.forEach(t=>{t.bg="",t.cl=""}),e.check.tid_list=[],e.comment.user.forEach(t=>{t.bg="",t.cl=""}),e.search.dateDay=o().format("YYYY-MM-DD"),e.search.dateWeek=w+" - "+Y,e.check={dept_id_list:[],tid_list:[],begin_time:"",end_time:""},e.calendarKey++,e.select.action=!1,e.paramsWeek={begin_time:w,end_time:Y,dept_id_list:[],tid_list:[]},e.paramsDay={begin_time:o().format("YYYY-MM-DD"),end_time:o().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},a.dateDay&&(a.dateDay.dateArray.array=[],a.dateDay.getInitDate()),a.dateWeek&&(a.dateWeek.dateArray.array=[],a.dateWeek.getInitDate()),e.comment.deptId=[],I(),C(),h()}function H(a){let t={true:async()=>{e.paramsDay={...e.check,begin_time:e.check.begin_time?e.check.begin_time:w,end_time:e.check.end_time?e.check.end_time:o().format("YYYY-MM-DD")},a.dateDay.deleteDateBg(),await C(),a.dateDay.dateArrayAssignmentRelatedData(e.paramsDay.end_time),e.dayArray.map((l,r)=>{e.paramsDay.dept_id_list.includes(l.dept_id)&&(l.deptBg="#1989FA",l.deptCl="#FFFFFF"),e.paramsDay.tid_list.includes(l.userid)&&(l.peopleBg="#1989FA",l.peopleCl="#FFFFFF")}),e.select.showPopup=!1},false:()=>{e.paramsWeek={...e.check,begin_time:e.check.begin_time?e.check.begin_time:w,end_time:e.check.end_time?e.check.end_time:Y},h(),a.dateWeek.dateArrayAssignmentRelatedData(e.paramsWeek.end_time),e.select.showPopup=!1}};e.select.action=!0,t[String(e.switchView.show)]()}function Q(){e.select.showPopup=!1}function Z(){Fe().then(a=>{e.comment.dept=a.response.map(t=>({...t,bg:"",cl:""}))})}function q(a,t){({true:()=>{U(()=>ye({plan_id:"",collect_userid:a.userId}).then(r=>(r.code===1&&(e.weekArray.forEach((m,n)=>{m.nameData.forEach((c,b)=>{a.userId===c.userId&&(c.bg="",c.cl="",c.attention=0)})}),h()),r)))},false:()=>{U(()=>ke({id:a.userId,collect_type:0}).then(r=>(r.code===1&&(e.weekArray.forEach((m,n)=>{m.nameData.forEach((c,b)=>{a.userId===c.userId&&(c.bg="#1989FA",c.cl="#FFFFFF",c.attention=1)})}),h()),r)))}})[String(!!Number(a.attention))]()}function I(){ge(e.comment.deptId).then(a=>{e.comment.user=a.response.map(t=>({...t,bg:"",cl:""}))})}function C(){return Ye(e.paramsDay).then(a=>{e.dayArray=a.response.map((t,l)=>({...t,deptBg:"",deptCl:"",peopleBg:"",peopleCl:""}))})}function J(a){e.paramsDay={...e.paramsDay,begin_time:a,end_time:a},C()}function h(){return De(e.paramsWeek).then(a=>{let t=[],r=a.response.reduce((m,n)=>{const c=m.find(b=>b.deptName===n.dept_name);return c?c.nameData.push({userId:n.userid,userName:n.username,userCard:n.usercard,attention:n.attention,nameArray:n.data,bg:n.attention==1?"#1989FA":"",cl:n.attention==1?"#FFFFFF":"",peopleBg:n.peopleBg?n.peopleBg:"",peopleCl:n.peopleCl?n.peopleCl:""}):t.push({deptName:n.dept_name,deptId:n.dept_id,deptBg:n.deptBg?n.deptBg:"",deptCl:n.deptCl?n.deptCl:"",nameData:[{userId:n.userid,userName:n.username,userCard:n.usercard,attention:n.attention,nameArray:n.data,bg:n.attention==1?"#1989FA":"",cl:n.attention==1?"#FFFFFF":"",peopleBg:n.peopleBg?n.peopleBg:"",peopleCl:n.peopleCl?n.peopleCl:""}]}),t},[]);e.weekArray=r.map((m,n)=>(e.paramsWeek.dept_id_list.includes(m.deptId)&&(m.deptBg="#1989FA",m.deptCl="#FFFFFF"),m.nameData.map((c,b)=>(e.paramsWeek.tid_list.includes(c.userId)&&(c.peopleBg="#1989FA",c.peopleCl="#FFFFFF"),c)),m))})}function X(a){e.check.dept_id_list.includes(a.id)?(e.check.dept_id_list.forEach((t,l)=>{t===a.id&&e.check.dept_id_list.splice(l,1)}),e.comment.dept.forEach(t=>{t.id===a.id&&(t.bg="",t.cl="")}),e.comment.deptId.forEach((t,l)=>{t===a.id&&e.comment.deptId.splice(l,1)})):(e.check.dept_id_list.push(a.id),e.comment.deptId.push(a.id),e.comment.dept.forEach(t=>{t.id===a.id&&(t.bg="#1989FA",t.cl="#FFFFFF")})),I(),console.log("🚀🚀check.dept_id_list🚀,",...e.check.dept_id_list,"")}function ee(a){e.check.tid_list.includes(a.id)?(e.check.tid_list.forEach((t,l)=>{t===a.id&&e.check.tid_list.splice(l,1,"")}),e.comment.user.forEach(t=>{t.id===a.id&&(t.bg="",t.cl="")})):(e.check.tid_list.push(a.id),e.comment.user.forEach(t=>{t.id===a.id&&(t.bg="#1989FA",t.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.tid_list)}function te(a){e.paramsWeek.dept_id_list.includes(a)?e.paramsWeek.dept_id_list.splice(e.paramsWeek.dept_id_list.indexOf(a),1):e.paramsWeek.dept_id_list.push(a),V()?e.select.action=!0:e.select.action=!1,e.weekArray.map((t,l)=>(e.paramsWeek.dept_id_list.includes(t.deptId)&&(t.deptBg="#1989FA",t.deptCl="#FFFFFF"),t.nameData.map((r,m)=>(e.paramsWeek.tid_list.includes(r.userId)&&(r.peopleBg="#1989FA",r.peopleCl="#FFFFFF"),r)),t)),h()}function ae(a){e.paramsWeek.tid_list.includes(a)?e.paramsWeek.tid_list.splice(e.paramsWeek.tid_list.indexOf(a),1):e.paramsWeek.tid_list.push(a),V()?e.select.action=!0:e.select.action=!1,e.weekArray.map((t,l)=>(e.paramsWeek.dept_id_list.includes(t.deptId)&&(t.deptBg="#1989FA",t.deptCl="#FFFFFF"),t.nameData.map((r,m)=>(e.paramsWeek.tid_list.includes(r.userId)&&(r.peopleBg="#1989FA",r.peopleCl="#FFFFFF"),r)),t)),h()}function V(){return!!e.paramsWeek.dept_id_list.length||!!e.paramsWeek.tid_list.length}const L=a=>{let l=new Date(a.date).getDay();return(l==0||l==6)&&(a.type="disabled"),a};return oe(()=>{document.title="分管填报记录查看",Z(),I(),C(),h()}),D({init:e,GetPlanProjectByDayList:C,GetPlanProjectByWeekList:h}),(a,t)=>{const l=re,r=ce,m=pe,n=me,c=_e,b=fe,A=he,G=we,ne=ue,se=de;return d(),p(g,null,[i("div",be,[f(l,{path:"/welcome",title:"分管填报记录查看"}),i("div",xe,[i("div",{onClick:t[0]||(t[0]=s=>R(a.$refs)),class:"w-24 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100"}," 切换"+M(e.switchView.show?"周":"天")+"视图 ",1),i("div",{style:F({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)]),i("div",Ce,[e.switchView.show?(d(),p("div",ve,[f(r,{ref_key:"dateDay",ref:K,onSearchDayData:J},null,512),Me,(d(!0),p(g,null,x(e.dayArray,(s,v)=>(d(),W(m,{data:s,key:v,alldayOrMidafternoonStatus:!!Number(s.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):(d(),p("div",Ae,[f(n,{ref_key:"dateWeek",ref:z},null,512),(d(),p("div",{class:"w-full h-auto bg-white text-gray-600",key:e.weekKey},[(d(!0),p(g,null,x(e.weekArray,(s,v)=>(d(),p("div",{class:"w-full min-h-[80px] flex-wrap ccFlex",key:v},[i("div",{onClick:_=>te(s.deptId),style:F({background:s.deptBg,color:s.deptCl}),class:"w-[35px] min-h-[80px]"},[i("div",Be,M(s.deptName),1)],12,We),i("div",Pe,[(d(!0),p(g,null,x(s.nameData,(_,ie)=>(d(),p("div",{class:"w-full h-auto flex",key:ie},[i("div",{onClick:u=>ae(_.userId),style:F({background:_.peopleBg,color:_.peopleCl}),class:"w-[35px] min-h-[80px] ccFlex"},[i("div",Ee,M(_.userName),1)],12,Ie),$e,i("div",Ne,[i("div",je,[(d(!0),p(g,null,x(_.nameArray,(u,E)=>(d(),p("div",{style:F({background:["","#D9E2F3"][+(u.fore_plan!=null&&u.fore_plan!=""&&u.fore_plan!=null)]}),key:E,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))]),i("div",Ve,[(d(!0),p(g,null,x(_.nameArray,(u,E)=>(d(),p("div",{style:F({background:["","#FFE599"][+(u.after_plan!=null&&u.after_plan!=""&&u.after_plan!=null)]}),key:E,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))])]),i("div",{style:F({background:_.bg,color:_.cl}),class:"w-[35px] min-h-[80px] ccFlex"},[i("div",{onClick:u=>q(_,_.attention),class:"aaa"},M(["关注","取消关注"][_.attention]),9,Le)],4)]))),128))])]))),128))]))]))])]),f(se,{show:e.select.showPopup,height:80},{content:y(()=>[(d(),p("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[Ge,f(c,{inset:"",title:"选择日期",value:[e.search.dateWeek,e.search.dateDay][Number(e.switchView.show)],onClick:t[1]||(t[1]=s=>e.date.show=!0)},null,8,["value"]),e.switchView.show?(d(),W(b,{key:0,style:{"z-index":"99999"},formatter:L,"min-date":new Date(S($)),show:e.date.show,"onUpdate:show":t[2]||(t[2]=s=>e.date.show=s),onConfirm:t[3]||(t[3]=s=>N(s,"day"))},null,8,["min-date","show"])):(d(),W(b,{key:1,style:{"z-index":"99999"},formatter:L,"min-date":new Date(S($)),"max-range":5,"range-prompt":"最多选择 5 天",type:"range",show:e.date.show,"onUpdate:show":t[4]||(t[4]=s=>e.date.show=s),onConfirm:t[5]||(t[5]=s=>N(s,"week"))},null,8,["min-date","show"])),Oe,i("div",Se,[Ue,i("div",Ke,[f(G,{wrap:""},{default:y(()=>[(d(!0),p(g,null,x(e.comment.dept,(s,v)=>(d(),W(A,{onClick:_=>X(s),key:v,style:F({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:y(()=>[B(M(s.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),ze,i("div",Te,[Re,i("div",He,[f(G,{wrap:""},{default:y(()=>[(d(!0),p(g,null,x(e.comment.user,(s,v)=>(d(),W(A,{onClick:_=>ee(s),style:F({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:y(()=>[B(M(s.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])])])),f(ne,null,{default:y(()=>[f(A,{type:"primary",round:"",class:"w-[90px]",onClick:t[6]||(t[6]=s=>j(a.$refs))},{default:y(()=>[B("重置")]),_:1}),f(A,{type:"primary",round:"",class:"w-[90px]",onClick:t[7]||(t[7]=s=>H(a.$refs))},{default:y(()=>[B("查询")]),_:1}),f(A,{round:"",class:"w-[90px]",onClick:Q},{default:y(()=>[B("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{qe as default};
import{q as v,j as w,ak as G,a as e,al as k,D as M,h as B}from"./index-DE9mkwar.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var z=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 b=B(z);export{b as E}; import{q as v,j as w,ak as G,a as e,al as k,D as M,h as B}from"./index-xGd5Trjm.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var z=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 b=B(z);export{b as E};
import{c as r,a as e,F as c,u as s,o as _,w as m,N as i}from"./index-DE9mkwar.js";import{E as l}from"./index-CdMS_H06.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-xGd5Trjm.js";import{E as l}from"./index-DxEW6TpL.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{h as A,s as me,i as q,n as ue,j as N,k as H,m as _e,t as L,r as ee,l as M,a as s,I as ne,p as I,q as K,v as fe,x as z,y as pe,z as he,A as te,B as ae,D as ge,E as we,H as O,J as X,K as ke,M as ve,O as D,P as G,Q as be,b as ye,c as F,R as w,T as S,d as f,U as $,F as W,V as J,W as Y,X as xe,o as g,e as T,Y as Ce,Z as B,$ as Q,a0 as Se,a1 as Te,a2 as Pe,a3 as Ve,a4 as $e,a5 as Oe,a6 as Me}from"./index-DE9mkwar.js";const ie=A(me),oe={name:q,disabled:Boolean,iconSize:ue,modelValue:q,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var Fe=N({props:H({},oe,{bem:_e(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:L}),emits:["click","toggle"],setup(n,{emit:d,slots:e}){const r=ee(),p=o=>{if(n.parent&&n.bindGroup)return n.parent.props[o]},m=M(()=>{if(n.parent&&n.bindGroup){const o=p("disabled")||n.disabled;if(n.role==="checkbox"){const v=p("modelValue").length,_=p("max"),u=_&&v>=+_;return o||u&&!n.checked}return o}return n.disabled}),P=M(()=>p("direction")),h=M(()=>{const o=n.checkedColor||p("checkedColor");if(o&&n.checked&&!m.value)return{borderColor:o,backgroundColor:o}}),b=M(()=>n.shape||p("shape")||"round"),i=o=>{const{target:v}=o,_=r.value,u=_===v||(_==null?void 0:_.contains(v));!m.value&&(u||!n.labelDisabled)&&d("toggle"),d("click",o)},k=()=>{var o,v;const{bem:_,checked:u}=n,t=n.iconSize||p("iconSize");return s("div",{ref:r,class:_("icon",[b.value,{disabled:m.value,checked:u}]),style:b.value!=="dot"?{fontSize:I(t)}:{width:I(t),height:I(t),borderColor:(o=h.value)==null?void 0:o.borderColor}},[e.icon?e.icon({checked:u,disabled:m.value}):b.value!=="dot"?s(ne,{name:"success",style:h.value},null):s("div",{class:_("icon--dot__icon"),style:{backgroundColor:(v=h.value)==null?void 0:v.backgroundColor}},null)])},c=()=>{if(e.default)return s("span",{class:n.bem("label",[n.labelPosition,{disabled:m.value}])},[e.default()])};return()=>{const o=n.labelPosition==="left"?[c(),k()]:[k(),c()];return s("div",{role:n.role,class:n.bem([{disabled:m.value,"label-disabled":n.labelDisabled},P.value]),tabindex:m.value?void 0:0,"aria-checked":n.checked,onClick:i},[o])}}});const[Be,_n]=K("checkbox-group"),Ge=Symbol(Be),[je,Ae]=K("checkbox"),Ne=H({},oe,{shape:String,bindGroup:L});var Ke=N({name:je,props:Ne,emits:["change","update:modelValue"],setup(n,{emit:d,slots:e}){const{parent:r}=fe(Ge),p=h=>{const{name:b}=n,{max:i,modelValue:k}=r.props,c=k.slice();if(h)!(i&&c.length>=+i)&&!c.includes(b)&&(c.push(b),n.bindGroup&&r.updateValue(c));else{const o=c.indexOf(b);o!==-1&&(c.splice(o,1),n.bindGroup&&r.updateValue(c))}},m=M(()=>r&&n.bindGroup?r.props.modelValue.indexOf(n.name)!==-1:!!n.modelValue),P=(h=!m.value)=>{r&&n.bindGroup?p(h):d("update:modelValue",h)};return z(()=>n.modelValue,h=>d("change",h)),pe({toggle:P,props:n,checked:m}),he(()=>n.modelValue),()=>s(Fe,ae({bem:Ae,role:"checkbox",parent:r,checked:m.value,onToggle:P},n),te(e,["default","icon"]))}});const Ie=A(Ke),[De,We]=K("divider"),Ye={dashed:Boolean,hairline:L,vertical:Boolean,contentPosition:ge("center")};var ze=N({name:De,props:Ye,setup(n,{slots:d}){return()=>{var e;return s("div",{role:"separator",class:We({dashed:n.dashed,hairline:n.hairline,vertical:n.vertical,[`content-${n.contentPosition}`]:!!d.default&&!n.vertical})},[!n.vertical&&((e=d.default)==null?void 0:e.call(d))])}}});const He=A(ze),[Le]=K("time-picker"),Z=n=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(n),Re=["hour","minute","second"],Ee=H({},we,{minHour:O(0),maxHour:O(23),minMinute:O(0),maxMinute:O(59),minSecond:O(0),maxSecond:O(59),minTime:{type:String,validator:Z},maxTime:{type:String,validator:Z},columnsType:{type:Array,default:()=>["hour","minute"]},filter:Function});var Ue=N({name:Le,props:Ee,emits:["confirm","cancel","change","update:modelValue"],setup(n,{emit:d,slots:e}){const r=ee(n.modelValue),p=i=>{const k=i.split(":");return Re.map((c,o)=>n.columnsType.includes(c)?k[o]:"00")},m=M(()=>{let{minHour:i,maxHour:k,minMinute:c,maxMinute:o,minSecond:v,maxSecond:_}=n;if(n.minTime||n.maxTime){const u={hour:0,minute:0,second:0};n.columnsType.forEach((y,x)=>{var V;u[y]=(V=r.value[x])!=null?V:0});const{hour:t,minute:a}=u;if(n.minTime){const[y,x,V]=p(n.minTime);i=y,c=+t<=+i?x:"00",v=+t<=+i&&+a<=+c?V:"00"}if(n.maxTime){const[y,x,V]=p(n.maxTime);k=y,o=+t>=+k?x:"59",_=+t>=+k&&+a>=+o?V:"59"}}return n.columnsType.map(u=>{const{filter:t,formatter:a}=n;switch(u){case"hour":return D(+i,+k,u,a,t,r.value);case"minute":return D(+c,+o,u,a,t,r.value);case"second":return D(+v,+_,u,a,t,r.value);default:return[]}})});z(r,i=>{X(i,n.modelValue)||d("update:modelValue",i)}),z(()=>n.modelValue,i=>{i=ke(i,m.value),X(i,r.value)||(r.value=i)},{immediate:!0});const P=(...i)=>d("change",...i),h=(...i)=>d("cancel",...i),b=(...i)=>d("confirm",...i);return()=>s(ie,ae({modelValue:r.value,"onUpdate:modelValue":i=>r.value=i,columns:m.value,onChange:P,onCancel:h,onConfirm:b},te(n,ve)),e)}});const qe=A(Ue);function Xe(n){return G.get("/api/Collect/GetCollectList",n)}function Je(n){return G.get("/api/Common/GetMenuRole",n)}function Qe(n){return G.get("/api/PlanProject/GetPlanProjectByMyList",n)}function Ze(n){return G.get("/api/SysConfig/SysConfigInit",n)}function en(n,d){return G.post("/api/SysConfig/SysConfigSave",n,d)}const nn={class:"publicContainer"},tn={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},an=w("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),on={class:"w-full h-full flex justify-end flex-wrap"},sn={class:"w-[20px] h-[20px] border-solid border-[1px] border-blue-500 ccFlex text-blue-500"},rn={class:"text-blue-500"},ln=["onClick"],dn=w("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),cn={class:"w-full h-full flex justify-end"},fn={__name:"index",setup(n,{expose:d}){const e=be({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 r(t){e.paramsTransfers.semester_date_begin=Q(t[0]).format("YYYY-MM-DD"),e.paramsTransfers.semester_date_end=Q(t[1]).format("YYYY-MM-DD"),e.date.show=!1}function p(){Qe().then(t=>{t.response?e.data.mySchedule=t.response:e.data.mySchedule={}})}function m(){Xe().then(t=>{e.data.myFocus=t.response})}function P(){Je().then(t=>{e.role=t.response})}function h(){Se(()=>en({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&&u(),t)))}function b(){e.select.showPopup=!1}function i(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function k(t){e.paramsTransfers.nowrite_remind_time.splice(t,1)}function c({selectedValues:t,selectedOptions:a,selectedIndexes:y}){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 o({selectedValues:t,selectedOptions:a,selectedIndexes:y}){e.paramsTransfers[e.getWeekOrTimeKey]=t[0],e.select.weekShow=!1}function v(t){e.select.weekShow=!0,e.getWeekOrTimeKey=t}function _(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function u(){e.select.showPopup=!0,e.loading=!0,Ze().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(a=>a!=0&&a!=1&&Number(a)!=0&&Number(a)!=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 ye(()=>{document.title="一周安排",p(),m(),P()}),d({GetCollectList:m}),(t,a)=>{const y=Te,x=He,V=xe,se=Pe,C=Ve,re=$e,R=Ie,E=ne,U=Oe,le=Me,de=qe,ce=ie;return g(),F(W,null,[w("div",nn,[s(y),w("div",tn,[Object.keys(e.data.mySchedule).length?(g(),S(x,{key:0,style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:f(()=>[T(" 今日安排 ")]),_:1})):$("",!0),Object.keys(e.data.mySchedule).length?(g(),S(V,{key:1,data:e.data.mySchedule},null,8,["data"])):$("",!0),e.data.myFocus.length?(g(),S(x,{key:2,style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:f(()=>[T(" 我的关注 ")]),_:1})):$("",!0),(g(!0),F(W,null,J(e.data.myFocus,(l,j)=>(g(),S(se,{key:j,alldayOrMidafternoonStatus:!!Number(l.is_allday),data:l},null,8,["alldayOrMidafternoonStatus","data"]))),128)),Object.keys(e.role).some(l=>Number(e.role[l])==1)?(g(),S(x,{key:3,style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:f(()=>[T(" 菜单栏 ")]),_:1})):$("",!0),e.role.plan_write==1?(g(),S(C,{key:4,title:"工作安排填报","is-link":"",to:"/workArrangementFilling"})):$("",!0),e.role.examine==1?(g(),S(C,{key:5,title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"})):$("",!0),e.role.userrole==1?(g(),S(C,{key:6,title:"人员授权","is-link":"",to:"/personnelAuthority"})):$("",!0),e.role.write_sysconfig==1?(g(),S(C,{key:7,onClick:u,title:"填报配置","is-link":""})):$("",!0)])]),s(Y,{show:e.select.showPopup,height:60},{content:f(()=>[(g(),F("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative overflow-y-auto",key:e.calendarKey},[s(Ce,{show:e.loading},null,8,["show"]),s(C,{inset:"",title:"学期范围",value:e.paramsTransfers.semester_date_begin+" - "+e.paramsTransfers.semester_date_end,onClick:a[0]||(a[0]=l=>e.date.show=!0)},null,8,["value"]),s(re,{type:"range",show:e.date.show,"onUpdate:show":a[1]||(a[1]=l=>e.date.show=l),onConfirm:r},null,8,["show"]),s(C,{inset:"",title:"填报刷新周期"},{value:f(()=>[T(" 每周"),w("span",{class:"text-blue-500 mr-2",onClick:a[2]||(a[2]=l=>v("period_remind_week"))},"["+B(e.paramsTransfers.period_remind_week)+"]",1),w("span",{onClick:a[3]||(a[3]=l=>_("period_remind_time")),class:"text-blue-500"},"["+B(e.paramsTransfers.period_remind_time)+"]",1)]),_:1}),an,s(C,{inset:"",title:"未填写提醒"},{value:f(()=>[w("div",on,[s(R,{shape:"square",class:"w-full flex justify-end m-1",modelValue:e.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":a[4]||(a[4]=l=>e.paramsTransfers.nowrite_remind_isCheck=l)},{default:f(()=>[T("开启 ")]),_:1},8,["modelValue"]),w("div",{onClick:a[5]||(a[5]=l=>i("nowrite_remind_time")),shape:"square",class:"w-full flex justify-end m-1"},[w("div",sn,[s(E,{name:"plus"})])]),(g(!0),F(W,null,J(e.paramsTransfers.nowrite_remind_time,(l,j)=>(g(),F("div",{class:"w-full flex justify-end items-center m-1",key:j},[w("span",rn,"["+B(l)+"]",1),w("div",{onClick:mn=>k(j),class:"ml-2 w-[15px] h-[15px] ccFlex text-blue-500"},[s(E,{class:"text-red-600",name:"cross"})],8,ln)]))),128))])]),_:1}),dn,s(C,{inset:"",title:"提前填写"},{default:f(()=>[w("div",cn,[s(R,{shape:"square",class:"ml-auto",modelValue:e.paramsTransfers.ahead_write,"onUpdate:modelValue":a[6]||(a[6]=l=>e.paramsTransfers.ahead_write=l)},{default:f(()=>[T("允许")]),_:1},8,["modelValue"])])]),_:1}),s(C,{inset:"",title:"填报情况提醒"},{value:f(()=>[T(" 每周"),w("span",{class:"text-blue-500 mr-2",onClick:a[7]||(a[7]=l=>v("write_remind_week"))},"["+B(e.paramsTransfers.write_remind_week)+"]",1),w("span",{onClick:a[8]||(a[8]=l=>_("write_remind_time")),class:"text-blue-500"},"["+B(e.paramsTransfers.write_remind_time)+"]",1)]),_:1})])),s(le,null,{default:f(()=>[s(U,{type:"primary",round:"",class:"w-[90px]",onClick:h},{default:f(()=>[T("保存")]),_:1}),s(U,{round:"",class:"w-[90px]",onClick:b},{default:f(()=>[T("关闭")]),_:1})]),_:1})]),_:1},8,["show"]),s(Y,{show:e.select.timeShow,height:60},{content:f(()=>[s(de,{onConfirm:c,onCancel:a[9]||(a[9]=l=>e.select.timeShow=!1),title:"选择时间"})]),_:1},8,["show"]),s(Y,{show:e.select.weekShow,height:60},{content:f(()=>[s(ce,{title:"请选择日期",columns:e.columns,onConfirm:o,onCancel:a[10]||(a[10]=l=>e.select.weekShow=!1)},null,8,["columns"])]),_:1},8,["show"])],64)}}};export{fn as default}; import{h as A,s as me,i as q,n as ue,j as N,k as H,m as _e,t as L,r as ee,l as M,a as s,I as ne,p as I,q as K,v as fe,x as z,y as pe,z as he,A as te,B as ae,D as ge,E as we,H as O,J as X,K as ke,M as ve,O as D,P as G,Q as be,b as ye,c as F,R as w,T as S,d as f,U as $,F as W,V as J,W as Y,X as xe,o as g,e as T,Y as Ce,Z as B,$ as Q,a0 as Se,a1 as Te,a2 as Pe,a3 as Ve,a4 as $e,a5 as Oe,a6 as Me}from"./index-xGd5Trjm.js";const ie=A(me),oe={name:q,disabled:Boolean,iconSize:ue,modelValue:q,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var Fe=N({props:H({},oe,{bem:_e(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:L}),emits:["click","toggle"],setup(n,{emit:d,slots:e}){const r=ee(),p=o=>{if(n.parent&&n.bindGroup)return n.parent.props[o]},m=M(()=>{if(n.parent&&n.bindGroup){const o=p("disabled")||n.disabled;if(n.role==="checkbox"){const v=p("modelValue").length,_=p("max"),u=_&&v>=+_;return o||u&&!n.checked}return o}return n.disabled}),P=M(()=>p("direction")),h=M(()=>{const o=n.checkedColor||p("checkedColor");if(o&&n.checked&&!m.value)return{borderColor:o,backgroundColor:o}}),b=M(()=>n.shape||p("shape")||"round"),i=o=>{const{target:v}=o,_=r.value,u=_===v||(_==null?void 0:_.contains(v));!m.value&&(u||!n.labelDisabled)&&d("toggle"),d("click",o)},k=()=>{var o,v;const{bem:_,checked:u}=n,t=n.iconSize||p("iconSize");return s("div",{ref:r,class:_("icon",[b.value,{disabled:m.value,checked:u}]),style:b.value!=="dot"?{fontSize:I(t)}:{width:I(t),height:I(t),borderColor:(o=h.value)==null?void 0:o.borderColor}},[e.icon?e.icon({checked:u,disabled:m.value}):b.value!=="dot"?s(ne,{name:"success",style:h.value},null):s("div",{class:_("icon--dot__icon"),style:{backgroundColor:(v=h.value)==null?void 0:v.backgroundColor}},null)])},c=()=>{if(e.default)return s("span",{class:n.bem("label",[n.labelPosition,{disabled:m.value}])},[e.default()])};return()=>{const o=n.labelPosition==="left"?[c(),k()]:[k(),c()];return s("div",{role:n.role,class:n.bem([{disabled:m.value,"label-disabled":n.labelDisabled},P.value]),tabindex:m.value?void 0:0,"aria-checked":n.checked,onClick:i},[o])}}});const[Be,_n]=K("checkbox-group"),Ge=Symbol(Be),[je,Ae]=K("checkbox"),Ne=H({},oe,{shape:String,bindGroup:L});var Ke=N({name:je,props:Ne,emits:["change","update:modelValue"],setup(n,{emit:d,slots:e}){const{parent:r}=fe(Ge),p=h=>{const{name:b}=n,{max:i,modelValue:k}=r.props,c=k.slice();if(h)!(i&&c.length>=+i)&&!c.includes(b)&&(c.push(b),n.bindGroup&&r.updateValue(c));else{const o=c.indexOf(b);o!==-1&&(c.splice(o,1),n.bindGroup&&r.updateValue(c))}},m=M(()=>r&&n.bindGroup?r.props.modelValue.indexOf(n.name)!==-1:!!n.modelValue),P=(h=!m.value)=>{r&&n.bindGroup?p(h):d("update:modelValue",h)};return z(()=>n.modelValue,h=>d("change",h)),pe({toggle:P,props:n,checked:m}),he(()=>n.modelValue),()=>s(Fe,ae({bem:Ae,role:"checkbox",parent:r,checked:m.value,onToggle:P},n),te(e,["default","icon"]))}});const Ie=A(Ke),[De,We]=K("divider"),Ye={dashed:Boolean,hairline:L,vertical:Boolean,contentPosition:ge("center")};var ze=N({name:De,props:Ye,setup(n,{slots:d}){return()=>{var e;return s("div",{role:"separator",class:We({dashed:n.dashed,hairline:n.hairline,vertical:n.vertical,[`content-${n.contentPosition}`]:!!d.default&&!n.vertical})},[!n.vertical&&((e=d.default)==null?void 0:e.call(d))])}}});const He=A(ze),[Le]=K("time-picker"),Z=n=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(n),Re=["hour","minute","second"],Ee=H({},we,{minHour:O(0),maxHour:O(23),minMinute:O(0),maxMinute:O(59),minSecond:O(0),maxSecond:O(59),minTime:{type:String,validator:Z},maxTime:{type:String,validator:Z},columnsType:{type:Array,default:()=>["hour","minute"]},filter:Function});var Ue=N({name:Le,props:Ee,emits:["confirm","cancel","change","update:modelValue"],setup(n,{emit:d,slots:e}){const r=ee(n.modelValue),p=i=>{const k=i.split(":");return Re.map((c,o)=>n.columnsType.includes(c)?k[o]:"00")},m=M(()=>{let{minHour:i,maxHour:k,minMinute:c,maxMinute:o,minSecond:v,maxSecond:_}=n;if(n.minTime||n.maxTime){const u={hour:0,minute:0,second:0};n.columnsType.forEach((y,x)=>{var V;u[y]=(V=r.value[x])!=null?V:0});const{hour:t,minute:a}=u;if(n.minTime){const[y,x,V]=p(n.minTime);i=y,c=+t<=+i?x:"00",v=+t<=+i&&+a<=+c?V:"00"}if(n.maxTime){const[y,x,V]=p(n.maxTime);k=y,o=+t>=+k?x:"59",_=+t>=+k&&+a>=+o?V:"59"}}return n.columnsType.map(u=>{const{filter:t,formatter:a}=n;switch(u){case"hour":return D(+i,+k,u,a,t,r.value);case"minute":return D(+c,+o,u,a,t,r.value);case"second":return D(+v,+_,u,a,t,r.value);default:return[]}})});z(r,i=>{X(i,n.modelValue)||d("update:modelValue",i)}),z(()=>n.modelValue,i=>{i=ke(i,m.value),X(i,r.value)||(r.value=i)},{immediate:!0});const P=(...i)=>d("change",...i),h=(...i)=>d("cancel",...i),b=(...i)=>d("confirm",...i);return()=>s(ie,ae({modelValue:r.value,"onUpdate:modelValue":i=>r.value=i,columns:m.value,onChange:P,onCancel:h,onConfirm:b},te(n,ve)),e)}});const qe=A(Ue);function Xe(n){return G.get("/api/Collect/GetCollectList",n)}function Je(n){return G.get("/api/Common/GetMenuRole",n)}function Qe(n){return G.get("/api/PlanProject/GetPlanProjectByMyList",n)}function Ze(n){return G.get("/api/SysConfig/SysConfigInit",n)}function en(n,d){return G.post("/api/SysConfig/SysConfigSave",n,d)}const nn={class:"publicContainer"},tn={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto"},an=w("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),on={class:"w-full h-full flex justify-end flex-wrap"},sn={class:"w-[20px] h-[20px] border-solid border-[1px] border-blue-500 ccFlex text-blue-500"},rn={class:"text-blue-500"},ln=["onClick"],dn=w("div",{class:"w-full h-[10px] bg-gray-200"},null,-1),cn={class:"w-full h-full flex justify-end"},fn={__name:"index",setup(n,{expose:d}){const e=be({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 r(t){e.paramsTransfers.semester_date_begin=Q(t[0]).format("YYYY-MM-DD"),e.paramsTransfers.semester_date_end=Q(t[1]).format("YYYY-MM-DD"),e.date.show=!1}function p(){Qe().then(t=>{t.response?e.data.mySchedule=t.response:e.data.mySchedule={}})}function m(){Xe().then(t=>{e.data.myFocus=t.response})}function P(){Je().then(t=>{e.role=t.response})}function h(){Se(()=>en({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&&u(),t)))}function b(){e.select.showPopup=!1}function i(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function k(t){e.paramsTransfers.nowrite_remind_time.splice(t,1)}function c({selectedValues:t,selectedOptions:a,selectedIndexes:y}){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 o({selectedValues:t,selectedOptions:a,selectedIndexes:y}){e.paramsTransfers[e.getWeekOrTimeKey]=t[0],e.select.weekShow=!1}function v(t){e.select.weekShow=!0,e.getWeekOrTimeKey=t}function _(t){e.select.timeShow=!0,e.getWeekOrTimeKey=t}function u(){e.select.showPopup=!0,e.loading=!0,Ze().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(a=>a!=0&&a!=1&&Number(a)!=0&&Number(a)!=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 ye(()=>{document.title="一周安排",p(),m(),P()}),d({GetCollectList:m}),(t,a)=>{const y=Te,x=He,V=xe,se=Pe,C=Ve,re=$e,R=Ie,E=ne,U=Oe,le=Me,de=qe,ce=ie;return g(),F(W,null,[w("div",nn,[s(y),w("div",tn,[Object.keys(e.data.mySchedule).length?(g(),S(x,{key:0,style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:f(()=>[T(" 今日安排 ")]),_:1})):$("",!0),Object.keys(e.data.mySchedule).length?(g(),S(V,{key:1,data:e.data.mySchedule},null,8,["data"])):$("",!0),e.data.myFocus.length?(g(),S(x,{key:2,style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:f(()=>[T(" 我的关注 ")]),_:1})):$("",!0),(g(!0),F(W,null,J(e.data.myFocus,(l,j)=>(g(),S(se,{key:j,alldayOrMidafternoonStatus:!!Number(l.is_allday),data:l},null,8,["alldayOrMidafternoonStatus","data"]))),128)),Object.keys(e.role).some(l=>Number(e.role[l])==1)?(g(),S(x,{key:3,style:{color:"#1989FA",fontSize:"18px",margin:0,borderColor:"#1989fa",padding:"5px 0"},"content-position":"left"},{default:f(()=>[T(" 菜单栏 ")]),_:1})):$("",!0),e.role.plan_write==1?(g(),S(C,{key:4,title:"工作安排填报","is-link":"",to:"/workArrangementFilling"})):$("",!0),e.role.examine==1?(g(),S(C,{key:5,title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"})):$("",!0),e.role.userrole==1?(g(),S(C,{key:6,title:"人员授权","is-link":"",to:"/personnelAuthority"})):$("",!0),e.role.write_sysconfig==1?(g(),S(C,{key:7,onClick:u,title:"填报配置","is-link":""})):$("",!0)])]),s(Y,{show:e.select.showPopup,height:60},{content:f(()=>[(g(),F("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative overflow-y-auto",key:e.calendarKey},[s(Ce,{show:e.loading},null,8,["show"]),s(C,{inset:"",title:"学期范围",value:e.paramsTransfers.semester_date_begin+" - "+e.paramsTransfers.semester_date_end,onClick:a[0]||(a[0]=l=>e.date.show=!0)},null,8,["value"]),s(re,{type:"range",show:e.date.show,"onUpdate:show":a[1]||(a[1]=l=>e.date.show=l),onConfirm:r},null,8,["show"]),s(C,{inset:"",title:"填报刷新周期"},{value:f(()=>[T(" 每周"),w("span",{class:"text-blue-500 mr-2",onClick:a[2]||(a[2]=l=>v("period_remind_week"))},"["+B(e.paramsTransfers.period_remind_week)+"]",1),w("span",{onClick:a[3]||(a[3]=l=>_("period_remind_time")),class:"text-blue-500"},"["+B(e.paramsTransfers.period_remind_time)+"]",1)]),_:1}),an,s(C,{inset:"",title:"未填写提醒"},{value:f(()=>[w("div",on,[s(R,{shape:"square",class:"w-full flex justify-end m-1",modelValue:e.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":a[4]||(a[4]=l=>e.paramsTransfers.nowrite_remind_isCheck=l)},{default:f(()=>[T("开启 ")]),_:1},8,["modelValue"]),w("div",{onClick:a[5]||(a[5]=l=>i("nowrite_remind_time")),shape:"square",class:"w-full flex justify-end m-1"},[w("div",sn,[s(E,{name:"plus"})])]),(g(!0),F(W,null,J(e.paramsTransfers.nowrite_remind_time,(l,j)=>(g(),F("div",{class:"w-full flex justify-end items-center m-1",key:j},[w("span",rn,"["+B(l)+"]",1),w("div",{onClick:mn=>k(j),class:"ml-2 w-[15px] h-[15px] ccFlex text-blue-500"},[s(E,{class:"text-red-600",name:"cross"})],8,ln)]))),128))])]),_:1}),dn,s(C,{inset:"",title:"提前填写"},{default:f(()=>[w("div",cn,[s(R,{shape:"square",class:"ml-auto",modelValue:e.paramsTransfers.ahead_write,"onUpdate:modelValue":a[6]||(a[6]=l=>e.paramsTransfers.ahead_write=l)},{default:f(()=>[T("允许")]),_:1},8,["modelValue"])])]),_:1}),s(C,{inset:"",title:"填报情况提醒"},{value:f(()=>[T(" 每周"),w("span",{class:"text-blue-500 mr-2",onClick:a[7]||(a[7]=l=>v("write_remind_week"))},"["+B(e.paramsTransfers.write_remind_week)+"]",1),w("span",{onClick:a[8]||(a[8]=l=>_("write_remind_time")),class:"text-blue-500"},"["+B(e.paramsTransfers.write_remind_time)+"]",1)]),_:1})])),s(le,null,{default:f(()=>[s(U,{type:"primary",round:"",class:"w-[90px]",onClick:h},{default:f(()=>[T("保存")]),_:1}),s(U,{round:"",class:"w-[90px]",onClick:b},{default:f(()=>[T("关闭")]),_:1})]),_:1})]),_:1},8,["show"]),s(Y,{show:e.select.timeShow,height:60},{content:f(()=>[s(de,{onConfirm:c,onCancel:a[9]||(a[9]=l=>e.select.timeShow=!1),title:"选择时间"})]),_:1},8,["show"]),s(Y,{show:e.select.weekShow,height:60},{content:f(()=>[s(ce,{title:"请选择日期",columns:e.columns,onConfirm:o,onCancel:a[10]||(a[10]=l=>e.select.weekShow=!1)},null,8,["columns"])]),_:1},8,["show"])],64)}}};export{fn as default};
import{_ as e}from"./index-DE9mkwar.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default}; import{_ as e}from"./index-xGd5Trjm.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0"> content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title>一周安排</title> <title>一周安排</title>
<script type="module" crossorigin src="./assets/index-DE9mkwar.js"></script> <script type="module" crossorigin src="./assets/index-xGd5Trjm.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-PfmrO8Lu.css"> <link rel="stylesheet" crossorigin href="./assets/index-Ut6G3CQQ.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
<template> <template>
<div class="w-full h-[64px] shadow shadow-gray-600 flex items-center justify-evenly"> <div class="w-full h-[64px] z-0 shadow shadow-gray-600 flex items-center justify-evenly">
<slot name="default"/> <slot name="default"/>
</div> </div>
</template> </template>
......
...@@ -96,31 +96,33 @@ ...@@ -96,31 +96,33 @@
<van-cell inset title="选择日期" <van-cell inset title="选择日期"
:value="[init.search.dateWeek,init.search.dateDay][Number(init.switchView.show)]" :value="[init.search.dateWeek,init.search.dateDay][Number(init.switchView.show)]"
@click="init.date.show = true"/> @click="init.date.show = true"/>
1
<popup v-if="init.switchView.show" :show="init.date.show" :height="80"> <!-- <popup v-if="init.switchView.show" :show="init.date.show" :height="80">-->
<template #content> <!-- <template #content>-->
<van-calendar :formatter="formatter" :min-date="new Date(miniDate1)" <!-- <van-calendar :formatter="formatter" :min-date="new Date(miniDate1)"-->
v-model:show="init.date.show"
@confirm="onConfirm($event,'day')"/>
</template>
</popup>
<popup v-else :show="init.date.show" :height="80">
<template #content>
<van-calendar :formatter="formatter" :min-date="new Date(miniDate1)" :max-range="5"
range-prompt="最多选择 5 天"
type="range"
v-model:show="init.date.show"
@confirm="onConfirm($event,'week')"/>
</template>
</popup>
<!-- <van-calendar v-if="init.switchView.show" :formatter="formatter" :min-date="new Date(miniDate1)"-->
<!-- v-model:show="init.date.show"--> <!-- v-model:show="init.date.show"-->
<!-- @confirm="onConfirm($event,'day')"/>--> <!-- @confirm="onConfirm($event,'day')"/>-->
<!-- <van-calendar v-else :formatter="formatter" :min-date="new Date(miniDate1)" :max-range="5"--> <!-- </template>-->
<!-- </popup>-->
<!-- <popup v-else :show="init.date.show" :height="80">-->
<!-- <template #content>-->
<!-- <van-calendar :formatter="formatter" :min-date="new Date(miniDate1)" :max-range="5"-->
<!-- range-prompt="最多选择 5 天"--> <!-- range-prompt="最多选择 5 天"-->
<!-- type="range"--> <!-- type="range"-->
<!-- v-model:show="init.date.show"--> <!-- v-model:show="init.date.show"-->
<!-- @confirm="onConfirm($event,'week')"/>--> <!-- @confirm="onConfirm($event,'week')"/>-->
<!-- </template>-->
<!-- </popup>-->
<van-calendar style="z-index: 99999" v-if="init.switchView.show" :formatter="formatter"
:min-date="new Date(miniDate1)"
v-model:show="init.date.show"
@confirm="onConfirm($event,'day')"/>
<van-calendar style="z-index: 99999" v-else :formatter="formatter" :min-date="new Date(miniDate1)"
:max-range="5"
range-prompt="最多选择 5 天"
type="range"
v-model:show="init.date.show"
@confirm="onConfirm($event,'week')"/>
<div class="w-full h-3"></div> <div class="w-full h-3"></div>
<div class="w-full h-auto bg-white "> <div class="w-full h-auto bg-white ">
<div class="w-full h-10 p-4 pb-0 font-bold">分管部门</div> <div class="w-full h-10 p-4 pb-0 font-bold">分管部门</div>
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或