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

V20240318 填报记录Css交互需优化 版本

上级 0358151b
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-B0iEgjF4.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,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-DcDBLkg4.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 i,c as l,a as p,w as k,u as d,e as s,L as _,o as m,d as y}from"./index-B0iEgjF4.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=d(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},c=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},r=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await c(n)}};return i(()=>{r()}),(n,t)=>{const o=_;return m(),l("div",f,[p(o,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[y(" 登录中")]),_:1})])}}};export{q as default}; import{b as i,c as l,a as p,w as k,u as d,e as s,L as _,o as m,d as y}from"./index-DcDBLkg4.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=d(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},c=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},r=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await c(n)}};return i(()=>{r()}),(n,t)=>{const o=_;return m(),l("div",f,[p(o,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[y(" 登录中")]),_:1})])}}};export{q as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
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-B0iEgjF4.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{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-DcDBLkg4.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{O as E,Z as _,r as j,P as ne,b as se,c,Q as n,a as m,Y as A,a8 as F,F as b,U as x,w as y,V as le,o,R as W,a9 as ie,d as P,a7 as oe,aa as de,a1 as ce,a2 as re,a3 as pe,a4 as _e,a5 as me,$ as N,ab as fe,ac as he}from"./index-B0iEgjF4.js";import{g as ue,S as ye}from"./index-BHDyOTX0.js";function we(Y,D){return E.post("/api/Common/GetUserList",Y,D)}function ke(Y,D){return E.post("/api/PlanProject/GetPlanProjectByWeekList",Y,D)}function ge(Y,D){return E.post("/api/PlanProject/GetPlanProjectByDayList",Y,D)}const Fe={class:"publicContainerNoPadding"},be={class:"w-full h-[50px] flex justify-between items-center p-2"},De={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},xe={key:0},Ye=n("div",{class:"w-full h-5"},null,-1),ve={key:1},Ce=["onClick"],Ae={class:"aaa w-full min-h-[80px] ccFlex p-1"},Pe={class:"w-[calc(100%-35px)] h-full"},Me=["onClick"],Be={class:"aaa"},We=n("div",{class:"w-[35px] min-h-[80px]"},[n("div",{class:"w-full h-1/2 ccFlex"}," 上 "),n("div",{class:"w-full h-1/2 ccFlex"}," 下 ")],-1),Ee={class:"w-[calc(100%-105px)] min-h-[80px]"},Ie={class:"w-full h-1/2 ccFlex"},$e={class:"w-full h-1/2 ccFlex"},je=["onClick"],Ne=n("div",{class:"w-full h-3"},null,-1),Ve=n("div",{class:"w-full h-3"},null,-1),Le={class:"w-full h-auto bg-white"},Oe=n("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),Ge={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Se=n("div",{class:"w-full h-3"},null,-1),Ue={class:"w-full h-auto bg-white"},Ke=n("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),ze={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Qe={__name:"index",setup(Y,{expose:D}){const w=_().startOf("week").add(1,"day").format("YYYY-MM-DD"),k=_().startOf("week").add(5,"day").format("YYYY-MM-DD"),V=j(),L=j(),O=_(_().startOf("week").add(1,"day").format("YYYY-MM-DD")).format("YYYY-MM-DD"),e=ne({peoPleFlag:!1,weekFlag:!1,calendarKey:1,weekKey:1,dayArray:[],weekArray:[],paramsDay:{begin_time:_().format("YYYY-MM-DD"),end_time:_().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:w,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:w+" - "+k},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function G(t){e.date.show=!1,e.search.date=_(t[0]).format("YYYY-MM-DD")+" - "+_(t[1]).format("YYYY-MM-DD"),e.check.begin_time=_(t[0]).format("YYYY-MM-DD"),e.check.end_time=_(t[1]).format("YYYY-MM-DD")}function S(){e.select.showPopup=!0}function U(t){e.switchView.show=!e.switchView.show,e.calendarKey++,e.search.date=w+" - "+k,e.switchView.show?(e.paramsDay={begin_time:_().format("YYYY-MM-DD"),end_time:_().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},v()):(e.paramsWeek={begin_time:w,end_time:k,dept_id_list:[],tid_list:[]},f()),I(t),e.select.action=!1}function I(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=w+" - "+k,e.check={dept_id_list:[],tid_list:[],begin_time:"",end_time:""},e.calendarKey++,e.select.action=!1,e.paramsWeek={begin_time:w,end_time:k,dept_id_list:[],tid_list:[]},e.paramsDay={begin_time:_().format("YYYY-MM-DD"),end_time:_().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=[],M(),v(),f()}function K(t){let a={true:async()=>{e.paramsDay={...e.check,begin_time:e.check.begin_time?e.check.begin_time:w,end_time:e.check.end_time?e.check.end_time:k},t.dateDay.deleteDateBg(),await v(),e.dayArray.map((l,d)=>{e.paramsDay.dept_id_list.includes(l.dept_id)&&(l.deptBg="#1989FA",l.deptCl="#FFFFFF"),e.paramsDay.tid_list.includes(l.userid)&&(l.peopleBg="#1989FA",l.peopleCl="#FFFFFF")}),e.select.showPopup=!1},false:()=>{e.paramsWeek={...e.check,begin_time:e.check.begin_time?e.check.begin_time:w,end_time:e.check.end_time?e.check.end_time:k},f(),e.select.showPopup=!1}};e.select.action=!0,a[String(e.switchView.show)]()}function z(){e.select.showPopup=!1}function T(){ue().then(t=>{e.comment.dept=t.response.map(a=>({...a,bg:"",cl:""}))})}function H(t,a){({true:()=>{N(()=>fe({plan_id:"",collect_userid:t.userId}).then(d=>(d.code===1&&(e.weekArray.forEach((g,i)=>{g.nameData.forEach((r,h)=>{t.userId===r.userId&&(r.bg="",r.cl="",r.attention=0)})}),f()),d)))},false:()=>{N(()=>he({id:t.userId,collect_type:0}).then(d=>(d.code===1&&(e.weekArray.forEach((g,i)=>{g.nameData.forEach((r,h)=>{t.userId===r.userId&&(r.bg="#1989FA",r.cl="#FFFFFF",r.attention=1)})}),f()),d)))}})[String(!!Number(t.attention))]()}function M(){we(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,l)=>({...a,deptBg:"",deptCl:"",peopleBg:"",peopleCl:""}))})}function Q(t){e.paramsDay={...e.paramsDay,begin_time:t,end_time:t},v()}function f(){return ke(e.paramsWeek).then(t=>{let a=[];const d=t.response.reduce((g,i)=>{const r=g.find(h=>h.deptName===i.dept_name);return r?r.nameData.push({userId:i.userid,userName:i.username,userCard:i.usercard,attention:i.attention,nameArray:i.data,bg:i.attention==1?"#1989FA":"",cl:i.attention==1?"#FFFFFF":""}):a.push({deptName:i.dept_name,deptId:i.dept_id,deptBg:"",deptCl:"",nameData:[{userId:i.userid,userName:i.username,userCard:i.usercard,attention:i.attention,nameArray:i.data,bg:i.attention==1?"#1989FA":"",cl:i.attention==1?"#FFFFFF":"",peopleBg:"",peopleCl:""}]}),a},[]);e.weekArray=d})}function R(t){e.check.dept_id_list.includes(t.id)?(e.check.dept_id_list.forEach((a,l)=>{a===t.id&&e.check.dept_id_list.splice(l,1)}),e.comment.dept.forEach(a=>{a.id===t.id&&(a.bg="",a.cl="")}),e.comment.deptId.forEach((a,l)=>{a===t.id&&e.comment.deptId.splice(l,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")})),M(),console.log("🚀🚀check.dept_id_list🚀,",...e.check.dept_id_list,"")}function Z(t){e.check.tid_list.includes(t.id)?(e.check.tid_list.forEach((a,l)=>{a===t.id&&e.check.tid_list.splice(l,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)}async function q(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.paramsWeek.dept_id_list.length&&(e.select.action=1),await f(),e.weekFlag=!e.weekFlag,e.weekArray.forEach((a,l)=>{a.deptId===t&&e.weekFlag&&(a.deptBg!==""?(a.deptBg="",a.deptCl=""):(a.deptBg="#1989FA",a.deptCl="#FFFFFF"))})}async function J(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.paramsWeek.tid_list.length&&(e.select.action=1),await f(),e.peoPleFlag=!e.peoPleFlag,e.weekArray.forEach((a,l)=>{a.nameData.forEach((d,g)=>{d.userId===t&&e.peoPleFlag&&(d.peopleBg!==""?(d.peopleBg="",d.peopleCl=""):(d.peopleBg="#1989FA",d.peopleCl="#FFFFFF"))})})}const X=t=>{let l=new Date(t.date).getDay();return(l==0||l==6)&&(t.type="disabled"),t};return se(()=>{document.title="分管填报记录查看",T(),M(),v(),f()}),D({init:e,GetPlanProjectByDayList:v,GetPlanProjectByWeekList:f}),(t,a)=>{const l=oe,d=de,g=ce,i=re,r=pe,h=_e,$=ye,ee=me,te=le;return o(),c(b,null,[n("div",Fe,[m(l,{path:"/welcome",title:"分管填报记录查看"}),n("div",be,[n("div",{onClick:a[0]||(a[0]=s=>U(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),n("div",{style:F({background:["#FFFFFF","#1989FA"][Number(e.select.action)],color:["#4B5563","#FFFFFF"][Number(e.select.action)]}),onClick:S,class:"w-20 h-8 flex justify-center items-center border-solid border-[1px]"}," 高级查询 ",4)]),n("div",De,[e.switchView.show?(o(),c("div",xe,[m(d,{ref_key:"dateDay",ref:V,onSearchDayData:Q},null,512),Ye,(o(!0),c(b,null,x(e.dayArray,(s,C)=>(o(),W(g,{data:s,key:C,alldayOrMidafternoonStatus:!!Number(s.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):(o(),c("div",ve,[m(d,{ref_key:"dateWeek",ref:L},null,512),(o(),c("div",{class:"w-full h-auto bg-white",key:e.weekKey},[(o(!0),c(b,null,x(e.weekArray,(s,C)=>(o(),c("div",{class:"w-full min-h-[80px] flex-wrap ccFlex",key:C},[n("div",{onClick:p=>q(s.deptId),style:F({background:s.deptBg,color:s.deptCl}),class:"w-[35px] min-h-[80px]"},[n("div",Ae,A(s.deptName),1)],12,Ce),n("div",Pe,[(o(!0),c(b,null,x(s.nameData,(p,ae)=>(o(),c("div",{class:"w-full h-auto flex",key:ae},[n("div",{onClick:u=>J(p.userId),style:F({background:p.peopleBg,color:p.peopleCl}),class:"w-[35px] min-h-[80px] ccFlex"},[n("div",Be,A(p.userName),1)],12,Me),We,n("div",Ee,[n("div",Ie,[(o(!0),c(b,null,x(p.nameArray,(u,B)=>(o(),c("div",{style:F({background:["","#D9E2F3"][+(u.fore_plan!=null&&u.fore_plan!=""&&u.fore_plan!=null)]}),key:B,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))]),n("div",$e,[(o(!0),c(b,null,x(p.nameArray,(u,B)=>(o(),c("div",{style:F({background:["","#FFE599"][+(u.fore_plan!=null&&u.fore_plan!=""&&u.fore_plan!=null)]}),key:B,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))])]),n("div",{style:F({background:p.bg,color:p.cl}),class:"w-[35px] min-h-[80px] ccFlex"},[n("div",{onClick:u=>H(p,p.attention),class:"aaa"},A(["关注","取消关注"][p.attention]),9,je)],4)]))),128))])]))),128))]))]))])]),m(te,{show:e.select.showPopup,height:80},{content:y(()=>[(o(),c("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200",key:e.calendarKey},[Ne,m(i,{inset:"",title:"选择单个日期",value:e.search.date,onClick:a[1]||(a[1]=s=>e.date.show=!0)},null,8,["value"]),m(r,{formatter:X,"min-date":new Date(ie(O)),"max-range":5,"range-prompt":"最多选择 5 天",type:"range",show:e.date.show,"onUpdate:show":a[2]||(a[2]=s=>e.date.show=s),onConfirm:G},null,8,["min-date","show"]),Ve,n("div",Le,[Oe,n("div",Ge,[m($,{wrap:""},{default:y(()=>[(o(!0),c(b,null,x(e.comment.dept,(s,C)=>(o(),W(h,{onClick:p=>R(s),key:C,style:F({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:y(()=>[P(A(s.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Se,n("div",Ue,[Ke,n("div",ze,[m($,{wrap:""},{default:y(()=>[(o(!0),c(b,null,x(e.comment.user,(s,C)=>(o(),W(h,{onClick:p=>Z(s),style:F({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:y(()=>[P(A(s.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])])])),m(ee,null,{default:y(()=>[m(h,{type:"primary",round:"",class:"w-[90px]",onClick:a[3]||(a[3]=s=>I(t.$refs))},{default:y(()=>[P("重置")]),_:1}),m(h,{type:"primary",round:"",class:"w-[90px]",onClick:a[4]||(a[4]=s=>K(t.$refs))},{default:y(()=>[P("查询")]),_:1}),m(h,{round:"",class:"w-[90px]",onClick:z},{default:y(()=>[P("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{Qe as default}; import{O as E,Z as _,r as j,P as ne,b as se,c,Q as n,a as m,Y as A,a8 as F,F as b,U as x,w as y,V as le,o,R as W,a9 as ie,d as P,a7 as oe,aa as de,a1 as ce,a2 as re,a3 as pe,a4 as _e,a5 as me,$ as N,ab as fe,ac as he}from"./index-DcDBLkg4.js";import{g as ue,S as ye}from"./index-B3yMXKQ7.js";function we(Y,D){return E.post("/api/Common/GetUserList",Y,D)}function ke(Y,D){return E.post("/api/PlanProject/GetPlanProjectByWeekList",Y,D)}function ge(Y,D){return E.post("/api/PlanProject/GetPlanProjectByDayList",Y,D)}const Fe={class:"publicContainerNoPadding"},be={class:"w-full h-[50px] flex justify-between items-center p-2"},De={class:"w-full h-[calc(100%-106px)] p-2 overflow-y-auto"},xe={key:0},Ye=n("div",{class:"w-full h-5"},null,-1),ve={key:1},Ce=["onClick"],Ae={class:"aaa w-full min-h-[80px] ccFlex p-1"},Pe={class:"w-[calc(100%-35px)] h-full"},Me=["onClick"],Be={class:"aaa"},We=n("div",{class:"w-[35px] min-h-[80px]"},[n("div",{class:"w-full h-1/2 ccFlex"}," 上 "),n("div",{class:"w-full h-1/2 ccFlex"}," 下 ")],-1),Ee={class:"w-[calc(100%-105px)] min-h-[80px]"},Ie={class:"w-full h-1/2 ccFlex"},$e={class:"w-full h-1/2 ccFlex"},je=["onClick"],Ne=n("div",{class:"w-full h-3"},null,-1),Ve=n("div",{class:"w-full h-3"},null,-1),Le={class:"w-full h-auto bg-white"},Oe=n("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),Ge={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Se=n("div",{class:"w-full h-3"},null,-1),Ue={class:"w-full h-auto bg-white"},Ke=n("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),ze={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Qe={__name:"index",setup(Y,{expose:D}){const w=_().startOf("week").add(1,"day").format("YYYY-MM-DD"),k=_().startOf("week").add(5,"day").format("YYYY-MM-DD"),V=j(),L=j(),O=_(_().startOf("week").add(1,"day").format("YYYY-MM-DD")).format("YYYY-MM-DD"),e=ne({peoPleFlag:!1,weekFlag:!1,calendarKey:1,weekKey:1,dayArray:[],weekArray:[],paramsDay:{begin_time:_().format("YYYY-MM-DD"),end_time:_().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},paramsWeek:{begin_time:w,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:w+" - "+k},weekView:{minHeigth:80},select:{action:!1,showPopup:!1},fillInWork:{show:!1},switchView:{show:!0}});function G(t){e.date.show=!1,e.search.date=_(t[0]).format("YYYY-MM-DD")+" - "+_(t[1]).format("YYYY-MM-DD"),e.check.begin_time=_(t[0]).format("YYYY-MM-DD"),e.check.end_time=_(t[1]).format("YYYY-MM-DD")}function S(){e.select.showPopup=!0}function U(t){e.switchView.show=!e.switchView.show,e.calendarKey++,e.search.date=w+" - "+k,e.switchView.show?(e.paramsDay={begin_time:_().format("YYYY-MM-DD"),end_time:_().format("YYYY-MM-DD"),dept_id_list:[],tid_list:[]},v()):(e.paramsWeek={begin_time:w,end_time:k,dept_id_list:[],tid_list:[]},f()),I(t),e.select.action=!1}function I(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=w+" - "+k,e.check={dept_id_list:[],tid_list:[],begin_time:"",end_time:""},e.calendarKey++,e.select.action=!1,e.paramsWeek={begin_time:w,end_time:k,dept_id_list:[],tid_list:[]},e.paramsDay={begin_time:_().format("YYYY-MM-DD"),end_time:_().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=[],M(),v(),f()}function K(t){let a={true:async()=>{e.paramsDay={...e.check,begin_time:e.check.begin_time?e.check.begin_time:w,end_time:e.check.end_time?e.check.end_time:k},t.dateDay.deleteDateBg(),await v(),e.dayArray.map((l,d)=>{e.paramsDay.dept_id_list.includes(l.dept_id)&&(l.deptBg="#1989FA",l.deptCl="#FFFFFF"),e.paramsDay.tid_list.includes(l.userid)&&(l.peopleBg="#1989FA",l.peopleCl="#FFFFFF")}),e.select.showPopup=!1},false:()=>{e.paramsWeek={...e.check,begin_time:e.check.begin_time?e.check.begin_time:w,end_time:e.check.end_time?e.check.end_time:k},f(),e.select.showPopup=!1}};e.select.action=!0,a[String(e.switchView.show)]()}function z(){e.select.showPopup=!1}function T(){ue().then(t=>{e.comment.dept=t.response.map(a=>({...a,bg:"",cl:""}))})}function H(t,a){({true:()=>{N(()=>fe({plan_id:"",collect_userid:t.userId}).then(d=>(d.code===1&&(e.weekArray.forEach((g,i)=>{g.nameData.forEach((r,h)=>{t.userId===r.userId&&(r.bg="",r.cl="",r.attention=0)})}),f()),d)))},false:()=>{N(()=>he({id:t.userId,collect_type:0}).then(d=>(d.code===1&&(e.weekArray.forEach((g,i)=>{g.nameData.forEach((r,h)=>{t.userId===r.userId&&(r.bg="#1989FA",r.cl="#FFFFFF",r.attention=1)})}),f()),d)))}})[String(!!Number(t.attention))]()}function M(){we(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,l)=>({...a,deptBg:"",deptCl:"",peopleBg:"",peopleCl:""}))})}function Q(t){e.paramsDay={...e.paramsDay,begin_time:t,end_time:t},v()}function f(){return ke(e.paramsWeek).then(t=>{let a=[];const d=t.response.reduce((g,i)=>{const r=g.find(h=>h.deptName===i.dept_name);return r?r.nameData.push({userId:i.userid,userName:i.username,userCard:i.usercard,attention:i.attention,nameArray:i.data,bg:i.attention==1?"#1989FA":"",cl:i.attention==1?"#FFFFFF":""}):a.push({deptName:i.dept_name,deptId:i.dept_id,deptBg:"",deptCl:"",nameData:[{userId:i.userid,userName:i.username,userCard:i.usercard,attention:i.attention,nameArray:i.data,bg:i.attention==1?"#1989FA":"",cl:i.attention==1?"#FFFFFF":"",peopleBg:"",peopleCl:""}]}),a},[]);e.weekArray=d})}function R(t){e.check.dept_id_list.includes(t.id)?(e.check.dept_id_list.forEach((a,l)=>{a===t.id&&e.check.dept_id_list.splice(l,1)}),e.comment.dept.forEach(a=>{a.id===t.id&&(a.bg="",a.cl="")}),e.comment.deptId.forEach((a,l)=>{a===t.id&&e.comment.deptId.splice(l,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")})),M(),console.log("🚀🚀check.dept_id_list🚀,",...e.check.dept_id_list,"")}function Z(t){e.check.tid_list.includes(t.id)?(e.check.tid_list.forEach((a,l)=>{a===t.id&&e.check.tid_list.splice(l,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)}async function q(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.paramsWeek.dept_id_list.length&&(e.select.action=1),await f(),e.weekFlag=!e.weekFlag,e.weekArray.forEach((a,l)=>{a.deptId===t&&e.weekFlag&&(a.deptBg!==""?(a.deptBg="",a.deptCl=""):(a.deptBg="#1989FA",a.deptCl="#FFFFFF"))})}async function J(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.paramsWeek.tid_list.length&&(e.select.action=1),await f(),e.peoPleFlag=!e.peoPleFlag,e.weekArray.forEach((a,l)=>{a.nameData.forEach((d,g)=>{d.userId===t&&e.peoPleFlag&&(d.peopleBg!==""?(d.peopleBg="",d.peopleCl=""):(d.peopleBg="#1989FA",d.peopleCl="#FFFFFF"))})})}const X=t=>{let l=new Date(t.date).getDay();return(l==0||l==6)&&(t.type="disabled"),t};return se(()=>{document.title="分管填报记录查看",T(),M(),v(),f()}),D({init:e,GetPlanProjectByDayList:v,GetPlanProjectByWeekList:f}),(t,a)=>{const l=oe,d=de,g=ce,i=re,r=pe,h=_e,$=ye,ee=me,te=le;return o(),c(b,null,[n("div",Fe,[m(l,{path:"/welcome",title:"分管填报记录查看"}),n("div",be,[n("div",{onClick:a[0]||(a[0]=s=>U(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),n("div",{style:F({background:["#FFFFFF","#1989FA"][Number(e.select.action)],color:["#4B5563","#FFFFFF"][Number(e.select.action)]}),onClick:S,class:"w-20 h-8 flex justify-center items-center border-solid border-[1px]"}," 高级查询 ",4)]),n("div",De,[e.switchView.show?(o(),c("div",xe,[m(d,{ref_key:"dateDay",ref:V,onSearchDayData:Q},null,512),Ye,(o(!0),c(b,null,x(e.dayArray,(s,C)=>(o(),W(g,{data:s,key:C,alldayOrMidafternoonStatus:!!Number(s.is_allday)},null,8,["data","alldayOrMidafternoonStatus"]))),128))])):(o(),c("div",ve,[m(d,{ref_key:"dateWeek",ref:L},null,512),(o(),c("div",{class:"w-full h-auto bg-white",key:e.weekKey},[(o(!0),c(b,null,x(e.weekArray,(s,C)=>(o(),c("div",{class:"w-full min-h-[80px] flex-wrap ccFlex",key:C},[n("div",{onClick:p=>q(s.deptId),style:F({background:s.deptBg,color:s.deptCl}),class:"w-[35px] min-h-[80px]"},[n("div",Ae,A(s.deptName),1)],12,Ce),n("div",Pe,[(o(!0),c(b,null,x(s.nameData,(p,ae)=>(o(),c("div",{class:"w-full h-auto flex",key:ae},[n("div",{onClick:u=>J(p.userId),style:F({background:p.peopleBg,color:p.peopleCl}),class:"w-[35px] min-h-[80px] ccFlex"},[n("div",Be,A(p.userName),1)],12,Me),We,n("div",Ee,[n("div",Ie,[(o(!0),c(b,null,x(p.nameArray,(u,B)=>(o(),c("div",{style:F({background:["","#D9E2F3"][+(u.fore_plan!=null&&u.fore_plan!=""&&u.fore_plan!=null)]}),key:B,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))]),n("div",$e,[(o(!0),c(b,null,x(p.nameArray,(u,B)=>(o(),c("div",{style:F({background:["","#FFE599"][+(u.fore_plan!=null&&u.fore_plan!=""&&u.fore_plan!=null)]}),key:B,class:"w-1/5 h-full border-gray-300 border-solid border-[0.5px]"},null,4))),128))])]),n("div",{style:F({background:p.bg,color:p.cl}),class:"w-[35px] min-h-[80px] ccFlex"},[n("div",{onClick:u=>H(p,p.attention),class:"aaa"},A(["关注","取消关注"][p.attention]),9,je)],4)]))),128))])]))),128))]))]))])]),m(te,{show:e.select.showPopup,height:80},{content:y(()=>[(o(),c("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200",key:e.calendarKey},[Ne,m(i,{inset:"",title:"选择单个日期",value:e.search.date,onClick:a[1]||(a[1]=s=>e.date.show=!0)},null,8,["value"]),m(r,{formatter:X,"min-date":new Date(ie(O)),"max-range":5,"range-prompt":"最多选择 5 天",type:"range",show:e.date.show,"onUpdate:show":a[2]||(a[2]=s=>e.date.show=s),onConfirm:G},null,8,["min-date","show"]),Ve,n("div",Le,[Oe,n("div",Ge,[m($,{wrap:""},{default:y(()=>[(o(!0),c(b,null,x(e.comment.dept,(s,C)=>(o(),W(h,{onClick:p=>R(s),key:C,style:F({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:y(()=>[P(A(s.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])]),Se,n("div",Ue,[Ke,n("div",ze,[m($,{wrap:""},{default:y(()=>[(o(!0),c(b,null,x(e.comment.user,(s,C)=>(o(),W(h,{onClick:p=>Z(s),style:F({margin:"5px",padding:"15px !important",height:"40px",background:s.bg,color:s.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:y(()=>[P(A(s.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])])])),m(ee,null,{default:y(()=>[m(h,{type:"primary",round:"",class:"w-[90px]",onClick:a[3]||(a[3]=s=>I(t.$refs))},{default:y(()=>[P("重置")]),_:1}),m(h,{type:"primary",round:"",class:"w-[90px]",onClick:a[4]||(a[4]=s=>K(t.$refs))},{default:y(()=>[P("查询")]),_:1}),m(h,{round:"",class:"w-[90px]",onClick:z},{default:y(()=>[P("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{Qe as default};
import{P as a,b as t,c as s,a as c,Q as e,o as n,a7 as l}from"./index-B0iEgjF4.js";const i={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),d=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),h={__name:"index",setup(r){return a({fillInWork:{show:!1}}),t(()=>{document.title="系统配置"}),(p,u)=>{const o=l;return n(),s("div",i,[c(o,{path:"/welcome",title:"分管填报记录查看"}),_,d])}}};export{h as default}; import{P as a,b as t,c as s,a as c,Q as e,o as n,a7 as l}from"./index-DcDBLkg4.js";const i={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),d=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),h={__name:"index",setup(r){return a({fillInWork:{show:!1}}),t(()=>{document.title="系统配置"}),(p,u)=>{const o=l;return n(),s("div",i,[c(o,{path:"/welcome",title:"分管填报记录查看"}),_,d])}}};export{h as default};
import{p as v,i as w,ai as G,a as e,aj as k,B,g as M}from"./index-B0iEgjF4.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{p as v,i as w,ai as G,a as e,aj as k,B,g as M}from"./index-DcDBLkg4.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 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-B0iEgjF4.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{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-DcDBLkg4.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{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-B0iEgjF4.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",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{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-DcDBLkg4.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",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{c as r,a as e,F as c,u as s,o as m,N as _}from"./index-B0iEgjF4.js";import{E as l}from"./index-CIz9jtoL.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{c as r,a as e,F as c,u as s,o as m,N as _}from"./index-DcDBLkg4.js";import{E as l}from"./index-Bz7VT7oA.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{_ as e}from"./index-B0iEgjF4.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default}; import{_ as e}from"./index-DcDBLkg4.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
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 ne,ah as ae,Y as g,d as E,a8 as T,$ as j,a4 as oe,a5 as le}from"./index-DcDBLkg4.js";import{g as ie,S as re}from"./index-B3yMXKQ7.js";import{E as ce}from"./index-Bz7VT7oA.js";const[pe,C,O]=Q("pagination"),$=(a,c,o)=>({number:a,text:c,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(a,{emit:c,slots:o}){const e=L(()=>{const{pageCount:l,totalItems:d,itemsPerPage:h}=a,_=+l||Math.ceil(+d/+h);return Math.max(1,_)}),k=L(()=>{const l=[],d=e.value,h=+a.showPageSize,{modelValue:_,forceEllipses:t}=a;let s=1,r=d;const m=h<d;m&&(s=Math.max(_-Math.floor(h/2),1),r=s+h-1,r>d&&(r=d,s=r-h+1));for(let p=s;p<=r;p++){const y=$(p,p,p===_);l.push(y)}if(m&&h>0&&t){if(s>1){const p=$(s-1,"...");l.unshift(p)}if(r<d){const p=$(r+1,"...");l.push(p)}}return l}),v=(l,d)=>{l=J(l,1,e.value),a.modelValue!==l&&(c("update:modelValue",l),d&&c("change",l))};Y(()=>v(a.modelValue));const F=()=>u("li",{class:C("page-desc")},[o.pageDesc?o.pageDesc():`${a.modelValue}/${e.value}`]),R=()=>{const{mode:l,modelValue:d,showPrevButton:h}=a;if(!h)return;const _=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)},[_?_():a.prevText||O("prev")])])},I=()=>{const{mode:l,modelValue:d,showNextButton:h}=a;if(!h)return;const _=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)},[_?_():a.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(),a.mode==="simple"?F():P(),I()])])}});const me=X(ue);function he(a){return U.post("/api/Common/GetRoleList",a)}function _e(a,c){const o={page_index:a.page_index,page_size:a.page_size};return U.get("/api/UserRole/GetUserRoleList",{params:o,...c})}function fe(a,c){const o={id:a.id};return U.get("/api/UserRole/GetUserRoleInfo",{params:o,...c})}function ge(a,c){const o={keyword:a.keyword,page_index:a.page_index,page_size:a.page_size};return U.get("/api/UserRole/GetUserRoleSearch",{params:o,...c})}function xe(a,c){const o={userid:a.userid};return U.get("/api/UserRole/UserRoleIns",{params:o,...c})}function ve(a,c){return U.post("/api/UserRole/UserRoleSave",a,c)}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(a,{expose:c,emit:o}){const e=a,k=D(1);function v(F){o("pageChange",F)}return c({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(a){const c=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!==""&&h(o.value.search,e.searchParams.page_index),e.select.showPopup=!1),t)))}function v(t){e.check.dept_list.includes(t.id)?(e.check.dept_list.forEach((s,r)=>{s===t.id&&e.check.dept_list.splice(r,1)}),e.comment.dept.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")}),e.comment.deptId.forEach((s,r)=>{s===t.id&&e.comment.deptId.splice(r,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,r)=>{s===t.id&&e.check.role_list.splice(r,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(){he().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 _e(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,h(o.value.search,t))}function d(){o.value.search="",e.initParams={page_index:1,page_size:10},c.value.currentPage=1,P()}function h(t,s=1){o.value.search!==""&&(e.initParams.page_index!==1&&(c.value.currentPage=1,e.initParams.page_index=1),ge({...e.searchParams,keyword:t,page_index:s}).then(r=>{e.data=r.response.data.map(m=>({...m})),e.total=r.response.data_count}))}function _(t,s){let r={0:()=>{j(()=>xe({userid:s.userid}).then(m=>(m.code===1&&r[1](m.response),m)))},1:m=>{fe({id:s.userroleid||m}).then(p=>{let y=[],S=[];p.response.dept_list.map((n,w)=>{y.push(n.id)}),p.response.role_list.map((n,w)=>{S.push(n.role_id)}),e.comment.dept.map((n,w)=>(y.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),e.comment.user.map((n,w)=>(S.includes(n.id)?(n.bg="#1989FA",n.cl="#FFFFFF"):(n.bg="",n.cl=""),n)),p.response.dept_list=y,p.response.role_list=S,e.check=p.response,p.code===1&&(e.select.showPopup=!0),console.log("🚀🚀🚀,",e.comment,p.response)})}};r[String(t)]()}return te(()=>{document.title="人员授权",P(),R(),I()}),(t,s)=>{const r=ce,m=oe,p=re,y=le,S=ne;return f(),b(V,null,[i("div",Pe,[u(ae,{ref_key:"headerInput",ref:o,onSearchFun:h,onReset:d,path:"/welcome"},null,512),i("div",ye,[e.data.length===[]?(f(),B(r,{key:0,description:"暂无授权名单,请通过搜索添加"})):se("",!0),(f(!0),b(V,null,A(e.data,(n,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(n.username)+"("+g(n.usercard)+")",1),i("div",Ce,[(f(!0),b(V,null,A(n.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=>_(+(n.userroleid!==null),n),class:"w-[20%] flex justify-center items-center text-blue-500"},g(["添加","编辑"][+(n.userroleid!==null)]),9,Ue)]))),128))]),u(ke,{ref_key:"pageRef",ref:c,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",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,(n,w)=>(f(),B(m,{onClick:N=>F(n),style:T({margin:"5px",padding:"15px !important",height:"40px",background:n.bg,color:n.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(g(n.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,(n,w)=>(f(),B(m,{onClick:N=>v(n),key:w,style:T({margin:"5px",padding:"15px !important",height:"40px",background:n.bg,color:n.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:x(()=>[E(g(n.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]=n=>e.select.showPopup=!1)},{default:x(()=>[E("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{He as default};
:root{--van-pagination-height: 40px;--van-pagination-font-size: var(--van-font-size-md);--van-pagination-item-width: 36px;--van-pagination-item-default-color: var(--van-primary-color);--van-pagination-item-disabled-color: var(--van-gray-7);--van-pagination-item-disabled-background: var(--van-background);--van-pagination-background: var(--van-background-2);--van-pagination-desc-color: var(--van-gray-7);--van-pagination-disabled-opacity: var(--van-disabled-opacity)}.van-pagination{font-size:var(--van-pagination-font-size)}.van-pagination__items{display:flex}.van-pagination__item,.van-pagination__page-desc{display:flex;align-items:center;justify-content:center}.van-pagination__item{flex:1;box-sizing:border-box;min-width:var(--van-pagination-item-width);height:var(--van-pagination-height);color:var(--van-pagination-item-default-color);background:var(--van-pagination-background);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-pagination__item button{flex:1;height:100%;border:none;padding:0;background:transparent}.van-pagination__item button[disabled]{cursor:not-allowed}.van-pagination__item:active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item:not(:last-child):after{border-right-width:0}.van-pagination__item--active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item--page{flex-grow:0}.van-pagination__item--prev,.van-pagination__item--next{padding:0 var(--van-padding-base);cursor:pointer}.van-pagination__item--border:first-child:after{border-right-width:var(--van-border-width)}.van-pagination__item--disabled,.van-pagination__item--disabled:active{color:var(--van-pagination-item-disabled-color);background-color:var(--van-pagination-item-disabled-background);opacity:var(--van-pagination-disabled-opacity)}.van-pagination__page-desc{flex:1;height:var(--van-pagination-height);color:var(--van-pagination-desc-color)}.page[data-v-32072d08]{--van-pagination-height: 55px }.select{margin:5px 5px 5px 0;background:#1e90ff;color:#fff!important}.unselected{margin:5px 5px 5px 0} :root{--van-pagination-height: 40px;--van-pagination-font-size: var(--van-font-size-md);--van-pagination-item-width: 36px;--van-pagination-item-default-color: var(--van-primary-color);--van-pagination-item-disabled-color: var(--van-gray-7);--van-pagination-item-disabled-background: var(--van-background);--van-pagination-background: var(--van-background-2);--van-pagination-desc-color: var(--van-gray-7);--van-pagination-disabled-opacity: var(--van-disabled-opacity)}.van-pagination{font-size:var(--van-pagination-font-size)}.van-pagination__items{display:flex}.van-pagination__item,.van-pagination__page-desc{display:flex;align-items:center;justify-content:center}.van-pagination__item{flex:1;box-sizing:border-box;min-width:var(--van-pagination-item-width);height:var(--van-pagination-height);color:var(--van-pagination-item-default-color);background:var(--van-pagination-background);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-pagination__item button{flex:1;height:100%;border:none;padding:0;background:transparent}.van-pagination__item button[disabled]{cursor:not-allowed}.van-pagination__item:active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item:not(:last-child):after{border-right-width:0}.van-pagination__item--active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item--page{flex-grow:0}.van-pagination__item--prev,.van-pagination__item--next{padding:0 var(--van-padding-base);cursor:pointer}.van-pagination__item--border:first-child:after{border-right-width:var(--van-border-width)}.van-pagination__item--disabled,.van-pagination__item--disabled:active{color:var(--van-pagination-item-disabled-color);background-color:var(--van-pagination-item-disabled-background);opacity:var(--van-pagination-disabled-opacity)}.van-pagination__page-desc{flex:1;height:var(--van-pagination-height);color:var(--van-pagination-desc-color)}.page[data-v-54a6d0b5]{--van-pagination-height: 55px }.select{margin:5px 5px 5px 0;background:#1e90ff;color:#fff!important}.unselected{margin:5px 5px 5px 0}
import{p as K,i as Q,k as $,ad as W,a as u,B as Y,E,ae as q,t as D,af as A,ag as H,g as J,O as F,_ as X,r as j,o as _,c as k,P as Z,b as ee,Q as l,R as N,T as te,F as U,U as z,w,V as se,ah as ne,Y as f,d as I,a8 as L,$ as M,a4 as ae,a5 as oe}from"./index-B0iEgjF4.js";import{g as le,S as ie}from"./index-BHDyOTX0.js";import{E as ce}from"./index-CIz9jtoL.js";const[re,P,T]=K("pagination"),G=(n,i,e)=>({number:n,text:i,active:e}),pe={mode:Y("multi"),prevText:String,nextText:String,pageCount:E(0),modelValue:q(0),totalItems:E(0),showPageSize:E(5),itemsPerPage:E(10),forceEllipses:Boolean,showPrevButton:D,showNextButton:D};var de=Q({name:re,props:pe,emits:["change","update:modelValue"],setup(n,{emit:i,slots:e}){const g=$(()=>{const{pageCount:o,totalItems:d,itemsPerPage:m}=n,s=+o||Math.ceil(+d/+m);return Math.max(1,s)}),R=$(()=>{const o=[],d=g.value,m=+n.showPageSize,{modelValue:s,forceEllipses:t}=n;let p=1,a=d;const v=m<d;v&&(p=Math.max(s-Math.floor(m/2),1),a=p+m-1,a>d&&(a=d,p=a-m+1));for(let h=p;h<=a;h++){const c=G(h,h,h===s);o.push(c)}if(v&&m>0&&t){if(p>1){const h=G(p-1,"...");o.unshift(h)}if(a<d){const h=G(a+1,"...");o.push(h)}}return o}),x=(o,d)=>{o=H(o,1,g.value),n.modelValue!==o&&(i("update:modelValue",o),d&&i("change",o))};W(()=>x(n.modelValue));const y=()=>u("li",{class:P("page-desc")},[e.pageDesc?e.pageDesc():`${n.modelValue}/${g.value}`]),C=()=>{const{mode:o,modelValue:d,showPrevButton:m}=n;if(!m)return;const s=e["prev-text"],t=d===1;return u("li",{class:[P("item",{disabled:t,border:o==="simple",prev:!0}),A]},[u("button",{type:"button",disabled:t,onClick:()=>x(d-1,!0)},[s?s():n.prevText||T("prev")])])},b=()=>{const{mode:o,modelValue:d,showNextButton:m}=n;if(!m)return;const s=e["next-text"],t=d===g.value;return u("li",{class:[P("item",{disabled:t,border:o==="simple",next:!0}),A]},[u("button",{type:"button",disabled:t,onClick:()=>x(d+1,!0)},[s?s():n.nextText||T("next")])])},B=()=>R.value.map(o=>u("li",{class:[P("item",{active:o.active,page:!0}),A]},[u("button",{type:"button","aria-current":o.active||void 0,onClick:()=>x(o.number,!0)},[e.page?e.page(o):o.text])]));return()=>u("nav",{role:"navigation",class:P()},[u("ul",{class:P("items")},[C(),n.mode==="simple"?y():B(),b()])])}});const ue=J(de);function he(n){return F.post("/api/Common/GetRoleList",n)}function me(n,i){const e={page_index:n.page_index,page_size:n.page_size};return F.get("/api/UserRole/GetUserRoleList",{params:e,...i})}function _e(n,i){const e={id:n.id};return F.get("/api/UserRole/GetUserRoleInfo",{params:e,...i})}function fe(n,i){const e={keyword:n.keyword,page_index:n.page_index,page_size:n.page_size};return F.get("/api/UserRole/GetUserRoleSearch",{params:e,...i})}function ge(n,i){const e={userid:n.userid};return F.get("/api/UserRole/UserRoleIns",{params:e,...i})}function xe(n,i){return F.post("/api/UserRole/UserRoleSave",n,i)}const ve={class:"w-full h-[55px] page"},we={__name:"page",props:{page_index:{type:Number,default:1},page_size:{type:Number,default:10},total:{type:Number,default:0}},emits:["pageChange"],setup(n,{emit:i}){const e=n,g=j(1);function R(x){i("pageChange",x)}return(x,y)=>{const C=ue;return _(),k("div",ve,[u(C,{onChange:R,modelValue:g.value,"onUpdate:modelValue":y[0]||(y[0]=b=>g.value=b),"total-items":e.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},be=X(we,[["__scopeId","data-v-32072d08"]]),ke={class:"publicContainerNoPadding"},ye={class:"w-full h-[calc(100%-111px)] p-3 overflow-y-auto"},Pe={class:"w-[80%] h-full"},Fe={class:"w-full h-[40px] p-1 flex items-center"},Re={class:"w-full min-h-1/2 p-1"},Ce=["onClick"],Ue={class:"w-full h-auto bg-white"},Ie={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Se=l("div",{class:"h-[30px] w-[20%]"},"姓名:",-1),Ve={class:"h-[30px] w-[80%]"},Ee=l("div",{class:"h-[30px] w-[20%]"},"工号:",-1),Ne={class:"h-[30px] w-[80%]"},ze=l("div",{class:"h-[30px] w-[20%]"},"部门:",-1),Be={class:"h-[30px] w-[80%]"},Ae=l("div",{class:"h-[30px] w-[20%]"},"岗位:",-1),Ge={class:"h-[30px] w-[80%]"},$e=l("div",{class:"w-full h-3"},null,-1),De={class:"w-full h-auto bg-white"},Le=l("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"中层干部",-1),Me={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Te=l("div",{class:"w-full h-3"},null,-1),je={class:"w-full h-auto bg-white"},Oe=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"},qe={__name:"index",setup(n){const i=j(),e=Z({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 g(){M(()=>xe(e.check).then(s=>(red.code===1&&(e.select.showPopup=!1,b()),s)))}function R(s){e.check.dept_list.includes(s.id)?(e.check.dept_list.forEach((t,p)=>{t===s.id&&e.check.dept_list.splice(p,1)}),e.comment.dept.forEach(t=>{t.id===s.id&&(t.bg="",t.cl="")}),e.comment.deptId.forEach((t,p)=>{t===s.id&&e.comment.deptId.splice(p,1)})):(e.check.dept_list.push(s.id),e.comment.deptId.push(s.id),e.comment.dept.forEach(t=>{t.id===s.id&&(t.bg="#1989FA",t.cl="#FFFFFF")}))}function x(s){e.check.role_list.includes(s.id)?(e.check.role_list.forEach((t,p)=>{t===s.id&&e.check.role_list.splice(p,1,"")}),e.comment.user.forEach(t=>{t.id===s.id&&(t.bg="",t.cl="")})):(e.check.role_list.push(s.id),e.comment.user.forEach(t=>{t.id===s.id&&(t.bg="#1989FA",t.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.role_list)}function y(){he().then(s=>{e.comment.user=s.response.map(t=>({...t,bg:"",cl:""}))})}function C(){le().then(s=>{e.comment.dept=s.response.map(t=>({...t,bg:"",cl:""}))})}function b(){return me(e.initParams).then(s=>{e.data=s.response.data.map(t=>({...t})),e.total=s.response.data_count})}function B(s){console.log(i.value.search,"🚀🚀index🚀,",s),i.value.search===""?(e.initParams.page_index=s,b()):d(i.value.search,s)}function o(){i.value.search="",e.initParams={page_index:1,page_size:10},b()}function d(s,t=1){e.searchParams.page_index=t,fe({...e.searchParams,keyword:s}).then(p=>{e.data=p.response.data.map(a=>({...a})),e.total=p.response.data_count})}function m(s,t){let p={0:()=>{M(()=>ge({userid:t.userid}).then(a=>(a.code===1&&p[1](),a)))},1:()=>{_e({id:t.userroleid}).then(a=>{let v=[],h=[];a.response.dept_list.map((c,r)=>{v.push(c.id)}),a.response.role_list.map((c,r)=>{h.push(c.role_id)}),e.comment.dept.map((c,r)=>(v.includes(c.id)?(c.bg="#1989FA",c.cl="#FFFFFF"):(c.bg="",c.cl=""),c)),e.comment.user.map((c,r)=>(h.includes(c.id)?(c.bg="#1989FA",c.cl="#FFFFFF"):(c.bg="",c.cl=""),c)),a.response.dept_list=v,a.response.role_list=h,e.check=a.response,a.code===1&&(e.select.showPopup=!0),console.log("🚀🚀🚀,",e.comment,a.response)})}};p[String(s)]()}return ee(()=>{document.title="人员授权",b(),y(),C()}),(s,t)=>{const p=ce,a=ae,v=ie,h=oe,c=se;return _(),k(U,null,[l("div",ke,[u(ne,{ref_key:"headerInput",ref:i,onSearchFun:d,onReset:o,path:"/welcome"},null,512),l("div",ye,[e.data.length===[]?(_(),N(p,{key:0,description:"暂无授权名单,请通过搜索添加"})):te("",!0),(_(!0),k(U,null,z(e.data,(r,S)=>(_(),k("div",{key:S,class:"w-full min-h-[90px] flex rounded-[5px] p-2 bg-white mb-3"},[l("div",Pe,[l("div",Fe,f(r.username)+"("+f(r.usercard)+")",1),l("div",Re,[(_(!0),k(U,null,z(r.dept_list,(V,O)=>(_(),N(a,{style:{margin:"5px 5px 5px 0"},key:O,plain:"",hairline:"",size:"small",type:"primary"},{default:w(()=>[I(f(V.name),1)]),_:2},1024))),128))])]),l("div",{onClick:V=>m(+!!r.dept_list.length,r),class:"w-[20%] flex justify-center items-center text-blue-500"},f(["添加","编辑"][+!!r.dept_list.length]),9,Ce)]))),128))]),u(be,{total:e.total,onPageChange:B},null,8,["total"])]),u(c,{show:e.select.showPopup,height:80},{content:w(()=>[(_(),k("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200",key:e.calendarKey},[l("div",Ue,[l("div",Ie,[Se,l("div",Ve,f(e.check.username),1),Ee,l("div",Ne,f(e.check.usercard),1),ze,l("div",Be,f(e.check.dept),1),Ae,l("div",Ge,f(e.check.position_name),1)])]),$e,l("div",De,[Le,l("div",Me,[u(v,{wrap:""},{default:w(()=>[(_(!0),k(U,null,z(e.comment.user,(r,S)=>(_(),N(a,{onClick:V=>x(r),style:L({margin:"5px",padding:"15px !important",height:"40px",background:r.bg,color:r.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:w(()=>[I(f(r.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])]),Te,l("div",je,[Oe,l("div",Ke,[u(v,{wrap:""},{default:w(()=>[(_(!0),k(U,null,z(e.comment.dept,(r,S)=>(_(),N(a,{onClick:V=>R(r),key:S,style:L({margin:"5px",padding:"15px !important",height:"40px",background:r.bg,color:r.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:w(()=>[I(f(r.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])])])),u(h,null,{default:w(()=>[u(a,{type:"primary",round:"",class:"w-[90px]",onClick:g},{default:w(()=>[I("确定")]),_:1}),u(a,{round:"",class:"w-[90px]",onClick:t[0]||(t[0]=r=>e.select.showPopup=!1)},{default:w(()=>[I("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{qe as default};
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0"> content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title>一周安排</title> <title>一周安排</title>
<script type="module" crossorigin src="./assets/index-B0iEgjF4.js"></script> <script type="module" crossorigin src="./assets/index-DcDBLkg4.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-Cy6-j4yo.css"> <link rel="stylesheet" crossorigin href="./assets/index-BX5nP7gH.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
:key=" dateArray.animationFlag " :key=" dateArray.animationFlag "
> >
<van-swipe-item style="width: 100%;height: 55px" <van-swipe-item style="width: 100%;height: 55px"
:class="['animate__animated animate__fadeIn','animate__animated animate__fadeIn'][Number(dateArray.animationFlag)]"> >
<div class="w-full h-[55px] flex "> <div class="w-full h-[55px] flex ">
<div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div> <div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div>
<div <div
:style="{background:item.bg,color:item.acColor}" :style="{background:item.bg,color:item.acColor,width:'16%',height:'100%'} "
class="w-[16%] h-full "
:class="['animate__animated animate__fadeIn','animate__animated animate__fadeIn'][Number(dateArray.animationFlag)] "
v-for="(item,index) in dateArray.array" :key="index"> v-for="(item,index) in dateArray.array" :key="index">
<div @click="centerDateValue(item.date,$parent)" :style="{color: item.color}" <div @click="centerDateValue(item.date,$parent)" :style="{color: item.color}"
class="w-full h-full flex flex-wrap justify-center items-center "> class="w-full h-full flex flex-wrap justify-center items-center ">
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
</div> </div>
</van-swipe-item> </van-swipe-item>
<van-swipe-item style="width: 100%;height: 55px" <van-swipe-item style="width: 100%;height: 55px"
:class="['animate__animated animate__fadeIn','animate__animated animate__fadeIn'][Number(dateArray.animationFlag)]"> >
<div class="w-full h-[55px] flex "> <div class="w-full h-[55px] flex ">
<div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div> <div class="w-[20%] h-full flex justify-center items-center mb-3">{{ dateArray.month }}月</div>
<div <div
:style="{background:item.bg}" :style="{background:item.bg,width:'16%',height:'100%'}"
class="w-[16%] h-full " :class="['animate__animated animate__fadeIn','animate__animated animate__fadeIn'][Number(dateArray.animationFlag)]"
v-for="(item,index) in dateArray.array" :key="index"> v-for="(item,index) in dateArray.array" :key="index">
<div @click="centerDateValue(item.date,$parent)" :style="{color: item.color}" <div @click="centerDateValue(item.date,$parent)" :style="{color: item.color}"
class="w-full h-full flex flex-wrap justify-center items-center "> class="w-full h-full flex flex-wrap justify-center items-center ">
......
...@@ -31,6 +31,9 @@ function pageChange(e) { ...@@ -31,6 +31,9 @@ function pageChange(e) {
emit('pageChange', e) emit('pageChange', e)
} }
defineExpose({
currentPage,
})
</script> </script>
<style scoped> <style scoped>
......
...@@ -29,7 +29,7 @@ import headerInput from '@/components/headerInput.vue' ...@@ -29,7 +29,7 @@ import headerInput from '@/components/headerInput.vue'
const app = createApp(App) const app = createApp(App)
//使用测试按钮Vxonsole //使用测试按钮Vxonsole
const vConsole = new VConsole(); // const vConsole = new VConsole();
app.config.globalProperties.$cookies = VueCookies app.config.globalProperties.$cookies = VueCookies
app.config.globalProperties.asc = api app.config.globalProperties.asc = api
app.use(router) app.use(router)
......
...@@ -17,16 +17,16 @@ ...@@ -17,16 +17,16 @@
</van-button> </van-button>
</div> </div>
</div> </div>
<div @click="addOrEdit(Number(!!item.dept_list.length),item)" <div @click="addOrEdit(Number(item.userroleid !== null),item)"
class="w-[20%] flex justify-center items-center text-blue-500"> class="w-[20%] flex justify-center items-center text-blue-500">
{{ ['添加', '编辑'][Number(!!item.dept_list.length)] }} {{ ['添加', '编辑'][Number(item.userroleid !== null)] }}
</div> </div>
</div> </div>
<!-- <loading class="ld" :show="init.loading"/>--> <!-- <loading class="ld" :show="init.loading"/>-->
<!-- <span v-if="!init.loading" class="ccFlex w-full h-5 text-[14px] text-gray-400">暂无数据</span>--> <!-- <span v-if="!init.loading" class="ccFlex w-full h-5 text-[14px] text-gray-400">暂无数据</span>-->
</div> </div>
<page :total="init.total" @pageChange="pageChange"/> <page ref="pageRef" :total="init.total" @pageChange="pageChange"/>
</div> </div>
<!-- 编辑权限--> <!-- 编辑权限-->
<popup :show="init.select.showPopup" :height="80"> <popup :show="init.select.showPopup" :height="80">
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<div class="w-full h-3"></div> <div class="w-full h-3"></div>
<div class="w-full h-auto bg-white "> <div class="w-full h-auto bg-white ">
<div class="w-full h-10 p-4 pb-0 font-bold">中层干部</div> <div class="w-full h-10 p-4 pb-0 font-bold">操作权限</div>
<div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap"> <div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap">
<van-space wrap> <van-space wrap>
<!-- color:#FFFFFF; #1989FA--> <!-- color:#FFFFFF; #1989FA-->
...@@ -112,6 +112,7 @@ import * as api from '@/api/apis/controller/index.js' ...@@ -112,6 +112,7 @@ import * as api from '@/api/apis/controller/index.js'
import * as hooks from '@/hooks/index.js' import * as hooks from '@/hooks/index.js'
import page from '@/components/page.vue' import page from '@/components/page.vue'
const pageRef = ref()
const headerInput = ref() const headerInput = ref()
const init = reactive({ const init = reactive({
searchParams: { searchParams: {
...@@ -158,10 +159,21 @@ function addDate() { ...@@ -158,10 +159,21 @@ function addDate() {
function save() { function save() {
//保存填写基础 //保存填写基础
hooks.myEncapsulationFunction(() => { hooks.myEncapsulationFunction(() => {
return api.postApiUserRoleUserRoleSave(init.check).then(res => { return api.postApiUserRoleUserRoleSave({
if (red.code === 1) { ...init.check,
role_list: init.check.role_list.map(cur => {
return {role_name: '', role_id: cur}
}),
dept_list: init.check.dept_list.map(cur => {
return {name: '', id: cur}
}),
}).then(res => {
if (res.code === 1) {
headerInput.value.search !== '' ? (() => {
search(headerInput.value.search, init.searchParams.page_index)
})() : () => reset()()
init.select.showPopup = false init.select.showPopup = false
getData()
} }
return res return res
}) })
...@@ -286,12 +298,11 @@ function getData() { ...@@ -286,12 +298,11 @@ function getData() {
function pageChange(index) { function pageChange(index) {
//分页 //分页
console.log(headerInput.value.search, "🚀🚀index🚀,", index)
if (headerInput.value.search === '') { if (headerInput.value.search === '') {
init.initParams.page_index = index init.initParams.page_index = index
getData() getData()
} else { } else {
// init.searchParams.page_index = index init.searchParams.page_index = index
search(headerInput.value.search, index) search(headerInput.value.search, index)
} }
} }
...@@ -304,20 +315,27 @@ function reset() { ...@@ -304,20 +315,27 @@ function reset() {
page_index: 1, page_index: 1,
page_size: 10, page_size: 10,
} }
pageRef.value.currentPage = 1
getData() getData()
} }
function search(val, index = 1) { function search(val, index = 1) {
init.searchParams.page_index = index if (headerInput.value.search !== '') {
api.getApiUserRoleGetUserRoleSearch({...init.searchParams, keyword: val}).then(res => { if (init.initParams.page_index !== 1) {
init.data = res.response.data.map(cur => { pageRef.value.currentPage = 1
return { init.initParams.page_index = 1
...cur, }
// customCss: 1 api.getApiUserRoleGetUserRoleSearch({...init.searchParams, keyword: val, page_index: index}).then(res => {
} init.data = res.response.data.map(cur => {
return {
...cur,
// customCss: 1
}
})
init.total = res.response.data_count
}) })
init.total = res.response.data_count }
})
} }
function addOrEdit(value, item) { function addOrEdit(value, item) {
...@@ -327,14 +345,14 @@ function addOrEdit(value, item) { ...@@ -327,14 +345,14 @@ function addOrEdit(value, item) {
//添加 //添加
hooks.myEncapsulationFunction(() => { hooks.myEncapsulationFunction(() => {
return api.getApiUserRoleUserRoleIns({userid: item.userid}).then(res => { return api.getApiUserRoleUserRoleIns({userid: item.userid}).then(res => {
if (res.code === 1) strategy['1']() if (res.code === 1) strategy['1'](res.response)
return res return res
}) })
}) })
}, },
'1': () => { '1': (userroleid) => {
//编辑 //编辑
api.getApiUserRoleGetUserRoleInfo({id: item.userroleid}).then(res => { api.getApiUserRoleGetUserRoleInfo({id: (item.userroleid || userroleid)}).then(res => {
let dp = [] let dp = []
let ur = [] let ur = []
res.response.dept_list.map((cur, index) => { res.response.dept_list.map((cur, index) => {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或