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

v20250212 保存

上级 ebad9066
流水线 #32997 已通过 ,包含阶段
in 1 minute 和 26 second
import{C as e,a as s,G as t,u as n,S as o,w as a}from"./index-DqqOnSlx.js";import{u as r}from"./vue-router-D0VHe6o9.js";import{g as c}from"./getApiCommonGetCurrentUserRoleList-BamBL8E6.js";import{F as i,o as p,z as u,H as m,j as k,aa as l,C as _}from"./vant-BpT_qT-s.js";import"./axios-X0xcXtXw.js";const y={style:{display:"flex","justify-content":"center","margin-top":"50%"}},g={__name:"SSO",setup(g){const f=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]}),f.replace({name:"responsibleForFilingRecords"})}))}))},R=async()=>{({asc:async()=>{let e={token:f.currentRoute.value.query.token};await(async e=>{const t=await o(e);void 0===t?await f.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:f.currentRoute.value.query.sign,code:f.currentRoute.value.query.code,timestamp:f.currentRoute.value.query.timestamp};await(async e=>{const t=await a(e);void 0===t?await f.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 f.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())}})[f.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{g as default};
import{a as e,C as t,b as s,G as n,u as a,S as o,w as r}from"./index-ul0k7Jzr.js";import{u as c}from"./vue-router-CFIiUm82.js";import{F as i,o as p,z as u,H as m,j as k,ab as l,C as _}from"./vant-1BGMxUQM.js";import"./axios-X0xcXtXw.js";const y={style:{display:"flex","justify-content":"center","margin-top":"50%"}},v={__name:"SSO",setup(v){const f=c(),g=()=>{n().then((t=>{var n;s.set("oneWeekARange-user-info",JSON.stringify(t.response)),e.get("/api/Common/GetCurrentUserRoleList",n).then((e=>{a().setUserInfo({...t.response,roleList:e.response,currentRole:e.response[0]}),f.replace({name:"welcome"})}))}))},R=async()=>{({asc:async()=>{let e={token:f.currentRoute.value.query.token};await(async e=>{const t=await o(e);void 0===t?await f.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),g())})(e)},first:async()=>{let e={sign:f.currentRoute.value.query.sign,code:f.currentRoute.value.query.code,timestamp:f.currentRoute.value.query.timestamp};await(async e=>{const t=await r(e);void 0===t?await f.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),g())})(e)},test:async()=>{const e=await t();void 0===e?await f.replace({name:"403"}):""!==e.response.access_token.token_content&&(s.set("oneWeekARange-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires),g())}})[f.currentRoute.value.query.type]()};return i((()=>{R()})),(e,t)=>{const s=l;return p(),u("div",y,[m(s,{size:"38px",color:"#1989fa",vertical:""},{default:k((()=>t[0]||(t[0]=[_(" 登录中")]))),_:1})])}}};export{v as default};
import{w as e,b as t,G as s,C as n,S as a}from"./index-ul0k7Jzr.js";import{u as o}from"./vue-router-CFIiUm82.js";import{F as i,o as r,z as c,H as u,j as p,ab as m,C as l}from"./vant-1BGMxUQM.js";import"./axios-X0xcXtXw.js";const k={style:{display:"flex","justify-content":"center","margin-top":"50%"}},y={__name:"SSOInfo",setup(y){const f=o(),_=async()=>{({wx:async()=>{let n={token:f.currentRoute.value.query.token};const a=await e(n);if(void 0===a)await f.replace({name:"403"});else if(""!==a.response.access_token.token_content){t.set("site-management-token",a.response.access_token.token_content),t.set("time",a.response.access_token.expires);const e=await s();t.set("site-user-info",JSON.stringify(e.response));let n=f.currentRoute.value.query.id;await f.push({path:"/indexDetail",query:{id:n,pushMessage:1}})}},asc:async()=>{let e={token:f.currentRoute.value.query.token};await(async e=>{const n=await a(e);if(void 0===n)await f.replace({name:"403"});else if(""!==n.response.access_token.token_content){t.set("oneWeekARange-management-token",n.response.access_token.token_content),t.set("time",n.response.access_token.expires);const e=await s();t.set("oneWeekARange-user-info",JSON.stringify(e.response)),await f.replace({name:"workArrangementFilling"})}})(e)},first:async()=>{let e={sign:f.currentRoute.value.query.sign,code:f.currentRoute.value.query.code,timestamp:f.currentRoute.value.query.timestamp};await(async e=>{const n=await(void 0)(e);if(void 0===n)await f.replace({name:"403"});else if(""!==n.response.access_token.token_content){t.set("site-management-token",n.response.access_token.token_content),t.set("time",n.response.access_token.expires);const e=await s();t.set("site-user-info",JSON.stringify(e.response)),await f.replace({name:"myActivity"})}})(e)},test:async()=>{const e=await n();if(void 0===e)await f.replace({name:"403"});else if(""!==e.response.access_token.token_content){t.set("site-management-token",e.response.access_token.token_content),t.set("time",e.response.access_token.expires);const n=await s();t.set("site-user-info",JSON.stringify(n.response)),await f.replace({name:"myActivity"})}}})[f.currentRoute.value.query.type]()};return i((()=>{_()})),(e,t)=>{const s=m;return r(),c("div",k,[u(s,{size:"38px",color:"#1989fa",vertical:""},{default:p((()=>t[0]||(t[0]=[l(" 登录中")]))),_:1})])}}};export{y 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-DqqOnSlx.js";import{u as c}from"./vue-router-D0VHe6o9.js";import{g as i}from"./getApiCommonGetCurrentUserRoleList-BamBL8E6.js";import{F as u,o as p,z as m,H as k,j as l,aa as y,C as _}from"./vant-BpT_qT-s.js";import"./axios-X0xcXtXw.js";const d={style:{display:"flex","justify-content":"center","margin-top":"50%"}},f={__name:"SSOInfo",setup(f){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",d,[k(s,{size:"38px",color:"#1989fa",vertical:""},{default:l((()=>t[0]||(t[0]=[_(" 登录中")]))),_:1})])}}};export{f as default};
import{c as e}from"./index-DqqOnSlx.js";function r(r){return e.get("/api/Common/GetCurrentUserRoleList",r)}export{r as g};
import{_ as r}from"./index-ul0k7Jzr.js";import"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.js";import"./axios-X0xcXtXw.js";const t=r({},[["render",function(r,t){return null}]]);export{t as default};
import{_ as r}from"./index-DqqOnSlx.js";import"./vant-BpT_qT-s.js";import"./vue-router-D0VHe6o9.js";import"./axios-X0xcXtXw.js";const t=r({},[["render",function(r,t){return null}]]);export{t as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import"./index-ul0k7Jzr.js";import{u as t}from"./vue-router-CFIiUm82.js";import{o as e,z as r,H as s,K as a,N as n,a5 as o}from"./vant-1BGMxUQM.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(),r(a,null,[s(l,{"left-text":"返回","left-arrow":"",onClickLeft:u}),s(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-DqqOnSlx.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,a5 as y,a6 as F}from"./vant-BpT_qT-s.js";import"./vue-router-D0VHe6o9.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};
import{c as s,i as e,h as a,j as o}from"./index-DqqOnSlx.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-BpT_qT-s.js";import"./vue-router-D0VHe6o9.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{i as s}from"./index-ul0k7Jzr.js";import{r as o,F as a,o as l,z as t,H as i,A as e}from"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.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,[i(n,{path:"/welcome",title:"分管填报记录查看"}),a[0]||(a[0]=e("div",{class:"w-full h-[10px]"},null,-1)),a[1]||(a[1]=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1))])})};export{n as default};
import{j as s}from"./index-DqqOnSlx.js";import{r as o,F as a,o as l,z as t,H as e,A as i}from"./vant-BpT_qT-s.js";import"./vue-router-D0VHe6o9.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,_ as t,r as a,l,m as s,j as i,b as o,f as r}from"./index-DqqOnSlx.js";import{a_ as n,o as c,z as d,A as p,f as u,j as f,a0 as h,B as v,a6 as m,b as w,r as x,F as g,aS as y,H as b,D as k,E as F,K as A,I as D,a4 as j,P as C,a2 as T,C as O,u as P,a$ as _,b0 as V,aY as H,a1 as I,Y as B}from"./vant-BpT_qT-s.js";import"./vue-router-D0VHe6o9.js";import"./axios-X0xcXtXw.js";const Q={class:"file-preview"},E={style:{height:"100%"}},M={key:1},N=["src"],z={key:2},q=["src"],G={key:3},S=["src"],U={key:4,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},L={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},X=["src"],Y={key:5,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},J={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},K=["src"],Z=["src"],R={key:7,style:{height:"100%"}},W=["src"],$={key:8},ee={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}};const te=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 a=document.createElement("a");a.href=e,a.download=t,a.target="_blank",a.dispatchEvent(new MouseEvent("click"))},viewImage(e){n([e])}}},[["render",function(e,t,a,l,s,i){const o=m;return c(),d("div",Q,[p("div",E,[s.errorShow?(c(),u(o,{key:0},{description:f((()=>t[6]||(t[6]=[p("p",null,"加载失败,请尝试下载预览",-1)]))),_:1})):h("",!0),"docx"==s.previewType?(c(),d("div",M,[p("iframe",{style:{height:"calc(100vh - 80px)"},src:s.url+a.fileObj.path,height:"100%",width:"100%"},null,8,N)])):h("",!0),"excel"==s.previewType?(c(),d("div",z,[p("iframe",{style:{height:"calc(100vh - 80px)"},src:s.url+a.fileObj.path,height:"100%",width:"100%"},null,8,q)])):h("",!0),"pdf"==s.previewType?(c(),d("div",G,[p("iframe",{src:s.url+a.fileObj.path,style:{height:"calc(100vh - 80px)"},height:"100%",width:"100%"},null,8,S)])):h("",!0),"video"==s.previewType?(c(),d("div",U,[p("div",L,v(a.fileObj.file_name),1),p("video",{src:a.fileObj.path,controls:"",onLoadeddata:t[0]||(t[0]=(...e)=>i.rendered&&i.rendered(...e)),style:{width:"80%"}},t[7]||(t[7]=[p("p",null,"抱歉,您的浏览器不支持视频标签。",-1)]),40,X)])):h("",!0),"audio"==s.previewType?(c(),d("div",Y,[p("div",J,v(a.fileObj.file_name),1),p("audio",{src:a.fileObj.path,controls:"",onLoadeddata:t[1]||(t[1]=(...e)=>i.rendered&&i.rendered(...e))},t[8]||(t[8]=[p("p",null,"抱歉,您的浏览器不支持音频标签。",-1)]),40,K)])):h("",!0),"image"==s.previewType?(c(),d("div",{key:6,onClick:t[3]||(t[3]=e=>i.viewImage(a.fileObj.path)),style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},[p("img",{src:a.fileObj.path,alt:"",style:{"max-width":"100%","max-height":"100%"},onLoad:t[2]||(t[2]=(...e)=>i.rendered&&i.rendered(...e))},null,40,Z)])):h("",!0),"txt"==s.previewType?(c(),d("div",R,[p("iframe",{src:a.fileObj.path,width:"100%",height:"100%",onLoad:t[4]||(t[4]=(...e)=>i.rendered&&i.rendered(...e))},t[9]||(t[9]=[p("p",null,"抱歉,您的浏览器不支持在页面中显示 txt 文件。",-1)]),40,W)])):h("",!0),"custom"==s.previewType?(c(),d("div",$,[p("div",ee,[p("a",{style:{"margin-bottom":"10px","font-size":"20px"},onClick:t[5]||(t[5]=e=>i.clickDownload(a.fileObj.path,a.fileObj.file_name))},v(a.fileObj.file_name),1),t[10]||(t[10]=p("p",null,"抱歉,暂不支持预览该类型文件,请点击下载后自行预览。",-1))])])):h("",!0)])])}],["__scopeId","data-v-f13c766f"]]),ae={class:"w-full h-full bg-white overflow-y-auto relative"},le={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"},oe={class:"w-full h-full bg-white overflow-y-auto relative"},re={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"},ce={class:"container1"},de={class:"w-screen h-screen overflow-y-auto relative bg-[#F4F6F7]"},pe={class:"w-full h-[108px] bg-white z-50 sticky top-0"},ue={class:"w-full h-[54px]"},fe={class:"w-full overflow-y-auto relative h-[calc(100%-172px)]"},he={class:""},ve={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},me={class:"mb-2 text-[#4E4E4E]"},we=["onClick"],xe={class:"ml-2"},ge={class:""},ye={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},be={class:"mb-2 text-[#4E4E4E]"},ke={class:""},Fe={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},Ae={class:"mb-2 text-[#4E4E4E]"},De={class:"w-full h-[64px] flex justify-center items-center sticky bottom-0 px-2 bg-white"},je={__name:"index",setup(t){const n=w(0),h=w([{text:"日程安排",value:"0"},{text:"值班安排",value:"1"},{text:"会议安排",value:"2"}]),Q=x({show:!1,fileItem:{}}),E=x({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:""}}}),M=()=>{void 0!==E.formData.pushMessage?l("responsibleForFilingRecords"):a.back()},N=e=>{n.value=e};function z(e){const t=e.selectedOptions[0];E.approval.formData.action=t.value,E.approval.value=t.text,E.approval.showPopup=!1}function q(){s((()=>function(t,a){const l={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleInfo",{params:l,...a})}({userid:o().getDayViewItemData().userid,date:r(o().getDayViewItemData().date).format("YYYY-MM-DD")}).then((e=>(E.detailsData=e.response,e)))),!0,"加载中...")}function G(){s((()=>function(t,a){const l={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleTrackList",{params:l,...a})}({userid:o().getDayViewItemData().userid,date:r(o().getDayViewItemData().date).format("YYYY-MM-DD")}).then((e=>(E.operatingTrajectory.data=e.response,e)))),!0,"加载中...")}return w(""),g((()=>{q(),G(),E.formData=a.currentRoute.value.query})),(e,t)=>{const a=m,l=_,s=V,o=j,r=C,w=H,x=i,g=I,q=T,G=B,S=y("font");return c(),d(A,null,[b(r,{show:E.operatingTrajectory.show,"onUpdate:show":t[1]||(t[1]=e=>E.operatingTrajectory.show=e),style:{height:"85%"},closeable:"",position:"bottom",round:""},{default:f((()=>[p("div",ae,[t[11]||(t[11]=p("div",{class:"w-full h-[50px] z-100 sticky top-0"},[p("div",{class:"flex justify-between items-center w-full h-[50px]"},[p("div",{class:"w-full h-full ccFlex text-[18px]"}," 操作轨迹 ")])],-1)),p("div",le,[0==E.operatingTrajectory.length?(c(),u(a,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(c(),d("div",se,[b(s,{active:0,class:"w-full",direction:"vertical","active-icon":"circle","finish-icon":"success","inactive-icon":"success"},{default:f((()=>[(c(!0),d(A,null,D(E.operatingTrajectory.data,((e,a)=>(c(),u(l,{key:a,class:"ax"},{default:f((()=>[k((c(),d("h2",null,[O(v(e.createtime),1)])),[[S,void 0,"{color:`#323233`,size:18}"]]),p("p",null,[t[8]||(t[8]=O("用户名:")),k((c(),d("span",null,[O(v(e.createname),1)])),[[S,void 0,"{color:`#5295FF`}"]])]),p("p",null,[t[9]||(t[9]=O("操作:")),k((c(),d("span",null,[O(v(e.remark),1)])),[[S,void 0,"{color:`#5295FF`}"]])])])),_:2},1024)))),128))])),_:1})]))]),p("div",ie,[b(o,{class:"w-full","native-type":"submit",round:"",onClick:t[0]||(t[0]=e=>E.operatingTrajectory.show=!1)},{default:f((()=>t[10]||(t[10]=[O("关闭 ")]))),_:1})])])])),_:1},8,["show"]),b(r,{show:E.approval.showPopup,"onUpdate:show":t[3]||(t[3]=e=>E.approval.showPopup=e),position:"bottom"},{default:f((()=>[b(w,{columns:E.approval.columns,"show-toolbar":"",onCancel:t[2]||(t[2]=e=>E.approval.showPopup=!1),onConfirm:z},null,8,["columns"])])),_:1},8,["show"]),b(r,{show:Q.show,"onUpdate:show":t[5]||(t[5]=e=>Q.show=e),style:{height:"85%"},closeable:"",position:"bottom",round:""},{default:f((()=>[p("div",oe,[t[13]||(t[13]=p("div",{class:"w-full h-[50px] z-100 sticky top-0"},[p("div",{class:"flex justify-between items-center w-full h-[50px]"},[p("div",{class:"w-full h-full ccFlex text-[18px]"}," 附件预览 ")])],-1)),p("div",re,[b(te,{fileObj:Q.fileItem},null,8,["fileObj"])]),p("div",ne,[b(o,{class:"w-full","native-type":"submit",round:"",onClick:t[4]||(t[4]=e=>Q.show=!1)},{default:f((()=>t[12]||(t[12]=[O("关闭 ")]))),_:1})])])])),_:1},8,["show"]),p("div",ce,[p("div",de,[p("div",pe,[b(x,{path:"/responsibleForFilingRecords",title:"日程详情"},{importFile:f((()=>[p("span",{onClick:t[6]||(t[6]=e=>E.operatingTrajectory.show=!0),class:"text-blue-500"},"操作轨迹")])),_:1}),p("div",ue,[b(q,{active:n.value,"onUpdate:active":t[7]||(t[7]=e=>n.value=e),swipeable:"",onChange:N},{default:f((()=>[(c(!0),d(A,null,D(h.value,((e,t)=>(c(),u(g,{key:t,title:e.text},null,8,["title"])))),128))])),_:1},8,["active"])])]),p("div",fe,[k(p("div",he,[0==E.detailsData.plan_list.length?(c(),u(a,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(c(!0),d(A,{key:1},D(E.detailsData.plan_list,((e,a)=>(c(),d("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]"},[p("div",ve,[t[14]||(t[14]=p("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),p("p",null,v(e.date)+" "+v(e.begin+" - "+e.end),1)]),p("div",me,[p("p",null,v(e.content),1)]),(c(!0),d(A,null,D(e.file_list,((e,t)=>(c(),d("div",{key:t,onClick:t=>{return a=e,Q.show=!0,void(Q.fileItem=a);var a},class:"flex items-center text-[#3FA0F4]"},[b(G,{width:"12px",height:"12px",src:P("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"]),p("a",xe,v(e.file_name),1)],8,we)))),128))])))),128))],512),[[F,0==n.value]]),k(p("div",ge,[0==E.detailsData.duty_list.length?(c(),u(a,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(c(!0),d(A,{key:1},D(E.detailsData.duty_list,((e,a)=>(c(),d("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]"},[p("div",ye,[t[15]||(t[15]=p("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),p("p",null,v(e.begin)+"-"+v(e.end),1)]),p("div",be,[p("p",null,v(e.content),1)])])))),128))],512),[[F,1==n.value]]),k(p("div",ke,[0==E.detailsData.meet_list.length?(c(),u(a,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(c(!0),d(A,{key:1},D(E.detailsData.meet_list,((e,a)=>(c(),d("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]"},[p("div",Fe,[t[16]||(t[16]=p("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),p("p",null,v(e.begin)+"-"+v(e.end),1)]),p("div",Ae,[p("p",null,v(e.content),1)])])))),128))],512),[[F,2==n.value]])]),p("div",De,[b(o,{round:"",class:"w-[50%]",onClick:M},{default:f((()=>t[17]||(t[17]=[O("返回")]))),_:1})])])])],64)}}};export{je as default};
import{a as s,h as e,g as a,i as o}from"./index-ul0k7Jzr.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,_ as m,a3 as w}from"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.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(),C=t({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){C.fillInWork.show=!0}function j(){x.value.save()}function b(s){C.fillInWork.show=s}function I(){var e;s.get("/api/Common/GetAheadWriteSwitch",e).then((s=>{C.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:C.fillInWork.show,onCloseDateComponent:b},null,8,["show"])]),f(I,null,{default:p((()=>[u("div",v,[1==C.role?(r(),c(k,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:_},{default:p((()=>l[0]||(l[0]=[d(" 添加日期 ")]))),_:1})):m("",!0),f(k,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:j},{default:p((()=>l[1]||(l[1]=[d("保存")]))),_:1})])])),_:1})])}}};export{k as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{a as e,_ as t,r as a,m as l,k as s,e as i,i as o}from"./index-ul0k7Jzr.js";import{a_ as r,o as n,z as c,A as d,f as p,j as u,_ as f,B as h,a5 as m,b as v,r as x,F as g,aS as w,H as y,J as b,D as k,E as D,K as A,I as F,P as j,a3 as C,a0 as O,a$ as P,C as T,u as V,aY as H,$ as I,a6 as _,b0 as B}from"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.js";import"./axios-X0xcXtXw.js";const Q={class:"file-preview"},E={style:{height:"100%"}},M={key:1},N=["src"],q={key:2},G=["src"],S={key:3},z=["src"],L={key:4,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},U={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},X=["src"],Y={key:5,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},J={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},K=["src"],Z=["src"],R={key:7,style:{height:"100%"}},W=["src"],$={key:8},ee={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}};const te=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 a=document.createElement("a");a.href=e,a.download=t,a.target="_blank",a.dispatchEvent(new MouseEvent("click"))},viewImage(e){r([e])}}},[["render",function(e,t,a,l,s,i){const o=m;return n(),c("div",Q,[d("div",E,[s.errorShow?(n(),p(o,{key:0},{description:u((()=>t[6]||(t[6]=[d("p",null,"加载失败,请尝试下载预览",-1)]))),_:1})):f("",!0),"docx"==s.previewType?(n(),c("div",M,[d("iframe",{style:{height:"calc(100vh - 80px)"},src:s.url+a.fileObj.path,height:"100%",width:"100%"},null,8,N)])):f("",!0),"excel"==s.previewType?(n(),c("div",q,[d("iframe",{style:{height:"calc(100vh - 80px)"},src:s.url+a.fileObj.path,height:"100%",width:"100%"},null,8,G)])):f("",!0),"pdf"==s.previewType?(n(),c("div",S,[d("iframe",{src:s.url+a.fileObj.path,style:{height:"calc(100vh - 80px)"},height:"100%",width:"100%"},null,8,z)])):f("",!0),"video"==s.previewType?(n(),c("div",L,[d("div",U,h(a.fileObj.file_name),1),d("video",{src:a.fileObj.path,controls:"",onLoadeddata:t[0]||(t[0]=(...e)=>i.rendered&&i.rendered(...e)),style:{width:"80%"}},t[7]||(t[7]=[d("p",null,"抱歉,您的浏览器不支持视频标签。",-1)]),40,X)])):f("",!0),"audio"==s.previewType?(n(),c("div",Y,[d("div",J,h(a.fileObj.file_name),1),d("audio",{src:a.fileObj.path,controls:"",onLoadeddata:t[1]||(t[1]=(...e)=>i.rendered&&i.rendered(...e))},t[8]||(t[8]=[d("p",null,"抱歉,您的浏览器不支持音频标签。",-1)]),40,K)])):f("",!0),"image"==s.previewType?(n(),c("div",{key:6,onClick:t[3]||(t[3]=e=>i.viewImage(a.fileObj.path)),style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},[d("img",{src:a.fileObj.path,alt:"",style:{"max-width":"100%","max-height":"100%"},onLoad:t[2]||(t[2]=(...e)=>i.rendered&&i.rendered(...e))},null,40,Z)])):f("",!0),"txt"==s.previewType?(n(),c("div",R,[d("iframe",{src:a.fileObj.path,width:"100%",height:"100%",onLoad:t[4]||(t[4]=(...e)=>i.rendered&&i.rendered(...e))},t[9]||(t[9]=[d("p",null,"抱歉,您的浏览器不支持在页面中显示 txt 文件。",-1)]),40,W)])):f("",!0),"custom"==s.previewType?(n(),c("div",$,[d("div",ee,[d("a",{style:{"margin-bottom":"10px","font-size":"20px"},onClick:t[5]||(t[5]=e=>i.clickDownload(a.fileObj.path,a.fileObj.file_name))},h(a.fileObj.file_name),1),t[10]||(t[10]=d("p",null,"抱歉,暂不支持预览该类型文件,请点击下载后自行预览。",-1))])])):f("",!0)])])}],["__scopeId","data-v-f13c766f"]]),ae={class:"w-full h-full bg-white overflow-y-auto relative"},le={class:"w-full h-[calc(100%-114px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto"},se={class:"w-full h-[70px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid"},ie={class:"container1"},oe={class:"w-screen h-screen overflow-y-auto relative bg-[#F4F6F7]"},re={class:"w-full h-[108px] bg-white z-50 sticky top-0"},ne={class:"w-full h-[54px]"},ce={class:""},de={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},pe={class:"mb-2 text-[#4E4E4E]"},ue=["onClick"],fe={class:"ml-2"},he={class:""},me={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},ve={class:"mb-2 text-[#4E4E4E]"},xe={class:""},ge={class:"text-[#ACADAD] w-full h-[18px] flex items-center mb-2"},we={class:"mb-2 text-[#4E4E4E]"},ye={class:""},be={key:1,class:"w-full min-h-[90px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"},ke={class:"w-full h-[64px] flex justify-center items-center sticky bottom-0 px-2 bg-white"},De={__name:"index",setup(t){const r=v(0),f=v([{text:"日程安排",value:"0"},{text:"值班安排",value:"1"},{text:"会议安排",value:"2"},{text:"操作轨迹",value:"3"}]),Q=x({show:!1,fileItem:{}}),E=x({detailsData:{plan_list:[],duty_list:[],meet_list:[]},operatingTrajectory:[],formData:{},approval:{active:"0",showPopup:!1,show:!1,columns:[{value:1,text:"退回到上个节点"},{value:2,text:"退回到发起人"}],formData:{taskid:"",remark:"",action:""}}}),M=()=>{E.formData.pushMessage,a.back()},N=e=>{r.value=e};function q(e){const t=e.selectedOptions[0];E.approval.formData.action=t.value,E.approval.value=t.text,E.approval.showPopup=!1}function G(){l((()=>function(t,a){const l={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleInfo",{params:l,...a})}({userid:s().getDayViewItemData().userid,date:i(s().getDayViewItemData().date).format("YYYY-MM-DD")}).then((e=>(E.detailsData=e.response,e)))),!0,"加载中...")}function S(){l((()=>function(t,a){const l={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleTrackList",{params:l,...a})}({userid:s().getDayViewItemData().userid,date:i(s().getDayViewItemData().date).format("YYYY-MM-DD")}).then((e=>(E.operatingTrajectory=e.response,e)))),!0,"加载中...")}return v(""),g((()=>{G(),S(),E.formData=a.currentRoute.value.query})),(e,t)=>{const a=H,l=j,s=C,i=o,v=I,x=O,g=m,G=_,S=B,z=P,L=w("font");return n(),c(A,null,[y(l,{show:E.approval.showPopup,"onUpdate:show":t[1]||(t[1]=e=>E.approval.showPopup=e),position:"bottom"},{default:u((()=>[y(a,{columns:E.approval.columns,"show-toolbar":"",onCancel:t[0]||(t[0]=e=>E.approval.showPopup=!1),onConfirm:q},null,8,["columns"])])),_:1},8,["show"]),y(l,{show:Q.show,"onUpdate:show":t[3]||(t[3]=e=>Q.show=e),style:{height:"85%"},closeable:"",position:"bottom",round:""},{default:u((()=>[d("div",ae,[t[6]||(t[6]=d("div",{class:"w-full h-[50px] z-100 sticky top-0"},[d("div",{class:"flex justify-between items-center w-full h-[50px]"},[d("div",{class:"w-full h-full ccFlex text-[18px]"}," 附件预览 ")])],-1)),d("div",le,[y(te,{fileObj:Q.fileItem},null,8,["fileObj"])]),d("div",se,[y(s,{class:"w-full","native-type":"submit",round:"",onClick:t[2]||(t[2]=e=>Q.show=!1)},{default:u((()=>t[5]||(t[5]=[T("关闭 ")]))),_:1})])])])),_:1},8,["show"]),d("div",ie,[d("div",oe,[d("div",re,[y(i,{path:"/welcome",title:"日程详情"}),d("div",ne,[y(x,{active:r.value,"onUpdate:active":t[4]||(t[4]=e=>r.value=e),swipeable:"",onChange:N},{default:u((()=>[(n(!0),c(A,null,F(f.value,((e,t)=>(n(),p(v,{key:t,title:e.text},null,8,["title"])))),128))])),_:1},8,["active"])])]),d("div",{class:b([""+("await"===E.formData.flowType?"h-[calc(100%-172px)]":"h-[calc(100%-108px)]"),"w-full overflow-y-auto relative"])},[k(d("div",ce,[0==E.detailsData.plan_list.length?(n(),p(g,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(n(!0),c(A,{key:1},F(E.detailsData.plan_list,((e,a)=>(n(),c("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]"},[d("div",de,[t[7]||(t[7]=d("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),d("p",null,h(e.date)+" "+h(e.begin+" - "+e.end),1)]),d("div",pe,[d("p",null,h(e.content),1)]),(n(!0),c(A,null,F(e.file_list,((e,t)=>(n(),c("div",{key:t,onClick:t=>{return a=e,Q.show=!0,void(Q.fileItem=a);var a},class:"flex items-center text-[#3FA0F4]"},[y(G,{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"]),d("a",fe,h(e.file_name),1)],8,ue)))),128))])))),128))],512),[[D,0==r.value]]),k(d("div",he,[0==E.detailsData.duty_list.length?(n(),p(g,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(n(!0),c(A,{key:1},F(E.detailsData.duty_list,((e,a)=>(n(),c("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]"},[d("div",me,[t[8]||(t[8]=d("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),d("p",null,h(e.begin)+"-"+h(e.end),1)]),d("div",ve,[d("p",null,h(e.content),1)])])))),128))],512),[[D,1==r.value]]),k(d("div",xe,[0==E.detailsData.meet_list.length?(n(),p(g,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(n(!0),c(A,{key:1},F(E.detailsData.meet_list,((e,a)=>(n(),c("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]"},[d("div",ge,[t[9]||(t[9]=d("div",{class:"w-[4px] h-full mr-2 rounded-t-2xl rounded-b-2xl bg-[#3793FF]"},null,-1)),d("p",null,h(e.begin)+"-"+h(e.end),1)]),d("div",we,[d("p",null,h(e.content),1)])])))),128))],512),[[D,2==r.value]]),k(d("div",ye,[0==E.operatingTrajectory.length?(n(),p(g,{key:0,image:"https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png","image-size":"80",description:"暂无数据"})):(n(),c("div",be,[y(z,{active:0,class:"w-full",direction:"vertical","active-icon":"circle","finish-icon":"success","inactive-icon":"success"},{default:u((()=>[(n(!0),c(A,null,F(E.operatingTrajectory,((e,a)=>(n(),p(S,{key:a,class:"ax"},{default:u((()=>[k((n(),c("h2",null,[T(h(e.createtime),1)])),[[L,void 0,"{color:`#323233`,size:18}"]]),d("p",null,[t[10]||(t[10]=T("用户名:")),k((n(),c("span",null,[T(h(e.createname),1)])),[[L,void 0,"{color:`#5295FF`}"]])]),d("p",null,[t[11]||(t[11]=T("操作:")),k((n(),c("span",null,[T(h(e.remark),1)])),[[L,void 0,"{color:`#5295FF`}"]])])])),_:2},1024)))),128))])),_:1})]))],512),[[D,3==r.value]])],2),d("div",ke,[y(s,{round:"",class:"w-[50%]",onClick:M},{default:u((()=>t[12]||(t[12]=[T("返回")]))),_:1})])])])],64)}}};export{De as default};
import{a as e,u as s,c as r,m as t,d as i,e as a,f as n,g as l}from"./index-ul0k7Jzr.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,_ as h,K as x,a2 as g,B as k,C as y,I as b,aC as A,a1 as M,L as v,a3 as z,aX as T,aY as Q}from"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.js";import"./axios-X0xcXtXw.js";const C={class:"publicContainer"},L={class:"w-full h-[calc(100%-65px)] box-border overflow-y-auto relative"},S=["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",C,[u(t),p("div",L,[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,S)])),_: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{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-DqqOnSlx.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,aB as A,a3 as M,L as v,a4 as z,aX as T,aY as Q}from"./vant-BpT_qT-s.js";import"./vue-router-D0VHe6o9.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:B}){const U=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){U.paramsTransfers.semester_date_begin=a(e[0]).format("YYYY/MM/DD"),U.paramsTransfers.semester_date_end=a(e[1]).format("YYYY/MM/DD"),U.date.show=!1}function O(){t((()=>{return e.get("/api/Common/GetMenuRole",s).then((e=>(U.role=e.response,e)));var s}),!0,"加载中...")}function V(){t((()=>{return(s={configid:U.paramsTransfers.configid,semester_date_begin:U.paramsTransfers.semester_date_begin,semester_date_end:U.paramsTransfers.semester_date_end,period_remind:U.paramsTransfers.period_remind_week+"|"+U.paramsTransfers.period_remind_time,nowrite_remind:String(Number(U.paramsTransfers.nowrite_remind_isCheck))+String(String(U.paramsTransfers.nowrite_remind_time.map((e=>"|"+e))).split(",").join("")),ahead_write:String(Number(U.paramsTransfers.ahead_write)),write_remind:U.paramsTransfers.write_remind_week+"|"+U.paramsTransfers.write_remind_time},e.post("/api/SysConfig/SysConfigSave",s,r)).then((s=>(1===s.code&&(U.select.showPopup=!0,U.loading=!0,function(s){return e.get("/api/SysConfig/SysConfigInit",s)}().then((e=>{U.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((()=>{U.loading=!1}))),s)));var s,r}))}function Z(){U.select.showPopup=!1}function q({selectedValues:e,selectedOptions:s,selectedIndexes:r}){"nowrite_remind_time"===U.getWeekOrTimeKey?U.paramsTransfers[U.getWeekOrTimeKey].push(e[0]+":"+e[1]):U.paramsTransfers[U.getWeekOrTimeKey]=e[0]+":"+e[1],U.select.timeShow=!1}function D({selectedValues:e,selectedOptions:s,selectedIndexes:r}){U.paramsTransfers[U.getWeekOrTimeKey]=e[0],U.select.weekShow=!1}function G(e){U.select.weekShow=!0,U.getWeekOrTimeKey=e}function P(e){U.select.timeShow=!0,U.getWeekOrTimeKey=e}return d((()=>{O()})),B({GetCollectList:function(){var s;e.get("/api/Collect/GetCollectList",s).then((e=>{U.data.myFocus=e.response}))}}),(e,s)=>{const t=n,a=g,o=M,d=m("el-switch"),F=v,B=z,O=l,W=T,Y=Q;return c(),w(x,null,[p("div",L,[u(t),p("div",S,[1==U.userInfo.currentRole.id||0==U.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:U.select.showPopup,height:60,onActionPopUp:s[9]||(s[9]=()=>U.select.showPopup=!1)},{content:f((()=>[(c(),w("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 relative overflow-y-auto",key:U.calendarKey},[u(i,{show:U.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=>U.date.show=!0)},{default:f((()=>[p("span",null,k(U.paramsTransfers.semester_date_begin+" - "+U.paramsTransfers.semester_date_end),1)])),_:1}),u(o,{type:"range",show:U.date.show,"onUpdate:show":s[1]||(s[1]=e=>U.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(U.paramsTransfers.period_remind_week)+"]",1),p("span",{onClick:s[3]||(s[3]=e=>P("period_remind_time")),class:"text-blue-500"},"["+k(U.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:U.paramsTransfers.nowrite_remind_isCheck,"onUpdate:modelValue":s[4]||(s[4]=e=>U.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",U.select.timeShow=!0,void(U.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(U.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){U.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:U.paramsTransfers.ahead_write,"onUpdate:modelValue":s[6]||(s[6]=e=>U.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(U.paramsTransfers.write_remind_week)+"]",1),p("span",{onClick:s[8]||(s[8]=e=>P("write_remind_time")),class:"text-blue-500"},"["+k(U.paramsTransfers.write_remind_time)+"]",1)])),_:1})])),u(O,null,{default:f((()=>[u(B,{round:"",class:"w-[32%]",onClick:Z},{default:f((()=>s[20]||(s[20]=[y("关闭")]))),_:1}),u(B,{type:"primary",round:"",class:"w-[60%]",onClick:V},{default:f((()=>s[21]||(s[21]=[y("保存")]))),_:1})])),_:1})])),_:1},8,["show"]),u(r,{show:U.select.timeShow,height:60,close:!1},{content:f((()=>[u(W,{onConfirm:q,onCancel:s[10]||(s[10]=e=>U.select.timeShow=!1),title:"选择时间"})])),_:1},8,["show"]),u(r,{show:U.select.weekShow,height:60,close:!1},{content:f((()=>[u(Y,{title:"请选择日期",columns:U.columns,onConfirm:D,onCancel:s[11]||(s[11]=e=>U.select.weekShow=!1)},null,8,["columns"])])),_:1},8,["show"])],64)}}};export{F as default};
import{a as e,_ as a,m as s,c as l,j as t,g as i}from"./index-ul0k7Jzr.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,_ as f,K as g,I as _,j as x,B as w,C as v,k as b,a3 as k,a4 as y,a5 as F}from"./vant-1BGMxUQM.js";import"./vue-router-CFIiUm82.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"},j={class:"w-full h-[calc(100%-155px)] p-3 overflow-y-auto"},z={class:"w-[80%] h-full"},U={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",j,[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",z,[m("div",U,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"./index-DqqOnSlx.js";import{u as t}from"./vue-router-D0VHe6o9.js";import{o as e,z as a,H as r,K as s,a8 as n,a6 as o}from"./vant-BpT_qT-s.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};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
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-1BGMxUQM.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};
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-BpT_qT-s.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-ul0k7Jzr.js"></script>
<link rel="modulepreload" crossorigin href="./assets/vant-1BGMxUQM.js">
<link rel="modulepreload" crossorigin href="./assets/vue-router-CFIiUm82.js">
<script type="module" crossorigin src="./assets/index-DqqOnSlx.js"></script>
<link rel="modulepreload" crossorigin href="./assets/vant-BpT_qT-s.js">
<link rel="modulepreload" crossorigin href="./assets/vue-router-D0VHe6o9.js">
<link rel="modulepreload" crossorigin href="./assets/axios-X0xcXtXw.js">
<link rel="stylesheet" crossorigin href="./assets/index-CtEwmG5q.css">
<link rel="stylesheet" crossorigin href="./assets/index-BRZUriCx.css">
</head>
<body>
<div id="app"></div>
......
......@@ -20,7 +20,7 @@ const getUserInfo = ()=>{
scheduleApi.getApiCommonGetCurrentUserRoleList().then(res=>{
useUserInfo().setUserInfo({...user.response,roleList:res.response,currentRole:res.response[0]})
router.replace({
name: 'welcome'
name: 'responsibleForFilingRecords'
})
})
})
......
......@@ -11,12 +11,34 @@ import Cookies from 'js-cookie'
import {useRouter} from 'vue-router'
import {onMounted} from 'vue'
import * as api from '../api/index.js'
import {CheckLoginTest} from "../api/index.js";
import {useUserInfo} from "@/store/modules/index.js";
import * as scheduleApi from "@/api/apis/controller/index.js";
import {useDayViewItemData} from "@/store/modules/dayView.js";
const router = useRouter()
//获取用户信息
const getUserInfo = ()=>{
api.GetTokenInfo().then(user=>{
Cookies.set('oneWeekARange-user-info', JSON.stringify(user.response))
scheduleApi.getApiCommonGetCurrentUserRoleList().then(res=>{
useUserInfo().setUserInfo({...user.response,roleList:res.response,currentRole:res.response[0]})
useDayViewItemData().setDayViewItemData({
userid:useUserInfo().getUserInfo().user_id,
date:router.currentRoute.value.query.date
})
router.push({
path: '/dayDetails',
query: {
pushMessage: 1, //区别是否是消息推送进入的详情页 用于返回上一页 或 主页
}
})
})
})
}
//PC单点
const getTokenAction = async (date) => {
//ASC PC端
const res = await api.SSOPC(date)
if (res === void 0) {
await router.replace({
......@@ -26,71 +48,34 @@ const getTokenAction = async (date) => {
// access_token.token_content
Cookies.set('oneWeekARange-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo()
Cookies.set('oneWeekARange-user-info', JSON.stringify(user.response))
await router.replace({
name: 'workArrangementFilling'
})
getUserInfo()
}
}
//微信单点
const getTokenActionWx = async (date) => {
// first
const res = await api.wxsan(date)
const res = await api.wx(date)
if (res === void 0) {
await router.replace({
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
Cookies.set('site-management-token', res.response.access_token.token_content)
Cookies.set('oneWeekARange-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo()
Cookies.set('site-user-info', JSON.stringify(user.response))
await router.replace({
name: 'myActivity'
})
getUserInfo()
}
}
const getToken = async () => {
let policyObject = {
"wx": async () => {
//asc 移动端
let date = {
token: router.currentRoute.value.query.token
}
const res = await api.wx(date)
if (res === void 0) {
await router.replace({
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
Cookies.set('site-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo()
Cookies.set('site-user-info', JSON.stringify(user.response))
//消息推送单点完成 获取id 跳转 详细页
let id = router.currentRoute.value.query.id
await router.push({
path: '/indexDetail',
query: {
//活动Id 用与输出 活动详细信息
id: id,
pushMessage: 1, //区别是否是消息推送进入的详情页 用于返回上一页 或 主页
}
})
}
},
"asc": async () => {
//ASC PC端
//ASC单点
let date = {
token: router.currentRoute.value.query.token
}
await getTokenAction(date)
},
"first": async () => {
//AIC 单点
//AIC单点
let date = {
sign: router.currentRoute.value.query.sign,
code: router.currentRoute.value.query.code,
......@@ -106,23 +91,20 @@ const getToken = async () => {
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
Cookies.set('site-management-token', res.response.access_token.token_content)
Cookies.set('oneWeekARange-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo()
Cookies.set('site-user-info', JSON.stringify(user.response))
await router.replace({
name: 'myActivity'
})
getUserInfo()
}
}
}
//使用策略
policyObject[router.currentRoute.value.query.type]()
// userid=000a0ae5-ae3a-4199-98b4-92cd38b02f5c&date=2025-02-14 + dayDetails
//使用策略
policyObject[router.currentRoute.value.query.type]();
}
onMounted(() => {
getToken()
})
</script>
......@@ -6,6 +6,51 @@
<template>
<!-- 操作轨迹 -->
<van-popup v-model:show="init.operatingTrajectory.show" :style="{ height: '85%'}" closeable position="bottom"
round>
<div class="w-full h-full bg-white overflow-y-auto relative ">
<!--header-->
<div class="w-full h-[50px] z-100 sticky top-0">
<div class="flex justify-between items-center w-full h-[50px]">
<div class="w-full h-full ccFlex text-[18px]">
操作轨迹
</div>
</div>
</div>
<!--content-->
<div class="w-full h-[calc(100%-114px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto">
<!--轨迹-->
<van-empty
v-if="init.operatingTrajectory.length == 0"
image="https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png"
image-size="80"
description="暂无数据"
/>
<div
v-else
class="w-full min-h-[90px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"
>
<van-steps :active="0" class="w-full" direction="vertical" active-icon="circle" finish-icon="success"
inactive-icon="success">
<van-step v-for="(item,index) in init.operatingTrajectory.data " :key="index" class="ax ">
<h2 v-font:{color:`#323233`,size:18}>{{ item.createtime }}</h2>
<p>用户名:<span v-font:{color:`#5295FF`}>{{ item.createname }}</span></p>
<p>操作:<span v-font:{color:`#5295FF`}>{{ item.remark }}</span></p>
</van-step>
</van-steps>
</div>
</div>
<!--footer-->
<div
class="w-full h-[70px] px-3 flex justify-between items-center sticky bottom-0 border border-t-[1px] border-solid ">
<van-button class="w-full " native-type="submit" round @click="init.operatingTrajectory.show = false">关闭
</van-button>
</div>
</div>
</van-popup>
<!-- 1-退回到上个节点 // 2-退回到发起人-->
<van-popup v-model:show="init.approval.showPopup" position="bottom">
<van-picker
......@@ -45,7 +90,11 @@
<div class="w-screen h-screen overflow-y-auto relative bg-[#F4F6F7]">
<!--header-->
<div class="w-full h-[108px] bg-white z-50 sticky top-0">
<childrenIndexHeader path="/welcome" title="日程详情"/>
<childrenIndexHeader path="/responsibleForFilingRecords" title="日程详情">
<template #importFile>
<span @click="init.operatingTrajectory.show = true" class="text-blue-500">操作轨迹</span>
</template>
</childrenIndexHeader>
<div class="w-full h-[54px]">
<van-tabs v-model:active="active" swipeable @change="tabChange">
<van-tab v-for="(item,index) in tabArray" :key="index" :title="item.text"/>
......@@ -54,8 +103,7 @@
</div>
<!--content_content-->
<div
:class="`${init.formData.flowType ==='await' ? 'h-[calc(100%-172px)]':'h-[calc(100%-108px)]'}`"
class="w-full overflow-y-auto relative ">
class="w-full overflow-y-auto relative h-[calc(100%-172px)] ">
<!--日程安排-->
<div v-show="active == 0" class="">
<van-empty
......@@ -82,7 +130,7 @@
class="flex items-center text-[#3FA0F4]"
>
<van-image width="12px" height="12px" :src="img"/>
<a class="ml-2">{{ ite.file_name }}</a>
<a class="ml-2">{{ ite.file_name }}</a>
</div>
</div>
</div>
......@@ -131,29 +179,7 @@
</div>
</div>
<!--轨迹-->
<div v-show="active == 3" class="">
<van-empty
v-if="init.operatingTrajectory.length == 0"
image="https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png"
image-size="80"
description="暂无数据"
/>
<div
v-else
class="w-full min-h-[90px] px-5 font-[黑体] text-[14px] py-2 bg-white border-b-solid border-[#F6F6F6] border-[1px]"
>
<van-steps :active="0" class="w-full" direction="vertical" active-icon="circle" finish-icon="success"
inactive-icon="success">
<van-step v-for="(item,index) in init.operatingTrajectory " :key="index" class="ax ">
<h2 v-font:{color:`#323233`,size:18}>{{ item.createtime }}</h2>
<p>用户名:<span v-font:{color:`#5295FF`}>{{ item.createname }}</span></p>
<p>操作:<span v-font:{color:`#5295FF`}>{{ item.remark }}</span></p>
</van-step>
</van-steps>
</div>
</div>
</div>
<!--审批-->
......@@ -179,7 +205,6 @@ const tabArray = ref([
{text: '日程安排', value: '0'},
{text: '值班安排', value: '1'},
{text: '会议安排', value: '2'},
{text: '操作轨迹', value: '3'},
])
const viewFilesObj = reactive({
show: false,
......@@ -187,12 +212,17 @@ const viewFilesObj = reactive({
})
const init = reactive({
operatingTrajectory: {
data: [],
show: false,
},
detailsData: {
plan_list:[],
duty_list:[],
meet_list:[],
plan_list: [],
duty_list: [],
meet_list: [],
},
operatingTrajectory: [],
formData: {},
approval: {
active: '0',
......@@ -213,18 +243,17 @@ const init = reactive({
const back = () => {
if (init.formData.pushMessage !== void 0) {
//消息推送 进入 需返回 主页
// hooks.go2Router('welcome')
router.back()
hooks.go2Router('responsibleForFilingRecords')
// router.back()
} else {
//正常返回上一级
router.back()
router.back();
}
}
const tabChange = (e) => {
active.value = e
}
const activityPeopleCard = ref('')
const activityPeopleCard = ref('');
function getInitObject(card) {
//获取活动基础数据 用户参与人列表
......@@ -290,11 +319,12 @@ function getOperatingTrajectory() {
userid: useDayViewItemData().getDayViewItemData().userid,
date: dayjs(useDayViewItemData().getDayViewItemData().date).format('YYYY-MM-DD'),
}).then(res => {
init.operatingTrajectory = res.response
init.operatingTrajectory.data = res.response
return res
})
}, true, '加载中...')
}
//附件预览
function preViewFile(fileItem) {
//查看附件方法
......@@ -302,6 +332,7 @@ function preViewFile(fileItem) {
viewFilesObj.fileItem = fileItem
console.log("🚀🚀🚀,", viewFilesObj.fileItem)
}
onMounted(() => {
getScheduleDetails()
getOperatingTrajectory()
......
<template>
<div class="publicContainerNoPadding ">
<childrenIndexHeader path="/welcome" title="分管填报记录查看">
<!-- <childrenIndexHeader path="/welcome" title="分管填报记录查看">
<template v-if="!init.switchView.show" v-slot:importFile>
<!-- <span @click="exportExcel(init.importExcelData)" class="text-blue-500">导出</span>-->
&lt;!&ndash; <span @click="exportExcel(init.importExcelData)" class="text-blue-500">导出</span>&ndash;&gt;
</template>
</childrenIndexHeader>
</childrenIndexHeader>-->
<div class="pt-2 bg-[#ededed] box-border w-full h-[66px]"><indexHeader/></div>
<div class="w-full h-[50px] flex bg-white justify-between items-center p-2">
<el-radio-group @change="changeView($event,$refs)" v-model="init.switchView.show" size="mini">
<el-radio-button label="天" :value="true"/>
......@@ -32,7 +33,7 @@
<div :class="`w-full overflow-y-auto
${['','p-3'][Number(init.switchView.show)]}
${['h-[calc(100%-205px)]','h-[calc(100%-163.4px)]'][Number(init.switchView.show)]} ` ">
${['h-[calc(100%-220px)]','h-[calc(100%-197px)]'][Number(init.switchView.show)]} ` ">
<div v-if="init.switchView.show">
<!-- 天视图 -->
<van-empty
......@@ -52,6 +53,9 @@
/>
</div>
<div v-if="init.switchView.show" class="w-full ccFlex absolute bottom-0 "
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250213 1.0.2
</div>
<div v-if="!init.switchView.show">
<!-- 周视图 -->
<div class="w-full h-auto bg-white text-gray-600" :key="init.weekKey">
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或