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

v20250212 保存

上级 8043598e
流水线 #32978 已通过 ,包含阶段
in 1 minute 和 22 second
import{a as e,C as t,b as s,G as n,u as a,S as o,w as r}from"./index-Dj71FKn1.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{b as u,u as l,d as k,o as m,c as _,a as f,w as g,L as d,e as y,C as R,f as s,G as w,g as x,S as v,h as C}from"./index-TkYWi-av.js";function A(a){return u.get("/api/Common/GetCurrentUserRoleList",a)}const L={style:{display:"flex","justify-content":"center","margin-top":"50%"}},T={__name:"SSO",setup(a){const t=l(),o=()=>{w().then(n=>{s.set("oneWeekARange-user-info",JSON.stringify(n.response)),A().then(e=>{x().setUserInfo({...n.response,roleList:e.response,currentRole:e.response[0]}),t.replace({name:"welcome"})})})},c=async n=>{const e=await v(n);e===void 0?await t.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),o())},r=async n=>{const e=await C(n);e===void 0?await t.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),o())},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await R();e===void 0?await t.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),o())}})[t.currentRoute.value.query.type]()};return k(()=>{i()}),(n,e)=>{const p=d;return m(),_("div",L,[f(p,{size:"38px",color:"#1989fa",vertical:""},{default:g(()=>e[0]||(e[0]=[y(" 登录中")])),_:1})])}}};export{T as default};
import{w as e,b as t,G as s,C as n,S as a}from"./index-Dj71FKn1.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{u as l,d as k,o as m,c as _,a as y,w as f,L as d,e as w,h as g,f as n,G as o,C as v,S as x}from"./index-TkYWi-av.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){const t=l(),c=async a=>{const e=await x(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"workArrangementFilling"})}},i=async a=>{const e=await(void 0)(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},r=async()=>{({wx:async()=>{let e={token:t.currentRoute.value.query.token};const s=await g(e);if(s===void 0)await t.replace({name:"403"});else if(s.response.access_token.token_content!==""){n.set("site-management-token",s.response.access_token.token_content),n.set("time",s.response.access_token.expires);const u=await o();n.set("site-user-info",JSON.stringify(u.response));let p=t.currentRoute.value.query.id;await t.push({path:"/indexDetail",query:{id:p,pushMessage:1}})}},asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await i(e)},test:async()=>{const e=await v();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}}})[t.currentRoute.value.query.type]()};return k(()=>{r()}),(a,e)=>{const s=d;return m(),_("div",R,[y(s,{size:"38px",color:"#1989fa",vertical:""},{default:f(()=>e[0]||(e[0]=[w(" 登录中")])),_:1})])}}};export{O as default};
此差异已折叠。
import"./index-Dj71FKn1.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{i as s}from"./index-Dj71FKn1.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{A as a,d as l,o as s,c as n,a as c,D as o,$ as r}from"./index-TkYWi-av.js";const d={class:"publicContainerNoPadding"},_={__name:"index",setup(i){return a({fillInWork:{show:!1}}),l(()=>{document.title="系统配置"}),(p,e)=>{const t=r;return s(),n("div",d,[c(t,{path:"/welcome",title:"分管填报记录查看"}),e[0]||(e[0]=o("div",{class:"w-full h-[10px]"},null,-1)),e[1]||(e[1]=o("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1))])}}};export{_ as default};
此差异已折叠。
import{a as e,_ as a,m as s,c as l,j as t,g as i}from"./index-Dj71FKn1.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};
import{a as s,h as e,g as a,i as o}from"./index-Dj71FKn1.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};
import{z as t,aH as a}from"./index-TkYWi-av.js";const i=t(a);export{i as P};
import{u as r,o as c,c as s,a as e,F as _,N as i,E as l}from"./index-TkYWi-av.js";const m=""+new URL("warning-zGbTxtDs.png",import.meta.url).href,d={__name:"index",setup(p){const t=r(),n=()=>t.back();return(u,f)=>{const a=i,o=l;return c(),s(_,null,[e(a,{"left-text":"返回","left-arrow":"",onClickLeft:n}),e(o,{image:m,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{d as default};
此差异已折叠。
此差异已折叠。
import{b as y,r as k,A as v,d as x,o as r,c as C,a as n,D as c,w as s,Z as I,Y as g,H as W,e as d,I as b,$ as A,X as B}from"./index-TkYWi-av.js";function N(a){return y.get("/api/Common/GetAheadWriteSwitch",a)}const D={class:"publicContainerNoPadding"},V={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},G={class:"w-full h-full flex items-center justify-between p-3"},$={__name:"index",setup(a){const l=k(),e=v({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function u(){l.value.save()}function f(t){e.fillInWork.show=t}function p(){N().then(t=>{e.role=t.response})}return x(()=>{p()}),(t,o)=>{const m=A,h=I,i=B,w=g;return r(),C("div",D,[n(m,{path:"/welcome",title:"工作安排填报"}),c("div",V,[n(h,{ref_key:"saveRef",ref:l,show:e.fillInWork.show,onCloseDateComponent:f},null,8,["show"])]),n(w,null,{default:s(()=>[c("div",G,[e.role==1?(r(),W(i,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:_},{default:s(()=>o[0]||(o[0]=[d(" 添加日期 ")])),_:1})):b("",!0),n(i,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:u},{default:s(()=>o[1]||(o[1]=[d("保存")])),_:1})])]),_:1})])}}};export{$ as default};
此差异已折叠。
此差异已折叠。
import{_ as e}from"./index-TkYWi-av.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{_ as r}from"./index-Dj71FKn1.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};
此差异已折叠。
此差异已折叠。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
此差异已折叠。
......@@ -6,7 +6,10 @@
<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-TkYWi-av.js"></script>
<script type="module" crossorigin src="./assets/index-Dj71FKn1.js"></script>
<link rel="modulepreload" crossorigin href="./assets/vant-1BGMxUQM.js">
<link rel="modulepreload" crossorigin href="./assets/vue-router-CFIiUm82.js">
<link rel="modulepreload" crossorigin href="./assets/axios-X0xcXtXw.js">
<link rel="stylesheet" crossorigin href="./assets/index-BVrGlRvl.css">
</head>
<body>
......
......@@ -21,6 +21,7 @@
"lodash": "^4.17.21",
"pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.1",
"terser": "^5.31.1",
"vant": "^4.6.6",
"vconsole": "^3.15.1",
"vue": "^3.3.4",
......@@ -665,37 +666,43 @@
}
},
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.3",
"resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
"integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",
"dev": true,
"version": "0.3.8",
"resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz",
"integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==",
"dependencies": {
"@jridgewell/set-array": "^1.0.1",
"@jridgewell/set-array": "^1.2.1",
"@jridgewell/sourcemap-codec": "^1.4.10",
"@jridgewell/trace-mapping": "^0.3.9"
"@jridgewell/trace-mapping": "^0.3.24"
},
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/resolve-uri": {
"version": "3.1.1",
"resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
"integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
"dev": true,
"version": "3.1.2",
"resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/set-array": {
"version": "1.1.2",
"resolved": "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.1.2.tgz",
"integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
"dev": true,
"version": "1.2.1",
"resolved": "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.2.1.tgz",
"integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/source-map": {
"version": "0.3.6",
"resolved": "https://registry.npmmirror.com/@jridgewell/source-map/-/source-map-0.3.6.tgz",
"integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==",
"dependencies": {
"@jridgewell/gen-mapping": "^0.3.5",
"@jridgewell/trace-mapping": "^0.3.25"
}
},
"node_modules/@jridgewell/sourcemap-codec": {
"version": "1.5.0",
"resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
......@@ -703,10 +710,9 @@
"license": "MIT"
},
"node_modules/@jridgewell/trace-mapping": {
"version": "0.3.20",
"resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz",
"integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==",
"dev": true,
"version": "0.3.25",
"resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",
"integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
"dependencies": {
"@jridgewell/resolve-uri": "^3.1.0",
"@jridgewell/sourcemap-codec": "^1.4.14"
......@@ -1166,7 +1172,6 @@
"version": "8.10.0",
"resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.10.0.tgz",
"integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",
"dev": true,
"bin": {
"acorn": "bin/acorn"
},
......@@ -1532,6 +1537,11 @@
"node": "*"
}
},
"node_modules/buffer-from": {
"version": "1.1.2",
"resolved": "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz",
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="
},
"node_modules/buffer-indexof-polyfill": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/buffer-indexof-polyfill/-/buffer-indexof-polyfill-1.0.2.tgz",
......@@ -3421,8 +3431,6 @@
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"dev": true,
"optional": true,
"engines": {
"node": ">=0.10.0"
}
......@@ -3436,6 +3444,15 @@
"node": ">=0.10.0"
}
},
"node_modules/source-map-support": {
"version": "0.5.21",
"resolved": "https://registry.npmmirror.com/source-map-support/-/source-map-support-0.5.21.tgz",
"integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
"dependencies": {
"buffer-from": "^1.0.0",
"source-map": "^0.6.0"
}
},
"node_modules/string_decoder": {
"version": "1.1.1",
"resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz",
......@@ -3574,6 +3591,28 @@
"node": ">=6"
}
},
"node_modules/terser": {
"version": "5.38.2",
"resolved": "https://registry.npmmirror.com/terser/-/terser-5.38.2.tgz",
"integrity": "sha512-w8CXxxbFA5zfNsR/i8HZq5bvn18AK0O9jj7hyo1YqkovLxEFa0uP0LCVGZRqiRaKRFxXhELBp8SteeAjEnfeJg==",
"dependencies": {
"@jridgewell/source-map": "^0.3.3",
"acorn": "^8.8.2",
"commander": "^2.20.0",
"source-map-support": "~0.5.20"
},
"bin": {
"terser": "bin/terser"
},
"engines": {
"node": ">=10"
}
},
"node_modules/terser/node_modules/commander": {
"version": "2.20.3",
"resolved": "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz",
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
},
"node_modules/thenify": {
"version": "3.3.1",
"resolved": "https://registry.npmmirror.com/thenify/-/thenify-3.3.1.tgz",
......
......@@ -38,7 +38,7 @@ const app = createApp(App)
app.use(ElementPlus)
initStore(app)
//使用测试按钮Vxonsole
const vConsole = new VConsole();
// const vConsole = new VConsole();
app.config.globalProperties.$cookies = VueCookies;
app.config.globalProperties.asc = api
app.use(router)
......
<template>
<div class="publicContainer ">
<indexHeader/>
<div class="w-full h-[calc(100%-65px)] box-border overflow-y-auto ">
<div class="w-full h-[calc(100%-65px)] box-border overflow-y-auto relative">
......@@ -35,7 +35,9 @@
</template>
</van-cell>
-->
<div class="w-full ccFlex absolute bottom-0 "
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250107 1.0.1
</div>
</div>
</div>
......
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve,} from "path";
import {defineConfig} from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'path'; // 关键代码
import Components from 'unplugin-vue-components/vite';
import {VantResolver} from 'unplugin-vue-components/resolvers';
import {resolve,} from "path";
const pathResolve = (dir) => resolve(__dirname, dir);
// https://vitejs.dev/config/
export default defineConfig({
build: {
minify: "terser",
terserOptions: {
compress: {
// 压缩选项
drop_console: true, // 移除所有 console 语句
drop_debugger: true, // 移除所有 debugger 语句
dead_code: true, // 移除未使用的代码
unused: true, // 移除未使用的变量/函数
// 添加其他需要的压缩选项
},
format: {
// 输出格式选项
comments: false, // 移除所有注释
},
},
rollupOptions: {
output: {
manualChunks: {
// 将库的代码单独打包
'vant': ['vant'],
'vue-router': ['vue-router'],
'axios': ['axios'],
// 'vue-officedocx': ['@vue-office/docx'],
/* 'vue-officeexcel': ['@vue-office/excel'],
'vue-officepdf': ['@vue-office/pdf'],*/
}
}
}
},
plugins: [
vue(),
Components({
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或