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

V20240322 剩余记录视图样式

上级 dcfdd2af
import{b as p,c as u,a as l,d as k,u as m,L as _,o as g,e as f,C as w,f as n,G as a,S as y,g as d}from"./index-BZDKhv6O.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(v){const t=m(),c=async o=>{const e=await y(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}},r=async o=>{const e=await d(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",s.response.role),await t.replace({name:"welcome"})}},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await w();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return p(()=>{i()}),(o,e)=>{const s=_;return g(),u("div",R,[l(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[f(" 登录中")]),_:1})])}}};export{A as default}; import{b as p,c as u,a as l,d as k,u as m,L as _,o as g,e as f,C as w,f as n,G as a,S as y,g as d}from"./index-Bo_55mFX.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},A={__name:"SSO",setup(v){const t=m(),c=async o=>{const e=await y(o);if(e===void 0)console.log("🚀🚀🚀,",e),await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}},r=async o=>{const e=await d(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",s.response.role),await t.replace({name:"welcome"})}},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await w();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await a();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return p(()=>{i()}),(o,e)=>{const s=_;return g(),u("div",R,[l(s,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[f(" 登录中")]),_:1})])}}};export{A as default};
import{b as l,c as k,a as _,d as m,u as y,L as f,o as d,e as g,g as w,f as n,G as o,C as v,S as x}from"./index-BZDKhv6O.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){const t=y(),c=async a=>{const e=await x(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"workArrangementFilling"})}},i=async a=>{const e=await(void 0)(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},r=async()=>{({wx:async()=>{let e={token:t.currentRoute.value.query.token};const s=await w(e);if(s===void 0)await t.replace({name:"403"});else if(s.response.access_token.token_content!==""){n.set("site-management-token",s.response.access_token.token_content),n.set("time",s.response.access_token.expires);const u=await o();n.set("site-user-info",JSON.stringify(u.response));let p=t.currentRoute.value.query.id;await t.push({path:"/indexDetail",query:{id:p,pushMessage:1}})}},asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await i(e)},test:async()=>{const e=await v();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}}})[t.currentRoute.value.query.type]()};return l(()=>{r()}),(a,e)=>{const s=f;return d(),k("div",R,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[g(" 登录中")]),_:1})])}}};export{O as default}; import{b as l,c as k,a as _,d as m,u as y,L as f,o as d,e as g,g as w,f as n,G as o,C as v,S as x}from"./index-Bo_55mFX.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSOInfo",setup(S){const t=y(),c=async a=>{const e=await x(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("oneWeekARange-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("oneWeekARange-user-info",JSON.stringify(s.response)),await t.replace({name:"workArrangementFilling"})}},i=async a=>{const e=await(void 0)(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}},r=async()=>{({wx:async()=>{let e={token:t.currentRoute.value.query.token};const s=await w(e);if(s===void 0)await t.replace({name:"403"});else if(s.response.access_token.token_content!==""){n.set("site-management-token",s.response.access_token.token_content),n.set("time",s.response.access_token.expires);const u=await o();n.set("site-user-info",JSON.stringify(u.response));let p=t.currentRoute.value.query.id;await t.push({path:"/indexDetail",query:{id:p,pushMessage:1}})}},asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await i(e)},test:async()=>{const e=await v();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("site-management-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const s=await o();n.set("site-user-info",JSON.stringify(s.response)),await t.replace({name:"myActivity"})}}})[t.currentRoute.value.query.type]()};return l(()=>{r()}),(a,e)=>{const s=f;return d(),k("div",R,[_(s,{size:"38px",color:"#1989fa",vertical:""},{default:m(()=>[g(" 登录中")]),_:1})])}}};export{O as default};
import{Q as a,b as t,c as s,a as c,R as e,o as n,a8 as l}from"./index-BZDKhv6O.js";const i={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),d=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),h={__name:"index",setup(r){return a({fillInWork:{show:!1}}),t(()=>{document.title="系统配置"}),(p,u)=>{const o=l;return n(),s("div",i,[c(o,{path:"/welcome",title:"分管填报记录查看"}),_,d])}}};export{h as default}; import{B as a,b as t,c as s,a as c,D as e,o as n,a5 as l}from"./index-Bo_55mFX.js";const i={class:"publicContainerNoPadding"},_=e("div",{class:"w-full h-[10px]"},null,-1),d=e("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1),h={__name:"index",setup(r){return a({fillInWork:{show:!1}}),t(()=>{document.title="系统配置"}),(p,u)=>{const o=l;return n(),s("div",i,[c(o,{path:"/welcome",title:"分管填报记录查看"}),_,d])}}};export{h as default};
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
:root{--van-pagination-height: 40px;--van-pagination-font-size: var(--van-font-size-md);--van-pagination-item-width: 36px;--van-pagination-item-default-color: var(--van-primary-color);--van-pagination-item-disabled-color: var(--van-gray-7);--van-pagination-item-disabled-background: var(--van-background);--van-pagination-background: var(--van-background-2);--van-pagination-desc-color: var(--van-gray-7);--van-pagination-disabled-opacity: var(--van-disabled-opacity)}.van-pagination{font-size:var(--van-pagination-font-size)}.van-pagination__items{display:flex}.van-pagination__item,.van-pagination__page-desc{display:flex;align-items:center;justify-content:center}.van-pagination__item{flex:1;box-sizing:border-box;min-width:var(--van-pagination-item-width);height:var(--van-pagination-height);color:var(--van-pagination-item-default-color);background:var(--van-pagination-background);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-pagination__item button{flex:1;height:100%;border:none;padding:0;background:transparent}.van-pagination__item button[disabled]{cursor:not-allowed}.van-pagination__item:active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item:not(:last-child):after{border-right-width:0}.van-pagination__item--active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item--page{flex-grow:0}.van-pagination__item--prev,.van-pagination__item--next{padding:0 var(--van-padding-base);cursor:pointer}.van-pagination__item--border:first-child:after{border-right-width:var(--van-border-width)}.van-pagination__item--disabled,.van-pagination__item--disabled:active{color:var(--van-pagination-item-disabled-color);background-color:var(--van-pagination-item-disabled-background);opacity:var(--van-pagination-disabled-opacity)}.van-pagination__page-desc{flex:1;height:var(--van-pagination-height);color:var(--van-pagination-desc-color)}.page[data-v-54a6d0b5]{--van-pagination-height: 55px }.select{margin:5px 5px 5px 0;background:#1e90ff;color:#fff!important}.unselected{margin:5px 5px 5px 0} :root{--van-pagination-height: 40px;--van-pagination-font-size: var(--van-font-size-md);--van-pagination-item-width: 36px;--van-pagination-item-default-color: var(--van-primary-color);--van-pagination-item-disabled-color: var(--van-gray-7);--van-pagination-item-disabled-background: var(--van-background);--van-pagination-background: var(--van-background-2);--van-pagination-desc-color: var(--van-gray-7);--van-pagination-disabled-opacity: var(--van-disabled-opacity)}.van-pagination{font-size:var(--van-pagination-font-size)}.van-pagination__items{display:flex}.van-pagination__item,.van-pagination__page-desc{display:flex;align-items:center;justify-content:center}.van-pagination__item{flex:1;box-sizing:border-box;min-width:var(--van-pagination-item-width);height:var(--van-pagination-height);color:var(--van-pagination-item-default-color);background:var(--van-pagination-background);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-pagination__item button{flex:1;height:100%;border:none;padding:0;background:transparent}.van-pagination__item button[disabled]{cursor:not-allowed}.van-pagination__item:active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item:not(:last-child):after{border-right-width:0}.van-pagination__item--active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item--page{flex-grow:0}.van-pagination__item--prev,.van-pagination__item--next{padding:0 var(--van-padding-base);cursor:pointer}.van-pagination__item--border:first-child:after{border-right-width:var(--van-border-width)}.van-pagination__item--disabled,.van-pagination__item--disabled:active{color:var(--van-pagination-item-disabled-color);background-color:var(--van-pagination-item-disabled-background);opacity:var(--van-pagination-disabled-opacity)}.van-pagination__page-desc{flex:1;height:var(--van-pagination-height);color:var(--van-pagination-desc-color)}.page[data-v-151e55c8]{--van-pagination-height: 55px }.select{margin:5px 5px 5px 0;background:#1e90ff;color:#fff!important}.unselected{margin:5px 5px 5px 0}
此差异已折叠。
.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap}:root{--van-checkbox-size: 20px;--van-checkbox-border-color: var(--van-gray-5);--van-checkbox-duration: var(--van-duration-fast);--van-checkbox-label-margin: var(--van-padding-xs);--van-checkbox-label-color: var(--van-text-color);--van-checkbox-checked-icon-color: var(--van-primary-color);--van-checkbox-disabled-icon-color: var(--van-gray-5);--van-checkbox-disabled-label-color: var(--van-text-color-3);--van-checkbox-disabled-background: var(--van-border-color)}.van-checkbox{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-checkbox--disabled{cursor:not-allowed}.van-checkbox--label-disabled{cursor:default}.van-checkbox--horizontal{margin-right:var(--van-padding-sm)}.van-checkbox__icon{flex:none;height:1em;font-size:var(--van-checkbox-size);line-height:1em;cursor:pointer}.van-checkbox__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid var(--van-checkbox-border-color);transition-duration:var(--van-checkbox-duration);transition-property:color,border-color,background-color}.van-checkbox__icon--round .van-icon{border-radius:100%}.van-checkbox__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-checkbox-checked-icon-color);border-color:var(--van-checkbox-checked-icon-color)}.van-checkbox__icon--disabled{cursor:not-allowed}.van-checkbox__icon--disabled .van-icon{background-color:var(--van-checkbox-disabled-background);border-color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon{color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__label{margin-left:var(--van-checkbox-label-margin);color:var(--van-checkbox-label-color);line-height:var(--van-checkbox-size)}.van-checkbox__label--left{margin:0 var(--van-checkbox-label-margin) 0 0}.van-checkbox__label--disabled{color:var(--van-checkbox-disabled-label-color)}:root{--van-divider-margin: var(--van-padding-md) 0;--van-divider-vertical-margin: 0 var(--van-padding-xs);--van-divider-text-color: var(--van-text-color-2);--van-divider-font-size: var(--van-font-size-md);--van-divider-line-height: 24px;--van-divider-border-color: var(--van-border-color);--van-divider-content-padding: var(--van-padding-md);--van-divider-content-left-width: 10%;--van-divider-content-right-width: 10%}.van-divider{display:flex;align-items:center;margin:var(--van-divider-margin);color:var(--van-divider-text-color);font-size:var(--van-divider-font-size);line-height:var(--van-divider-line-height);border-color:var(--van-divider-border-color);border-style:solid;border-width:0}.van-divider:before,.van-divider:after{display:block;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:var(--van-border-width) 0 0}.van-divider:before{content:""}.van-divider--hairline:before,.van-divider--hairline:after{transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--content-center:before,.van-divider--content-left:before,.van-divider--content-right:before{margin-right:var(--van-divider-content-padding)}.van-divider--content-center:after,.van-divider--content-left:after,.van-divider--content-right:after{margin-left:var(--van-divider-content-padding);content:""}.van-divider--content-left:before{max-width:var(--van-divider-content-left-width)}.van-divider--content-right:after{max-width:var(--van-divider-content-right-width)}.van-divider--vertical{display:inline-block;width:var(--van-border-width);height:1em;margin:var(--van-divider-vertical-margin);vertical-align:middle}.van-divider--vertical:before{height:100%;border-width:0 0 0 var(--van-border-width)}.van-divider--vertical:after{display:none}.van-divider--vertical.van-divider--hairline:before{transform:scaleX(.5)}
此差异已折叠。
import{_ as e}from"./index-BZDKhv6O.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default}; import{_ as e}from"./index-Bo_55mFX.js";const n={};function r(c,t){return null}const o=e(n,[["render",r]]);export{o as default};
import{A as w,r as y,B as k,b as v,c as x,a as o,D as l,d as n,a4 as C,a3 as g,o as i,e as r,E as I,H as W,a5 as b,a2 as B}from"./index-Bo_55mFX.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const N={class:"publicContainerNoPadding"},D={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"},E={__name:"index",setup(a){const s=y(),e=k({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(t){e.fillInWork.show=t}function f(){A().then(t=>{e.role=t.response})}return v(()=>{f()}),(t,G)=>{const p=b,m=C,c=B,h=g;return i(),x("div",N,[o(p,{path:"/welcome",title:"工作安排填报"}),l("div",D,[o(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),o(h,null,{default:n(()=>[l("div",V,[o(c,{style:{"border-radius":"8px"},type:"primary",class:"w-[28%]",plain:"",onClick:d},{default:n(()=>[r("保存")]),_:1}),e.role==1?(i(),I(c,{key:0,style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:_},{default:n(()=>[r(" 添加日期 ")]),_:1})):W("",!0)])]),_:1})])}}};export{E as default};
import{P as w,r as k,Q as v,b as x,c as C,a as t,R as r,d as n,a7 as g,a6 as y,o as l,T as I,e as i,U as W,a8 as B,a5 as N}from"./index-BZDKhv6O.js";function A(a){return w.get("/api/Common/GetAheadWriteSwitch",a)}const V={class:"publicContainerNoPadding"},b=r("div",{class:"w-full h-[10px]"},null,-1),D={class:"w-full h-[calc(100%-120px)] p-2 overflow-y-auto"},R={__name:"index",setup(a){const s=k(),e=v({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function _(){e.fillInWork.show=!0}function d(){s.value.save()}function u(o){e.fillInWork.show=o}function f(){A().then(o=>{e.role=o.response})}return x(()=>{f()}),(o,G)=>{const p=B,m=g,c=N,h=y;return l(),C("div",V,[t(p,{path:"/welcome",title:"填报工作安排"}),b,r("div",D,[t(m,{ref_key:"saveRef",ref:s,show:e.fillInWork.show,onCloseDateComponent:u},null,8,["show"])]),t(h,null,{default:n(()=>[e.role==1?(l(),I(c,{key:0,type:"primary",round:"",class:"w-[120px]",onClick:_},{default:n(()=>[i("添加日期 ")]),_:1})):W("",!0),t(c,{type:"success",round:"",class:"w-[120px]",onClick:d},{default:n(()=>[i("保存")]),_:1})]),_:1})])}}};export{R as default};
此差异已折叠。
import{q as d,j as f,l as y,a as s,F as c,am as h,an as v,h as z}from"./index-BZDKhv6O.js";const[u,A]=d("space"),w={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function m(e=[]){const n=[];return e.forEach(t=>{Array.isArray(t)?n.push(...t):t.type===c?n.push(...m(t.children)):n.push(t)}),n.filter(t=>{var i;return!(t&&(t.type===h||t.type===c&&((i=t.children)==null?void 0:i.length)===0||t.type===v&&t.children.trim()===""))})}var S=f({name:u,props:w,setup(e,{slots:n}){const t=y(()=>{var a;return(a=e.align)!=null?a:e.direction==="horizontal"?"center":""}),i=a=>typeof a=="number"?a+"px":a,g=a=>{const r={},o=`${i(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${i(Array.isArray(e.size)?e.size[1]:e.size)}`;return a?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var a;const r=m((a=n.default)==null?void 0:a.call(n));return s("div",{class:[A({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[r.map((o,l)=>s("div",{key:`item-${l}`,class:`${u}-item`,style:g(l===r.length-1)},[o]))])}}});const B=z(S);export{B as S}; import{i as d,l as f,n as y,a as s,F as c,al as h,am as v,h as z}from"./index-Bo_55mFX.js";const[u,A]=d("space"),w={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function m(e=[]){const n=[];return e.forEach(t=>{Array.isArray(t)?n.push(...t):t.type===c?n.push(...m(t.children)):n.push(t)}),n.filter(t=>{var i;return!(t&&(t.type===h||t.type===c&&((i=t.children)==null?void 0:i.length)===0||t.type===v&&t.children.trim()===""))})}var S=f({name:u,props:w,setup(e,{slots:n}){const t=y(()=>{var a;return(a=e.align)!=null?a:e.direction==="horizontal"?"center":""}),i=a=>typeof a=="number"?a+"px":a,g=a=>{const r={},o=`${i(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${i(Array.isArray(e.size)?e.size[1]:e.size)}`;return a?e.wrap?{marginBottom:l}:{}:(e.direction==="horizontal"&&(r.marginRight=o),(e.direction==="vertical"||e.wrap)&&(r.marginBottom=l),r)};return()=>{var a;const r=m((a=n.default)==null?void 0:a.call(n));return s("div",{class:[A({[e.direction]:e.direction,[`align-${t.value}`]:t.value,wrap:e.wrap,fill:e.fill})]},[r.map((o,l)=>s("div",{key:`item-${l}`,class:`${u}-item`,style:g(l===r.length-1)},[o]))])}}});const B=z(S);export{B as S};
此差异已折叠。
此差异已折叠。
import{q as v,j as w,ak as G,a as e,al as k,D as M,h as B}from"./index-BZDKhv6O.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var z=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),t=r=>`${f}-${r}`,l=r=>`url(#${t(r)})`,i=(r,d,D)=>e("stop",{"stop-color":r,offset:`${d}%`,"stop-opacity":D},null),n=(r,d)=>[i(r,0),i(d,100)],x=r=>[e("defs",null,[e("radialGradient",{id:t(r),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:l(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:t("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:l("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:l("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:t("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:l("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:l("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:t(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:t(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:t(3),x1:"100%",x2:"100%",y2:"100%"},[n("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:t(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:l(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:l(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:l(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:l(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:l(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:l(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:t(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:t(7)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:l(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:l(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:l(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(8)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),x("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:l(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:t(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:t(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:l(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:l(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:l(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:l(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:l(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var r;if(a.image)return a.image();const d={error:g,search:p,network:y,default:E};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const b=B(z);export{b as E};
import{q,j as H,l as L,af as K,a as u,D as Q,H as E,ag as Z,t as M,ah as D,ai as J,h as X,P as F,_ as Y,r as $,o as f,c as b,Q as ee,b as te,R as i,T as A,U as se,F as V,V as B,d as x,W as ae,aj as ne,Z as g,e as N,a9 as j,a0 as T,a5 as oe,a6 as le}from"./index-BZDKhv6O.js";import{S as ie}from"./index-Cn4EgMq-.js";import{E as re}from"./index-ZET7iWHs.js";const[ce,U,O]=q("pagination"),G=(n,r,o)=>({number:n,text:r,active:o}),pe={mode:Q("multi"),prevText:String,nextText:String,pageCount:E(0),modelValue:Z(0),totalItems:E(0),showPageSize:E(5),itemsPerPage:E(10),forceEllipses:Boolean,showPrevButton:M,showNextButton:M};var de=H({name:ce,props:pe,emits:["change","update:modelValue"],setup(n,{emit:r,slots:o}){const e=L(()=>{const{pageCount:l,totalItems:d,itemsPerPage:_}=n,h=+l||Math.ceil(+d/+_);return Math.max(1,h)}),k=L(()=>{const l=[],d=e.value,_=+n.showPageSize,{modelValue:h,forceEllipses:t}=n;let s=1,c=d;const m=_<d;m&&(s=Math.max(h-Math.floor(_/2),1),c=s+_-1,c>d&&(c=d,s=c-_+1));for(let p=s;p<=c;p++){const y=G(p,p,p===h);l.push(y)}if(m&&_>0&&t){if(s>1){const p=G(s-1,"...");l.unshift(p)}if(c<d){const p=G(c+1,"...");l.push(p)}}return l}),v=(l,d)=>{l=J(l,1,e.value),n.modelValue!==l&&(r("update:modelValue",l),d&&r("change",l))};K(()=>v(n.modelValue));const R=()=>u("li",{class:U("page-desc")},[o.pageDesc?o.pageDesc():`${n.modelValue}/${e.value}`]),C=()=>{const{mode:l,modelValue:d,showPrevButton:_}=n;if(!_)return;const h=o["prev-text"],t=d===1;return u("li",{class:[U("item",{disabled:t,border:l==="simple",prev:!0}),D]},[u("button",{type:"button",disabled:t,onClick:()=>v(d-1,!0)},[h?h():n.prevText||O("prev")])])},I=()=>{const{mode:l,modelValue:d,showNextButton:_}=n;if(!_)return;const h=o["next-text"],t=d===e.value;return u("li",{class:[U("item",{disabled:t,border:l==="simple",next:!0}),D]},[u("button",{type:"button",disabled:t,onClick:()=>v(d+1,!0)},[h?h():n.nextText||O("next")])])},P=()=>k.value.map(l=>u("li",{class:[U("item",{active:l.active,page:!0}),D]},[u("button",{type:"button","aria-current":l.active||void 0,onClick:()=>v(l.number,!0)},[o.page?o.page(l):l.text])]));return()=>u("nav",{role:"navigation",class:U()},[u("ul",{class:U("items")},[C(),n.mode==="simple"?R():P(),I()])])}});const ue=X(de);function me(n){return F.get("/api/Common/GetDeptAllList",n)}function _e(n){return F.post("/api/Common/GetRoleList",n)}function he(n,r){const o={page_index:n.page_index,page_size:n.page_size};return F.get("/api/UserRole/GetUserRoleList",{params:o,...r})}function fe(n,r){const o={id:n.id};return F.get("/api/UserRole/GetUserRoleInfo",{params:o,...r})}function ge(n,r){const o={keyword:n.keyword,page_index:n.page_index,page_size:n.page_size};return F.get("/api/UserRole/GetUserRoleSearch",{params:o,...r})}function xe(n,r){const o={userid:n.userid};return F.get("/api/UserRole/UserRoleIns",{params:o,...r})}function ve(n,r){return F.post("/api/UserRole/UserRoleSave",n,r)}const we={class:"w-full h-[55px] page"},be={__name:"page",props:{page_index:{type:Number,default:1},page_size:{type:Number,default:10},total:{type:Number,default:0}},emits:["pageChange"],setup(n,{expose:r,emit:o}){const e=n,k=$(1);function v(R){o("pageChange",R)}return r({currentPage:k}),(R,C)=>{const I=ue;return f(),b("div",we,[u(I,{onChange:v,modelValue:k.value,"onUpdate:modelValue":C[0]||(C[0]=P=>k.value=P),"total-items":e.total,mode:"simple"},null,8,["modelValue","total-items"])])}}},ke=Y(be,[["__scopeId","data-v-54a6d0b5"]]),Pe={class:"publicContainerNoPadding"},ye={class:"w-full h-[calc(100%-111px)] p-3 overflow-y-auto"},Fe={class:"w-[80%] h-full"},Re={class:"w-full h-[40px] p-1 flex items-center"},Ce={class:"w-full min-h-1/2 p-1"},Ue=["onClick"],Ie={class:"w-full h-auto bg-white"},Se={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ve=i("div",{class:"h-[30px] w-[20%]"},"姓名:",-1),Ne={class:"h-[30px] w-[80%]"},ze=i("div",{class:"h-[30px] w-[20%]"},"工号:",-1),Ee={class:"h-[30px] w-[80%]"},Ae=i("div",{class:"h-[30px] w-[20%]"},"部门:",-1),Be={class:"h-[30px] w-[80%]"},De=i("div",{class:"h-[30px] w-[20%]"},"岗位:",-1),Ge={class:"h-[30px] w-[80%]"},$e=i("div",{class:"w-full h-3"},null,-1),Le={class:"w-full h-auto bg-white"},Me=i("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"操作权限",-1),je={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Te=i("div",{class:"w-full h-3"},null,-1),Oe={class:"w-full h-auto bg-white"},We=i("div",{class:"w-full h-10 p-4 pb-0 font-bold"},"分管部门",-1),qe={class:"w-full min-h-[110px] p-4 flex justify-between flex-wrap"},Ze={__name:"index",setup(n){const r=$(),o=$(),e=ee({searchParams:{page_index:1,page_size:10,keyword:""},total:0,observer:"",loading:!0,comment:{dept:[],user:[],deptId:[]},check:{userroleid:"",userid:"",usercard:"",username:"",dept:"",position_name:"",dept_list:[],role_list:[]},select:{showPopup:!1},fillInWork:{show:!1},data:[],initParams:{page_index:1,page_size:10}});function k(){T(()=>ve({...e.check,role_list:e.check.role_list.map(t=>({role_name:"",role_id:t})),dept_list:e.check.dept_list.map(t=>({name:"",id:t}))}).then(t=>(t.code===1&&(o.value.search!==""?_(o.value.search,e.searchParams.page_index):(d(e.initParams.page_index),r.value.currentPage=e.initParams.page_index),e.select.showPopup=!1),t)))}function v(t){e.check.dept_list.includes(t.id)?(e.check.dept_list.forEach((s,c)=>{s===t.id&&e.check.dept_list.splice(c,1)}),e.comment.dept.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")}),e.comment.deptId.forEach((s,c)=>{s===t.id&&e.comment.deptId.splice(c,1)})):(e.check.dept_list.push(t.id),e.comment.deptId.push(t.id),e.comment.dept.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")}))}function R(t){e.check.role_list.includes(t.id)?(e.check.role_list.forEach((s,c)=>{s===t.id&&e.check.role_list.splice(c,1,"")}),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="",s.cl="")})):(e.check.role_list.push(t.id),e.comment.user.forEach(s=>{s.id===t.id&&(s.bg="#1989FA",s.cl="#FFFFFF")})),console.log("🚀🚀check.tid_list🚀,",...e.check.role_list)}function C(){_e().then(t=>{e.comment.user=t.response.map(s=>({...s,bg:"",cl:""}))})}function I(){me().then(t=>{e.comment.dept=t.response.map(s=>({...s,bg:"",cl:""}))})}function P(){return he(e.initParams).then(t=>{e.data=t.response.data.map(s=>({...s})),e.total=t.response.data_count})}function l(t){o.value.search===""?(e.initParams.page_index=t,P()):(e.searchParams.page_index=t,_(o.value.search,t))}function d(t=""){o.value.search="",e.initParams={page_index:t||1,page_size:10},r.value.currentPage=1,P()}function _(t,s=1){o.value.search!==""&&(e.initParams.page_index!==1&&(r.value.currentPage=1,e.initParams.page_index=1),ge({...e.searchParams,keyword:t,page_index:s}).then(c=>{e.data=c.response.data.map(m=>({...m})),e.total=c.response.data_count}))}function h(t,s){let c={0:()=>{T(()=>xe({userid:s.userid}).then(m=>(m.code===1&&c[1](m.response),m)))},1:m=>{fe({id:s.userroleid||m}).then(p=>{let y=[],S=[];p.response.dept_list.map((a,w)=>{y.push(a.id)}),p.response.role_list.map((a,w)=>{S.push(a.role_id)}),e.comment.dept.map((a,w)=>(y.includes(a.id)?(a.bg="#1989FA",a.cl="#FFFFFF"):(a.bg="",a.cl=""),a)),e.comment.user.map((a,w)=>(S.includes(a.id)?(a.bg="#1989FA",a.cl="#FFFFFF"):(a.bg="",a.cl=""),a)),p.response.dept_list=y,p.response.role_list=S,e.check=p.response,p.code===1&&(e.select.showPopup=!0),console.log("🚀🚀🚀,",e.comment,p.response)})}};c[String(t)]()}return te(()=>{document.title="人员授权",P(),C(),I()}),(t,s)=>{const c=re,m=oe,p=ie,y=le,S=ae;return f(),b(V,null,[i("div",Pe,[u(ne,{ref_key:"headerInput",ref:o,onSearchFun:_,onReset:d,path:"/welcome"},null,512),i("div",ye,[e.data.length===[]?(f(),A(c,{key:0,description:"暂无授权名单,请通过搜索添加"})):se("",!0),(f(!0),b(V,null,B(e.data,(a,w)=>(f(),b("div",{key:w,class:"w-full min-h-[90px] flex rounded-[5px] p-2 bg-white mb-3"},[i("div",Fe,[i("div",Re,g(a.username)+"("+g(a.usercard)+")",1),i("div",Ce,[(f(!0),b(V,null,B(a.dept_list,(z,W)=>(f(),A(m,{style:{margin:"5px 5px 5px 0"},key:W,plain:"",hairline:"",size:"small",type:"primary"},{default:x(()=>[N(g(z.name),1)]),_:2},1024))),128))])]),i("div",{onClick:z=>h(+(a.userroleid!==null),a),class:"w-[20%] flex justify-center items-center text-blue-500"},g(["添加","编辑"][+(a.userroleid!==null)]),9,Ue)]))),128))]),u(ke,{ref_key:"pageRef",ref:r,total:e.total,onPageChange:l},null,8,["total"])]),u(S,{show:e.select.showPopup,height:80},{content:x(()=>[(f(),b("div",{class:"w-full h-[calc(100%-64px)] bg-gray-200 overflow-y-auto",key:e.calendarKey},[i("div",Ie,[i("div",Se,[Ve,i("div",Ne,g(e.check.username),1),ze,i("div",Ee,g(e.check.usercard),1),Ae,i("div",Be,g(e.check.dept),1),De,i("div",Ge,g(e.check.position_name),1)])]),$e,i("div",Le,[Me,i("div",je,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.user,(a,w)=>(f(),A(m,{onClick:z=>R(a),style:j({margin:"5px",padding:"15px !important",height:"40px",background:a.bg,color:a.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:x(()=>[N(g(a.name),1)]),_:2},1032,["onClick","style"]))),256))]),_:1})])]),Te,i("div",Oe,[We,i("div",qe,[u(p,{wrap:""},{default:x(()=>[(f(!0),b(V,null,B(e.comment.dept,(a,w)=>(f(),A(m,{onClick:z=>v(a),key:w,style:j({margin:"5px",padding:"15px !important",height:"40px",background:a.bg,color:a.cl}),size:"normal",plain:"",hairline:"",type:"primary"},{default:x(()=>[N(g(a.name),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})])])])),u(y,null,{default:x(()=>[u(m,{type:"primary",round:"",class:"w-[90px]",onClick:k},{default:x(()=>[N("确定")]),_:1}),u(m,{round:"",class:"w-[90px]",onClick:s[0]||(s[0]=a=>e.select.showPopup=!1)},{default:x(()=>[N("取消")]),_:1})]),_:1})]),_:1},8,["show"])],64)}}};export{Ze as default};
import{c as r,a as e,F as c,u as s,o as _,w as m,N as i}from"./index-BZDKhv6O.js";import{E as l}from"./index-ZET7iWHs.js";const k={__name:"index",setup(p){const t=s(),a=()=>t.back();return(u,f)=>{const n=i,o=l;return _(),r(c,null,[e(n,{"left-text":"返回","left-arrow":"",onClickLeft:a}),e(o,{image:m,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{k as default}; import{c as r,a as e,F as c,u as s,o as _,w as m,N as i}from"./index-Bo_55mFX.js";import{E as l}from"./index-x7aMcd5C.js";const k={__name:"index",setup(p){const t=s(),a=()=>t.back();return(u,f)=>{const n=i,o=l;return _(),r(c,null,[e(n,{"left-text":"返回","left-arrow":"",onClickLeft:a}),e(o,{image:m,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{k as default};
import{i as v,l as w,aj as G,a as e,ak as k,ad as M,h as B}from"./index-Bo_55mFX.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var z=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),t=r=>`${f}-${r}`,l=r=>`url(#${t(r)})`,i=(r,d,D)=>e("stop",{"stop-color":r,offset:`${d}%`,"stop-opacity":D},null),n=(r,d)=>[i(r,0),i(d,100)],x=r=>[e("defs",null,[e("radialGradient",{id:t(r),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:l(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:t("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:l("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:l("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:t("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:l("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:l("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:t(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:t(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:t(3),x1:"100%",x2:"100%",y2:"100%"},[n("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:t(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:l(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:l(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:l(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:l(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:l(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:l(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:t(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:t(7)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:l(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:l(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:l(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(8)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),x("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:l(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:t(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:t(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:l(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:l(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:l(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:l(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:l(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var r;if(a.image)return a.image();const d={error:g,search:p,network:y,default:E};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const b=B(z);export{b as E};
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg"/> <link rel="icon" type="image/svg+xml" href="./vite.svg"/>
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0"> content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title>一周安排</title> <title></title>
<script type="module" crossorigin src="./assets/index-BZDKhv6O.js"></script> <script type="module" crossorigin src="./assets/index-Bo_55mFX.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-Ch9bx1Wd.css"> <link rel="stylesheet" crossorigin href="./assets/index-HDhhK1_s.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg"/> <link rel="icon" type="image/svg+xml" href="/vite.svg"/>
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0"> content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title>一周安排</title> <title></title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -12,6 +12,8 @@ export declare function getApiGetTokenInfo(config?: AxiosRequestConfig): Promise ...@@ -12,6 +12,8 @@ export declare function getApiGetTokenInfo(config?: AxiosRequestConfig): Promise
userId: string; userId: string;
cardNumber: string; cardNumber: string;
name: string; name: string;
dept_id: string;
dept_name: string;
role: string[]; role: string[];
openId: string; openId: string;
}; };
......
import { type AxiosRequestConfig } from "axios";
/**
* 初始化填报信息 --提前填写
* /api/PlanProject/PlanProjectAheadInit
*/
export declare function getApiPlanProjectPlanProjectAheadInit(params: GetApiPlanProjectPlanProjectAheadInitParams, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
planid: string;
date: string;
week: string;
fore_plan: string;
after_plan: string;
is_allday: number;
createtime: string;
is_del: number;
modify_time: string;
modifyby: string;
userid: string;
usercard: string;
username: string;
dept_id: string;
dept_name: string;
}[];
}, any>>;
export interface GetApiPlanProjectPlanProjectAheadInitParams {
begin?: string;
end?: string;
}
import request from "@/util/axios.js";
/**
* 初始化填报信息 --提前填写
* /api/PlanProject/PlanProjectAheadInit
*/
export function getApiPlanProjectPlanProjectAheadInit(params, config) {
const paramsInput = {
begin: params.begin,
end: params.end,
};
return request.get(`/api/PlanProject/PlanProjectAheadInit`, {
params: paramsInput,
...config,
});
}
export * from "./getApiPlanProjectPlanProjectInit"; export * from "./getApiPlanProjectPlanProjectInit";
export * from "./getApiPlanProjectPlanProjectAheadInit";
export * from "./postApiPlanProjectPlanProjectSave"; export * from "./postApiPlanProjectPlanProjectSave";
export * from "./postApiPlanProjectGetPlanProjectByWeekList"; export * from "./postApiPlanProjectGetPlanProjectByWeekList";
export * from "./postApiPlanProjectGetPlanProjectByDayList"; export * from "./postApiPlanProjectGetPlanProjectByDayList";
......
export * from "./getApiPlanProjectPlanProjectInit"; export * from "./getApiPlanProjectPlanProjectInit";
export * from "./getApiPlanProjectPlanProjectAheadInit";
export * from "./postApiPlanProjectPlanProjectSave"; export * from "./postApiPlanProjectPlanProjectSave";
export * from "./postApiPlanProjectGetPlanProjectByWeekList"; export * from "./postApiPlanProjectGetPlanProjectByWeekList";
export * from "./postApiPlanProjectGetPlanProjectByDayList"; export * from "./postApiPlanProjectGetPlanProjectByDayList";
......
...@@ -2,6 +2,8 @@ export interface UserJwtViewModel { ...@@ -2,6 +2,8 @@ export interface UserJwtViewModel {
userId?: string; userId?: string;
cardNumber?: string; cardNumber?: string;
name?: string; name?: string;
dept_id?: string;
dept_name?: string;
role?: string[]; role?: string[];
openId?: string; openId?: string;
} }
...@@ -32,7 +32,7 @@ export function RefreshToken(data) { ...@@ -32,7 +32,7 @@ export function RefreshToken(data) {
export function CheckLoginTest(data) { export function CheckLoginTest(data) {
//test token //test token
return requestGet(`/api/sso/test?card=10002321`, data) return requestGet(`/api/sso/test?card=asc666`, data)
} }
// 10002321
<template> <template>
<!-- 活动管理头部--> <!-- 活动管理头部-->
<div class="w-full h-[54px] flex bg-white"> <div class="w-full h-[45px] flex bg-white border-solid border-b-[1px] border-[#EBEDF0]">
<div @click="back" class="w-[13%] text-[#5589FB] h-full flex <div class="w-full h-[46px] bg-red-600">
justify-center items-center text-[14px]"> <van-nav-bar
<van-icon class="" name="arrow-left"/> :title="props.title"
返回 left-text="返回"
left-arrow
@click-left="back"
/>
</div> </div>
<div class=" w-full h-full bg-red-900">
<!-- :click-right-icon="searchFunction"-->
<van-search
v-model="search"
placeholder="请输入搜索关键词"
@clear="reset"
>
<template #left-icon></template>
<!-- <template #right-icon>-->
<!-- <van-icon @click="searchFunction" name="search"/>-->
<!-- </template>-->
</van-search>
</div>
<!-- <div @click="reset" class="w-[13%] text-[#5589FB] h-full flex justify-center text-[14px] items-center">重置</div>-->
</div> </div>
<van-search
v-model="search"
placeholder="请输入搜索关键词"
@clear="reset"
class="p-0"
>
<template #left-icon>
<van-icon name="search"/>
</template>
<!-- <template #right-icon>-->
<!-- <van-icon @click="searchFunction" name="search"/>-->
<!-- </template>-->
</van-search>
</template> </template>
<script setup> <script setup>
...@@ -38,6 +38,11 @@ const props = defineProps({ ...@@ -38,6 +38,11 @@ const props = defineProps({
functionActionFlag: { functionActionFlag: {
type: Boolean, type: Boolean,
default: false, default: false,
},
title: {
type: String,
default: '标题',
} }
}) })
const emit = defineEmits(['searchFun', 'searchPeople', 'reset']) const emit = defineEmits(['searchFun', 'searchPeople', 'reset'])
......
<template> <template>
<div class="mb-3 p-1 flex w-full h-[50px] rounded-[8px]"> <div class="mb-4 p-1 flex w-full h-[50px] rounded-[8px]">
<div class="w-1/2 h-full mt-1 ml-1"> <div class="w-1/2 h-full ">
<div @click="back" style="background: white" <div @click="back" style="background: white"
class="child flex w-[50px] h-full rounded-[5px] justify-center items-center"> class="child flex w-[45px] h-full rounded-[8px] justify-center items-center text-[18px] text-[#323233]">
<van-icon style="font-size: 22px;font-weight: bold" name="wap-home-o"/> <van-icon name="wap-home-o"/>
</div> </div>
</div> </div>
<div class="w-1/2 h-full flex justify-end items-center"> <div class="w-1/2 h-full flex justify-end items-center">
<div class="mx-2"> <div class="mx-2">
<div class="font-bold ml flex justify-end">{{ hooks.getUserInfo().name }}</div> <div class="font-bold ml text-[#323233] flex justify-end">{{ hooks.getUserInfo().name }}</div>
<div class="text-[14px] text-neutral-400">{{ hooks.getUserInfo().card_number }}</div> <div class="text-[14px] text-neutral-400">{{ hooks.getUserInfo().dept_name }}</div>
</div> </div>
<div> <div>
<van-image <van-image
......
<template> <template>
<div <div
class="text-[15px] w-full h-auto rounded-[5px] text-[#4B5563] flex-wrap flex backdrop-brightness-100 bg-white mb-3"> class=" w-full h-auto rounded-[8px] text-[#323233] text-[16px] flex-wrap flex backdrop-brightness-100 bg-white mb-3">
<div class="w-full h-11 flex p-2 items-center border-b-[1px] border-[#E5E7EB] border-solid"> <div class="w-full h-11 flex p-2 items-center justify-between border-b-[1px] border-[#dedede] border-solid">
<span :style="{background:props.data.peopleBg,color:props.data.peopleCl}">{{ props.data.username }}</span>-<span <div class="w-1/2 h-full flex items-center">
:style="{background:props.data.deptBg,color:props.data.deptCl}">{{ props.data.dept_name }}</span> <div :style="{background:props.data.peopleBg,color:props.data.peopleCl}">{{ props.data.username }}</div>
-
<div
:style="{background:props.data.deptBg,color:props.data.deptCl}">{{ props.data.dept_name }}
</div>
</div>
<div v-if="props.data.planid " class="w-1/2 h-full flex justify-end items-center">
<!-- <div v-if="props.data.planid "-->
<!-- class="w-full h-11 p-2 flex items-center justify-end border-t-[1px] border-[#dedede] border-solid">-->
<!-- <van-button class="w-20" @click="cancel($parent,props.data)" type="primary" size="small">-->
<!-- {{ props.data.attention !== void 0 ? ['关注', '取消关注'][props.data.attention] : '取消关注' }}-->
<!-- </van-button>-->
<!-- </div>-->
<van-button @click="cancel($parent,props.data)" color="#fd9700" plain
size="small">
{{ props.data.attention !== void 0 ? ['关注', '已关注'][props.data.attention] : '已关注' }}
</van-button>
</div>
</div> </div>
<div v-if="props.alldayOrMidafternoonStatus" class="w-[65%] h-auto p-2"> <div v-if="props.alldayOrMidafternoonStatus" class="w-[65%] h-auto p-2 text-[14px] ">
<div class="w-full min-h-[108px] "> <div class="w-full min-h-full flex">
<van-text-ellipsis <div class="w-[23%] h-full">全天:</div>
rows="4" <div class="w-[77%] h-full">
:content="`全天:`+props.data.after_plan" <van-text-ellipsis
expand-text="展开" rows="4"
collapse-text="收起" :content="props.data.after_plan"
/> expand-text="详细"
collapse-text="收起"
class="van-text-ellipsis__action"
/>
</div>
</div> </div>
</div> </div>
<div v-else class="w-[65%] min-h-[108px] p-2"> <div v-else class="w-[65%] min-h-[108px] p-2 text-[14px] ">
<!-- 上下午--> <!-- 上下午-->
<div class="w-full min-h-[54px] "> <div class="w-full min-h-[45px] flex ">
<van-text-ellipsis <div class="w-[23%] h-full">上午:</div>
rows="2" <div class="w-[77%] h-full">
:content="`上午:`+props.data.fore_plan" <van-text-ellipsis
expand-text="展开" rows="2"
collapse-text="收起" :content="props.data.fore_plan"
/> expand-text="详细"
collapse-text="收起"
/>
</div>
</div> </div>
<div class="w-full min-h-[54px] border-solid border-t-[1px] text-[#4B5563]"> <div class="w-full min-h-[45px] flex ">
<van-text-ellipsis <div class="w-[23%] h-full">上午:</div>
rows="2" <div class="w-[77%] h-full">
:content="`下午:`+props.data.after_plan" <van-text-ellipsis
expand-text="展开" rows="2"
collapse-text="收起" :content="props.data.after_plan"
/> expand-text="详细"
collapse-text="收起"
/>
</div>
</div> </div>
</div> </div>
<!-- 全天--> <!-- 全天-->
<div <div
class="w-[35%] flex items-center flex-wrap content-center min-h-[108px] border-[#E5E7EB] border-l-[1px] border-dashed p-2"> class="w-[35%] flex items-center min-h-[108px] ">
<p class="w-full text-[14px]">{{ dayjs(props.data.date).format('YYYY年MM月DD日') }}</p> <div class="flex content-center flex-wrap w-full h-[80%] border-[#dedede] border-l-[1px] border-dashed p-2 pr-0">
<p class="w-full ">{{ props.data.week }}</p> <p class="w-full text-[14px]">{{ dayjs(props.data.date).format('YYYY年MM月DD日') }}</p>
<p class="w-full ">{{ props.data.week }}</p>
</div>
</div> </div>
<div v-if="props.data.planid "
class="w-full h-11 p-2 flex items-center justify-end border-t-[1px] border-[#E5E7EB] border-solid">
<van-button class="w-20" @click="cancel($parent,props.data)" type="primary" size="small">
{{ props.data.attention !== void 0 ? ['关注', '取消关注'][props.data.attention] : '取消关注' }}
</van-button>
</div>
</div> </div>
</template> </template>
...@@ -112,5 +136,8 @@ function cancel(parent, data) { ...@@ -112,5 +136,8 @@ function cancel(parent, data) {
} }
</script> </script>
<style scoped> <style scoped>
/deep/ .van-text-ellipsis__action {
--van-text-ellipsis-action-color: var(--van-white);
--van-text-ellipsis-line-height: 30;
}
</style> </style>
<template> <template>
<div class="w-full h-[64px] z-0 shadow shadow-gray-600 flex items-center justify-evenly"> <div class="w-full h-[64px] flex items-center justify-evenly">
<slot name="default"/> <slot name="default"/>
</div> </div>
</template> </template>
......
<template> <template>
<!-- 底部分页--> <!-- 底部分页-->
<div class=" w-full h-[55px] page"> <div class=" w-full h-[55px] page bg-white">
<van-pagination @change="pageChange" v-model="currentPage" :total-items="props.total" mode="simple"/> <van-pagination @change="pageChange" v-model="currentPage" :total-items="props.total" mode="simple"/>
</div> </div>
</template> </template>
......
<template> <template>
<van-popup <van-popup
round
v-model:show="props.show" v-model:show="props.show"
position="bottom" position="bottom"
:style="{ height: props.height+'%' }" :style="{ height: props.height+'%' }"
:close-on-click-overlay="false" :close-on-click-overlay="false"
:closeable="true"
@click-close-icon="closePopUp"
> >
<!-- @click-close-icon="closePopUp"--> <!-- @click-close-icon="closePopUp"-->
<template #default> <template #default>
...@@ -26,11 +29,11 @@ const props = defineProps({ ...@@ -26,11 +29,11 @@ const props = defineProps({
default: 90 default: 90
} }
}) })
// const emit = defineEmits(['actionPopUp']) const emit = defineEmits(['actionPopUp'])
//
// function closePopUp() { function closePopUp() {
// emit('actionPopUp', false) emit('actionPopUp', false)
// } }
</script> </script>
......
<template> <template>
<div class="w-full min-h-[120px] rounded-[5px] text-[#4B5563] p-2 text-[15px] flex bg-white mb-3"> <div class="w-full min-h-[110px] rounded-[10px] text-white p-3 text-[15px] flex bg-[#fd9700] mb-1">
<div v-if="props.data.is_allday == 0 " class="w-[65%] min-h-full"> <div v-if="props.data.is_allday == 0 " class="w-[65%] min-h-full text-[14px]
">
<div class="w-full min-h-1/2 "> <div class="w-full min-h-[45px] flex ">
<van-text-ellipsis <div class="w-[23%] h-full">上午:</div>
rows="2" <div class="w-[77%] h-full">
:content="`上午:`+props.data.fore_plan" <van-text-ellipsis
expand-text="展开" rows="2"
collapse-text="收起" :content="props.data.fore_plan"
/> expand-text="详细"
collapse-text="收起"
/>
</div>
</div> </div>
<div class="w-full min-h-1/2 border-solid border-t-[1px] border-white"> <div class="w-full min-h-[45px] flex ">
<van-text-ellipsis <div class="w-[23%] h-full">上午:</div>
rows="2" <div class="w-[77%] h-full">
:content="`下午:`+props.data.after_plan" <van-text-ellipsis
expand-text="展开" rows="2"
collapse-text="收起" :content="props.data.after_plan"
/> expand-text="详细"
collapse-text="收起"
/>
</div>
</div> </div>
</div> </div>
<div v-else class="w-[65%] min-h-full"> <div v-else class="w-[65%] min-h-full">
<div class="w-full min-h-full "> <div class="w-full min-h-full flex">
<van-text-ellipsis <div class="w-[23%] h-full">全天:</div>
rows="4" <div class="w-[77%] h-full">
:content="`全天:`+props.data.after_plan" <van-text-ellipsis
expand-text="展开" rows="4"
collapse-text="收起" :content="props.data.after_plan"
/> expand-text="详细"
collapse-text="收起"
/>
</div>
</div> </div>
</div> </div>
<div <div
class="w-[35%] flex items-center flex-wrap content-center min-h-full border-[#E5E7EB] border-l-[1px] border-dashed p-1 pl-2"> class="w-[35%] flex items-center flex-wrap content-center min-h-full border-[#E5E7EB] border-l-[1px] border-dashed p-1 pl-2">
<p class="w-full text-[14px]">{{ dayjs(props.data.date).format('YYYY年MM月DD日') }}</p> <p class="w-full text-[14px]">{{ dayjs(props.data.date).format('YYYY年M月DD日') }}</p>
<p class="w-full ">{{ props.data.week }}</p> <p class="w-full ">{{ props.data.week }}</p>
</div> </div>
</div> </div>
......
<template> <template>
<div class="publicContainerNoPadding"> <div class="publicContainerNoPadding relative">
<!-- <childrenIndexHeader path="/welcome" title="人员授权"/>--> <!-- <childrenIndexHeader path="/welcome" title="人员授权"/>-->
<header-input ref="headerInput" @searchFun="search" @reset="reset" path="/welcome"></header-input> <header-input class="sticky top-0" title="人员授权列表" ref="headerInput" @searchFun="search" @reset="reset"
path="/welcome"></header-input>
<!-- <childrenIndexHeader path="/welcome"></childrenIndexHeader>-->
<div class="w-full h-[calc(100%-111px)] p-3 overflow-y-auto "> <div class="w-full h-[calc(100%-155px)] p-3 overflow-y-auto ">
<van-empty v-if="init.data.length===[]" description="暂无授权名单,请通过搜索添加"/> <van-empty v-if="init.data.length===[]" description="暂无授权名单,请通过搜索添加"/>
<div v-for="(item,index) in init.data" :key="index" <div v-for="(item,index) in init.data" :key="index"
class="w-full min-h-[90px] flex rounded-[5px] p-2 bg-white mb-3"> class="w-full min-h-[90px] flex rounded-[10px] p-2 bg-white mb-3">
<div class="w-[80%] h-full "> <div class="w-[80%] h-full ">
<div class="w-full h-[40px] p-1 flex items-center ">{{ item.username }}({{ item.usercard }})</div> <div class="w-full h-[40px] p-1 flex items-center text-[17px]">{{ item.username }}
({{ item.usercard }})
</div>
<div class="w-full min-h-1/2 p-1 "> <div class="w-full min-h-1/2 p-1 ">
<van-button style=" margin: 5px 5px 5px 0;" v-for="(ite,inde) in item.dept_list" :key="inde" <van-button style="padding: 6px; margin: 5px 5px 5px 0;color: #1989f9;border-color: #1989f9;"
v-for="(ite,inde) in item.dept_list" :key="inde"
plain hairline plain hairline
size="small" size="small"
type="primary">{{ ite.name }} type="primary">{{ ite.name }}
...@@ -18,7 +23,7 @@ ...@@ -18,7 +23,7 @@
</div> </div>
</div> </div>
<div @click="addOrEdit(Number(item.userroleid !== null),item)" <div @click="addOrEdit(Number(item.userroleid !== null),item)"
class="w-[20%] flex justify-center items-center text-blue-500"> class="w-[20%] flex justify-center items-center text-[#1989f9] ">
{{ ['添加', '编辑'][Number(item.userroleid !== null)] }} {{ ['添加', '编辑'][Number(item.userroleid !== null)] }}
</div> </div>
</div> </div>
...@@ -26,28 +31,32 @@ ...@@ -26,28 +31,32 @@
<!-- <loading class="ld" :show="init.loading"/>--> <!-- <loading class="ld" :show="init.loading"/>-->
<!-- <span v-if="!init.loading" class="ccFlex w-full h-5 text-[14px] text-gray-400">暂无数据</span>--> <!-- <span v-if="!init.loading" class="ccFlex w-full h-5 text-[14px] text-gray-400">暂无数据</span>-->
</div> </div>
<page ref="pageRef" :total="init.total" @pageChange="pageChange"/> <page class="absolute bottom-0" ref="pageRef" :total="init.total" @pageChange="pageChange"/>
</div> </div>
<!-- 编辑权限--> <!-- 编辑权限-->
<popup :show="init.select.showPopup" :height="80"> <popup :show="init.select.showPopup" :height="80" @actionPopUp="()=>init.select.showPopup =false">
<template #content> <template #content>
<div class="w-full h-[calc(100%-64px)] bg-gray-200 overflow-y-auto" :key="init.calendarKey"> <div class="w-full h-[45px] bg-white flex justify-center items-center">
<span class="text-5 ">人员权限添加详情</span>
</div>
<div class="w-full h-3 bg-gray-200"></div>
<div class="w-full h-[calc(100%-121px)] bg-gray-200 overflow-y-auto" :key="init.calendarKey">
<div class="w-full h-auto bg-white "> <div class="w-full h-auto bg-white ">
<div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap"> <div class="w-full min-h-[110px] p-4 flex justify-between text-[17px] flex-wrap">
<div class="h-[30px] w-[20%]">姓名:</div> <div class="h-[30px] w-[15%]">姓名:</div>
<div class="h-[30px] w-[80%]">{{ init.check.username }}</div> <div class="h-[30px] w-[85%]">{{ init.check.username }}</div>
<div class="h-[30px] w-[20%]">工号:</div> <div class="h-[30px] w-[15%]">工号:</div>
<div class="h-[30px] w-[80%]">{{ init.check.usercard }}</div> <div class="h-[30px] w-[85%]">{{ init.check.usercard }}</div>
<div class="h-[30px] w-[20%]">部门:</div> <div class="h-[30px] w-[15%]">部门:</div>
<div class="h-[30px] w-[80%]">{{ init.check.dept }}</div> <div class="h-[30px] w-[85%]">{{ init.check.dept }}</div>
<div class="h-[30px] w-[20%]">岗位:</div> <div class="h-[30px] w-[15%]">岗位:</div>
<div class="h-[30px] w-[80%]">{{ init.check.position_name }}</div> <div class="h-[30px] w-[85%]">{{ init.check.position_name }}</div>
</div> </div>
</div> </div>
<div class="w-full h-3"></div> <div class="w-full h-3"></div>
<div class="w-full h-auto bg-white "> <div class="w-full h-auto bg-white ">
<div class="w-full h-10 p-4 pb-0 font-bold">操作权限</div> <div class="w-full h-10 p-4 pb-0 ">分管权限</div>
<div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap"> <div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap">
<van-space wrap> <van-space wrap>
<!-- color:#FFFFFF; #1989FA--> <!-- color:#FFFFFF; #1989FA-->
...@@ -56,11 +65,12 @@ ...@@ -56,11 +65,12 @@
:style="{ :style="{
margin: '5px', margin: '5px',
padding: '15px !important' , padding: '15px !important' ,
height: '40px', borderColor:'#1989f9',
height: '30px',
background:item.bg, background:item.bg,
color:item.cl, color:item.cl,
}" }"
size="normal" size="small"
plain hairline plain hairline
type="primary">{{ item.name }} type="primary">{{ item.name }}
</van-button> </van-button>
...@@ -70,7 +80,7 @@ ...@@ -70,7 +80,7 @@
</div> </div>
<div class="w-full h-3"></div> <div class="w-full h-3"></div>
<div class="w-full h-auto bg-white "> <div class="w-full h-auto bg-white ">
<div class="w-full h-10 p-4 pb-0 font-bold">分管部门</div> <div class="w-full h-10 p-4 pb-0 ">分管部门</div>
<div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap"> <div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap">
<van-space wrap> <van-space wrap>
<!-- background:#1989FA;color:#FFFFFF--> <!-- background:#1989FA;color:#FFFFFF-->
...@@ -78,26 +88,31 @@ ...@@ -78,26 +88,31 @@
v-for="(item,index) in init.comment.dept" v-for="(item,index) in init.comment.dept"
:key="index" :key="index"
:style="{ :style="{
borderColor:'#1989f9',
margin: '5px', margin: '5px',
padding: '15px !important' , padding: '15px !important' ,
height: '40px', height: '30px',
background:item.bg, background:item.bg,
color:item.cl, color:item.cl,
}" }"
size="normal" size="small"
plain hairline plain hairline
type="primary">{{ item.name }} type="primary">{{ item.name }}
</van-button> </van-button>
</van-space> </van-space>
</div> </div>
</div> </div>
<div class="w-full h-3 bg-gray-200"></div>
</div> </div>
<noPageFooter> <noPageFooter>
<template v-slot:default> <template v-slot:default>
<van-button type="primary" round class="w-[90px]" @click="save">确定</van-button>
<van-button round class="w-[90px]" @click="init.select.showPopup = false">取消</van-button> <div class="w-full h-full flex justify-between items-center p-3">
<van-button round class="w-[30%]" @click="init.select.showPopup = false">取消</van-button>
<van-button type="primary" round class="w-[64%]" @click="save">确定</van-button>
</div>
</template> </template>
</noPageFooter> </noPageFooter>
......
<template> <template>
<div class="publicContainerNoPadding"> <div class="publicContainerNoPadding">
<childrenIndexHeader path="/welcome" title="分管填报记录查看"></childrenIndexHeader> <childrenIndexHeader path="/welcome" title="分管填报记录查看"></childrenIndexHeader>
<div class="w-full h-[50px] flex justify-between items-center p-2"> <div class="w-full h-[50px] flex bg-white justify-between items-center p-2">
<div @click="changeView($refs)" <div @click="changeView($refs)"
class="w-24 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100 "> class="w-24 h-8 flex text-[#4B5563] justify-center items-center border-solid border-[1px] active:bg-blue-100 ">
切换{{ init.switchView.show ? '周' : '天' }}视图 切换{{ init.switchView.show ? '周' : '天' }}视图
...@@ -88,15 +88,38 @@ ...@@ -88,15 +88,38 @@
</div> </div>
</div> </div>
<!-- 高级查询 --> <!-- 高级查询 -->
<popup :show="init.select.showPopup" :height="80"> <popup :show="init.select.showPopup" :height="80" @actionPopUp="actionPopUp">
<template #content> <template #content>
<div class="w-full h-[calc(100%-64px)] bg-gray-200 overflow-y-auto" :key="init.calendarKey"> <van-calendar v-if="init.switchView.show"
<div class="w-full h-3"></div> :formatter="formatter"
:min-date="new Date(miniDate1)"
v-model:show="init.date.show"
style="height:calc(100% - 64px)"
@confirm="onConfirm($event,'day')"/>
<van-calendar v-else :formatter="formatter"
:min-date="new Date(miniDate1)"
:max-range="5"
range-prompt="最多选择 5 天"
type="range"
v-model:show="init.date.show"
style="height:calc(100%-64px)"
@confirm="onConfirm($event,'week')"/>
<div class="w-full h-[45px] bg-white flex justify-center items-center">
<span class="text-5 text-[#8D8D8D]">高级查询</span>
</div>
<div class="w-full h-[calc(100%-109px)] bg-gray-200 overflow-y-auto " :key="init.calendarKey">
<van-cell inset title="选择日期" <div class="w-full h-3"></div>
<van-cell is-link class="w-full h-[45px] bg-white flex items-center "
:value="[init.search.dateWeek,init.search.dateDay][Number(init.switchView.show)]" :value="[init.search.dateWeek,init.search.dateDay][Number(init.switchView.show)]"
@click="init.date.show = true"/> @click="init.date.show = true">
<template #title>
<span class="text-[#8D8D8D]">选择日期</span>
</template>
</van-cell>
<!-- <popup v-if="init.switchView.show" :show="init.date.show" :height="80">--> <!-- <popup v-if="init.switchView.show" :show="init.date.show" :height="80">-->
...@@ -116,25 +139,10 @@ ...@@ -116,25 +139,10 @@
<!-- </template>--> <!-- </template>-->
<!-- </popup>--> <!-- </popup>-->
<van-calendar v-if="init.switchView.show"
:formatter="formatter"
:min-date="new Date(miniDate1)"
v-model:show="init.date.show"
style="height:calc(100%-64px)"
@confirm="onConfirm($event,'day')"/>
<van-calendar v-else :formatter="formatter"
:min-date="new Date(miniDate1)"
:max-range="5"
range-prompt="最多选择 5 天"
type="range"
v-model:show="init.date.show"
style="height:calc(100%-64px)"
@confirm="onConfirm($event,'week')"/>
<div class="w-full h-3"></div> <div class="w-full h-3"></div>
<div class="w-full h-auto bg-white "> <div class="w-full h-auto bg-white ">
<div class="w-full h-10 p-4 pb-0 font-bold">分管部门</div> <div class="w-full h-10 p-4 pb-0 text-[#8D8D8D]">分管部门</div>
<div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap"> <div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap">
<van-space wrap> <van-space wrap>
<!-- background:#1989FA;color:#FFFFFF--> <!-- background:#1989FA;color:#FFFFFF-->
...@@ -148,8 +156,8 @@ ...@@ -148,8 +156,8 @@
background:item.bg, background:item.bg,
color:item.cl, color:item.cl,
}" }"
class="rounded-[18px]"
size="normal" size="large"
plain hairline plain hairline
type="primary">{{ item.name }} type="primary">{{ item.name }}
</van-button> </van-button>
...@@ -158,20 +166,21 @@ ...@@ -158,20 +166,21 @@
</div> </div>
<div class="w-full h-3"></div> <div class="w-full h-3"></div>
<div class="w-full h-auto bg-white "> <div class="w-full h-auto bg-white ">
<div class="w-full h-10 p-4 pb-0 font-bold">中层干部</div> <div class="w-full h-10 p-4 pb-0 text-[#8D8D8D]">中层干部</div>
<div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap"> <div class="w-full min-h-[110px] p-4 flex justify-between flex-wrap">
<van-space wrap> <van-space wrap>
<!-- color:#FFFFFF; #1989FA--> <!-- color:#FFFFFF; #1989FA-->
<van-button @click="actionUser(item)" v-for="(item,index) in init.comment.user" <van-button @click="actionUser(item)" v-for="(item,index) in init.comment.user"
:style="{ :style="{
margin: '5px', margin: '5px',
padding: '15px !important' , padding: '15px !important' ,
height: '40px', height: '40px',
background:item.bg, background:item.bg,
color:item.cl, color:item.cl,
}" }"
size="normal" size="large"
plain hairline plain hairline
type="primary">{{ item.name }} type="primary">{{ item.name }}
</van-button> </van-button>
...@@ -181,11 +190,11 @@ ...@@ -181,11 +190,11 @@
</div> </div>
</div> </div>
<div class="w-full h-[64px] shadow shadow-gray-600 flex items-center justify-evenly"> <div class="w-full h-[64px] flex items-center justify-evenly">
<van-button type="primary" round class="w-[90px]" @click="reset($refs)">重置</van-button>
<van-button type="primary" round class="w-[90px]" @click="search($refs)">查询</van-button> <van-button round class="w-[30%]" @click="cancel">取消</van-button>
<van-button round class="w-[90px]" @click="cancel">取消</van-button> <van-button type="primary" round plain class="w-[30%]" @click="reset($refs)">重置</van-button>
1 <van-button type="primary" round class="w-[30%]" @click="search($refs)">查询</van-button>
</div> </div>
<!-- <noPageFooter>--> <!-- <noPageFooter>-->
<!-- <template v-slot:default>--> <!-- <template v-slot:default>-->
...@@ -266,7 +275,10 @@ const init = reactive({ ...@@ -266,7 +275,10 @@ const init = reactive({
show: true, show: true,
} }
}) })
function actionPopUp(e) {
//关闭popUp
init.select.showPopup = e
}
function onConfirm(value, key) { function onConfirm(value, key) {
//高级筛选确定日期 //高级筛选确定日期
let strategy = { let strategy = {
......
此差异已折叠。
<template> <template>
<div class="publicContainerNoPadding"> <div class="publicContainerNoPadding">
<childrenIndexHeader path="/welcome" title="填报工作安排"/> <childrenIndexHeader path="/welcome" title="工作安排填报"/>
<div class="w-full h-[10px]"></div> <!-- <div class="w-full h-[10px]"></div>-->
<div class="w-full h-[calc(100%-120px)] p-2 overflow-y-auto"> <div class="w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto">
<filling-card <filling-card
ref="saveRef" ref="saveRef"
:show="init.fillInWork.show" :show="init.fillInWork.show"
...@@ -11,9 +11,12 @@ ...@@ -11,9 +11,12 @@
</div> </div>
<noPageFooter> <noPageFooter>
<template v-slot:default> <template v-slot:default>
<van-button v-if="init.role == 1" type="primary" round class="w-[120px]" @click="addDate">添加日期 <div class="w-full h-full flex items-center justify-between p-3">
</van-button> <van-button style="border-radius: 8px" type="primary" class="w-[28%] " plain @click="save">保存</van-button>
<van-button type="success" round class="w-[120px]" @click="save">保存</van-button> <van-button style="border-radius: 8px" v-if="init.role == 1" type="primary" class="w-[70%] " @click="addDate">
添加日期
</van-button>
</div>
</template> </template>
</noPageFooter> </noPageFooter>
</div> </div>
......
...@@ -58,3 +58,9 @@ export * as guihuan from './icon/归还.png' ...@@ -58,3 +58,9 @@ export * as guihuan from './icon/归还.png'
export * as zisechangbeijing from './icon/zisechangbeijing.png' export * as zisechangbeijing from './icon/zisechangbeijing.png'
export * as warning from './icon/warning.png' export * as warning from './icon/warning.png'
export * as icon01 from './icon/图标01.png'
export * as icon02 from './icon/图标02.png'
export * as icon03 from './icon/图标03.png'
export * as icon04 from './icon/图标04.png'
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
} }
.publicContainer { .publicContainer {
@apply w-screen h-screen bg-gray-100 box-border p-2 @apply w-screen h-screen bg-[#ededed] box-border p-4
} }
.publicContainerNoPadding { .publicContainerNoPadding {
@apply w-screen h-screen bg-gray-100 box-border @apply w-screen h-screen bg-[#ededed] box-border
} }
.container { .container {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或