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

v20250218 保存

上级 3b96c226
import{C as e,a as s,G as t,u as n,S as o,w as a}from"./index-jd2enTB4.js";import{u as r}from"./vue-router-CsKE-nhB.js";import{g as c}from"./getApiCommonGetCurrentUserRoleList-C2-aQaKL.js";import{F as i,o as p,z as u,H as m,j as k,ab as l,C as _}from"./vant-DuoD2hHk.js";import"./axios-X0xcXtXw.js";const y={style:{display:"flex","justify-content":"center","margin-top":"50%"}},f={__name:"SSO",setup(f){const g=r(),v=()=>{t().then((e=>{s.set("oneWeekARange-user-info",JSON.stringify(e.response)),c().then((s=>{n().setUserInfo({...e.response,roleList:s.response,currentRole:s.response[0]}),g.replace({name:"responsibleForFilingRecords"})}))}))},R=async()=>{({asc:async()=>{let e={token:g.currentRoute.value.query.token};await(async e=>{const t=await o(e);void 0===t?await g.replace({name:"403"}):""!==t.response.access_token.token_content&&(s.set("oneWeekARange-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires),v())})(e)},first:async()=>{let e={sign:g.currentRoute.value.query.sign,code:g.currentRoute.value.query.code,timestamp:g.currentRoute.value.query.timestamp};await(async e=>{const t=await a(e);void 0===t?await g.replace({name:"403"}):""!==t.response.access_token.token_content&&(s.set("oneWeekARange-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires),v())})(e)},test:async()=>{const t=await e();void 0===t?await g.replace({name:"403"}):""!==t.response.access_token.token_content&&(s.set("oneWeekARange-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires),v())}})[g.currentRoute.value.query.type]()};return i((()=>{R()})),(e,s)=>{const t=l;return p(),u("div",y,[m(t,{size:"38px",color:"#1989fa",vertical:""},{default:k((()=>s[0]||(s[0]=[_(" 登录中")]))),_:1})])}}};export{f as default};
import{C as e,a as t,G as s,u as n,b as a,S as o,w as r}from"./index-jd2enTB4.js";import{u as c}from"./vue-router-CsKE-nhB.js";import{g as i}from"./getApiCommonGetCurrentUserRoleList-C2-aQaKL.js";import{F as u,o as p,z as m,H as k,j as l,ab as y,C as _}from"./vant-DuoD2hHk.js";import"./axios-X0xcXtXw.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},d={__name:"SSOInfo",setup(d){const g=c(),v=()=>{s().then((e=>{t.set("oneWeekARange-user-info",JSON.stringify(e.response)),i().then((t=>{n().setUserInfo({...e.response,roleList:t.response,currentRole:t.response[0]}),a().setDayViewItemData({userid:n().getUserInfo().user_id,date:g.currentRoute.value.query.date}),g.push({path:"/dayDetails",query:{pushMessage:1}})}))}))},R=async()=>{({asc:async()=>{let e={token:g.currentRoute.value.query.token};await(async e=>{const s=await o(e);void 0===s?await g.replace({name:"403"}):""!==s.response.access_token.token_content&&(t.set("oneWeekARange-management-token",s.response.access_token.token_content),t.set("time",s.response.access_token.expires),v())})(e)},first:async()=>{let e={sign:g.currentRoute.value.query.sign,code:g.currentRoute.value.query.code,timestamp:g.currentRoute.value.query.timestamp};await(async e=>{const s=await r(e);void 0===s?await g.replace({name:"403"}):""!==s.response.access_token.token_content&&(t.set("oneWeekARange-management-token",s.response.access_token.token_content),t.set("time",s.response.access_token.expires),v())})(e)},test:async()=>{const s=await e();void 0===s?await g.replace({name:"403"}):""!==s.response.access_token.token_content&&(t.set("oneWeekARange-management-token",s.response.access_token.token_content),t.set("time",s.response.access_token.expires),v())}})[g.currentRoute.value.query.type]()};return u((()=>{R()})),(e,t)=>{const s=y;return p(),m("div",f,[k(s,{size:"38px",color:"#1989fa",vertical:""},{default:l((()=>t[0]||(t[0]=[_(" 登录中")]))),_:1})])}}};export{d as default};
import{c as e}from"./index-jd2enTB4.js";function r(r){return e.get("/api/Common/GetCurrentUserRoleList",r)}export{r as g};
import{c as e,r as l,m as a,j as t,p as s,b as i,f as d}from"./index-jd2enTB4.js";import{v as o,g as n,a as u}from"./viewFiles-C1cCXqh1.js";import{b as c,r,F as p,aS as h,o as m,z as f,H as v,j as w,A as x,D as b,E as g,K as y,I as D,f as _,P as k,a3 as F,B as j,C as T,a0 as C,a1 as E,t as V,b0 as B,aa as z,aX as P,G as U,a4 as Y,b1 as I,b2 as S,L as A,a_ as M,a$ as q,aY as O,a2 as R,a7 as $}from"./vant-DuoD2hHk.js";import"./vue-router-CsKE-nhB.js";import"./axios-X0xcXtXw.js";function G(l,a){return e.post("/api/PlanSchedule/PlanScheduleSave",l,a)}const H={class:"w-full h-full bg-white overflow-y-auto relative"},K={class:"w-full h-[50px] z-100 sticky top-0"},L={class:"flex justify-between items-center w-full h-[50px]"},X={class:"w-full h-full ccFlex text-[18px]"},J={class:"w-full h-[calc(100%-120px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto"},N={class:"preview-cover van-ellipsis"},Q={style:{display:"flex","justify-content":"space-between",width:"100%"}},W=["onClick"],Z={style:{"margin-left":"auto","align-self":"center"}},ee={key:0,class:"w-full h-[70px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid"},le={key:1,class:"w-full h-[70px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid"},ae={class:"w-full h-full bg-white overflow-y-auto relative"},te={class:"w-full h-[calc(100%-114px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto"},se={key:1,class:"w-full min-h-[90px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},ie={class:"w-full h-[70px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid"},de={class:"w-full h-full bg-white overflow-y-auto relative"},oe={class:"w-full h-[calc(100%-114px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto"},ne={class:"w-full h-[70px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid"},ue={class:"container1"},ce={class:"w-screen h-screen overflow-y-auto relative bg-[#F4F6F7]"},re={class:"w-full h-[108px] bg-white z-50 sticky top-0"},pe={class:"w-full h-[54px]"},he={class:"w-full overflow-y-auto relative h-[calc(100%-118px)]"},me={class:"p-2"},fe=["onClick"],ve={class:"w-full flex mb-3"},we={class:"w-[calc(100%-60px)] text-[#434244] text-[15px]"},xe={class:"w-full flex mb-3"},be={class:"w-[calc(100%-60px)] text-[#434244] text-[15px]"},ge={class:"w-full flex"},ye={class:"w-[calc(100%-60px)] text-[#3793FE] text-[15px]"},De=["onClick"],_e={class:"absolute top-0 right-0 p-2"},ke={class:"w-full h-[55px] flex items-center justify-center"},Fe={class:"text-[10px] mx-1 text-blue-400"},je={class:""},Te={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},Ce={class:"mb-2 text-[#4E4E4E]"},Ee={class:""},Ve={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},Be={class:"mb-2 text-[#4E4E4E]"},ze={__name:"index",setup(ze){const Pe=c(0),Ue=c([{text:"日程安排",value:"0"},{text:"值班安排",value:"1"},{text:"会议安排",value:"2"}]),Ye=r({show:!1,fileItem:{}}),Ie=r({scheduleEndTime:{value:"",columns:["男","女"],show:!1},scheduleBeginTime:{value:"",columns:["男","女"],show:!1},schedule:{type:"",add:{show:!1,data:{plan_list:[],duty_list:[],meet_list:[]},formData:{userid:"",date:"",timeRange:["09:41:00","12:00:00"],begin:[],end:[],content:"",file_list:[]}}},operatingTrajectory:{data:[],show:!1},detailsData:{plan_list:[],duty_list:[],meet_list:[]},formData:{},approval:{active:"0",showPopup:!1,show:!1,columns:[{value:1,text:"退回到上个节点"},{value:2,text:"退回到发起人"}],formData:{taskid:"",remark:"",action:""}}}),Se=e=>{Pe.value=e};function Ae(e){const l=e.selectedOptions[0];Ie.approval.formData.action=l.value,Ie.approval.value=l.text,Ie.approval.showPopup=!1}function Me(l){l.id?s((()=>{a((()=>function(l,a){const t={id:l.id};return e.post("/api/PlanSchedule/PlanScheduleDel",null,{params:t,...a})}({id:l.id}).then((e=>(Le(),Ie.schedule.add.show=!1,e)))),!1,"正在删除...")})):V("未提交日程,无法删除")}function qe(l,t){({save:()=>{a((()=>G({...l,begin:l.begin.join("-"),end:l.end.join("-"),file_id_list:l.file_list.map((e=>e.id))}).then((e=>(1===e.code&&(Le(),Ie.schedule.add.formData={...e.response,begin:e.response.begin.split("-"),end:e.response.end.split("-")},Ie.scheduleEndTime.value=e.response.end.replace(/-/g,":"),Ie.scheduleBeginTime.value=e.response.begin.replace(/-/g,":")),e)))),!1,"保存中...")},submit:()=>{a((()=>{return(a={...l,userid:i().getDayViewItemData().userid,date:d(i().getDayViewItemData().date).format("YYYY-MM-DD"),begin:l.begin.join("-"),end:l.end.join("-"),file_id_list:l.file_list.map((e=>e.id))},e.post("/api/PlanSchedule/PlanScheduleIns",a,t)).then((e=>(1===e.code&&(Le(),Ie.scheduleEndTime.value=e.response.end.replace(/-/g,":"),Ie.scheduleBeginTime.value=e.response.begin.replace(/-/g,":"),Ie.schedule.add.formData={...e.response,begin:e.response.begin.split("-"),end:e.response.end.split("-")}),e)));var a,t}),!1,"提交中...")}})[t]()}function Oe(l,t,i,d){s((()=>{a((()=>{return(a={id:d.id,file_id:t.id},e.post("/api/PlanSchedule/PlanScheduleFileDel",a,s)).then((e=>(1===e.code&&l.splice(i,1),e)));var a,s}),!1,"正在删除...")}))}function Re(l,t){let s=new FormData;return s.append("file",l),a((()=>{return(l=s,e.post("/api/File/FileUpload",l,a)).then((e=>(Ie.schedule.add.formData.file_list.push(e.response),G({...t,begin:t.begin.join("-"),end:t.end.join("-"),file_id_list:Ie.schedule.add.formData.file_list.map((e=>e.id))}).then((e=>(1===e.code&&(Ie.schedule.value=e.response.begin,Ie.schedule.value=e.response.end,Ie.schedule.add.formData.splice(Ie.schedule.add.formData.indexOf((l=>l.id===e.response.id)),1,{...e.response,begin:e.response.begin.split("-"),end:e.response.end.split("-")})),e))),e)));var l,a}),!1,"正在上传..."),!1}function $e(e){const l=e.selectedValues;Ie.schedule.add.formData.end=l,Ie.scheduleEndTime.value=l.join(":"),Ie.scheduleEndTime.show=!1}function Ge(e){const l=e.selectedValues;Ie.schedule.add.formData.begin=l,Ie.scheduleBeginTime.value=l.join(":"),Ie.scheduleBeginTime.show=!1}c("");const He=(e,l)=>("hour"===e&&(l.text+="时"),"minute"===e&&(l.text+="分"),l);function Ke(){Ie.schedule.type="新增",Ie.scheduleBeginTime.value="",Ie.scheduleEndTime.value="",Ie.schedule.add.formData={userid:"",date:"",timeRange:["09:41:00","12:00:00"]," ":[],end:[],content:"",file_list:[]},Ie.schedule.add.show=!0}function Le(){a((()=>n({userid:i().getDayViewItemData().userid,date:d(i().getDayViewItemData().date).format("YYYY-MM-DD")}).then((e=>(Ie.schedule.add.data=e.response,e)))),!0,"加载中...")}function Xe(e){Ye.show=!0,Ye.fileItem=e}return p((()=>{Le(),a((()=>u({userid:i().getDayViewItemData().userid,date:d(i().getDayViewItemData().date).format("YYYY-MM-DD")}).then((e=>(Ie.operatingTrajectory.data=e.response,e)))),!0,"加载中..."),Ie.formData=l.currentRoute.value.query})),(e,l)=>{const a=B,s=z,i=P,d=k,n=U,u=Y,c=I,r=S,p=A,V=$,G=M,ze=q,Le=O,Je=t,Ne=R,Qe=F,We=h("font");return m(),f(y,null,[v(d,{show:Ie.schedule.add.show,"onUpdate:show":l[15]||(l[15]=e=>Ie.schedule.add.show=e),style:{height:"85%"},closeable:"",position:"bottom",round:""},{default:w((()=>[x("div",H,[x("div",K,[x("div",L,[x("div",X,j(Ie.schedule.type)+"日程安排 ",1)])]),x("div",J,[v(a,{color:"#1989fa",background:"#ecf9ff","left-icon":"info-o"},{default:w((()=>l[24]||(l[24]=[T(" 温馨提示:新增加的日程,需要提交后才能上传附件哦。 ")]))),_:1}),v(r,{ref:"form",class:""},{default:w((()=>[v(n,null,{default:w((()=>[v(s,{modelValue:Ie.scheduleBeginTime.value,"onUpdate:modelValue":l[0]||(l[0]=e=>Ie.scheduleBeginTime.value=e),rules:[{required:!0,message:"请选择日程时间"}],clickable:"","is-link":"",label:"开始时间",name:"scheduleBeginTime",placeholder:"请选择日程时间",readonly:"",onClick:l[1]||(l[1]=e=>Ie.scheduleBeginTime.show=!0)},null,8,["modelValue"]),v(d,{show:Ie.scheduleBeginTime.show,"onUpdate:show":l[4]||(l[4]=e=>Ie.scheduleBeginTime.show=e),position:"bottom"},{default:w((()=>[v(i,{modelValue:Ie.schedule.add.formData.begin,"onUpdate:modelValue":l[2]||(l[2]=e=>Ie.schedule.add.formData.begin=e),title:"选择时间",formatter:He,"show-toolbar":"",onCancel:l[3]||(l[3]=e=>Ie.scheduleBeginTime.show=!1),onConfirm:Ge},null,8,["modelValue"])])),_:1},8,["show"])])),_:1}),v(n,null,{default:w((()=>[v(s,{modelValue:Ie.scheduleEndTime.value,"onUpdate:modelValue":l[5]||(l[5]=e=>Ie.scheduleEndTime.value=e),rules:[{required:!0,message:"请选择日程时间"}],clickable:"","is-link":"",label:"结束时间",name:"scheduleEndTime",placeholder:"请选择日程时间",readonly:"",onClick:l[6]||(l[6]=e=>Ie.scheduleEndTime.show=!0)},null,8,["modelValue"]),v(d,{show:Ie.scheduleEndTime.show,"onUpdate:show":l[9]||(l[9]=e=>Ie.scheduleEndTime.show=e),position:"bottom"},{default:w((()=>[v(i,{modelValue:Ie.schedule.add.formData.end,"onUpdate:modelValue":l[7]||(l[7]=e=>Ie.schedule.add.formData.end=e),title:"选择时间",formatter:He,"show-toolbar":"",onCancel:l[8]||(l[8]=e=>Ie.scheduleEndTime.show=!1),onConfirm:$e},null,8,["modelValue"])])),_:1},8,["show"])])),_:1}),v(n,null,{default:w((()=>[v(s,{modelValue:Ie.schedule.add.formData.content,"onUpdate:modelValue":l[10]||(l[10]=e=>Ie.schedule.add.formData.content=e),rows:"8",maxlength:"4000",label:"日程内容",type:"textarea",clearable:"",name:"scheduleEndTime",placeholder:"请填写日程内容","show-word-limit":""},null,8,["modelValue"])])),_:1}),v(n,{class:"mt-3"},{default:w((()=>[Ie.schedule.add.formData.id?(m(),_(s,{key:0,label:"附件上传",name:"uploader"},{input:w((()=>[v(c,{"before-read":e=>Re(e,{...Ie.schedule.add.formData}),accept:"","max-size":"50000000"},{default:w((()=>[v(u,{square:"",plain:"",icon:"plus",type:"primary"},{default:w((()=>l[25]||(l[25]=[T("上传")]))),_:1})])),"preview-cover":w((({file:e})=>[x("div",N,j(e.name),1)])),_:1},8,["before-read"])])),_:1})):C("",!0)])),_:1})])),_:1},512),(m(!0),f(y,null,D(Ie.schedule.add.formData.file_list,((e,l)=>(m(),_(s,{key:l+"11",border:!1,label:`附件${l+1}`,"label-width":"7.0em",readonly:""},{input:w((()=>[x("div",Q,[x("span",{onClick:l=>Xe(e),class:"text-[#3794FE]"},j(e.file_name),9,W),x("div",Z,[v(p,{color:"#DB5C5C",name:"cross",size:"30",onClick:E((a=>Oe(Ie.schedule.add.formData.file_list,e,l,Ie.schedule.add.formData)),["stop"])},null,8,["onClick"])])])])),_:2},1032,["label"])))),128)),l[26]||(l[26]=x("div",{class:"h-[50px] bg-[#F3F4F6]"},null,-1))]),Ie.schedule.add.formData.id?(m(),f("div",ee,[v(u,{class:"w-[30%]",type:"danger",round:"",onClick:l[11]||(l[11]=e=>Me({...Ie.schedule.add.formData}))},{default:w((()=>l[27]||(l[27]=[T("删除 ")]))),_:1}),v(u,{class:"w-[65%]",type:"primary",plain:"",round:"",onClick:l[12]||(l[12]=e=>qe({...Ie.schedule.add.formData},"save"))},{default:w((()=>l[28]||(l[28]=[T(" 保存 ")]))),_:1})])):(m(),f("div",le,[v(u,{class:"w-[30%]",round:"",onClick:l[13]||(l[13]=e=>Ie.schedule.add.show=!1)},{default:w((()=>l[29]||(l[29]=[T("关闭 ")]))),_:1}),v(u,{class:"w-[65%]",type:"primary",round:"",onClick:l[14]||(l[14]=e=>qe({...Ie.schedule.add.formData},"submit"))},{default:w((()=>l[30]||(l[30]=[T(" 提交 ")]))),_:1})]))])])),_:1},8,["show"]),v(d,{show:Ie.operatingTrajectory.show,"onUpdate:show":l[17]||(l[17]=e=>Ie.operatingTrajectory.show=e),style:{height:"85%"},closeable:"",position:"bottom",round:""},{default:w((()=>[x("div",ae,[l[34]||(l[34]=x("div",{class:"w-full h-[50px] z-100 sticky top-0"},[x("div",{class:"flex justify-between items-center w-full h-[50px]"},[x("div",{class:"w-full h-full ccFlex text-[18px]"}," 操作轨迹 ")])],-1)),x("div",te,[0==Ie.operatingTrajectory.length?(m(),_(V,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(m(),f("div",se,[v(ze,{active:0,class:"w-full",direction:"vertical","active-icon":"circle","finish-icon":"success","inactive-icon":"success"},{default:w((()=>[(m(!0),f(y,null,D(Ie.operatingTrajectory.data,((e,a)=>(m(),_(G,{key:a,class:"ax"},{default:w((()=>[b((m(),f("h2",null,[T(j(e.createtime),1)])),[[We,void 0,"{color:`#323233`,size:18}"]]),x("p",null,[l[31]||(l[31]=T("用户名:")),b((m(),f("span",null,[T(j(e.createname),1)])),[[We,void 0,"{color:`#5295FF`}"]])]),x("p",null,[l[32]||(l[32]=T("操作:")),b((m(),f("span",null,[T(j(e.remark),1)])),[[We,void 0,"{color:`#5295FF`}"]])])])),_:2},1024)))),128))])),_:1})]))]),x("div",ie,[v(u,{class:"w-full","native-type":"submit",round:"",onClick:l[16]||(l[16]=e=>Ie.operatingTrajectory.show=!1)},{default:w((()=>l[33]||(l[33]=[T("关闭 ")]))),_:1})])])])),_:1},8,["show"]),v(d,{show:Ie.approval.showPopup,"onUpdate:show":l[19]||(l[19]=e=>Ie.approval.showPopup=e),position:"bottom"},{default:w((()=>[v(Le,{columns:Ie.approval.columns,"show-toolbar":"",onCancel:l[18]||(l[18]=e=>Ie.approval.showPopup=!1),onConfirm:Ae},null,8,["columns"])])),_:1},8,["show"]),v(d,{show:Ye.show,"onUpdate:show":l[21]||(l[21]=e=>Ye.show=e),style:{height:"100%"},closeable:"",position:"bottom"},{default:w((()=>[x("div",de,[l[36]||(l[36]=x("div",{class:"w-full h-[50px] z-100 sticky top-0"},[x("div",{class:"flex justify-between items-center w-full h-[50px]"},[x("div",{class:"w-full h-full ccFlex text-[18px]"}," 附件预览 ")])],-1)),x("div",oe,[v(o,{fileObj:Ye.fileItem},null,8,["fileObj"])]),x("div",ne,[v(u,{class:"w-full","native-type":"submit",round:"",onClick:l[20]||(l[20]=e=>Ye.show=!1)},{default:w((()=>l[35]||(l[35]=[T("关闭 ")]))),_:1})])])])),_:1},8,["show"]),x("div",ue,[x("div",ce,[x("div",re,[v(Je,{path:"/responsibleForFilingRecords",title:"日程管理"},{importFile:w((()=>[x("span",{onClick:l[22]||(l[22]=e=>Ie.operatingTrajectory.show=!0),class:"text-blue-500"},"操作轨迹")])),_:1}),x("div",pe,[v(Qe,{active:Pe.value,"onUpdate:active":l[23]||(l[23]=e=>Pe.value=e),swipeable:"",onChange:Se},{default:w((()=>[(m(!0),f(y,null,D(Ue.value,((e,l)=>(m(),_(Ne,{key:l,title:e.text},null,8,["title"])))),128))])),_:1},8,["active"])])]),x("div",he,[b(x("div",me,[(m(!0),f(y,null,D(Ie.schedule.add.data.plan_list,((e,a)=>(m(),f("div",{key:a,onClick:l=>function(e){Ie.scheduleEndTime.value=e.end.replace(/-/g,":"),Ie.scheduleBeginTime.value=e.begin.replace(/-/g,":"),Ie.schedule.type="编辑",Ie.schedule.add.formData={...e,begin:e.begin.split(":"),end:e.end.split(":")},Ie.schedule.add.show=!0}(e),class:"w-full min-h-[50px] p-3 mb-2 rounded-[10px] bg-white relative"},[x("div",ve,[l[37]||(l[37]=x("div",{class:"w-[60px] text-[#818183] text-[15px]"},"时间:",-1)),x("div",we,j(e.date)+" "+j(e.begin)+" - "+j(e.end),1)]),x("div",xe,[l[38]||(l[38]=x("div",{class:"w-[60px] text-[#818183] text-[15px]"},"内容:",-1)),x("div",be,j(e.content),1)]),x("div",ge,[l[39]||(l[39]=x("div",{class:"w-[60px] text-[#818183] text-[15px]"},"附件:",-1)),x("div",ye,[(m(!0),f(y,null,D(e.file_list,((e,l)=>(m(),f("p",{key:l},[x("span",{onClick:E((l=>Xe(e)),["stop"]),class:"text-[#3794FE]"},j(e.file_name),9,De)])))),128))])]),x("div",_e,[v(p,{name:"edit",color:"#3793FE"})])],8,fe)))),128)),x("div",ke,[x("div",{onClick:Ke,class:"w-[92%] h-[70%] bg-white border border-[#6BB5EA] border-dashed ccFlex active:bg-blue-50 active:text-[50px] rounded-[2px] relative"},[x("div",Fe,[v(p,{name:"plus"})]),l[40]||(l[40]=x("span",{class:"text-[16px] text-[#6BB5EA]"},"新增",-1))])])],512),[[g,0==Pe.value]]),b(x("div",je,[0==Ie.schedule.add.data.duty_list.length?(m(),_(V,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(m(!0),f(y,{key:1},D(Ie.schedule.add.data.duty_list,((e,a)=>(m(),f("div",{key:a,class:"w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},[x("div",Te,[l[41]||(l[41]=x("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),x("p",null,j(e.date)+" "+j(e.begin)+"-"+j(e.end),1)]),x("div",Ce,[x("p",null,j(e.content),1)])])))),128))],512),[[g,1==Pe.value]]),b(x("div",Ee,[0==Ie.schedule.add.data.meet_list.length?(m(),_(V,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(m(!0),f(y,{key:1},D(Ie.schedule.add.data.meet_list,((e,a)=>(m(),f("div",{key:a,class:"w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},[x("div",Ve,[l[42]||(l[42]=x("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),x("p",null,j(e.date)+" "+j(e.begin)+"-"+j(e.end),1)]),x("div",Be,[x("p",null,j(e.content),1)])])))),128))],512),[[g,2==Pe.value]])])])])],64)}}};export{ze as default};
import{j as s}from"./index-jd2enTB4.js";import{r as o,F as a,o as l,z as t,H as e,A as i}from"./vant-DuoD2hHk.js";import"./vue-router-CsKE-nhB.js";import"./axios-X0xcXtXw.js";const r={class:"publicContainerNoPadding"},n={__name:"index",setup:n=>(o({fillInWork:{show:!1}}),a((()=>{document.title="系统配置"})),(o,a)=>{const n=s;return l(),t("div",r,[e(n,{path:"/welcome",title:"分管填报记录查看"}),a[0]||(a[0]=i("div",{class:"w-full h-[10px]"},null,-1)),a[1]||(a[1]=i("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1))])})};export{n as default};
import{c as e,u as s,d as r,m as t,e as i,f as a,g as n,h as l}from"./index-jd2enTB4.js";import{r as o,F as d,e as m,o as c,z as w,A as p,H as u,f as _,j as f,a0 as h,K as x,_ as g,B as k,C as y,I as b,a1 as A,a5 as M,L as v,a4 as z,aX as T,aY as Q}from"./vant-DuoD2hHk.js";import"./vue-router-CsKE-nhB.js";import"./axios-X0xcXtXw.js";const L={class:"publicContainer"},S={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto relative"},C=["src"],I={class:"w-full h-full flex justify-end flex-wrap"},R={class:"w-full h-full flex overflow-x-auto"},E={class:"text-blue-500"},K=["onClick"],J={class:"w-full h-full flex justify-end"},F={__name:"index",setup(F,{expose:U}){const B=o({userInfo:s().getUserInfo(),getWeekOrTimeKey:"",columns:[{text:"星期一",value:"星期一"},{text:"星期二",value:"星期二"},{text:"星期三",value:"星期三"},{text:"星期四",value:"星期四"},{text:"星期五",value:"星期五"},{text:"星期六",value:"星期六"},{text:"星期日",value:"星期日"}],loading:!1,search:{date:""},select:{weekShow:!1,timeShow:!1,showPopup:!1},paramsTransfers:{configid:"1",date:[],semester_date_begin:"2024-01-02",semester_date_end:"2024-06-03",period_remind_time:"",period_remind_week:"",nowrite_remind_isCheck:"",nowrite_remind_time:[],ahead_write:"",write_remind_week:"",write_remind_time:""},params:{configid:"",semester_date_begin:"",semester_date_end:"",period_remind:"",nowrite_remind:"",ahead_write:"",write_remind:""},date:{show:!1},role:{plan_write:"0",examine:"0",userrole:"0",write_sysconfig:"0"},data:{mySchedule:{},myFocus:[]}});function N(e){B.paramsTransfers.semester_date_begin=a(e[0]).format("YYYY/MM/DD"),B.paramsTransfers.semester_date_end=a(e[1]).format("YYYY/MM/DD"),B.date.show=!1}function O(){t((()=>{return e.get("/api/Common/GetMenuRole",s).then((e=>(B.role=e.response,e)));var s}),!0,"加载中...")}function V(){t((()=>{return(s={configid:B.paramsTransfers.configid,semester_date_begin:B.paramsTransfers.semester_date_begin,semester_date_end:B.paramsTransfers.semester_date_end,period_remind:B.paramsTransfers.period_remind_week+"|"+B.paramsTransfers.period_remind_time,nowrite_remind:String(Number(B.paramsTransfers.nowrite_remind_isCheck))+String(String(B.paramsTransfers.nowrite_remind_time.map((e=>"|"+e))).split(",").join("")),ahead_write:String(Number(B.paramsTransfers.ahead_write)),write_remind:B.paramsTransfers.write_remind_week+"|"+B.paramsTransfers.write_remind_time},e.post("/api/SysConfig/SysConfigSave",s,r)).then((s=>(1===s.code&&(B.select.showPopup=!0,B.loading=!0,function(s){return e.get("/api/SysConfig/SysConfigInit",s)}().then((e=>{B.paramsTransfers={configid:e.response.configid,date:[],semester_date_begin:e.response.semester_date_begin.split(" ")[0],semester_date_end:e.response.semester_date_end.split(" ")[0],period_remind_time:e.response.period_remind.split("|")[1],period_remind_week:e.response.period_remind.split("|")[0],nowrite_remind_isCheck:Boolean(Number(e.response.nowrite_remind.split("|")[0])),nowrite_remind_time:e.response.nowrite_remind.split("|").filter((e=>0!=e&&1!=e&&0!=Number(e)&&1!=Number(e))),ahead_write:Boolean(Number(e.response.ahead_write)),write_remind_week:e.response.write_remind.split("|")[0],write_remind_time:e.response.write_remind.split("|")[1]}})).finally((()=>{B.loading=!1}))),s)));var s,r}))}function Z(){B.select.showPopup=!1}function q({selectedValues:e,selectedOptions:s,selectedIndexes:r}){"nowrite_remind_time"===B.getWeekOrTimeKey?B.paramsTransfers[B.getWeekOrTimeKey].push(e[0]+":"+e[1]):B.paramsTransfers[B.getWeekOrTimeKey]=e[0]+":"+e[1],B.select.timeShow=!1}function D({selectedValues:e,selectedOptions:s,selectedIndexes:r}){B.paramsTransfers[B.getWeekOrTimeKey]=e[0],B.select.weekShow=!1}function G(e){B.select.weekShow=!0,B.getWeekOrTimeKey=e}function P(e){B.select.timeShow=!0,B.getWeekOrTimeKey=e}return d((()=>{O()})),U({GetCollectList:function(){var s;e.get("/api/Collect/GetCollectList",s).then((e=>{B.data.myFocus=e.response}))}}),(e,s)=>{const t=n,a=g,o=M,d=m("el-switch"),F=v,U=z,O=l,W=T,Y=Q;return c(),w(x,null,[p("div",L,[u(t),p("div",S,[1==B.userInfo.currentRole.id||0==B.userInfo.currentRole.id?(c(),_(a,{key:0,class:"rounded-[8px] h-[50px] text-[17px] flex items-center",title:"分管填报记录","is-link":"",to:"/responsibleForFilingRecords"},{icon:f((()=>[p("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAMAAACdUboEAAAC8VBMVEVHcEwLw6sZyLBM2sIy0bkRxa0cybEVx68kzLQpzrYCwKggyrIIwqoFwalQ3MQOxKw507tI2cBL2sI81LxC1r481Lw/1b1F17820rouz7cv0LhN2sILw6sEwakSxq4407tG2MA71Lw91b0Jw6sNxKwv0LhL2sIrz7dB1r4307pH2MBP28MZyLAWx68gyrIdybERxa0ozrUjzLRE179C1r4+1b0dybEZyLAWx68Gwakz0bklzbUdyrIUxq4w0LgdyrIdybEv0LgCwKgUxa1T3MQdybEdybFT3MQSxa0Av6dS3MRR3MQkzLQkzLRT3MQgyrJS3MQAv6cmzLRT3MQBv6dT3MQAv6dS3MQy0bkcybEeybFT3MQtz7cfyrJR28Mw0Lguz7ccybEAv6cAv6cEwKgeybEhy7Mw0LgcybEdybEAv6dT3MQy0bkvz7cszrYAv6dT3MQz0bkBv6cpzbUAv6cBv6cnzbUAv6cpzbUmzLQBv6clzLQAv6ciy7MBv6f///8fyrItz7cqzrYjy7Mvz7cw0LgozbUlzLQz0bk607s91LwcybE+1b0ayLAXx69B1r4Rxa0Uxq4gyrIhyrIhy7MPxKwiy7MrzrYszrYuz7cpzbUeybEx0LgkzLQy0bk40ronzbUmzLQ407sMw6s10bk00bk507s30ro20ro10rodybFI2MA71Lw81LwFwakbyLAZyLADwKg/1b0YyLBL2cFA1b0HwqoWx69C1r4Vxq4Vx69D1r4Txa0Sxa1D178Qxa1E179F179G178OxKxG2MANxKxO2sJH2MALw6sKw6tJ2MAKwqpK2cEJwqpR28NM2cEHwalM2sJN2sLL8+1P28NQ28MBv6fG8evJ8uxf2shi28nM8+1o3ctQ1cPH8uxP1MJT18W57+dS3MRc2sdm3ctk3Mry/PvN9O6D49SO5diq6+Js3M2i6t+H5NZN18Moy7U/0Lx139AhybK27eYqzLbV9fBx3c460Luv7OMzz7nA8el9EOneAAAAf3RSTlMAMzMzMzMzMzMzMzMzMzMzMzMNDTMzMzMzMw1AQEBAQECZQM3NmZmZQJmZmc1AgM3NQICZmZkDQM3NmSggzRBh8jDNIx4woDANMNAwQLMWMCMTE+AQgBrwmZbQYICmbCDQ1QoGzXDz0FTVLQNg8OAq8MCmTVBizaBmZvCgkI2w+JL0nQAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAA6pJREFUWIXt2PVXk1EYwPGH6dhg2JROHbKpqOimgDKkDFCwu7u7OxhgF2F3J4rd3d2tICggdvdPnnvv2O5guM09v+n3D/ic973Pfc95zwP/clWL5aiIkQoby9ixNa1uRyvKyktzdXV1LUhycnJycnZ2dnZ0dHR0cXFxKUTLQ8tPapwdrVpdLLazisxfOweIS9YSixHIhnqwrkSMQdbrpxP9JRw5bHRZWmlaaz8/P79ytFI0Hx8fH29vb28vLy+v8qQytAqkjtIssZFER44ZOWXKkqiohYsiIxdPmjR58rIV06atX7d508aVazZMn75124wZs2bt2hsTc+DwsRMnT505n5Bw6cqePddv3jp37s7da9datQikokSSRTaYunqVVeSzZnV0IiEbLJ9qNTmYkLZackJ0NAIZTkRG1u+5AIVsR0RKVpo7D4UMpyIhO8QjkQACRio1SGQ9EDBSqUEipSBgpHIpEklFQiq3IJFMFNjaKmfy5M+0tIe0R7SMjIz09PT0pKSkNJOkFESM9JzJke+eR+RWpilSCiJGem7nyKe5ghERL0yQRKSk52yOfPAH8aWJs6SiiIoc+SJ38Pk7E+Nhokgg8NzBkx8f0G7re0zKzPyVZmriWlEk8N1tQP79JZKCkJG+c5BIKQiFWhGJdAMhI333I5FUJGTAISSSiUKRKOAgEukGBRgZEMeRX3J+NG/MJd2gACNVcRz5ysjVfmsmSURKqo5w5H0j4g8zX5yKhFQd5Uijz2jmWbqBDSNVsRz53sg5mjseD7BhpCqWJ62YOBEpqTiORFKRkIr5SCQTbYiIRHqAAyMVp5FID3BgpOIsEukODoxUrOXJ1/e1PXnyNNUykoqElK/lyNcGV/G7RaQ75GOk/AJHGn6FLy16cXfIx0j5RY78bCB+s+gsiUhJ+WWO/MD/U3y1bDxUJKT8Kk9+SklJSUlOTk5OTU21cOLuYM9I9T4D8u8vkQzsGaneh0QSkZLqG0gkFQmpTkQiZVCLkepEJFIGTewp2T0RiZQBDKJkzZ1IpAygWxgTkUgZAHTty0QcsgbdfbQMsx+6E4nUbStG3MMhh+g3IGNxyP56cfg9DLIXv/cZhUAO6GSwnBpvNdm5RrYFWomJVpED2xtZ8jUvoau4vpKsiqRqpKBgnhxXvzIp+/NZln8XjqxiFaWrjZ5EEqF3cBaJJYJ/Hy2JJkJgKCPxRICgYEJWQhQhpK1GE48qQmCoRoMrAvRAFyEkCFv8HwDAbyUGGEPkkPdQAAAAAElFTkSuQmCC",style:{width:"20px",height:"20px","margin-right":"10px"}},null,8,C)])),_:1})):h("",!0),s[12]||(s[12]=p("div",{class:"w-full ccFlex absolute bottom-0",style:{color:"#b0b0b0","font-size":"10px"}},"Build 1.0.0 - 250213 1.0.2 ",-1))])]),u(r,{show:B.select.showPopup,height:60,onActionPopUp:s[9]||(s[9]=()=>B.select.showPopup=!1)},{content:f((()=>[(c(),w("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative overflow-y-auto",key:B.calendarKey},[u(i,{show:B.loading},null,8,["show"]),s[16]||(s[16]=p("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[p("span",{class:"text-5 text-[#8D8D8D]"},"填报配置")],-1)),s[17]||(s[17]=p("div",{class:"w-full h-3"},null,-1)),u(a,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"学期范围",onClick:s[0]||(s[0]=e=>B.date.show=!0)},{default:f((()=>[p("span",null,k(B.paramsTransfers.semester_date_begin+" - "+B.paramsTransfers.semester_date_end),1)])),_:1}),u(o,{type:"range",show:B.date.show,"onUpdate:show":s[1]||(s[1]=e=>B.date.show=e),onConfirm:N},null,8,["show"]),u(a,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报刷新周期"},{value:f((()=>[s[13]||(s[13]=y(" 每周")),p("span",{class:"text-blue-500 mr-2",onClick:s[2]||(s[2]=e=>G("period_remind_week"))},"["+k(B.paramsTransfers.period_remind_week)+"]",1),p("span",{onClick:s[3]||(s[3]=e=>P("period_remind_time")),class:"text-blue-500"},"["+k(B.paramsTransfers.period_remind_time)+"]",1)])),_:1}),s[18]||(s[18]=p("div",{class:"w-full h-[10px] bg-gray-200"},null,-1)),u(a,{inset:"",title:"未填写提醒",class:"w-full h-[45px] bg-white flex items-center"},{value:f((()=>[p("div",I,[u(d,{modelValue:B.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":s[4]||(s[4]=e=>B.paramsTransfers.nowrite_remind_isCheck=e),size:"large","inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])])])),_:1}),u(a,{onClick:s[5]||(s[5]=e=>{return s="nowrite_remind_time",B.select.timeShow=!0,void(B.getWeekOrTimeKey=s);var s}),"is-link":"",class:"w-full h-[45px] bg-white flex items-center"},{title:f((()=>s[14]||(s[14]=[p("div",{class:"w-full h-full"},"重复提醒时间",-1)]))),value:f((()=>[p("div",R,[(c(!0),w(x,null,b(B.paramsTransfers.nowrite_remind_time,((e,s)=>(c(),w("div",{class:"w-20 flex justify-start items-center m-1",key:s},[p("span",E,"["+k(e)+"]",1),p("div",{onClick:A((e=>function(e){B.paramsTransfers.nowrite_remind_time.splice(e,1)}(s)),["stop"]),class:"ml-2 w-[15px] h-[15px] ccFlex text-blue-500"},[u(F,{class:"text-red-600",name:"cross"})],8,K)])))),128))])])),_:1}),s[19]||(s[19]=p("div",{class:"w-full h-[10px] bg-gray-200"},null,-1)),u(a,{inset:"",title:"提前填写",class:"w-full h-[45px] bg-white flex items-center"},{default:f((()=>[p("div",J,[u(d,{modelValue:B.paramsTransfers.ahead_write,"onUpdate:modelValue":s[6]||(s[6]=e=>B.paramsTransfers.ahead_write=e),size:"large","inline-prompt":"","active-text":"允许","inactive-text":"关闭"},null,8,["modelValue"])])])),_:1}),u(a,{"is-link":"",class:"w-full h-[45px] bg-white flex items-center",title:"填报情况提醒"},{value:f((()=>[s[15]||(s[15]=y(" 每周")),p("span",{class:"text-blue-500 mr-2",onClick:s[7]||(s[7]=e=>G("write_remind_week"))},"["+k(B.paramsTransfers.write_remind_week)+"]",1),p("span",{onClick:s[8]||(s[8]=e=>P("write_remind_time")),class:"text-blue-500"},"["+k(B.paramsTransfers.write_remind_time)+"]",1)])),_:1})])),u(O,null,{default:f((()=>[u(U,{round:"",class:"w-[32%]",onClick:Z},{default:f((()=>s[20]||(s[20]=[y("关闭")]))),_:1}),u(U,{type:"primary",round:"",class:"w-[60%]",onClick:V},{default:f((()=>s[21]||(s[21]=[y("保存")]))),_:1})])),_:1})])),_:1},8,["show"]),u(r,{show:B.select.timeShow,height:60,close:!1},{content:f((()=>[u(W,{onConfirm:q,onCancel:s[10]||(s[10]=e=>B.select.timeShow=!1),title:"选择时间"})])),_:1},8,["show"]),u(r,{show:B.select.weekShow,height:60,close:!1},{content:f((()=>[u(Y,{title:"请选择日期",columns:B.columns,onConfirm:D,onCancel:s[11]||(s[11]=e=>B.select.weekShow=!1)},null,8,["columns"])])),_:1},8,["show"])],64)}}};export{F as default};
import{r as e,l as t,m as l,j as a,b as s,f as o}from"./index-jd2enTB4.js";import{v as i,g as r,a as n}from"./viewFiles-C1cCXqh1.js";import{b as p,r as u,F as c,aS as d,o as v,z as f,H as m,j as w,A as h,D as x,E as b,f as g,K as y,I as F,a4 as A,P as D,a3 as C,C as k,B as j,u as V,a_ as B,a$ as H,aY as Q,a2 as T,Y as I,a7 as M}from"./vant-DuoD2hHk.js";import"./vue-router-CsKE-nhB.js";import"./axios-X0xcXtXw.js";const N={class:"w-full h-full bg-white overflow-y-auto relative"},P={class:"w-full h-[calc(100%-114px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto"},q={key:1,class:"w-full min-h-[90px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},E={class:"w-full h-[70px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid"},U={class:"w-full h-full bg-white overflow-y-auto relative"},O={class:"w-full h-[calc(100%-114px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto"},Y={class:"w-full h-[70px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid"},_={class:"container1"},z={class:"w-screen h-screen overflow-y-auto relative bg-[#F4F6F7]"},G={class:"w-full h-[108px] bg-white z-50 sticky top-0"},J={class:"w-full h-[54px]"},X={class:"w-full overflow-y-auto relative h-[calc(100%-172px)]"},K={class:""},Z={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},S={class:"mb-2 text-[#4E4E4E]"},R=["onClick"],L={class:"ml-2"},W={class:""},$={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},ee={class:"mb-2 text-[#4E4E4E]"},te={class:""},le={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},ae={class:"mb-2 text-[#4E4E4E]"},se={class:"w-full h-[64px] flex justify-center items-center sticky bottom-0 px-2 bg-white"},oe={__name:"index",setup(oe){const ie=p(0),re=p([{text:"日程安排",value:"0"},{text:"值班安排",value:"1"},{text:"会议安排",value:"2"}]),ne=u({show:!1,fileItem:{}}),pe=u({operatingTrajectory:{data:[],show:!1},detailsData:{plan_list:[],duty_list:[],meet_list:[]},formData:{},approval:{active:"0",showPopup:!1,show:!1,columns:[{value:1,text:"退回到上个节点"},{value:2,text:"退回到发起人"}],formData:{taskid:"",remark:"",action:""}}}),ue=()=>{void 0!==pe.formData.pushMessage?t("responsibleForFilingRecords"):e.back()},ce=e=>{ie.value=e};function de(e){const t=e.selectedOptions[0];pe.approval.formData.action=t.value,pe.approval.value=t.text,pe.approval.showPopup=!1}return p(""),c((()=>{l((()=>r({userid:s().getDayViewItemData().userid,date:o(s().getDayViewItemData().date).format("YYYY-MM-DD")}).then((e=>(pe.detailsData=e.response,e)))),!0,"加载中..."),l((()=>n({userid:s().getDayViewItemData().userid,date:o(s().getDayViewItemData().date).format("YYYY-MM-DD")}).then((e=>(pe.operatingTrajectory.data=e.response,e)))),!0,"加载中..."),pe.formData=e.currentRoute.value.query})),(e,t)=>{const l=M,s=B,o=H,r=A,n=D,p=Q,u=a,c=T,oe=C,ve=I,fe=d("font");return v(),f(y,null,[m(n,{show:pe.operatingTrajectory.show,"onUpdate:show":t[1]||(t[1]=e=>pe.operatingTrajectory.show=e),style:{height:"85%"},closeable:"",position:"bottom",round:""},{default:w((()=>[h("div",N,[t[11]||(t[11]=h("div",{class:"w-full h-[50px] z-100 sticky top-0"},[h("div",{class:"flex justify-between items-center w-full h-[50px]"},[h("div",{class:"w-full h-full ccFlex text-[18px]"}," 操作轨迹 ")])],-1)),h("div",P,[0==pe.operatingTrajectory.length?(v(),g(l,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(v(),f("div",q,[m(o,{active:0,class:"w-full",direction:"vertical","active-icon":"circle","finish-icon":"success","inactive-icon":"success"},{default:w((()=>[(v(!0),f(y,null,F(pe.operatingTrajectory.data,((e,l)=>(v(),g(s,{key:l,class:"ax"},{default:w((()=>[x((v(),f("h2",null,[k(j(e.createtime),1)])),[[fe,void 0,"{color:`#323233`,size:18}"]]),h("p",null,[t[8]||(t[8]=k("用户名:")),x((v(),f("span",null,[k(j(e.createname),1)])),[[fe,void 0,"{color:`#5295FF`}"]])]),h("p",null,[t[9]||(t[9]=k("操作:")),x((v(),f("span",null,[k(j(e.remark),1)])),[[fe,void 0,"{color:`#5295FF`}"]])])])),_:2},1024)))),128))])),_:1})]))]),h("div",E,[m(r,{class:"w-full","native-type":"submit",round:"",onClick:t[0]||(t[0]=e=>pe.operatingTrajectory.show=!1)},{default:w((()=>t[10]||(t[10]=[k("关闭 ")]))),_:1})])])])),_:1},8,["show"]),m(n,{show:pe.approval.showPopup,"onUpdate:show":t[3]||(t[3]=e=>pe.approval.showPopup=e),position:"bottom"},{default:w((()=>[m(p,{columns:pe.approval.columns,"show-toolbar":"",onCancel:t[2]||(t[2]=e=>pe.approval.showPopup=!1),onConfirm:de},null,8,["columns"])])),_:1},8,["show"]),m(n,{show:ne.show,"onUpdate:show":t[5]||(t[5]=e=>ne.show=e),style:{height:"85%"},closeable:"",position:"bottom",round:""},{default:w((()=>[h("div",U,[t[13]||(t[13]=h("div",{class:"w-full h-[50px] z-100 sticky top-0"},[h("div",{class:"flex justify-between items-center w-full h-[50px]"},[h("div",{class:"w-full h-full ccFlex text-[18px]"}," 附件预览 ")])],-1)),h("div",O,[m(i,{fileObj:ne.fileItem},null,8,["fileObj"])]),h("div",Y,[m(r,{class:"w-full","native-type":"submit",round:"",onClick:t[4]||(t[4]=e=>ne.show=!1)},{default:w((()=>t[12]||(t[12]=[k("关闭 ")]))),_:1})])])])),_:1},8,["show"]),h("div",_,[h("div",z,[h("div",G,[m(u,{path:"/responsibleForFilingRecords",title:"日程详情"},{importFile:w((()=>[h("span",{onClick:t[6]||(t[6]=e=>pe.operatingTrajectory.show=!0),class:"text-blue-500"},"操作轨迹")])),_:1}),h("div",J,[m(oe,{active:ie.value,"onUpdate:active":t[7]||(t[7]=e=>ie.value=e),swipeable:"",onChange:ce},{default:w((()=>[(v(!0),f(y,null,F(re.value,((e,t)=>(v(),g(c,{key:t,title:e.text},null,8,["title"])))),128))])),_:1},8,["active"])])]),h("div",X,[x(h("div",K,[0==pe.detailsData.plan_list.length?(v(),g(l,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(v(!0),f(y,{key:1},F(pe.detailsData.plan_list,((e,l)=>(v(),f("div",{key:l,class:"w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},[h("div",Z,[t[14]||(t[14]=h("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),h("p",null,j(e.date)+" "+j(e.begin+" - "+e.end),1)]),h("div",S,[h("p",null,j(e.content),1)]),(v(!0),f(y,null,F(e.file_list,((e,t)=>(v(),f("div",{key:t,onClick:t=>{return l=e,ne.show=!0,void(ne.fileItem=l);var l},class:"flex items-center text-[#3FA0F4]"},[m(ve,{width:"12px",height:"12px",src:V("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAADoElEQVR4Xp2VSWgUQRSGJ0biLoIobqS7agaXIEpO4kFxx5O44gIeBBMQFBTxogePKqKRme6qHrNM4obkIC4gCooLIgiCgt5UvIgHo05PV/V0YqLle9XT43TroPigYfp11Vd//e9VTSr1H5HmYiF1/B7KxCuTec9NJg+aHcUpyXH/HNRy99F8uZjuVop2jija9V0/xCk/M2yxIDn+r0Hs0n7iBCMII7b3kDDvKDynKZcf0gWlCBMvZ1ve1OS8ulELNG3vVKpfNUbfUCHh/jva/QPA3pnaeXUDfGsneQDCNgF4AnNG3p9J8sOHiSPX4jvAjtDOYdyBjM/+Q5jMbadOMEy7wL8qcGCmycXTzBWFuQLmqFPeTM8PgbeBihMSgQph8LBWaHkndc6WMwgAtYfcHwCFy3TeKjFcGOa8jVNqwsxFCqGyVuhTLRAWGzBy7irME1tsheqXtVIud8dJlSC220bzwbeKh2cxZ3TAlu1fQOhVDQTwFlhcpHsU+tmVOq5GxWkpbfheGBQDAmA6ehgBmy13NeapLTZHQDgAvZmsGhOnQRDL/QVkogNzCCRMPoyANOuuwbxheZuqCpnsMwvvx8ZpEJTJPbDloVChOIe5ECg0kDj+Z8pCIBRjI4z1QqB3MZN987tC05HraX4wwOrBqqd1DovCxJOwyuXPZq64AvMk526r2XJPy/HXTan+/sb5fWpqVS36oNX06mN2FYweHVZZPo6A1QaHKkdAOJoFGNuUuaQmw7wbtKAkFKotVGmVloDKIfCrSC1v7jT700TY0oPKlr9AJ6zDcc22WwP0Cy0IzH6ZTJl/U9vgBGU4ritDKJeHNMAu3dPvttyZ7sZbJ/hKsiGQ5LwNsHDFQ9nb0q+a5nWrSfA7AvomL+3QQA1hgld67LoGcP9Yug/98p7Pyn8cr4FOUArHyD4syrxTA5PgENyIgNQu7awCNYSJA6gU4Pf1Ilzs0EqZ78O3F6BGVqqsgdqeCMjhFCWBGBlebMXKg39usyNa5pxV46Dpr1EAY/Fo1w9c8DJuOfQ7UghAVtqV5OlAw1FlWH15M6VbRDVSXt5C8oNHiCO2ppQateiCmhABoagBzdUBRoE3Daws9eUBE41ssTX2PVtcDAvexb8QgsB6CpNh2u52BFf6NQDfHgHoFvYwXrw670jvrwqTQSyxHLy9A/+UQ1i86MF36M3bhlNempzzb6FUQ4b7rYQHbQaXh03HazfgHb40JIfWi58kocJqXNrBoAAAAABJRU5ErkJggg==")},null,8,["src"]),h("a",L,j(e.file_name),1)],8,R)))),128))])))),128))],512),[[b,0==ie.value]]),x(h("div",W,[0==pe.detailsData.duty_list.length?(v(),g(l,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(v(!0),f(y,{key:1},F(pe.detailsData.duty_list,((e,l)=>(v(),f("div",{key:l,class:"w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},[h("div",$,[t[15]||(t[15]=h("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),h("p",null,j(e.date)+" "+j(e.begin)+"-"+j(e.end),1)]),h("div",ee,[h("p",null,j(e.content),1)])])))),128))],512),[[b,1==ie.value]]),x(h("div",te,[0==pe.detailsData.meet_list.length?(v(),g(l,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(v(!0),f(y,{key:1},F(pe.detailsData.meet_list,((e,l)=>(v(),f("div",{key:l,class:"w-full min-h-[60px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},[h("div",le,[t[16]||(t[16]=h("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),h("p",null,j(e.date)+" "+j(e.begin)+"-"+j(e.end),1)]),h("div",ae,[h("p",null,j(e.content),1)])])))),128))],512),[[b,2==ie.value]])]),h("div",se,[m(r,{round:"",class:"w-[50%]",onClick:ue},{default:w((()=>t[17]||(t[17]=[k("返回")]))),_:1})])])])],64)}}};export{oe as default};
import{c as s,i as e,h as a,j as o}from"./index-jd2enTB4.js";import{b as l,r as t,F as n,o as r,z as i,H as f,A as u,j as p,f as c,C as d,a0 as m,a4 as w}from"./vant-DuoD2hHk.js";import"./vue-router-CsKE-nhB.js";import"./axios-X0xcXtXw.js";const h={class:"publicContainerNoPadding"},y={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},v={class:"w-full h-full flex items-center justify-between p-3"},k={__name:"index",setup(k){const x=l(),j=t({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function C(){j.fillInWork.show=!0}function _(){x.value.save()}function b(s){j.fillInWork.show=s}function I(){var e;s.get("/api/Common/GetAheadWriteSwitch",e).then((s=>{j.role=s.response}))}return n((()=>{I()})),(s,l)=>{const t=o,n=e,k=w,I=a;return r(),i("div",h,[f(t,{path:"/welcome",title:"工作安排填报"}),u("div",y,[f(n,{ref_key:"saveRef",ref:x,show:j.fillInWork.show,onCloseDateComponent:b},null,8,["show"])]),f(I,null,{default:p((()=>[u("div",v,[1==j.role?(r(),c(k,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:C},{default:p((()=>l[0]||(l[0]=[d(" 添加日期 ")]))),_:1})):m("",!0),f(k,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:_},{default:p((()=>l[1]||(l[1]=[d("保存")]))),_:1})])])),_:1})])}}};export{k as default};
import"./index-jd2enTB4.js";import{u as t}from"./vue-router-CsKE-nhB.js";import{o as e,z as a,H as r,K as s,a9 as n,a7 as o}from"./vant-DuoD2hHk.js";import"./axios-X0xcXtXw.js";const i=""+new URL("warning-zGbTxtDs.png",import.meta.url).href,m={__name:"index",setup(m){const l=t(),u=()=>l.back();return(t,m)=>{const l=n,p=o;return e(),a(s,null,[r(l,{"left-text":"返回","left-arrow":"",onClickLeft:u}),r(p,{image:i,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{m as default};
import{c as e,_ as a,m as s,d as l,k as t,h as i}from"./index-jd2enTB4.js";import{b as n,o as r,z as o,H as c,aZ as p,r as d,F as u,A as m,f as h,a0 as f,K as g,I as _,j as x,B as w,C as v,k as b,a4 as k,a6 as y,a7 as F}from"./vant-DuoD2hHk.js";import"./vue-router-CsKE-nhB.js";import"./axios-X0xcXtXw.js";const P={class:"w-full h-[55px] page bg-white"},C=a({__name:"page",props:{page_index:{type:Number,default:1},page_size:{type:Number,default:10},total:{type:Number,default:0}},emits:["pageChange"],setup(e,{expose:a,emit:s}){const l=n(1),t=e,i=s;function d(e){i("pageChange",e)}return a({currentPage:l}),(e,a)=>{const s=p;return r(),o("div",P,[c(s,{onChange:d,modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e),"total-items":t.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},[["__scopeId","data-v-f36f3121"]]),R={class:"publicContainerNoPadding relative"},z={class:"w-full h-[calc(100%-155px)] p-3 overflow-y-auto"},U={class:"w-[80%] h-full"},j={class:"w-full h-[40px] p-1 flex items-center text-[17px]"},I={class:"w-full min-h-1/2 p-1"},A=["onClick"],E={class:"w-full h-auto bg-white"},N={class:"w-full min-h-[110px] p-4 flex justify-between text-[17px] flex-wrap"},G={class:"h-[30px] w-[85%]"},S={class:"h-[30px] w-[85%]"},L={class:"h-[30px] w-[85%]"},V={class:"h-[30px] w-[85%]"},K={class:"w-full h-auto bg-white"},B={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},D={class:"w-full h-auto bg-white"},H={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},W={class:"w-full h-full flex justify-between items-center p-3"},Z={__name:"index",setup(a){const p=n(),P=n(),Z=d({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 q(){s((()=>{return(a={...Z.check,role_list:Z.check.role_list.map((e=>({role_name:"",role_id:e}))),dept_list:Z.check.dept_list.map((e=>({name:"",id:e})))},e.post("/api/UserRole/UserRoleSave",a,s)).then((e=>(1===e.code&&(""!==P.value.search?X(P.value.search,Z.searchParams.page_index):(T(Z.initParams.page_index),p.value.currentPage=Z.initParams.page_index),Z.select.showPopup=!1),e)));var a,s}))}function J(){var a;e.post("/api/Common/GetRoleList",a).then((e=>{Z.comment.user=e.response.map((e=>({...e,bg:"",cl:""})))}))}function M(){var a;e.get("/api/Common/GetDeptAllList",a).then((e=>{Z.comment.dept=e.response.map((e=>({...e,bg:"",cl:""})))}))}function O(){s((()=>function(a,s){const l={card_name:a.card_name,page_index:a.page_index,page_size:a.page_size};return e.get("/api/UserRole/GetUserRoleList",{params:l,...s})}(Z.initParams).then((e=>(Z.data=e.response.data.map((e=>({...e}))),Z.total=e.response.data_count,e)))),!0,"加载中...")}function Q(e){""===P.value.search?(Z.initParams.page_index=e,O()):(Z.searchParams.page_index=e,X(P.value.search,e))}function T(e=""){P.value.search="",Z.initParams={page_index:e||1,page_size:10},p.value.currentPage=1,O()}function X(a,s=1){""!==P.value.search&&(1!==Z.initParams.page_index&&(p.value.currentPage=1,Z.initParams.page_index=1),function(a,s){const l={keyword:a.keyword,page_index:a.page_index,page_size:a.page_size};return e.get("/api/UserRole/GetUserRoleSearch",{params:l,...s})}({...Z.searchParams,keyword:a,page_index:s}).then((e=>{Z.data=e.response.data.map((e=>({...e}))),Z.total=e.response.data_count})))}function Y(a,l){let t={0:()=>{s((()=>function(a,s){const l={userid:a.userid};return e.get("/api/UserRole/UserRoleIns",{params:l,...s})}({userid:l.userid}).then((e=>(1===e.code&&t[1](e.response),e)))))},1:a=>{(function(a,s){const l={id:a.id};return e.get("/api/UserRole/GetUserRoleInfo",{params:l,...s})})({id:l.userroleid||a}).then((e=>{let a=[],s=[];e.response.dept_list.map(((e,s)=>{a.push(e.id)})),e.response.role_list.map(((e,a)=>{s.push(e.role_id)})),Z.comment.dept.map(((e,s)=>(a.includes(e.id)?(e.bg="#1989FA",e.cl="#FFFFFF"):(e.bg="",e.cl=""),e))),Z.comment.user.map(((e,a)=>(s.includes(e.id)?(e.bg="#1989FA",e.cl="#FFFFFF"):(e.bg="",e.cl=""),e))),e.response.dept_list=a,e.response.role_list=s,Z.check=e.response,1===e.code&&(Z.select.showPopup=!0)}))}};t[String(a)]()}return u((()=>{O(),J(),M()})),(e,a)=>{const s=F,n=k,d=y,u=i,J=l;return r(),o(g,null,[m("div",R,[c(t,{class:"sticky top-0",title:"人员授权列表",ref_key:"headerInput",ref:P,onSearchFun:X,onReset:T,path:"/welcome"},null,512),m("div",z,[Z.data.length===[]?(r(),h(s,{key:0,description:"暂无授权名单,请通过搜索添加"})):f("",!0),(r(!0),o(g,null,_(Z.data,((e,a)=>(r(),o("div",{key:a,class:"w-full min-h-[90px] flex rounded-[10px] p-2 bg-white mb-3"},[m("div",U,[m("div",j,w(e.username)+" ("+w(e.usercard)+") ",1),m("div",I,[(r(!0),o(g,null,_(e.dept_list,((e,a)=>(r(),h(n,{style:{padding:"6px",margin:"5px 5px 5px 0",color:"#1989f9","border-color":"#1989f9"},key:a,plain:"",hairline:"",size:"small",type:"primary"},{default:x((()=>[v(w(e.name),1)])),_:2},1024)))),128))])]),m("div",{onClick:a=>Y(Number(null!==e.userroleid),e),class:"w-[20%] flex justify-center items-center text-[#1989f9]"},w(["添加","编辑"][Number(null!==e.userroleid)]),9,A)])))),128))]),c(C,{class:"absolute bottom-0",ref_key:"pageRef",ref:p,total:Z.total,onPageChange:Q},null,8,["total"])]),c(J,{show:Z.select.showPopup,height:80,onActionPopUp:a[1]||(a[1]=()=>Z.select.showPopup=!1)},{content:x((()=>[a[13]||(a[13]=m("div",{class:"w-full h-[45px] bg-white flex justify-center items-center"},[m("span",{class:"text-5"},"人员权限添加详情")],-1)),a[14]||(a[14]=m("div",{class:"w-full h-3 bg-gray-200"},null,-1)),(r(),o("div",{class:"w-full h-[calc(100%-121px)] bg-gray-200 overflow-y-auto",key:Z.calendarKey},[m("div",E,[m("div",N,[a[2]||(a[2]=m("div",{class:"h-[30px] w-[15%]"},"姓名:",-1)),m("div",G,w(Z.check.username),1),a[3]||(a[3]=m("div",{class:"h-[30px] w-[15%]"},"工号:",-1)),m("div",S,w(Z.check.usercard),1),a[4]||(a[4]=m("div",{class:"h-[30px] w-[15%]"},"部门:",-1)),m("div",L,w(Z.check.dept),1),a[5]||(a[5]=m("div",{class:"h-[30px] w-[15%]"},"岗位:",-1)),m("div",V,w(Z.check.position_name),1)])]),a[8]||(a[8]=m("div",{class:"w-full h-3"},null,-1)),m("div",K,[a[6]||(a[6]=m("div",{class:"w-full h-10 p-4 pb-0"},"分管权限",-1)),m("div",B,[c(d,{wrap:""},{default:x((()=>[(r(!0),o(g,null,_(Z.comment.user,((e,a)=>(r(),h(n,{onClick:a=>function(e){Z.check.role_list.includes(e.id)?(Z.check.role_list.forEach(((a,s)=>{a===e.id&&Z.check.role_list.splice(s,1,"")})),Z.comment.user.forEach((a=>{a.id===e.id&&(a.bg="",a.cl="")}))):(Z.check.role_list.push(e.id),Z.comment.user.forEach((a=>{a.id===e.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})))}(e),style:b({margin:"5px",padding:"15px !important",borderColor:"#1989f9",height:"30px",background:e.bg,color:e.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x((()=>[v(w(e.name),1)])),_:2},1032,["onClick","style"])))),256))])),_:1})])]),a[9]||(a[9]=m("div",{class:"w-full h-3"},null,-1)),m("div",D,[a[7]||(a[7]=m("div",{class:"w-full h-10 p-4 pb-0"},"分管部门",-1)),m("div",H,[c(d,{wrap:""},{default:x((()=>[(r(!0),o(g,null,_(Z.comment.dept,((e,a)=>(r(),h(n,{onClick:a=>function(e){Z.check.dept_list.includes(e.id)?(Z.check.dept_list.forEach(((a,s)=>{a===e.id&&Z.check.dept_list.splice(s,1)})),Z.comment.dept.forEach((a=>{a.id===e.id&&(a.bg="",a.cl="")})),Z.comment.deptId.forEach(((a,s)=>{a===e.id&&Z.comment.deptId.splice(s,1)}))):(Z.check.dept_list.push(e.id),Z.comment.deptId.push(e.id),Z.comment.dept.forEach((a=>{a.id===e.id&&(a.bg="#1989FA",a.cl="#FFFFFF")})))}(e),key:a,style:b({borderColor:"#1989f9",margin:"5px",padding:"15px !important",height:"30px",background:e.bg,color:e.cl}),size:"small",plain:"",hairline:"",type:"primary"},{default:x((()=>[v(w(e.name),1)])),_:2},1032,["onClick","style"])))),128))])),_:1})])]),a[10]||(a[10]=m("div",{class:"w-full h-3 bg-gray-200"},null,-1))])),c(u,null,{default:x((()=>[m("div",W,[c(n,{round:"",class:"w-[30%]",onClick:a[0]||(a[0]=e=>Z.select.showPopup=!1)},{default:x((()=>a[11]||(a[11]=[v("取消")]))),_:1}),c(n,{type:"primary",round:"",class:"w-[64%]",onClick:q},{default:x((()=>a[12]||(a[12]=[v("确定")]))),_:1})])])),_:1})])),_:1},8,["show"])],64)}}};export{Z as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{_ as r}from"./index-jd2enTB4.js";import"./vant-DuoD2hHk.js";import"./vue-router-CsKE-nhB.js";import"./axios-X0xcXtXw.js";const t=r({},[["render",function(r,t){return null}]]);export{t as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{c as e,_ as t}from"./index-jd2enTB4.js";import{b3 as i,o as a,z as r,A as s,f as c,j as n,a0 as l,B as d,a7 as o}from"./vant-DuoD2hHk.js";function p(t,i){const a={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleInfo",{params:a,...i})}function f(t,i){const a={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleTrackList",{params:a,...i})}const h={class:"file-preview"},u={style:{height:"100%"}},m={key:1},y=["src"],v={key:2},g=["src"],w={key:3},x=["src"],b={key:4,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},j={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},k=["src"],O={key:5,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},P={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},T=["src"],L=["src"],_={key:7,style:{height:"100%"}},S=["src"],G={key:8},D={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}};const I=t({name:"filePreview",components:{},props:{fileObj:{type:Object,default:()=>({})}},data:()=>({url:window.location.origin+"/fileReader/?file="+window.location.origin,src:"http://static.shanhuxueyuan.com/test6.docx",renderedLoading:!0,previewType:"",errorShow:!1}),mounted(){this.previewType=this.getPreviewType()},methods:{getPreviewType(){let e="";switch(this.fileObj.file_name.split(".").pop()){case"doc":case"docx":case"DOC":case"DOCX":e="docx";break;case"xls":case"xlsx":case"XLS":case"XLSX":e="excel";break;case"ppt":case"pptx":case"PPT":case"PPTX":e="ppt";break;case"pdf":case"PDF":e="pdf";break;case"jpg":case"jpeg":case"png":case"gif":case"JPG":case"JPEG":case"PNG":case"GIF":e="image";break;case"mp4":case"ogg":case"webm":e="video";break;case"mp3":case"wav":e="audio";break;case"txt":e="txt";break;default:e="custom",this.renderedLoading=!1}return e},rendered(){this.renderedLoading=!1},errorHandler(e){this.errorShow=!0},clickDownload(e,t){const i=document.createElement("a");i.href=e,i.download=t,i.target="_blank",i.dispatchEvent(new MouseEvent("click"))},viewImage(e){i([e])}}},[["render",function(e,t,i,p,f,I){const X=o;return a(),r("div",h,[s("div",u,[f.errorShow?(a(),c(X,{key:0},{description:n((()=>t[6]||(t[6]=[s("p",null,"加载失败,请尝试下载预览",-1)]))),_:1})):l("",!0),"docx"==f.previewType?(a(),r("div",m,[s("iframe",{style:{height:"calc(100vh - 80px)"},src:f.url+i.fileObj.path,height:"100%",width:"100%"},null,8,y)])):l("",!0),"excel"==f.previewType?(a(),r("div",v,[s("iframe",{style:{height:"calc(100vh - 80px)"},src:f.url+i.fileObj.path,height:"100%",width:"100%"},null,8,g)])):l("",!0),"pdf"==f.previewType?(a(),r("div",w,[s("iframe",{src:f.url+i.fileObj.path,style:{height:"calc(100vh - 80px)"},height:"100%",width:"100%"},null,8,x)])):l("",!0),"video"==f.previewType?(a(),r("div",b,[s("div",j,d(i.fileObj.file_name),1),s("video",{src:i.fileObj.path,controls:"",onLoadeddata:t[0]||(t[0]=(...e)=>I.rendered&&I.rendered(...e)),style:{width:"80%"}},t[7]||(t[7]=[s("p",null,"抱歉,您的浏览器不支持视频标签。",-1)]),40,k)])):l("",!0),"audio"==f.previewType?(a(),r("div",O,[s("div",P,d(i.fileObj.file_name),1),s("audio",{src:i.fileObj.path,controls:"",onLoadeddata:t[1]||(t[1]=(...e)=>I.rendered&&I.rendered(...e))},t[8]||(t[8]=[s("p",null,"抱歉,您的浏览器不支持音频标签。",-1)]),40,T)])):l("",!0),"image"==f.previewType?(a(),r("div",{key:6,onClick:t[3]||(t[3]=e=>I.viewImage(i.fileObj.path)),style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},[s("img",{src:i.fileObj.path,alt:"",style:{"max-width":"100%","max-height":"100%"},onLoad:t[2]||(t[2]=(...e)=>I.rendered&&I.rendered(...e))},null,40,L)])):l("",!0),"txt"==f.previewType?(a(),r("div",_,[s("iframe",{src:i.fileObj.path,width:"100%",height:"100%",onLoad:t[4]||(t[4]=(...e)=>I.rendered&&I.rendered(...e))},t[9]||(t[9]=[s("p",null,"抱歉,您的浏览器不支持在页面中显示 txt 文件。",-1)]),40,S)])):l("",!0),"custom"==f.previewType?(a(),r("div",G,[s("div",D,[s("a",{style:{"margin-bottom":"10px","font-size":"20px"},onClick:t[5]||(t[5]=e=>I.clickDownload(i.fileObj.path,i.fileObj.file_name))},d(i.fileObj.file_name),1),t[10]||(t[10]=s("p",null,"抱歉,暂不支持预览该类型文件,请点击下载后自行预览。",-1))])])):l("",!0)])])}],["__scopeId","data-v-f13c766f"]]);export{f as a,p as g,I as v};
import{s as e,u as t,a as n,i as r,n as o,d as a,r as s,c,h as i,p as l,b as u,w as f}from"./vant-DuoD2hHk.js";const p="undefined"!=typeof window;const h=Object.assign;function d(e,t){const n={};for(const r in t){const o=t[r];n[r]=g(o)?o.map(e):e(o)}return n}const m=()=>{},g=Array.isArray,v=/\/$/;function y(e,t,n="/"){let r,o={},a="",s="";const c=t.indexOf("#");let i=t.indexOf("?");return c<i&&c>=0&&(i=-1),i>-1&&(r=t.slice(0,i),a=t.slice(i+1,c>-1?c:t.length),o=e(a)),c>-1&&(r=r||t.slice(0,c),s=t.slice(c,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];".."!==o&&"."!==o||r.push("");let a,s,c=n.length-1;for(a=0;a<r.length;a++)if(s=r[a],"."!==s){if(".."!==s)break;c>1&&c--}return n.slice(0,c).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}(null!=r?r:t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:s}}function b(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function w(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function E(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!O(e[n],t[n]))return!1;return!0}function O(e,t){return g(e)?k(e,t):g(t)?k(t,e):e===t}function k(e,t){return g(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var R,P,x,C;function j(e){if(!e)if(p){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(v,"")}(P=R||(R={})).pop="pop",P.push="push",(C=x||(x={})).back="back",C.forward="forward",C.unknown="";const $=/^[^#]+#/;function S(e,t){return e.replace($,"#")+t}const A=()=>({left:window.pageXOffset,top:window.pageYOffset});function q(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function L(e,t){return(history.state?history.state.position-t:-1)+e}const M=new Map;function B(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let t=o.includes(e.slice(a))?e.slice(a).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),b(n,"")}return b(n,e)+r+o}function G(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?A():null}}function _(e){const{history:t,location:n}=window,r={value:B(e,n)},o={value:t.state};function a(r,a,s){const c=e.indexOf("#"),i=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+r:location.protocol+"//"+location.host+e+r;try{t[s?"replaceState":"pushState"](a,"",i),o.value=a}catch(l){n[s?"replace":"assign"](i)}}return o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:function(e,n){const s=h({},o.value,t.state,{forward:e,scroll:A()});a(s.current,s,!0),a(e,h({},G(r.value,e,null),{position:s.position+1},n),!1),r.value=e},replace:function(e,n){a(e,h({},t.state,G(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}function I(e){const t=_(e=j(e)),n=function(e,t,n,r){let o=[],a=[],s=null;const c=({state:a})=>{const c=B(e,location),i=n.value,l=t.value;let u=0;if(a){if(n.value=c,t.value=a,s&&s===i)return void(s=null);u=l?a.position-l.position:0}else r(c);o.forEach((e=>{e(n.value,i,{delta:u,type:R.pop,direction:u?u>0?x.forward:x.back:x.unknown})}))};function i(){const{history:e}=window;e.state&&e.replaceState(h({},e.state,{scroll:A()}),"")}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return a.push(t),t},destroy:function(){for(const e of a)e();a=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",i)}}}(e,t.state,t.location,t.replace);const r=h({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:S.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function W(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),I(e)}function D(e){return"string"==typeof e||"symbol"==typeof e}const U={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},F=Symbol("");var T,V;function z(e,t){return h(new Error,{type:e,[F]:!0},t)}function K(e,t){return e instanceof Error&&F in e&&(null==t||!!(e.type&t))}(V=T||(T={}))[V.aborted=4]="aborted",V[V.cancelled=8]="cancelled",V[V.duplicated=16]="duplicated";const H="[^/]+?",Q={sensitive:!1,strict:!1,start:!0,end:!0},X=/[.+*?^${}()[\]/\\]/g;function Y(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function N(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const e=Y(r[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-r.length)){if(Z(r))return 1;if(Z(o))return-1}return o.length-r.length}function Z(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const J={type:0,value:""},ee=/[a-zA-Z0-9_]/;function te(e,t,n){const r=function(e,t){const n=h({},Q,t),r=[];let o=n.start?"^":"";const a=[];for(const i of e){const e=i.length?[]:[90];n.strict&&!i.length&&(o+="/");for(let t=0;t<i.length;t++){const r=i[t];let s=40+(n.sensitive?.25:0);if(0===r.type)t||(o+="/"),o+=r.value.replace(X,"\\$&"),s+=40;else if(1===r.type){const{value:e,repeatable:n,optional:l,regexp:u}=r;a.push({name:e,repeatable:n,optional:l});const f=u||H;if(f!==H){s+=10;try{new RegExp(`(${f})`)}catch(c){throw new Error(`Invalid custom RegExp for param "${e}" (${f}): `+c.message)}}let p=n?`((?:${f})(?:/(?:${f}))*)`:`(${f})`;t||(p=l&&i.length<2?`(?:/${p})`:"/"+p),l&&(p+="?"),o+=p,s+=20,l&&(s+=-8),n&&(s+=-20),".*"===f&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");return{re:s,score:r,keys:a,parse:function(e){const t=e.match(s),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",o=a[r-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){const{value:a,repeatable:s,optional:c}=e,i=a in t?t[a]:"";if(g(i)&&!s)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const l=g(i)?i.join("/"):i;if(!l){if(!c)throw new Error(`Missing required param "${a}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=l}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[J]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let c,i=0,l="",u="";function f(){l&&(0===n?a.push({type:0,value:l}):1===n||2===n||3===n?(a.length>1&&("*"===c||"+"===c)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:"*"===c||"+"===c,optional:"*"===c||"?"===c})):t("Invalid state to consume buffer"),l="")}function p(){l+=c}for(;i<e.length;)if(c=e[i++],"\\"!==c||2===n)switch(n){case 0:"/"===c?(l&&f(),s()):":"===c?(f(),n=1):p();break;case 4:p(),n=r;break;case 1:"("===c?n=2:ee.test(c)?p():(f(),n=0,"*"!==c&&"?"!==c&&"+"!==c&&i--);break;case 2:")"===c?"\\"==u[u.length-1]?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:f(),n=0,"*"!==c&&"?"!==c&&"+"!==c&&i--,u="";break;default:t("Unknown state")}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${l}"`),f(),s(),o}(e.path),n),o=h(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function ne(e,t){const n=[],r=new Map;function o(e,n,r){const c=!r,i=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:oe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);i.aliasOf=r&&r.record;const l=ce(t,e),u=[i];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(h({},i,{components:r?r.record.components:i.components,path:e,aliasOf:r?r.record:i}))}let f,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if(f=te(t,n,l),r?r.alias.push(f):(p=p||f,p!==f&&p.alias.push(f),c&&e.name&&!ae(f)&&a(e.name)),i.children){const e=i.children;for(let t=0;t<e.length;t++)o(e[t],f,r&&r.children[t])}r=r||f,(f.record.components&&Object.keys(f.record.components).length||f.record.name||f.record.redirect)&&s(f)}return p?()=>{a(p)}:m}function a(e){if(D(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function s(e){let t=0;for(;t<n.length&&N(e,n[t])>=0&&(e.record.path!==n[t].record.path||!ie(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!ae(e)&&r.set(e.record.name,e)}return t=ce({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:function(e,t){let o,a,s,c={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw z(1,{location:e});s=o.record.name,c=h(re(t.params,o.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&re(e.params,o.keys.map((e=>e.name)))),a=o.stringify(c)}else if("path"in e)a=e.path,o=n.find((e=>e.re.test(a))),o&&(c=o.parse(a),s=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw z(1,{location:e,currentLocation:t});s=o.record.name,c=h({},t.params,e.params),a=o.stringify(c)}const i=[];let l=o;for(;l;)i.unshift(l.record),l=l.parent;return{name:s,path:a,params:c,matched:i,meta:se(i)}},removeRoute:a,getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function re(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function oe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n;return t}function ae(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function se(e){return e.reduce(((e,t)=>h(e,t.meta)),{})}function ce(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ie(e,t){return t.children.some((t=>t===e||ie(e,t)))}const le=/#/g,ue=/&/g,fe=/\//g,pe=/=/g,he=/\?/g,de=/\+/g,me=/%5B/g,ge=/%5D/g,ve=/%5E/g,ye=/%60/g,be=/%7B/g,we=/%7C/g,Ee=/%7D/g,Oe=/%20/g;function ke(e){return encodeURI(""+e).replace(we,"|").replace(me,"[").replace(ge,"]")}function Re(e){return ke(e).replace(de,"%2B").replace(Oe,"+").replace(le,"%23").replace(ue,"%26").replace(ye,"`").replace(be,"{").replace(Ee,"}").replace(ve,"^")}function Pe(e){return null==e?"":function(e){return ke(e).replace(le,"%23").replace(he,"%3F")}(e).replace(fe,"%2F")}function xe(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Ce(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const e=n[r].replace(de," "),o=e.indexOf("="),a=xe(o<0?e:e.slice(0,o)),s=o<0?null:xe(e.slice(o+1));if(a in t){let e=t[a];g(e)||(e=t[a]=[e]),e.push(s)}else t[a]=s}return t}function je(e){let t="";for(let n in e){const r=e[n];if(n=Re(n).replace(pe,"%3D"),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}(g(r)?r.map((e=>e&&Re(e))):[r&&Re(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function $e(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=g(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const Se=Symbol(""),Ae=Symbol(""),qe=Symbol(""),Le=Symbol(""),Me=Symbol("");function Be(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Ge(e,t,n,r,o){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((s,c)=>{const i=e=>{var i;!1===e?c(z(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(z(2,{from:t,to:e})):(a&&r.enterCallbacks[o]===a&&"function"==typeof e&&a.push(e),s())},l=e.call(r&&r.instances[o],t,n,i);let u=Promise.resolve(l);e.length<3&&(u=u.then(i)),u.catch((e=>c(e)))}))}function _e(e,t,n,r){const o=[];for(const s of e)for(const e in s.components){let c=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(a=c)||"displayName"in a||"props"in a||"__vccOpts"in a){const a=(c.__vccOpts||c)[t];a&&o.push(Ge(a,n,r,s,e))}else{let a=c();o.push((()=>a.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const a=(c=o).__esModule||"Module"===c[Symbol.toStringTag]?o.default:o;var c;s.components[e]=a;const i=(a.__vccOpts||a)[t];return i&&Ge(i,n,r,s,e)()}))))}}var a;return o}function Ie(e){const n=r(qe),o=r(Le),a=c((()=>n.resolve(t(e.to)))),s=c((()=>{const{matched:e}=a.value,{length:t}=e,n=e[t-1],r=o.matched;if(!n||!r.length)return-1;const s=r.findIndex(w.bind(null,n));if(s>-1)return s;const c=De(e[t-2]);return t>1&&De(n)===c&&r[r.length-1].path!==c?r.findIndex(w.bind(null,e[t-2])):s})),i=c((()=>s.value>-1&&function(e,t){for(const n in t){const r=t[n],o=e[n];if("string"==typeof r){if(r!==o)return!1}else if(!g(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}(o.params,a.value.params))),l=c((()=>s.value>-1&&s.value===o.matched.length-1&&E(o.params,a.value.params)));return{route:a,href:c((()=>a.value.href)),isActive:i,isExactActive:l,navigate:function(r={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(r)?n[t(e.replace)?"replace":"push"](t(e.to)).catch(m):Promise.resolve()}}}const We=a({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ie,setup(e,{slots:t}){const n=s(Ie(e)),{options:o}=r(qe),a=c((()=>({[Ue(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Ue(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:i("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},r)}}});function De(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ue=(e,t,n)=>null!=e?e:null!=t?t:n;function Fe(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Te=a({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:o}){const a=r(Me),s=c((()=>e.route||a.value)),p=r(Ae,0),d=c((()=>{let e=t(p);const{matched:n}=s.value;let r;for(;(r=n[e])&&!r.components;)e++;return e})),m=c((()=>s.value.matched[d.value]));l(Ae,c((()=>d.value+1))),l(Se,m),l(Me,s);const g=u();return f((()=>[g.value,m.value,e.name]),(([e,t,n],[r,o,a])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&w(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const t=s.value,r=e.name,a=m.value,c=a&&a.components[r];if(!c)return Fe(o.default,{Component:c,route:t});const l=a.props[r],u=l?!0===l?t.params:"function"==typeof l?l(t):l:null,f=i(c,h({},u,n,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[r]=null)},ref:g}));return Fe(o.default,{Component:f,route:t})||f}}});function Ve(r){const a=ne(r.routes,r),s=r.parseQuery||Ce,c=r.stringifyQuery||je,i=r.history,l=Be(),u=Be(),f=Be(),v=e(U);let b=U;p&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const O=d.bind(null,(e=>""+e)),k=d.bind(null,Pe),P=d.bind(null,xe);function x(e,t){if(t=h({},t||v.value),"string"==typeof e){const n=y(s,e,t.path),r=a.resolve({path:n.path},t),o=i.createHref(n.fullPath);return h(n,r,{params:P(r.params),hash:xe(n.hash),redirectedFrom:void 0,href:o})}let n;if("path"in e)n=h({},e,{path:y(s,e.path,t.path).path});else{const r=h({},e.params);for(const e in r)null==r[e]&&delete r[e];n=h({},e,{params:k(r)}),t.params=k(t.params)}const r=a.resolve(n,t),o=e.hash||"";r.params=O(P(r.params));const l=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(c,h({},e,{hash:(u=o,ke(u).replace(be,"{").replace(Ee,"}").replace(ve,"^")),path:r.path}));var u;const f=i.createHref(l);return h({fullPath:l,hash:o,query:c===je?$e(e.query):e.query||{}},r,{redirectedFrom:void 0,href:f})}function C(e){return"string"==typeof e?y(s,e,v.value.path):h({},e)}function j(e,t){if(b!==e)return z(8,{from:t,to:e})}function $(e){return B(e)}function S(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=C(r):{path:r},r.params={}),h({query:e.query,hash:e.hash,params:"path"in r?{}:e.params},r)}}function B(e,t){const n=b=x(e),r=v.value,o=e.state,a=e.force,s=!0===e.replace,i=S(n);if(i)return B(h(C(i),{state:"object"==typeof i?h({},o,i.state):o,force:a,replace:s}),t||n);const l=n;let u;return l.redirectedFrom=t,!a&&function(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&w(t.matched[r],n.matched[o])&&E(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(c,r,n)&&(u=z(16,{to:l,from:r}),Z(r,r,!0,!1)),(u?Promise.resolve(u):I(l,r)).catch((e=>K(e)?K(e,2)?e:N(e):Y(e,l,r))).then((e=>{if(e){if(K(e,2))return B(h({replace:s},C(e.to),{state:"object"==typeof e.to?h({},o,e.to.state):o,force:a}),t||l)}else e=F(l,r,!0,s,o);return W(l,r,e),e}))}function G(e,t){const n=j(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=te.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function I(e,t){let n;const[r,o,a]=function(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){const a=t.matched[s];a&&(e.matched.find((e=>w(e,a)))?r.push(a):n.push(a));const c=e.matched[s];c&&(t.matched.find((e=>w(e,c)))||o.push(c))}return[n,r,o]}(e,t);n=_e(r.reverse(),"beforeRouteLeave",e,t);for(const c of r)c.leaveGuards.forEach((r=>{n.push(Ge(r,e,t))}));const s=G.bind(null,e,t);return n.push(s),re(n).then((()=>{n=[];for(const r of l.list())n.push(Ge(r,e,t));return n.push(s),re(n)})).then((()=>{n=_e(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(Ge(r,e,t))}));return n.push(s),re(n)})).then((()=>{n=[];for(const r of a)if(r.beforeEnter)if(g(r.beforeEnter))for(const o of r.beforeEnter)n.push(Ge(o,e,t));else n.push(Ge(r.beforeEnter,e,t));return n.push(s),re(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=_e(a,"beforeRouteEnter",e,t),n.push(s),re(n)))).then((()=>{n=[];for(const r of u.list())n.push(Ge(r,e,t));return n.push(s),re(n)})).catch((e=>K(e,8)?e:Promise.reject(e)))}function W(e,t,n){f.list().forEach((r=>_((()=>r(e,t,n)))))}function F(e,t,n,r,o){const a=j(e,t);if(a)return a;const s=t===U,c=p?history.state:{};n&&(r||s?i.replace(e.fullPath,h({scroll:s&&c&&c.scroll},o)):i.push(e.fullPath,o)),v.value=e,Z(e,t,n,s),N()}let T;function V(){T||(T=i.listen(((e,t,n)=>{const r=x(e),o=S(r);if(o)return void B(h(o,{replace:!0}),r).catch(m);b=r;const a=v.value;var s,c;p&&(s=L(a.fullPath,n.delta),c=A(),M.set(s,c)),I(r,a).catch((e=>K(e,12)?e:K(e,2)?(B(e.to,r).then((e=>{K(e,20)&&!n.delta&&n.type===R.pop&&i.go(-1,!1)})).catch(m),Promise.reject()):(n.delta&&i.go(-n.delta,!1),Y(e,r,a)))).then((e=>{(e=e||F(r,a,!1))&&(n.delta&&!K(e,8)?i.go(-n.delta,!1):n.type===R.pop&&K(e,20)&&i.go(-1,!1)),W(r,a,e)})).catch(m)})))}let H,Q=Be(),X=Be();function Y(e,t,n){N(e);const r=X.list();return r.length&&r.forEach((r=>r(e,t,n))),Promise.reject(e)}function N(e){return H||(H=!e,V(),Q.list().forEach((([t,n])=>e?n(e):t())),Q.reset()),e}function Z(e,t,n,a){const{scrollBehavior:s}=r;if(!p||!s)return Promise.resolve();const c=!n&&function(e){const t=M.get(e);return M.delete(e),t}(L(e.fullPath,0))||(a||!n)&&history.state&&history.state.scroll||null;return o().then((()=>s(e,t,c))).then((e=>e&&q(e))).catch((n=>Y(n,e,t)))}const J=e=>i.go(e);let ee;const te=new Set;function re(e){return e.reduce(((e,t)=>e.then((()=>_(t)))),Promise.resolve())}return{currentRoute:v,listening:!0,addRoute:function(e,t){let n,r;return D(e)?(n=a.getRecordMatcher(e),r=t):r=e,a.addRoute(r,n)},removeRoute:function(e){const t=a.getRecordMatcher(e);t&&a.removeRoute(t)},hasRoute:function(e){return!!a.getRecordMatcher(e)},getRoutes:function(){return a.getRoutes().map((e=>e.record))},resolve:x,options:r,push:$,replace:function(e){return $(h(C(e),{replace:!0}))},go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:X.add,isReady:function(){return H&&v.value!==U?Promise.resolve():new Promise(((e,t)=>{Q.add([e,t])}))},install(e){e.component("RouterLink",We),e.component("RouterView",Te),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>t(v)}),p&&!ee&&v.value===U&&(ee=!0,$(i.location).catch((e=>{})));const r={};for(const t in U)Object.defineProperty(r,t,{get:()=>v.value[t],enumerable:!0});e.provide(qe,this),e.provide(Le,n(r)),e.provide(Me,v);const o=e.unmount;te.add(e),e.unmount=function(){te.delete(e),te.size<1&&(b=U,T&&T(),T=null,v.value=U,ee=!1,H=!1),o()}}}}function ze(){return r(qe)}export{W as a,Ve as c,ze as u};
......@@ -6,11 +6,11 @@
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title></title>
<script type="module" crossorigin src="./assets/index-jd2enTB4.js"></script>
<link rel="modulepreload" crossorigin href="./assets/vant-DuoD2hHk.js">
<link rel="modulepreload" crossorigin href="./assets/vue-router-CsKE-nhB.js">
<script type="module" crossorigin src="./assets/index-2utzWG46.js"></script>
<link rel="modulepreload" crossorigin href="./assets/vant-kpzePHT3.js">
<link rel="modulepreload" crossorigin href="./assets/vue-router-C1-PZ1tM.js">
<link rel="modulepreload" crossorigin href="./assets/axios-X0xcXtXw.js">
<link rel="stylesheet" crossorigin href="./assets/index-DwviLLhj.css">
<link rel="stylesheet" crossorigin href="./assets/index-D3dQCBMO.css">
</head>
<body>
<div id="app"></div>
......
......@@ -493,8 +493,8 @@ function submit(item, typeKey) {
return api.postApiPlanSchedulePlanScheduleSave(
{
...item,
"begin": item.begin.join('-'),
"end": item.end.join('-'),
"begin": item.begin.join(':'),
"end": item.end.join(':'),
"file_id_list": item.file_list.map(cur => cur.id),
}
).then(res => {
......@@ -503,11 +503,11 @@ function submit(item, typeKey) {
init.schedule.add.formData = {
...res.response,
begin: res.response.begin.split('-'),
end: res.response.end.split('-'),
begin: res.response.begin.split(':'),
end: res.response.end.split(':'),
}
init.scheduleEndTime.value = res.response.end.replace(/-/g, ':');
init.scheduleBeginTime.value = res.response.begin.replace(/-/g, ':');
init.scheduleEndTime.value = res.response.end;
init.scheduleBeginTime.value = res.response.begin;
}
return res
})
......@@ -521,19 +521,19 @@ function submit(item, typeKey) {
...item,
userid: useDayViewItemData().getDayViewItemData().userid,
date: dayjs(useDayViewItemData().getDayViewItemData().date).format('YYYY-MM-DD'),
"begin": item.begin.join('-'),
"end": item.end.join('-'),
"begin": item.begin.join(':'),
"end": item.end.join(':'),
"file_id_list": item.file_list.map(cur => cur.id),
}
).then(res => {
if (res.code === 1) {
getData()
init.scheduleEndTime.value = res.response.end.replace(/-/g, ':');
init.scheduleBeginTime.value = res.response.begin.replace(/-/g, ':');
init.scheduleEndTime.value = res.response.end;
init.scheduleBeginTime.value = res.response.begin;
init.schedule.add.formData = {
...res.response,
begin: res.response.begin.split('-'),
end: res.response.end.split('-'),
begin: res.response.begin.split(':'),
end: res.response.end.split(':'),
}
}
return res
......@@ -579,8 +579,8 @@ function beforeUpload(file, item) {
api.postApiPlanSchedulePlanScheduleSave(
{
...item,
"begin": item.begin.join('-'),
"end": item.end.join('-'),
"begin": item.begin.join(':'),
"end": item.end.join(':'),
"file_id_list": init.schedule.add.formData.file_list.map(cur => cur.id),
}
).then(res => {
......@@ -592,8 +592,8 @@ function beforeUpload(file, item) {
return cur.id === res.response.id
}), 1, {
...res.response,
begin: res.response.begin.split('-'),
end: res.response.end.split('-'),
begin: res.response.begin.split(':'),
end: res.response.end.split(':'),
})
}
return res
......@@ -636,8 +636,9 @@ const formatter = (type, option) => {
//编辑日程
function editSchedule(item) {
init.scheduleEndTime.value = item.end.replace(/-/g, ':');
init.scheduleBeginTime.value = item.begin.replace(/-/g, ':');
init.scheduleEndTime.value = item.end;
init.scheduleBeginTime.value = item.begin;
init.schedule.type = '编辑'
init.schedule.add.formData = {...item, begin: item.begin.split(':'), end: item.end.split(':')}
......
......@@ -22,13 +22,13 @@
</div>
<Date v-if="init.switchView.show" ref="dateDay" @searchDayData="searchDayData"/>
<div v-if="init.switchView.show" class="w-full h-2"></div>
<van-tabs v-if="!init.switchView.show">
<!-- <van-tabs v-if="!init.switchView.show">
<van-tab v-for="(item,index) in init.initWeekArray" :key="index">
<template #title>
<span @click="selectTheExternalDepartment(item.deptId)">{{ item.deptName }}</span>
</template>
</van-tab>
</van-tabs>
</van-tabs> -->
<weekDate v-if="!init.switchView.show" ref="dateWeek"/>
<div :class="`w-full overflow-y-auto
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或