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

V20240319 保存

上级 eaa17751
import{b as p,c as u,a as l,w as k,u as m,L as _,o as f,d as g,C as w,e as n,G as a,S as y,f as d}from"./index-CtlYELMr.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(v){const t=m(),c=async o=>{const e=await y(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}},r=async o=>{const e=await d(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",s.response.role),await t.replace({name:"welcome"})}},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await w();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return p(()=>{i()}),(o,e)=>{const s=_;return f(),u("div",R,[l(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[g(" 登录中")]),_: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-DLFN3cV-.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 _,w as m,u as y,L as f,o as d,d as w,f as g,e as n,G as o,C as v,S as x}from"./index-CtlYELMr.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 g(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(()=>[w(" 登录中")]),_: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-DLFN3cV-.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{c as r,a as e,F as c,u as s,o as _,w as m,N as i}from"./index-DLFN3cV-.js";import{E as l}from"./index-BzWHFkmH.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{p as f,i as d,k as y,a as s,F as c,ak as h,al as v,g as A,O as z}from"./index-CtlYELMr.js";const[m,w]=f("space"),S={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function u(e=[]){const a=[];return e.forEach(t=>{Array.isArray(t)?a.push(...t):t.type===c?a.push(...u(t.children)):a.push(t)}),a.filter(t=>{var r;return!(t&&(t.type===h||t.type===c&&((r=t.children)==null?void 0:r.length)===0||t.type===v&&t.children.trim()===""))})}var p=d({name:m,props:S,setup(e,{slots:a}){const t=y(()=>{var n;return(n=e.align)!=null?n:e.direction==="horizontal"?"center":""}),r=n=>typeof n=="number"?n+"px":n,g=n=>{const i={},o=`${r(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${r(Array.isArray(e.size)?e.size[1]:e.size)}`;return n?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(i.marginRight=o),(e.direction==="vertical"||e.wrap)&&(i.marginBottom=l),i)};return()=>{var n;const i=u((n=a.default)==null?void 0:n.call(a));return s("div",{class:[w({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[i.map((o,l)=>s("div",{key:`item-${l}`,class:`${m}-item`,style:g(l===i.length-1)},[o]))])}}});const x=A(p);function B(e){return z.get("/api/Common/GetDeptList",e)}export{x as S,B as g};
import{q as f,j as d,l as y,a as s,F as m,am as h,an as v,h as A,P as z}from"./index-DLFN3cV-.js";const[c,w]=f("space"),S={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function u(e=[]){const a=[];return e.forEach(t=>{Array.isArray(t)?a.push(...t):t.type===m?a.push(...u(t.children)):a.push(t)}),a.filter(t=>{var r;return!(t&&(t.type===h||t.type===m&&((r=t.children)==null?void 0:r.length)===0||t.type===v&&t.children.trim()===""))})}var $=d({name:c,props:S,setup(e,{slots:a}){const t=y(()=>{var n;return(n=e.align)!=null?n:e.direction==="horizontal"?"center":""}),r=n=>typeof n=="number"?n+"px":n,g=n=>{const i={},o=`${r(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${r(Array.isArray(e.size)?e.size[1]:e.size)}`;return n?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(i.marginRight=o),(e.direction==="vertical"||e.wrap)&&(i.marginBottom=l),i)};return()=>{var n;const i=u((n=a.default)==null?void 0:n.call(a));return s("div",{class:[w({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[i.map((o,l)=>s("div",{key:`item-${l}`,class:`${c}-item`,style:g(l===i.length-1)},[o]))])}}});const x=A($);function B(e){return z.get("/api/Common/GetDeptList",e)}export{x as S,B as g};
import{P as a,b as t,c as s,a as c,Q as e,o as n,a7 as l}from"./index-CtlYELMr.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-DLFN3cV-.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{c as r,a as e,F as c,u as s,o as m,N as _}from"./index-CtlYELMr.js";import{E as l}from"./index-kOmZnPqx.js";const h={__name:"index",setup(p){const t=s(),o=()=>t.replace({name:"welcome"});return(i,u)=>{const a=_,n=l;return m(),r(c,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(n,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{h as default};
import{P as E,$ as p,r as O,Q as ie,b as oe,c,R as l,a as f,Z as A,a9 as w,F as g,V as x,d as y,W as de,o,T as W,aa as S,e as M,a8 as re,ab as pe,a2 as ce,ac as _e,a3 as me,a4 as fe,a5 as he,a6 as ue,a0 as U,ad as ye,ae as Fe}from"./index-DLFN3cV-.js";import{g as ke,S as we}from"./index-BDHB2W9r.js";function ge(v,D){return E.post("/api/Common/GetUserList",v,D)}function De(v,D){return E.post("/api/PlanProject/GetPlanProjectByWeekList",v,D)}function be(v,D){return E.post("/api/PlanProject/GetPlanProjectByDayList",v,D)}const xe={class:"publicContainerNoPadding"},ve={class:"w-full h-[50px] flex justify-between items-center p-2"},Ye={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},Ce={key:0},Ae=l("div",{class:"w-full h-5"},null,-1),Be={key:1},We=["onClick"],Me={class:"aaa w-full min-h-[80px] ccFlex p-1"},Pe={class:"w-[calc(100%-35px)] h-full"},Ie=["onClick"],Ee={class:"aaa"},$e=l("div",{class:"w-[35px] min-h-[80px]"},[l("div",{class:"w-full h-1/2 ccFlex"}," 上 "),l("div",{class:"w-full h-1/2 ccFlex"}," 下 ")],-1),je={class:"w-[calc(100%-105px)] min-h-[80px]"},Ne={class:"w-full h-1/2 ccFlex"},Ve={class:"w-full h-1/2 ccFlex"},Le=["onClick"],Ge=l("div",{class:"w-full h-3"},null,-1),Oe=l("div",{class:"w-full h-3"},null,-1),Se={class:"w-full h-auto bg-white"},Ue=l("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=l("div",{class:"w-full h-3"},null,-1),ze={class:"w-full h-auto bg-white"},Re=l("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(v,{expose:D}){const F=p().startOf("week").add(1,"day").format("YYYY-MM-DD"),k=p().startOf("week").add(5,"day").format("YYYY-MM-DD"),K=O(),T=O();p(p().startOf("week").add(1,"day").format("YYYY-MM-DD")).format("YYYY-MM-DD");const $=new Date(p().year(),p().month()-1,1),e=ie({dataFlag:1,peoPleFlag:!1,weekFlag:!1,calendarKey:1,weekKey:1,dayArray:[],weekArray:[],paramsDay:{begin_time:p().format("YYYY-MM-DD"),end_time:p().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:F,end_time:k,dept_id_list:[],tid_list:[]},comment:{dept:[],user:[],deptId:[]},check:{dept_id_list:[],tid_list:[],begin_time:"",end_time:""},date:{show:!1},search:{date:F+" - "+k},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function j(a,t){e.date.show=!1,e.search.date=p(a[0]).format("YYYY-MM-DD")+" - "+p(a[1]).format("YYYY-MM-DD"),e.check.begin_time=p(a[0]).format("YYYY-MM-DD"),e.check.end_time=p(a[1]).format("YYYY-MM-DD")}function z(){e.select.showPopup=!0}function R(a){e.switchView.show=!e.switchView.show,e.calendarKey++,e.search.date=F+" - "+k,e.switchView.show?(e.paramsDay={begin_time:p().format("YYYY-MM-DD"),end_time:p().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},Y()):(e.paramsWeek={begin_time:F,end_time:k,dept_id_list:[],tid_list:[]},h()),N(a),e.select.action=!1}function N(a){e.check.dept_id_list=[],e.comment.dept.forEach(t=>{t.bg="",t.cl=""}),e.check.tid_list=[],e.comment.user.forEach(t=>{t.bg="",t.cl=""}),e.search.date=F+" - "+k,e.check={dept_id_list:[],tid_list:[],begin_time:"",end_time:""},e.calendarKey++,e.select.action=!1,e.paramsWeek={begin_time:F,end_time:k,dept_id_list:[],tid_list:[]},e.paramsDay={begin_time:p().format("YYYY-MM-DD"),end_time:p().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=[],P(),Y(),h()}function H(a){let t={true:async()=>{e.paramsDay={...e.check,begin_time:e.check.begin_time?e.check.begin_time:F,end_time:e.check.end_time?e.check.end_time:k},a.dateDay.deleteDateBg(),await Y(),a.dateDay.dateArrayAssignmentRelatedData(e.paramsDay.end_time),e.dayArray.map((i,d)=>{e.paramsDay.dept_id_list.includes(i.dept_id)&&(i.deptBg="#1989FA",i.deptCl="#FFFFFF"),e.paramsDay.tid_list.includes(i.userid)&&(i.peopleBg="#1989FA",i.peopleCl="#FFFFFF")}),e.select.showPopup=!1},false:()=>{e.paramsWeek={...e.check,begin_time:e.check.begin_time?e.check.begin_time:F,end_time:e.check.end_time?e.check.end_time:k},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(){ke().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(d=>(d.code===1&&(e.weekArray.forEach((_,n)=>{_.nameData.forEach((r,b)=>{a.userId===r.userId&&(r.bg="",r.cl="",r.attention=0)})}),h()),d)))},false:()=>{U(()=>Fe({id:a.userId,collect_type:0}).then(d=>(d.code===1&&(e.weekArray.forEach((_,n)=>{_.nameData.forEach((r,b)=>{a.userId===r.userId&&(r.bg="#1989FA",r.cl="#FFFFFF",r.attention=1)})}),h()),d)))}})[String(!!Number(a.attention))]()}function P(){ge(e.comment.deptId).then(a=>{e.comment.user=a.response.map(t=>({...t,bg:"",cl:""}))})}function Y(){return be(e.paramsDay).then(a=>{e.dayArray=a.response.map((t,i)=>({...t,deptBg:"",deptCl:"",peopleBg:"",peopleCl:""}))})}function J(a){e.paramsDay={...e.paramsDay,begin_time:a,end_time:a},Y()}function h(){return De(e.paramsWeek).then(a=>{let t=[],d=a.response.reduce((_,n)=>{const r=_.find(b=>b.deptName===n.dept_name);return r?r.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=d.map((_,n)=>(e.paramsWeek.dept_id_list.includes(_.deptId)&&(_.deptBg="#1989FA",_.deptCl="#FFFFFF"),_.nameData.map((r,b)=>(e.paramsWeek.tid_list.includes(r.userId)&&(r.peopleBg="#1989FA",r.peopleCl="#FFFFFF"),r)),_))})}function X(a){e.check.dept_id_list.includes(a.id)?(e.check.dept_id_list.forEach((t,i)=>{t===a.id&&e.check.dept_id_list.splice(i,1)}),e.comment.dept.forEach(t=>{t.id===a.id&&(t.bg="",t.cl="")}),e.comment.deptId.forEach((t,i)=>{t===a.id&&e.comment.deptId.splice(i,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")})),P(),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,i)=>{t===a.id&&e.check.tid_list.splice(i,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,i)=>(e.paramsWeek.dept_id_list.includes(t.deptId)&&(t.deptBg="#1989FA",t.deptCl="#FFFFFF"),t.nameData.map((d,_)=>(e.paramsWeek.tid_list.includes(d.userId)&&(d.peopleBg="#1989FA",d.peopleCl="#FFFFFF"),d)),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,i)=>(e.paramsWeek.dept_id_list.includes(t.deptId)&&(t.deptBg="#1989FA",t.deptCl="#FFFFFF"),t.nameData.map((d,_)=>(e.paramsWeek.tid_list.includes(d.userId)&&(d.peopleBg="#1989FA",d.peopleCl="#FFFFFF"),d)),t)),h()}function V(){return!!e.paramsWeek.dept_id_list.length||!!e.paramsWeek.tid_list.length}const L=a=>{let i=new Date(a.date).getDay();return(i==0||i==6)&&(a.type="disabled"),a};return oe(()=>{document.title="分管填报记录查看",Z(),P(),Y(),h()}),D({init:e,GetPlanProjectByDayList:Y,GetPlanProjectByWeekList:h}),(a,t)=>{const i=re,d=pe,_=ce,n=_e,r=me,b=fe,B=he,G=we,ne=ue,se=de;return o(),c(g,null,[l("div",xe,[f(i,{path:"/welcome",title:"分管填报记录查看"}),l("div",ve,[l("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"}," 切换"+A(e.switchView.show?"周":"天")+"视图 ",1),l("div",{style:w({background:["#FFFFFF","#1989FA"][Number(e.select.action)],color:["#4B5563","#FFFFFF"][Number(e.select.action)]}),onClick:z,class:"w-20 h-8 flex justify-center items-center border-solid border-[1px]"}," 高级查询 ",4)]),l("div",Ye,[e.switchView.show?(o(),c("div",Ce,[f(d,{ref_key:"dateDay",ref:K,onSearchDayData:J},null,512),Ae,(o(!0),c(g,null,x(e.dayArray,(s,C)=>(o(),W(_,{data:s,key:C,alldayOrMidafternoonStatus:!!Number(s.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):(o(),c("div",Be,[f(n,{ref_key:"dateWeek",ref:T},null,512),(o(),c("div",{class:"w-full h-auto bg-white text-gray-600",key:e.weekKey},[(o(!0),c(g,null,x(e.weekArray,(s,C)=>(o(),c("div",{class:"w-full min-h-[80px] flex-wrap ccFlex",key:C},[l("div",{onClick:m=>te(s.deptId),style:w({background:s.deptBg,color:s.deptCl}),class:"w-[35px] min-h-[80px]"},[l("div",Me,A(s.deptName),1)],12,We),l("div",Pe,[(o(!0),c(g,null,x(s.nameData,(m,le)=>(o(),c("div",{class:"w-full h-auto flex",key:le},[l("div",{onClick:u=>ae(m.userId),style:w({background:m.peopleBg,color:m.peopleCl}),class:"w-[35px] min-h-[80px] ccFlex"},[l("div",Ee,A(m.userName),1)],12,Ie),$e,l("div",je,[l("div",Ne,[(o(!0),c(g,null,x(m.nameArray,(u,I)=>(o(),c("div",{style:w({background:["","#D9E2F3"][+(u.fore_plan!=null&&u.fore_plan!=""&&u.fore_plan!=null)]}),key:I,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))]),l("div",Ve,[(o(!0),c(g,null,x(m.nameArray,(u,I)=>(o(),c("div",{style:w({background:["","#FFE599"][+(u.after_plan!=null&&u.after_plan!=""&&u.after_plan!=null)]}),key:I,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))])]),l("div",{style:w({background:m.bg,color:m.cl}),class:"w-[35px] min-h-[80px] ccFlex"},[l("div",{onClick:u=>q(m,m.attention),class:"aaa"},A(["关注","取消关注"][m.attention]),9,Le)],4)]))),128))])]))),128))]))]))])]),f(se,{show:e.select.showPopup,height:80},{content:y(()=>[(o(),c("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[Ge,f(r,{inset:"",title:"选择日期",value:e.search.date,onClick:t[1]||(t[1]=s=>e.date.show=!0)},null,8,["value"]),e.switchView.show?(o(),W(b,{key:0,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=>j(s,"day"))},null,8,["min-date","show"])):(o(),W(b,{key:1,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=>j(s,"week"))},null,8,["min-date","show"])),Oe,l("div",Se,[Ue,l("div",Ke,[f(G,{wrap:""},{default:y(()=>[(o(!0),c(g,null,x(e.comment.dept,(s,C)=>(o(),W(B,{onClick:m=>X(s),key:C,style:w({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:y(()=>[M(A(s.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Te,l("div",ze,[Re,l("div",He,[f(G,{wrap:""},{default:y(()=>[(o(!0),c(g,null,x(e.comment.user,(s,C)=>(o(),W(B,{onClick:m=>ee(s),style:w({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:y(()=>[M(A(s.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])])])),f(ne,null,{default:y(()=>[f(B,{type:"primary",round:"",class:"w-[90px]",onClick:t[6]||(t[6]=s=>N(a.$refs))},{default:y(()=>[M("重置")]),_:1}),f(B,{type:"primary",round:"",class:"w-[90px]",onClick:t[7]||(t[7]=s=>H(a.$refs))},{default:y(()=>[M("查询")]),_:1}),f(B,{round:"",class:"w-[90px]",onClick:Q},{default:y(()=>[M("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{qe as default};
import{g as A,s as me,h as q,n as ue,i as N,j as H,m as _e,t as L,r as ee,k as M,a as s,I as ne,l as I,p as K,q as fe,v as z,x as pe,y as he,z as te,A as ae,B as ge,D as we,E as O,H as X,J as ke,K as ve,M as D,O as G,P as be,b as ye,c as F,Q as w,R as S,w as f,T as $,F as W,U as J,V as Y,W as xe,o as g,d as T,X as Ce,Y as B,Z as Q,$ as Se,a0 as Te,a1 as Pe,a2 as Ve,a3 as $e,a4 as Oe,a5 as Me}from"./index-CtlYELMr.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:"1",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{q as v,j as w,ak as G,a as e,al as k,D as M,h as B}from"./index-DLFN3cV-.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{O as w,r as k,P as v,b as x,c as C,a as t,Q as r,w as n,a6 as g,a5 as y,o as l,R as I,d as i,T as W,a7 as B,a4 as N}from"./index-CtlYELMr.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-DLFN3cV-.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{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-DLFN3cV-.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};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{_ as e}from"./index-CtlYELMr.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{_ as e}from"./index-DLFN3cV-.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
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 U,_ as Y,r as $,o as f,c as b,Q as ee,b as te,R as i,T as B,U as se,F as V,V as A,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-DLFN3cV-.js";import{g as ie,S as re}from"./index-BDHB2W9r.js";import{E as ce}from"./index-BzWHFkmH.js";const[pe,C,O]=q("pagination"),G=(n,r,o)=>({number:n,text:r,active:o}),de={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 ue=H({name:pe,props:de,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 F=()=>u("li",{class:C("page-desc")},[o.pageDesc?o.pageDesc():`${n.modelValue}/${e.value}`]),R=()=>{const{mode:l,modelValue:d,showPrevButton:_}=n;if(!_)return;const h=o["prev-text"],t=d===1;return u("li",{class:[C("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:[C("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:[C("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:C()},[u("ul",{class:C("items")},[R(),n.mode==="simple"?F():P(),I()])])}});const me=X(ue);function _e(n){return U.post("/api/Common/GetRoleList",n)}function he(n,r){const o={page_index:n.page_index,page_size:n.page_size};return U.get("/api/UserRole/GetUserRoleList",{params:o,...r})}function fe(n,r){const o={id:n.id};return U.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 U.get("/api/UserRole/GetUserRoleSearch",{params:o,...r})}function xe(n,r){const o={userid:n.userid};return U.get("/api/UserRole/UserRoleIns",{params:o,...r})}function ve(n,r){return U.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(F){o("pageChange",F)}return r({currentPage:k}),(F,R)=>{const I=me;return f(),b("div",we,[u(I,{onChange:v,modelValue:k.value,"onUpdate:modelValue":R[0]||(R[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%]"},Be=i("div",{class:"h-[30px] w-[20%]"},"部门:",-1),Ae={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 F(t){e.check.role_list.includes(t.id)?(e.check.role_list.forEach((s,c)=>{s===t.id&&e.check.role_list.splice(c,1,"")}),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")})):(e.check.role_list.push(t.id),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.role_list)}function R(){_e().then(t=>{e.comment.user=t.response.map(s=>({...s,bg:"",cl:""}))})}function I(){ie().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(),R(),I()}),(t,s)=>{const c=ce,m=oe,p=re,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(),B(c,{key:0,description:"暂无授权名单,请通过搜索添加"})):se("",!0),(f(!0),b(V,null,A(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,A(a.dept_list,(z,W)=>(f(),B(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),Be,i("div",Ae,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,A(e.comment.user,(a,w)=>(f(),B(m,{onClick:z=>F(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,A(e.comment.dept,(a,w)=>(f(),B(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{p as Q,i as W,k as L,ad as Y,a as u,B as q,E as z,ae as H,t as M,af as G,ag as J,g as X,O as U,_ as Z,r as D,o as f,c as b,P as ee,b as te,Q as i,R as B,T as se,F as V,U as A,w as x,V as ae,ah as ne,Y as g,d as E,a8 as T,$ as j,a4 as oe,a5 as le}from"./index-CtlYELMr.js";import{g as ie,S as re}from"./index-EEPlLw5i.js";import{E as ce}from"./index-kOmZnPqx.js";const[pe,C,O]=Q("pagination"),$=(n,r,o)=>({number:n,text:r,active:o}),de={mode:q("multi"),prevText:String,nextText:String,pageCount:z(0),modelValue:H(0),totalItems:z(0),showPageSize:z(5),itemsPerPage:z(10),forceEllipses:Boolean,showPrevButton:M,showNextButton:M};var ue=W({name:pe,props:de,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=$(p,p,p===h);l.push(y)}if(m&&_>0&&t){if(s>1){const p=$(s-1,"...");l.unshift(p)}if(c<d){const p=$(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))};Y(()=>v(n.modelValue));const F=()=>u("li",{class:C("page-desc")},[o.pageDesc?o.pageDesc():`${n.modelValue}/${e.value}`]),R=()=>{const{mode:l,modelValue:d,showPrevButton:_}=n;if(!_)return;const h=o["prev-text"],t=d===1;return u("li",{class:[C("item",{disabled:t,border:l==="simple",prev:!0}),G]},[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:[C("item",{disabled:t,border:l==="simple",next:!0}),G]},[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:[C("item",{active:l.active,page:!0}),G]},[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:C()},[u("ul",{class:C("items")},[R(),n.mode==="simple"?F():P(),I()])])}});const me=X(ue);function _e(n){return U.post("/api/Common/GetRoleList",n)}function he(n,r){const o={page_index:n.page_index,page_size:n.page_size};return U.get("/api/UserRole/GetUserRoleList",{params:o,...r})}function fe(n,r){const o={id:n.id};return U.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 U.get("/api/UserRole/GetUserRoleSearch",{params:o,...r})}function xe(n,r){const o={userid:n.userid};return U.get("/api/UserRole/UserRoleIns",{params:o,...r})}function ve(n,r){return U.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=D(1);function v(F){o("pageChange",F)}return r({currentPage:k}),(F,R)=>{const I=me;return f(),b("div",we,[u(I,{onChange:v,modelValue:k.value,"onUpdate:modelValue":R[0]||(R[0]=P=>k.value=P),"total-items":e.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},ke=Z(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),Ee={class:"h-[30px] w-[80%]"},Ne=i("div",{class:"h-[30px] w-[20%]"},"工号:",-1),ze={class:"h-[30px] w-[80%]"},Be=i("div",{class:"h-[30px] w-[20%]"},"部门:",-1),Ae={class:"h-[30px] w-[80%]"},Ge=i("div",{class:"h-[30px] w-[20%]"},"岗位:",-1),$e={class:"h-[30px] w-[80%]"},De=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),Te={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},je=i("div",{class:"w-full h-3"},null,-1),Oe={class:"w-full h-auto bg-white"},Ke=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"},He={__name:"index",setup(n){const r=D(),o=D(),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(){j(()=>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 F(t){e.check.role_list.includes(t.id)?(e.check.role_list.forEach((s,c)=>{s===t.id&&e.check.role_list.splice(c,1,"")}),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")})):(e.check.role_list.push(t.id),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.role_list)}function R(){_e().then(t=>{e.comment.user=t.response.map(s=>({...s,bg:"",cl:""}))})}function I(){ie().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:()=>{j(()=>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(),R(),I()}),(t,s)=>{const c=ce,m=oe,p=re,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(),B(c,{key:0,description:"暂无授权名单,请通过搜索添加"})):se("",!0),(f(!0),b(V,null,A(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,A(a.dept_list,(N,K)=>(f(),B(m,{style:{margin:"5px 5px 5px 0"},key:K,plain:"",hairline:"",size:"small",type:"primary"},{default:x(()=>[E(g(N.name),1)]),_:2},1024))),128))])]),i("div",{onClick:N=>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",Ee,g(e.check.username),1),Ne,i("div",ze,g(e.check.usercard),1),Be,i("div",Ae,g(e.check.dept),1),Ge,i("div",$e,g(e.check.position_name),1)])]),De,i("div",Le,[Me,i("div",Te,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,A(e.comment.user,(a,w)=>(f(),B(m,{onClick:N=>F(a),style:T({margin:"5px",padding:"15px !important",height:"40px",background:a.bg,color:a.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(g(a.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])]),je,i("div",Oe,[Ke,i("div",Qe,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,A(e.comment.dept,(a,w)=>(f(),B(m,{onClick:N=>v(a),key:w,style:T({margin:"5px",padding:"15px !important",height:"40px",background:a.bg,color:a.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(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(()=>[E("确定")]),_:1}),u(m,{round:"",class:"w-[90px]",onClick:s[0]||(s[0]=a=>e.select.showPopup=!1)},{default:x(()=>[E("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{He as default};
import{p as v,i as w,ai as G,a as e,aj as k,B,g as M}from"./index-CtlYELMr.js";const[S,s]=v("empty"),C={image:B("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)])])]),g=()=>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)])]),E=()=>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:E,search:p,network:y,default:g};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=M(z);export{b as E};
import{O as I,Z as c,r as N,P as se,b as le,c as p,Q as s,a as f,Y as A,a8 as g,F as D,U as x,w as y,V as ie,o as r,R as P,a9 as oe,d as B,a7 as de,aa as re,a1 as ce,a2 as pe,a3 as _e,a4 as me,a5 as fe,$ as V,ab as he,ac as ue}from"./index-CtlYELMr.js";import{g as Fe,S as ye}from"./index-EEPlLw5i.js";function ke(Y,b){return I.post("/api/Common/GetUserList",Y,b)}function we(Y,b){return I.post("/api/PlanProject/GetPlanProjectByWeekList",Y,b)}function ge(Y,b){return I.post("/api/PlanProject/GetPlanProjectByDayList",Y,b)}const De={class:"publicContainerNoPadding"},be={class:"w-full h-[50px] flex justify-between items-center p-2"},xe={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},Ye={key:0},ve=s("div",{class:"w-full h-5"},null,-1),Ce={key:1},Ae=["onClick"],Be={class:"aaa w-full min-h-[80px] ccFlex p-1"},We={class:"w-[calc(100%-35px)] h-full"},Me=["onClick"],Pe={class:"aaa"},Ie=s("div",{class:"w-[35px] min-h-[80px]"},[s("div",{class:"w-full h-1/2 ccFlex"}," 上 "),s("div",{class:"w-full h-1/2 ccFlex"}," 下 ")],-1),Ee={class:"w-[calc(100%-105px)] min-h-[80px]"},$e={class:"w-full h-1/2 ccFlex"},je={class:"w-full h-1/2 ccFlex"},Ne=["onClick"],Ve=s("div",{class:"w-full h-3"},null,-1),Le=s("div",{class:"w-full h-3"},null,-1),Oe={class:"w-full h-auto bg-white"},Ge=s("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),Se={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ue=s("div",{class:"w-full h-3"},null,-1),Ke={class:"w-full h-auto bg-white"},ze=s("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),Re={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Qe={__name:"index",setup(Y,{expose:b}){const k=c().startOf("week").add(1,"day").format("YYYY-MM-DD"),w=c().startOf("week").add(5,"day").format("YYYY-MM-DD"),L=N(),O=N();c(c().startOf("week").add(1,"day").format("YYYY-MM-DD")).format("YYYY-MM-DD");const G=new Date(c().year(),c().month()-1,1),e=se({dataFlag:1,peoPleFlag:!1,weekFlag:!1,calendarKey:1,weekKey:1,dayArray:[],weekArray:[],paramsDay:{begin_time:c().format("YYYY-MM-DD"),end_time:c().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:k,end_time:w,dept_id_list:[],tid_list:[]},comment:{dept:[],user:[],deptId:[]},check:{dept_id_list:[],tid_list:[],begin_time:"",end_time:""},date:{show:!1},search:{date:k+" - "+w},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function S(t){e.date.show=!1,e.search.date=c(t[0]).format("YYYY-MM-DD")+" - "+c(t[1]).format("YYYY-MM-DD"),e.check.begin_time=c(t[0]).format("YYYY-MM-DD"),e.check.end_time=c(t[1]).format("YYYY-MM-DD")}function U(){e.select.showPopup=!0}function K(t){e.switchView.show=!e.switchView.show,e.calendarKey++,e.search.date=k+" - "+w,e.switchView.show?(e.paramsDay={begin_time:c().format("YYYY-MM-DD"),end_time:c().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},v()):(e.paramsWeek={begin_time:k,end_time:w,dept_id_list:[],tid_list:[]},u()),E(t),e.select.action=!1}function E(t){e.check.dept_id_list=[],e.comment.dept.forEach(a=>{a.bg="",a.cl=""}),e.check.tid_list=[],e.comment.user.forEach(a=>{a.bg="",a.cl=""}),e.search.date=k+" - "+w,e.check={dept_id_list:[],tid_list:[],begin_time:"",end_time:""},e.calendarKey++,e.select.action=!1,e.paramsWeek={begin_time:k,end_time:w,dept_id_list:[],tid_list:[]},e.paramsDay={begin_time:c().format("YYYY-MM-DD"),end_time:c().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},t.dateDay&&(t.dateDay.dateArray.array=[],t.dateDay.getInitDate()),t.dateWeek&&(t.dateWeek.dateArray.array=[],t.dateWeek.getInitDate()),e.comment.deptId=[],W(),v(),u()}function z(t){let a={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:w},t.dateDay.deleteDateBg(),await v(),t.dateDay.dateArrayAssignmentRelatedData(e.paramsDay.end_time),e.dayArray.map((i,o)=>{e.paramsDay.dept_id_list.includes(i.dept_id)&&(i.deptBg="#1989FA",i.deptCl="#FFFFFF"),e.paramsDay.tid_list.includes(i.userid)&&(i.peopleBg="#1989FA",i.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:w},u(),t.dateWeek.dateArrayAssignmentRelatedData(e.paramsWeek.end_time),e.select.showPopup=!1}};e.select.action=!0,a[String(e.switchView.show)]()}function R(){e.select.showPopup=!1}function T(){Fe().then(t=>{e.comment.dept=t.response.map(a=>({...a,bg:"",cl:""}))})}function H(t,a){({true:()=>{V(()=>he({plan_id:"",collect_userid:t.userId}).then(o=>(o.code===1&&(e.weekArray.forEach((_,n)=>{_.nameData.forEach((d,h)=>{t.userId===d.userId&&(d.bg="",d.cl="",d.attention=0)})}),u()),o)))},false:()=>{V(()=>ue({id:t.userId,collect_type:0}).then(o=>(o.code===1&&(e.weekArray.forEach((_,n)=>{_.nameData.forEach((d,h)=>{t.userId===d.userId&&(d.bg="#1989FA",d.cl="#FFFFFF",d.attention=1)})}),u()),o)))}})[String(!!Number(t.attention))]()}function W(){ke(e.comment.deptId).then(t=>{e.comment.user=t.response.map(a=>({...a,bg:"",cl:""}))})}function v(){return ge(e.paramsDay).then(t=>{e.dayArray=t.response.map((a,i)=>({...a,deptBg:"",deptCl:"",peopleBg:"",peopleCl:""}))})}function Q(t){e.paramsDay={...e.paramsDay,begin_time:t,end_time:t},v()}function u(){return we(e.paramsWeek).then(t=>{let a=[],o=t.response.reduce((_,n)=>{const d=_.find(h=>h.deptName===n.dept_name);return d?d.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:""}):a.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:""}]}),a},[]);e.weekArray=o.map((_,n)=>(e.paramsWeek.dept_id_list.includes(_.deptId)&&(_.deptBg="#1989FA",_.deptCl="#FFFFFF"),_.nameData.map((d,h)=>(e.paramsWeek.tid_list.includes(d.userId)&&(d.peopleBg="#1989FA",d.peopleCl="#FFFFFF"),d)),_))})}function Z(t){e.check.dept_id_list.includes(t.id)?(e.check.dept_id_list.forEach((a,i)=>{a===t.id&&e.check.dept_id_list.splice(i,1)}),e.comment.dept.forEach(a=>{a.id===t.id&&(a.bg="",a.cl="")}),e.comment.deptId.forEach((a,i)=>{a===t.id&&e.comment.deptId.splice(i,1)})):(e.check.dept_id_list.push(t.id),e.comment.deptId.push(t.id),e.comment.dept.forEach(a=>{a.id===t.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})),W(),console.log("🚀🚀check.dept_id_list🚀,",...e.check.dept_id_list,"")}function q(t){e.check.tid_list.includes(t.id)?(e.check.tid_list.forEach((a,i)=>{a===t.id&&e.check.tid_list.splice(i,1,"")}),e.comment.user.forEach(a=>{a.id===t.id&&(a.bg="",a.cl="")})):(e.check.tid_list.push(t.id),e.comment.user.forEach(a=>{a.id===t.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.tid_list)}function J(t){e.paramsWeek.dept_id_list.includes(t)?e.paramsWeek.dept_id_list.splice(e.paramsWeek.dept_id_list.indexOf(t),1):e.paramsWeek.dept_id_list.push(t),$()?e.select.action=!0:e.select.action=!1,e.weekArray.map((a,i)=>(e.paramsWeek.dept_id_list.includes(a.deptId)&&(a.deptBg="#1989FA",a.deptCl="#FFFFFF"),a.nameData.map((o,_)=>(e.paramsWeek.tid_list.includes(o.userId)&&(o.peopleBg="#1989FA",o.peopleCl="#FFFFFF"),o)),a)),u()}function X(t){e.paramsWeek.tid_list.includes(t)?e.paramsWeek.tid_list.splice(e.paramsWeek.tid_list.indexOf(t),1):e.paramsWeek.tid_list.push(t),$()?e.select.action=!0:e.select.action=!1,e.weekArray.map((a,i)=>(e.paramsWeek.dept_id_list.includes(a.deptId)&&(a.deptBg="#1989FA",a.deptCl="#FFFFFF"),a.nameData.map((o,_)=>(e.paramsWeek.tid_list.includes(o.userId)&&(o.peopleBg="#1989FA",o.peopleCl="#FFFFFF"),o)),a)),u()}function $(){return!!e.paramsWeek.dept_id_list.length||!!e.paramsWeek.tid_list.length}const ee=t=>{let i=new Date(t.date).getDay();return(i==0||i==6)&&(t.type="disabled"),t};return le(()=>{document.title="分管填报记录查看",T(),W(),v(),u()}),b({init:e,GetPlanProjectByDayList:v,GetPlanProjectByWeekList:u}),(t,a)=>{const i=de,o=re,_=ce,n=pe,d=_e,h=me,j=ye,te=fe,ae=ie;return r(),p(D,null,[s("div",De,[f(i,{path:"/welcome",title:"分管填报记录查看"}),s("div",be,[s("div",{onClick:a[0]||(a[0]=l=>K(t.$refs)),class:"w-24 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100"}," 切换"+A(e.switchView.show?"周":"天")+"视图 ",1),s("div",{style:g({background:["#FFFFFF","#1989FA"][Number(e.select.action)],color:["#4B5563","#FFFFFF"][Number(e.select.action)]}),onClick:U,class:"w-20 h-8 flex justify-center items-center border-solid border-[1px]"}," 高级查询 ",4)]),s("div",xe,[e.switchView.show?(r(),p("div",Ye,[f(o,{ref_key:"dateDay",ref:L,onSearchDayData:Q},null,512),ve,(r(!0),p(D,null,x(e.dayArray,(l,C)=>(r(),P(_,{data:l,key:C,alldayOrMidafternoonStatus:!!Number(l.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):(r(),p("div",Ce,[f(o,{ref_key:"dateWeek",ref:O},null,512),(r(),p("div",{class:"w-full h-auto bg-white text-gray-600",key:e.weekKey},[(r(!0),p(D,null,x(e.weekArray,(l,C)=>(r(),p("div",{class:"w-full min-h-[80px] flex-wrap ccFlex",key:C},[s("div",{onClick:m=>J(l.deptId),style:g({background:l.deptBg,color:l.deptCl}),class:"w-[35px] min-h-[80px]"},[s("div",Be,A(l.deptName),1)],12,Ae),s("div",We,[(r(!0),p(D,null,x(l.nameData,(m,ne)=>(r(),p("div",{class:"w-full h-auto flex",key:ne},[s("div",{onClick:F=>X(m.userId),style:g({background:m.peopleBg,color:m.peopleCl}),class:"w-[35px] min-h-[80px] ccFlex"},[s("div",Pe,A(m.userName),1)],12,Me),Ie,s("div",Ee,[s("div",$e,[(r(!0),p(D,null,x(m.nameArray,(F,M)=>(r(),p("div",{style:g({background:["","#D9E2F3"][+(F.fore_plan!=null&&F.fore_plan!=""&&F.fore_plan!=null)]}),key:M,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))]),s("div",je,[(r(!0),p(D,null,x(m.nameArray,(F,M)=>(r(),p("div",{style:g({background:["","#FFE599"][+(F.fore_plan!=null&&F.fore_plan!=""&&F.fore_plan!=null)]}),key:M,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))])]),s("div",{style:g({background:m.bg,color:m.cl}),class:"w-[35px] min-h-[80px] ccFlex"},[s("div",{onClick:F=>H(m,m.attention),class:"aaa"},A(["关注","取消关注"][m.attention]),9,Ne)],4)]))),128))])]))),128))]))]))])]),f(ae,{show:e.select.showPopup,height:80},{content:y(()=>[(r(),p("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[Ve,f(n,{inset:"",title:"选择单个日期",value:e.search.date,onClick:a[1]||(a[1]=l=>e.date.show=!0)},null,8,["value"]),f(d,{formatter:ee,"min-date":new Date(oe(G)),"max-range":5,"range-prompt":"最多选择 5 天",type:"range",show:e.date.show,"onUpdate:show":a[2]||(a[2]=l=>e.date.show=l),onConfirm:S},null,8,["min-date","show"]),Le,s("div",Oe,[Ge,s("div",Se,[f(j,{wrap:""},{default:y(()=>[(r(!0),p(D,null,x(e.comment.dept,(l,C)=>(r(),P(h,{onClick:m=>Z(l),key:C,style:g({margin:"5px",padding:"15px !important",height:"40px",background:l.bg,color:l.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:y(()=>[B(A(l.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Ue,s("div",Ke,[ze,s("div",Re,[f(j,{wrap:""},{default:y(()=>[(r(!0),p(D,null,x(e.comment.user,(l,C)=>(r(),P(h,{onClick:m=>q(l),style:g({margin:"5px",padding:"15px !important",height:"40px",background:l.bg,color:l.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:y(()=>[B(A(l.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])])])),f(te,null,{default:y(()=>[f(h,{type:"primary",round:"",class:"w-[90px]",onClick:a[3]||(a[3]=l=>E(t.$refs))},{default:y(()=>[B("重置")]),_:1}),f(h,{type:"primary",round:"",class:"w-[90px]",onClick:a[4]||(a[4]=l=>z(t.$refs))},{default:y(()=>[B("查询")]),_:1}),f(h,{round:"",class:"w-[90px]",onClick:R},{default:y(()=>[B("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{Qe as default};
......@@ -6,8 +6,8 @@
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title>一周安排</title>
<script type="module" crossorigin src="./assets/index-CtlYELMr.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-2Xr08w2n.css">
<script type="module" crossorigin src="./assets/index-DLFN3cV-.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-PfmrO8Lu.css">
</head>
<body>
<div id="app"></div>
......
<template>
<van-cell-group style="width: 100%;margin-top: 10px">
<van-swipe
ref="swipe"
@touchstart="touchStart"
@touchend="touchEnd($event,$parent)"
:initial-swipe="0"
:show-indicators="false"
width="100%"
:key=" dateArray.animationFlag "
>
<van-swipe-item style="width: 100%;height: 55px"
>
<div class="w-full h-[55px] flex ">
<div class="w-[105px] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div>
<div
:style="{background:item.bg,color:item.acColor,width:'13%',height:'100%'} "
:class="['animate__animated animate__fadeIn','animate__animated animate__fadeIn'][Number(dateArray.animationFlag)] "
v-for="(item,index) in dateArray.array" :key="index">
<div @click="centerDateValue(item.date,$parent)" :style="{color: item.color}"
class="w-full h-full flex flex-wrap justify-center items-center ">
<div class="w-full h-1/2 flex justify-center items-center ">
{{ item.weekDay }}
</div>
<div class="w-full h-1/2 flex justify-center content-center "
>
{{ item.dateDay }}
</div>
</div>
</div>
<div class="w-[35px] h-full"></div>
</div>
</van-swipe-item>
<van-swipe-item style="width: 100%;height: 55px"
>
<div class="w-full h-[55px] flex ">
<div class="w-[105px] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div>
<div
:style="{background:item.bg,width:'13%',height:'100%'}"
:class="['animate__animated animate__fadeIn','animate__animated animate__fadeIn'][Number(dateArray.animationFlag)]"
v-for="(item,index) in dateArray.array" :key="index">
<div @click="centerDateValue(item.date,$parent)" :style="{color: item.color}"
class="w-full h-full flex flex-wrap justify-center items-center ">
<div class="w-full h-1/2 flex justify-center items-center ">
{{ item.weekDay }}
</div>
<div class="w-full h-1/2 flex justify-center content-center "
>
{{ item.dateDay }}
</div>
</div>
</div>
<div class="w-[35px] h-full"></div>
</div>
</van-swipe-item>
</van-swipe>
</van-cell-group>
</template>
<script setup>
import dayjs from 'dayjs';
import router from "@/router/index.js";
import {ref, reactive, onMounted, watch, nextTick} from 'vue';
import {showToast} from "vant";
import Cookies from "js-cookie";
import {next} from "lodash/seq.js";
const emit = defineEmits([
'searchDayData'
])
const swipe = ref()
let dateArray = reactive({
animationFlag: false,
swiper: {
leftOrRightFlag: 1,
beginPosition: '',
endPosition: '',
},
lastWeekOrNext: {
lastIndex: 0,
nextIndex: 1,
},
month: '',
minDate: new Date(dayjs().year(), dayjs().month() - 1, 1),
maxDate: new Date(dayjs().year(), dayjs().month() + 1, 15),
array: [],
dateFlag: false,
addDateFlag: true,
week: ['一', '二', '三', '四', '五'],
center: true,
right: false,
left: false,
isShow: true,
toDay: '',
dateBackgroundText: [],
loading: false
})
let dateArrayLenght = ref('')
let dateArrayLenght_i = ref(1)
let GetWatchListObject = reactive({
page_index: 1,
page_size: 30,
startTime: '',
endTime: '',
GetWatchListInitArray: [],
})
function deleteDateBg() {
//清楚日期的选中效果
dateArray.array.forEach(cur => {
cur.bg = ''
cur.acColor = '#000000'
cur.color = '#000000'
})
}
function centerDateValue(date, parent) {
//选中日期focus
if (parent.init.switchView.show) {
//parent.init.switchView 父组件的切换视图按钮
emit('searchDayData', date)
//日期背景
dateArray.array.forEach(cur => {
if (date === cur.date && cur.date === dayjs().format('YYYY-MM-DD')) {
cur.bg = '#ef6767'
cur.acColor = '#FFFFFF'
cur.color = '#FFFFFF'
} else if (date === cur.date && cur.date !== dayjs().format('YYYY-MM-DD')) {
console.log("🚀🚀🚀2,")
cur.bg = '#1989FA'
cur.acColor = '#FFFFFF'
cur.color = '#FFFFFF'
} else {
cur.bg = ''
cur.acColor = '#000000'
cur.color = '#000000'
if (cur.date === dayjs().format('YYYY-MM-DD')) {
cur.acColor = '#ef6767'
cur.color = '#ef6767'
}
}
})
parent.init.select.action = true
}
}
function touchStart(event) {
//获取开始滑动坐标
dateArray.swiper.beginPosition = event.touches[0].clientX
}
function touchEnd(event, parent) {
// 获取结束活动坐标 开始与结束坐标比较 得到左或右滑动 begin > end 左滑 begin < end 右滑
dateArray.swiper.endPosition = event.changedTouches[0].clientX
let swiperDirection;
if (dateArray.swiper.beginPosition !== dateArray.swiper.endPosition) swiperDirection = dateArray.swiper.beginPosition > dateArray.swiper.endPosition ? 'left' : 'right'
else swiperDirection = 'false'
let strategy = {
'right': () => {
//右滑 查询过去日期
reductionDate()
if (!parent.init.switchView.show) {
parent.init.paramsWeek = {
...parent.init.paramsWeek,
begin_time: dateArray.array[0].date,
end_time: dateArray.array[dateArray.array.length - 1].date
}
parent.GetPlanProjectByWeekList()
}
dateArray.animationFlag = !dateArray.animationFlag
},
'left': () => {
//左滑 查询未来日期
addDate()
if (!parent.init.switchView.show) {
parent.init.paramsWeek = {
...parent.init.paramsWeek,
begin_time: dateArray.array[0].date,
end_time: dateArray.array[dateArray.array.length - 1].date
}
parent.GetPlanProjectByWeekList()
}
dateArray.animationFlag = !dateArray.animationFlag
},
'false': () => {
}
}
strategy[swiperDirection]()
}
function validateIsATheTwodayOffs(date) {
//验证日期是否是双休日
return new Date(date).getDay() === 0 || new Date(date).getDay() === 6
}
const reductionDate = () => {
// 减少一周的计数器值
const startOfWeek = dayjs().startOf('week');
const weekDates = [];
dateArray.array = [];
dateArray.dateFlag === false && dateArray.addDateFlag === true ? dateArrayLenght_i.value = dateArrayLenght_i.value - 2 : dateArrayLenght_i.value--;
const value = dateArrayLenght_i.value;
for (let i = 0 + (7 * value); i < 7 + (7 * value); i++) {
const dateToAdd = startOfWeek.add(i, 'day');
weekDates.push({
date: dateToAdd.format('YYYY-MM-DD'),
dateDay: dateToAdd.format('D'),
week: dateArray.week,
weekDay: ["日", "一", "二", "三", "四", "五", "六"][dateToAdd.day()],
month: dateToAdd.month() + 1,
color: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#FFFFFF' : '',
bg: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#ef6767' : '',
});
}
dateArray.dateFlag = true
dateArray.array = weekDates;
dateArray.center = false
dateArray.right = false
setTimeout(() => {
dateArray.left = true
}, 10)
dateArray.left = false
dateArray.array.forEach((cur, index) => {
if (cur.month !== dateArray.array[0].month) cur.dateDay = dayjs(cur.date).format('M月D')
if (validateIsATheTwodayOffs(cur.date)) dateArray.array.splice(index, 1)
})
dateArray.month = dateArray.array[0].month
}
const addDate = () => {
//增加一周
dateArray.dateFlag === true && dateArray.addDateFlag === true ? dateArrayLenght_i.value++ : dateArrayLenght_i.value++
dateArray.dateFlag === false && dateArray.addDateFlag === true ? dateArrayLenght_i.value = 1 : ''
let value = dateArrayLenght_i.value
const currentDate = dayjs();
const startOfWeek = currentDate.startOf('week');
const weekDates = [];
// dateArray.array = []
for (let i = 0 + (7 * value); i < 7 + (7 * value); i++) {
const dateToAdd = startOfWeek.add(i, 'day');
weekDates.push({
date: dateToAdd.format('YYYY-MM-DD'),
dateDay: dateToAdd.format('D'),
week: dateArray.week,
weekDay: ["日", "一", "二", "三", "四", "五", "六"][dateToAdd.day()],
month: dateToAdd.month() + 1,
color: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#FFFFFF' : '',
bg: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#ef6767' : '',
});
}
dateArray.addDateFlag = false
dateArray.array = weekDates
// 移除
dateArray.center = false;
dateArray.left = false;
setTimeout(() => {
dateArray.right = true;
}, 10)
dateArray.right = false;
dateArray.array.forEach((cur, index) => {
if (cur.month !== dateArray.array[0].month) cur.dateDay = dayjs(cur.date).format('M月D')
if (validateIsATheTwodayOffs(cur.date)) dateArray.array.splice(index, 1)
})
dateArray.month = dateArray.array[0].month
}
const getInitDate = () => {
// 获取本周日期
const currentDate = dayjs();
// 获取本周的起始日期(星期一)
const startOfWeek = currentDate.startOf('week');
// 创建一个数组来存储一周内的日期
const weekDates = [];
// 使用循环来添加一周内的日期到数组中
for (let i = 1; i < 6; i++) {
const dateToAdd = startOfWeek.add(i, 'day');
weekDates.push(dateToAdd.format('YYYY-MM-DD'));
dateArray.array.push({
date: dateToAdd.format('YYYY-MM-DD'),
dateDay: dateToAdd.format('D'),
month: dayjs(dateToAdd.format('YYYY-MM-DD')).month() + 1,
week: dateArray.week,
weekDay: ["日", "一", "二", "三", "四", "五", "六"][dateToAdd.day()],
color: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#FFFFFF' : '',
bg: dateToAdd.format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#ef6767' : '',
// month: dayjs(dateToAdd.format('YYYY-MM-DD')).month() + 1
});
}
dateArrayLenght.value = dateArray.array.length
dateArray.array.forEach((cur, index) => {
if (cur.month !== dateArray.array[0].month) cur.dateDay = dayjs(cur.date).format('M月D')
if (validateIsATheTwodayOffs(cur.date)) dateArray.array.splice(index, 1)
})
dateArray.month = dateArray.array[0].month
}
function getWeekdays(dateStr) {
//基于一个日期 获取这个日期的周一到周五 且去除双休日
let inputDate = new Date(dateStr);
let day = inputDate.getDay(); //获取inputDate是星期几
let startDate = new Date(inputDate); //得到周一的日期
startDate.setDate(inputDate.getDate() - day + (day === 0 ? -6 : 1));
let weekdays = [];
for (let i = 0; i < 5; i++) {
let currentDate = new Date(startDate);
currentDate.setDate(startDate.getDate() + i);
weekdays.push(currentDate);
}
return weekdays;
}
function dateArrayAssignmentRelatedData(endDate) {
//基于日期数组 赋值相关数据
let weekDates = []
let weekdays = getWeekdays(endDate);
weekdays.forEach(date => {
weekDates.push({
date: dayjs(date).format('YYYY-MM-DD'),
dateDay: dayjs(date).format('D'),
week: dayjs(date).week,
weekDay: ["日", "一", "二", "三", "四", "五", "六"][dayjs(date).day()],
month: dayjs(date).month() + 1,
color: dayjs(date).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#FFFFFF' : '',
bg: dayjs(date).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ? '#ef6767' : '',
});
console.log(dayjs(date).format('YYYY-MM-DD'));
})
dateArray.addDateFlag = false
dateArray.array = weekDates
// 移除
dateArray.center = false;
dateArray.left = false;
setTimeout(() => {
dateArray.right = true;
}, 10)
dateArray.right = false;
dateArray.array.forEach((cur, index) => {
if (cur.month !== dateArray.array[0].month) cur.dateDay = dayjs(cur.date).format('M月D')
if (validateIsATheTwodayOffs(cur.date)) dateArray.array.splice(index, 1)
})
dateArray.month = dateArray.array[0].month
}
onMounted(() => {
getInitDate()
})
defineExpose({
getInitDate,
dateArray,
deleteDateBg,
getWeekdays,
dateArrayAssignmentRelatedData,
})
</script>
......@@ -31,7 +31,7 @@
</div>
<div
class="w-[35%] flex items-center flex-wrap content-center min-h-full border-[#E5E7EB] border-l-[1px] border-dashed p-3 pr-2">
class="w-[35%] flex items-center flex-wrap content-center min-h-full border-[#E5E7EB] border-l-[1px] border-dashed p-1 pl-2">
<p class="w-full text-[14px]">{{ dayjs(props.data.date).format('YYYY年MM月DD日') }}</p>
<p class="w-full ">{{ props.data.week }}</p>
</div>
......
......@@ -24,6 +24,8 @@ import noPageFooter from '@/components/noPageFooter.vue'
import popup from '@/components/popup.vue'
import fillingCard from '@/components/jobFilling/fillingCard.vue'
import Date from '@/components/Date.vue'
import weekDate from '@/components/weekDate.vue'
import loading from '@/components/loading.vue'
import headerInput from '@/components/headerInput.vue'
......@@ -41,6 +43,8 @@ app.component('noPageFooter', noPageFooter)
app.component('popup', popup)
app.component('fillingCard', fillingCard)
app.component('Date', Date)
app.component('weekDate', weekDate)
app.component('loading', loading)
app.component('headerInput', headerInput)
......
......@@ -4,12 +4,16 @@
left-arrow
@click-left="onClickLeft"
></van-nav-bar>
<van-empty style="width: 100%;height: 100%" image="error" description="异常"/>
<van-empty :image="img.warning.default"
style="width: 100%;height: 100%" description="用户无权限,请重新登录!">
</van-empty>
<!-- <van-button primary='success' @click="onClickLeft">返回</van-button>-->
</template>
<script setup>
import {useRouter} from "vue-router";
import * as img from '@/states/index.js'
const router = useRouter()
const onClickLeft = () => router.replace({name: 'welcome'});
const onClickLeft = () => router.back();
</script>
......@@ -26,7 +26,7 @@
</div>
<div v-else>
<!-- 周视图-->
<Date ref="dateWeek"/>
<weekDate ref="dateWeek"/>
<div class="w-full h-auto bg-white text-gray-600" :key="init.weekKey">
<div class="w-full min-h-[80px] flex-wrap ccFlex "
v-for="(item,index) in init.weekArray" :key="index">
......@@ -68,7 +68,7 @@
</div>
<div class="w-full h-1/2 ccFlex">
<div
:style="{background:['','#FFE599'][Number(it.fore_plan!=null&&it.fore_plan!=''&&it.fore_plan!=void 0)]}"
:style="{background:['','#FFE599'][Number(it.after_plan!=null&&it.after_plan!=''&&it.after_plan!=void 0)]}"
v-for="(it,ind) in ite.nameArray" :key="ind"
class="w-1/5 h-full border-gray-300 border-solid border-[0.5px]">
</div>
......@@ -93,11 +93,16 @@
<div class="w-full h-[calc(100%-64px)] bg-gray-200 overflow-y-auto" :key="init.calendarKey">
<div class="w-full h-3"></div>
<van-cell inset title="选择单个日期" :value="init.search.date" @click="init.date.show = true"/>
<van-calendar :formatter="formatter" :min-date="new Date(miniDate1)" :max-range="5" range-prompt="最多选择 5 天"
<van-cell inset title="选择日期" :value="init.search.date" @click="init.date.show = true"/>
<van-calendar v-if="init.switchView.show" :formatter="formatter" :min-date="new Date(miniDate1)"
v-model:show="init.date.show"
@confirm="onConfirm($event,'day')"/>
<van-calendar 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"/>
@confirm="onConfirm($event,'week')"/>
<div class="w-full h-3"></div>
<div class="w-full h-auto bg-white ">
<div class="w-full h-10 p-4 pb-0 font-bold">分管部门</div>
......@@ -160,7 +165,7 @@
</template>
<script setup>
import dayjs from "dayjs";
import {onMounted, reactive, ref} from "vue";
import {nextTick, onMounted, reactive, ref} from "vue";
import * as hooks from '@/hooks/index.js'
import * as api from '@/api/apis/controller/index.js'
......@@ -225,7 +230,7 @@ const init = reactive({
}
})
function onConfirm(value) {
function onConfirm(value, key) {
//高级筛选确定日期
init.date.show = false;
init.search.date = dayjs(value[0]).format('YYYY-MM-DD') + ' - ' + dayjs(value[1]).format('YYYY-MM-DD')
......@@ -686,6 +691,7 @@ onMounted(() => {
GetUserList()
GetPlanProjectByDayList()
GetPlanProjectByWeekList()
})
defineExpose({
init,
......
......@@ -186,7 +186,7 @@ const init = reactive({
},
role: {
"plan_write": "0",
"examine": "1",
"examine": "0",
"userrole": "0",
"write_sysconfig": "0"
},
......
......@@ -57,3 +57,4 @@ export * as sys from './icon/sys.png'
export * as guihuan from './icon/归还.png'
export * as zisechangbeijing from './icon/zisechangbeijing.png'
export * as warning from './icon/warning.png'
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或