qdt-admin-layout 1.1.28 → 1.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.left-out-enter-active,.left-out-leave-active,.right-out-enter-active,.right-out-leave-active{transition:transform .2s,opacity .2s}.right-out-enter{opacity:0;transform:translateX(-30px)}.left-out-enter,.right-out-leave-to{opacity:0;transform:translateX(30px)}.left-out-leave-to{opacity:0;transform:translateX(-30px)}.breadcrumb-enter-active,.breadcrumb-leave-active,.breadcrumb-move{transition:transform .5s,opacity .5s}.breadcrumb-enter,.breadcrumb-leave-active{opacity:0;transform:translateX(20px)}.breadcrumb-leave-active{position:absolute}.sidebar-enter-active{transition:all .2s}.sidebar-enter,.sidebar-leave-active{opacity:0;transform:translateY(30px) skewY(10deg)}.sidebar-leave-active{position:absolute}.el-admin-layout{display:grid;grid-template-columns:min-content 1fr;grid-template-rows:min-content min-content 1fr;height:100%;overflow:hidden;width:100%}.el-admin-layout>header{grid-column-end:3;grid-column-start:1}.el-admin-layout>nav{grid-column:2/3}.el-admin-layout>aside{display:flex;grid-row-end:4;grid-row-start:2}.el-admin-layout>main{grid-area:3/2/4/3}.el-admin-layout.left-right>header{grid-column-start:2}.el-admin-layout.left-right>aside{grid-row-start:1;z-index:11}.sidebar{display:flex;flex-direction:column;height:100%;transition:width .2s;width:208px}.sidebar>.el-menu{flex:1}.sidebar.collapse{width:160px}.sidebar-drawer.behind-header{top:60px}.sidebar-drawer>.el-drawer__body{height:100%}.aside{z-index:11}.aside .sidebar-footer{border-top-style:solid;border-top-width:1px}.aside .hamburger{cursor:pointer;font-size:16px;height:48px;line-height:48px;padding-left:26px}.aside.light .logo-container{color:#25c7b7}.aside.light .root-sidebar{background-color:#fff;border-right-color:#e4e7ed}.aside.light .sidebar-footer{border-top-color:#e4e7ed}.aside.light .hamburger{color:#303133}.aside.dark,.aside.dark .el-drawer{background-color:#192524}.aside.dark .logo-container{color:#fff}.aside.dark .sidebar-footer{border-top-color:#161e2c}.aside.dark .hamburger{color:#ffffffa6}.header{align-items:center;box-shadow:0 4px 4px -4px #00000080;display:flex;flex-wrap:nowrap;height:60px;justify-content:space-between;padding-left:12px;z-index:10}.header-center,.header-left,.header-right{height:100%}.header-left,.header-right{display:flex}.header-center{flex:1}.header .header-icon{font-size:18px;padding:0}.header .header-item{align-items:center;cursor:pointer;display:flex;padding:0 8px}.header .logo-container{min-width:196px;padding-left:14px;width:auto}.header .user-dropdown-reference{align-items:center;cursor:pointer;display:flex;height:100%;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}.header .user-dropdown-reference .username{color:#666;font-size:15px;padding:0 7px}.header .user-dropdown-reference .time{letter-spacing:2px}.header .user-dropdown-reference .shu{font-size:15px;padding:0 13px}.header .user-dropdown-reference .exit{padding-left:7px;padding-right:20px}.header .download-trigger{align-items:center;cursor:pointer;display:inline-flex;gap:4px;padding:5px 8px;position:relative}.user-dropdown-reference .el-popover{left:65%!important;margin:0!important;top:140%;transform:translateX(-50%)!important;z-index:9999!important}.header.light{background:#fff}.header.light .logo-container{color:#333}.header.light .header-item{color:#fff}.header.light .header-item:hover{background-color:rgba(0,0,0,.025)}.header.dark{background-color:#1f293d}.header.dark .logo-container{color:#fff}.header.dark .header-item{color:#ffffffd9}.header.dark .header-item:hover{background-color:#28344e}.header-dropdown.dark{background-color:#1f293d;border:none}.header-dropdown.dark .el-dropdown-menu__item{color:#ffffffa6}.header-dropdown.dark .el-dropdown-menu__item:focus,.header-dropdown.dark .el-dropdown-menu__item:hover{background-color:initial;color:#fff}.page-main{overflow:hidden;position:relative}.page-iframe,.page-main{background-color:#f0f2f5}.page-iframe{bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.page-content{display:flex;flex-direction:column;height:100%;overflow:auto}.page-header{align-items:center;box-sizing:border-box;display:flex;flex-shrink:0;height:44px;padding:12px 24px}.page-header+.page-view{margin-top:0!important}.page-footer{box-sizing:border-box;height:64px;padding:24px;text-align:center}.page-view{flex:1;margin:24px}.tags-view{background-color:#f0f2f5;border-bottom:1px solid #e6e8ea;height:32px;overflow:hidden}.tags-view .home-class{font-size:20px}.tags-view-item{align-items:center;background-color:#f2f4f5;border-right:1px solid #e6e8ea;box-sizing:border-box;color:#909399;cursor:pointer;display:flex;flex-shrink:0;font-size:12px;padding:0 12px;user-select:none}.tags-view-item:last-of-type{margin-right:8px}.tags-view-item.active{border-bottom:1px solid #25c7b7;color:#25c7b7}.tags-view-item .el-icon-error{color:#d9dadd;font-size:14px;margin-left:.5em}.tags-view-item .el-icon-error:hover{color:#25c7b7}.breadcrumb{font-size:14px;white-space:nowrap}.breadcrumb-separator{color:#c0c4cc;margin:0 9px}.breadcrumb-item{display:inline-block}.breadcrumb-item:not(:last-child) .breadcrumb-inner{color:#606266;cursor:pointer;transition:color .2s cubic-bezier(.645,.045,.355,1)}.breadcrumb-item:not(:last-child) .breadcrumb-inner:hover{color:#25c7b7}.breadcrumb-item:last-child .breadcrumb-inner{color:#909399}.context-menu{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px #0000001f,0 0 6px #0006;color:#606266;font-size:12px;margin:0;max-height:50vh;overflow-x:hidden;overflow-y:auto;padding:5px 0;position:fixed;z-index:2000}.context-menu::-webkit-scrollbar{display:none}.context-menu-item{cursor:pointer;list-style-type:none;margin:0;padding:7px 16px;white-space:nowrap}.context-menu-item:hover{color:#25c7b7}.hamburger.collapsed>i{transform:rotate(180deg)}.logo-container{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;height:155px;text-align:center;width:100%}.logo-container img{height:30px;margin:auto}.logo-container img+h1{margin-left:12px}.logo-container h1{font-size:18px;font-weight:500;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-display{border-radius:2px;-webkit-box-shadow:0 2px 12px 0 #00000026;box-shadow:0 2px 12px 0 #00000026;display:flex;margin-left:5px}.menu-display ul:last-child{border:none}.title-boder{border-bottom:1px solid #e4e7ed;height:38px}.el-menu--collapse .el-submenu{height:60px!important}.el-menu{width:100%}.el-menu .menu-icon{color:inherit;font-size:32}.el-menu .el-menu-item.is-active,.el-menu .is-active>.el-submenu__title{background-color:#25c7ba;color:#fff!important}.el-menu--popup{margin-bottom:5px;margin-top:5px;max-height:88vh;min-width:160px;overflow-y:auto;padding:0}.el-menu--popup .popover-menu__title{border-bottom-style:solid;border-bottom-width:1px;cursor:auto;font-size:14px;height:56px;line-height:56px;padding:0 26px}@media(min-width:500px){.el-menu::-webkit-scrollbar{display:none}}.el-menu-item:not(.popover-menu__title) .menu-icon,.el-submenu__title .menu-icon{transition:transform .1s}.el-menu-item:not(.popover-menu__title):hover .menu-icon,.el-submenu__title:hover .menu-icon{transform:scale(1.2)}.el-menu--popup{border-radius:0;box-shadow:none}.el-menu--popup .popover-menu__title{border:none}.el-menu--popup .el-menu-item,.el-menu--popup .popover-menu__title{height:40px!important;line-height:40px!important}.el-menu-item,.el-submenu__title{overflow:hidden;padding-left:26px;padding-right:32px;text-overflow:ellipsis}.el-menu-item:focus,.el-menu-item:hover,.el-submenu__title:focus,.el-submenu__title:hover{background-color:initial}.el-menu-item i,.el-submenu__title i{color:inherit}.el-submenu__icon-arrow{margin-top:-4px}.el-menu--vertical.el-menu{overflow-y:auto}.el-menu--vertical.el-menu--collapse .el-submenu__title{padding:5% 0!important}.el-menu--horizontal.el-menu.hide-collapse-icon>.el-submenu>.el-submenu__title>.el-submenu__icon-arrow,.el-menu--vertical.el-menu--collapse .el-submenu>.el-submenu__title>.el-submenu__icon-arrow{display:none}.el-menu--horizontal.el-menu>.el-menu-item,.el-menu--horizontal.el-menu>.el-submenu>.el-submenu__title{height:40px;line-height:40px}.el-menu--horizontal.el-menu>.el-menu-item:hover,.el-menu--horizontal.el-menu>.el-submenu>.el-submenu__title:hover{border-bottom:2px solid #25c7b7}.el-menu--horizontal.el-menu .el-menu-item>span,.el-menu--horizontal .el-menu .el-menu-item>span,.el-menu--horizontal.el-menu .el-submenu__title>span,.el-menu--horizontal .el-menu .el-submenu__title>span{max-width:100px}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-submenu__title,.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus,.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover,.el-menu--horizontal>.el-submenu .el-submenu__title:hover{background-color:initial!important}.collapse .el-submenu__title{height:100%;line-height:normal!important;text-align:center}.el-menu--light.el-menu--vertical .el-menu-item,.el-menu--light.el-menu--vertical .el-submenu__title{color:#6d6e6e}.el-menu--light.el-menu--vertical .el-menu-item:hover,.el-menu--light.el-menu--vertical .el-submenu__title:hover{color:#fff}.el-menu--light.el-menu--vertical .el-menu--popup .popover-menu__title{border-bottom-color:#e4e7ed;color:#6d6e6e}.el-menu--light.el-menu--vertical:not(.el-menu--collapse) .el-menu-item:after{border-right:3px solid #25c7b7;content:"";height:80%;opacity:0;position:absolute;right:0;top:10%;transform:scaleY(0);transition:transform .15s cubic-bezier(.645,.045,.355,1)}.el-menu--light.el-menu--vertical:not(.el-menu--collapse) .el-menu-item.is-active:before{content:"";height:80%;left:0;position:absolute;top:10%;width:100%}.el-menu--light.el-menu--vertical:not(.el-menu--collapse) .el-menu-item.is-active:after{opacity:1;transform:scaleY(1)}.el-menu--light.el-menu--vertical:not(.el-menu--collapse) .el-menu--popup .el-menu-item:after{display:none}.el-menu--light.el-menu--horizontal .el-menu-item,.el-menu--light.el-menu--horizontal .el-submenu__title{color:#6d6e6e}.el-menu--light.el-menu--horizontal .el-menu-item:hover,.el-menu--light.el-menu--horizontal .el-submenu__title:hover{color:#25c7b7}.el-menu--dark.el-menu--vertical.el-menu,.el-menu--dark.el-menu--vertical>.el-menu{background-color:#192524}.el-menu--dark.el-menu--vertical .el-menu-item,.el-menu--dark.el-menu--vertical .el-submenu__title{color:#ffffffa6}.el-menu--dark.el-menu--vertical .el-menu-item:hover,.el-menu--dark.el-menu--vertical .el-submenu__title:hover{color:#fff}.el-menu--dark.el-menu--vertical .el-menu--popup .popover-menu__title{border-bottom-color:#161e2c;color:#fff}.el-menu--dark.el-menu--vertical .el-menu--inline{background-color:#fff}.el-menu--dark.el-menu--vertical .el-menu--inline .el-menu-item{color:#6d6e6e}.el-menu--dark.el-menu--vertical .el-menu--inline .el-menu-item:hover{color:#25c7ba}.el-menu--dark.el-menu--horizontal.el-menu,.el-menu--dark.el-menu--horizontal>.el-menu{background-color:#1f293d}.el-menu--dark.el-menu--horizontal .el-menu-item,.el-menu--dark.el-menu--horizontal .el-submenu__title{color:#ffffffa6}.el-menu--dark.el-menu--horizontal .el-menu-item:hover,.el-menu--dark.el-menu--horizontal .el-submenu__title:hover{color:#fff}.el-menu--dark.el-menu--horizontal.el-menu>.el-menu-item,.el-menu--dark.el-menu--horizontal.el-menu>.el-submenu>.el-submenu__title{border-bottom:none!important}.horizontal-scroller{display:flex;height:100%;overflow-x:auto;overflow-y:hidden;position:relative;white-space:nowrap}.horizontal-scroller::-webkit-scrollbar{display:none}@media only screen and (max-width:500px){.hide-on-mobile{display:none!important}}.max-view-height{max-height:calc(100vh - 48px)}.max-view-height.full{height:100vh}.has-header .max-view-height{max-height:calc(100vh - 108px)}.has-tags-view .max-view-height{max-height:calc(100vh - 80px)}.has-page-header .max-view-height{max-height:calc(100vh - 92px)}.has-page-footer .max-view-height{max-height:calc(100vh - 112px)}.has-header.has-tags-view .max-view-height{max-height:calc(100vh - 140px)}.has-header .has-page-header .max-view-height{max-height:calc(100vh - 152px)}.has-header .has-page-footer .max-view-height{max-height:calc(100vh - 172px)}.has-header.has-tags-view .has-page-header .max-view-height{max-height:calc(100vh - 184px)}.has-header.has-tags-view .has-page-footer .max-view-height{max-height:calc(100vh - 204px)}.has-header.has-tags-view .has-page-header.has-page-footer .max-view-height{max-height:calc(100vh - 248px)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("ELEMENT"),require("Vue")):"function"===typeof define&&define.amd?define(["ELEMENT","Vue"],t):"object"===typeof exports?exports["ElAdminLayout"]=t(require("ELEMENT"),require("Vue")):e["ElAdminLayout"]=t(e["ELEMENT"],e["Vue"])})("undefined"!==typeof self?self:this,(function(e,t){return(()=>{"use strict";var n={568:e=>{function t(){return t=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var s in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},t.apply(this,arguments)}var n=["attrs","props","domProps"],s=["class","style","directives"],i=["on","nativeOn"],o=function(e){return e.reduce((function(e,o){for(var a in o)if(e[a])if(-1!==n.indexOf(a))e[a]=t({},e[a],o[a]);else if(-1!==s.indexOf(a)){var l=e[a]instanceof Array?e[a]:[e[a]],u=o[a]instanceof Array?o[a]:[o[a]];e[a]=l.concat(u)}else if(-1!==i.indexOf(a))for(var c in o[a])if(e[a][c]){var d=e[a][c]instanceof Array?e[a][c]:[e[a][c]],h=o[a][c]instanceof Array?o[a][c]:[o[a][c]];e[a][c]=d.concat(h)}else e[a][c]=o[a][c];else if("hook"==a)for(var m in o[a])e[a][m]=e[a][m]?r(e[a][m],o[a][m]):o[a][m];else e[a]=o[a];else e[a]=o[a];return e}),{})},r=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=o},188:(e,t,n)=>{e.exports=n.p+"static/img/anzhuoerweima.05bc2757.png"},235:(e,t,n)=>{e.exports=n.p+"static/img/ioserweima.41f03fad.png"},451:t=>{t.exports=e},740:e=>{e.exports=t}},s={};function i(e){var t=s[e];if(void 0!==t)return t.exports;var o=s[e]={exports:{}};return n[e](o,o.exports,i),o.exports}(()=>{i.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return i.d(t,{a:t}),t}})(),(()=>{i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{i.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{i.p=""})();var o={};return(()=>{if(i.r(o),i.d(o,{Const:()=>n,Layout:()=>In,appGetters:()=>T,appMutations:()=>I,asideGetters:()=>O,asideMutations:()=>L,closeCurrentPage:()=>b,getMenuByFullPath:()=>A,headerGetters:()=>V,headerMutations:()=>z,injectDefaultRoute:()=>h,mapGetters:()=>Q,pageGetters:()=>R,pageMutations:()=>H,refreshPage:()=>w,tagsViewGetters:()=>Y,tagsViewMutations:()=>J}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(i.p=t[1])}const n={maxMobileWidth:500,redirectPath:"/redirect",enableLayoutSlot:!0},s={mounted(){const{fullPath:e}=this.$route,t=e.replace(new RegExp(n.redirectPath,"gm"),"");this.$nextTick((()=>this.$router.replace(t)))},render:()=>{}},r=s;function a(e,t,n,s,i,o,r,a){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),s&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),r?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=l):i&&(l=a?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}var l,u,c=a(r,l,u,!1,null,null,null);const d=c.exports;function h(e){return[{path:n.redirectPath,component:e,children:[{path:"*",component:d}]}]}var m=i(740),p=i.n(m);function f(e){const t=Object.create(null);return Object.defineProperties(t,Object.keys(e).reduce(((t,n)=>(t[n]={enumerable:!0,get:()=>e[n]},t)),{})),t}function v(e){return Object.keys(e).reduce(((t,n)=>(t[n]=t=>e[n]=t,t)),Object.create(null))}function g(){return window.innerWidth<=n.maxMobileWidth}function w(e,t=e.currentRoute,s=!0){J.delCacheOnly(t);const i=`${n.redirectPath}${t.fullPath}`;return e[s?"replace":"push"](i)}function b(e,t){if(J.delTagAndCache(e.currentRoute),t)return e.replace(t)}const M={isMobile:g(),title:"",logo:"",logoRoute:"/",onLogoClick:void 0,showLogo:!0,activeRootMenu:"",menus:[],loadingMenu:!1,struct:"left-right",navMode:"aside",logoSlot:void 0},y=p().observable(M);let $=Object.create(null);function x(e,t){if(!e)return;const n=e.map((e=>({...e})));return n.sort(((e,t)=>(e=C(e),t=C(t),e<t?-1:e===t?0:1))),n.forEach((e=>{e.parent=t,$[e.fullPath]=e,e.children&&(e.children=x(e.children,e))})),n}function C(e){const t=S(e);return null==t?1e4:t}function S(e){const{children:t=[],meta:{sort:n}={}}=e;return null!=n?n:1===t.length?S(t[0]):null}const T=f(y),I={...v(y),menus(e){if($=Object.create(null),!Array.isArray(e))return y.menus=[];y.menus=x(e)},modifyMenuMeta(e,t){const n=A(e);n&&(n.meta={...n.meta,...t})}};function A(e){return $[e]}const _={show:!1,theme:"dark",uniqueOpen:!0,collapse:!1,showParentOnCollapse:!1,showHamburger:!1,autoHide:!1,alwaysRender:!1,postMenus:null,inlineIndent:26,switchTransitionName:"sidebar",defaultOpeneds:[],defaultSlot:void 0,headerSlot:void 0,footerSlot:void 0,menuIconSlot:void 0,menuContentSlot:void 0},k=p().observable(_),O=f(k),L={...v(k),open(){T.isMobile||k.autoHide?k.show=!0:k.collapse=!1},close(){T.isMobile||k.autoHide?k.show=!1:k.collapse=!0},switch(e){switch(e){case"open":return L.open();case"close":return L.close();default:const e=T.isMobile?!k.show:k.collapse;e?L.open():L.close()}}},E={theme:"light",showCollapseIcon:!1,avatar:"",username:"",companyName:"",dropdownItems:[],dropdownItemsSlot:void 0,leftSlot:void 0,centerSlot:void 0,rightSlot:void 0,menuIconSlot:void 0,menuContentSlot:void 0},P=p().observable(E),V=f(P),z=v(P),D={enableTransition:!0,transition:{default:"el-fade-in",next:"left-out",prev:"right-out",curr:"el-fade-in"},showIframe:!1,currentIframe:"",iframeList:[],showHeader:!0,showFooter:!0,headerSlot:void 0,footerSlot:void 0},N=p().observable(D),R=f(N),H={...v(N),transition(e){Object.assign(N.transition,e)},addIframe(e){!N.iframeList.includes(e)&&N.iframeList.push(e)},delIframe(e){const t=N.iframeList.findIndex((t=>t===e));t>-1&&N.iframeList.splice(t,1)},openIframe(e){N.showIframe=!0,N.currentIframe=e,H.addIframe(e)},closeIframe(e,t){N.showIframe=!1,N.currentIframe="",t&&H.delIframe(e)}};function j(...e){return e.some((e=>void 0===e||null===e||""===e))}function B(e,t=100,n=!1){let s,i,o,r,a;const l=function(){const u=(new Date).getTime()-r;u<t&&u>0?s=window.setTimeout(l,t-u):(s=null,n||(a=e.apply(o,i),s||(o=i=null)))};return function(){o=this,i=arguments,r=(new Date).getTime();const u=n&&!s;return s||(s=window.setTimeout(l,t)),u&&(a=e.apply(o,i),o=i=null),a}}function K(e,t=!1){return e&&e.children&&0!==e.children.length?K(e.children[0],t||e.children.length>1):{leaf:e,hasOtherLeaf:t}}function F(e){const{name:t,path:n,fullPath:s,meta:{usePathKey:i,useFullPathKey:o}={}}=e;return i?n:o?s:t||s}function W(e){const{title:t,dynamicTitle:n}=e.meta||{};return"function"===typeof n&&n(e)||t}function q(e){const{path:t,meta:{activeMenu:n}={}}=e;return n||t}function G(e){const[t]=e.matched;return t&&t.path===n.redirectPath}const U={enabled:!0,enableCache:!0,enableChangeTransition:!0,itemSlot:void 0,visitedViews:[],cachedViews:[]},X=p().observable(U),Y=f(X),J={...v(X),enabled(e){X.enabled=e,e||(H.transition({curr:R.transition["default"]}),J.delAllTagAndCache())},enableCache(e){X.enableCache=e,!e&&J.delAllCache()},enableChangeTransition(e){X.enableChangeTransition=e,H.transition({curr:R.transition["default"]})},addTagOnly(e){if(j(e.meta.title))return;const t=F(e);if(X.visitedViews.some((n=>n.key===t||n.key===e.meta.mainRoute)))return;X.visitedViews.push({...e,key:t});const n=X.visitedViews.findIndex((e=>e.fullPath.includes("xsgzt"))),s=X.visitedViews.filter((e=>e.fullPath.includes("xsgzt"))).length;-1!==n&&s>1&&X.visitedViews.splice(n,1)},addCacheOnly(e){const{noCache:t}=e.meta,n=F(e);!0===t||X.cachedViews.includes(n)||X.cachedViews.includes(e.meta.mainRoute)||X.cachedViews.push(n)},addTagAndCache(e){J.addTagOnly(e),J.addCacheOnly(e)},delTagOnly(e){const t=F(e),n=X.visitedViews.findIndex((e=>e.key===t));n>-1&&X.visitedViews.splice(n,1)},delCacheOnly(e){const t=F(e),n=X.cachedViews.indexOf(t);n>-1&&X.cachedViews.splice(n,1);const{iframe:s}=e.meta;s&&H.delIframe(s)},delTagAndCache(e){try{let{q:t=""}=e.query;t&&window.sessionStorage.removeItem("GCC-",t)}catch(t){}J.delTagOnly(e),J.delCacheOnly(e)},delOtherTagAndCache(e){const t=[],n=F(e),s=X.cachedViews.find((e=>e===n));X.visitedViews=X.visitedViews.filter((e=>!(!e.meta.affix&&e.key!==n)||(e.meta.iframe&&t.push(e.meta.iframe),!1))),X.cachedViews=s?[s]:[],H.iframeList(R.iframeList.filter((e=>!t.includes(e))))},delAllCache(){X.cachedViews=[],H.iframeList([])},delAllTagAndCache(){X.visitedViews=X.visitedViews.filter((e=>e.meta.affix)),J.delAllCache()}};function Q(e,t){return t.reduce(((t,n)=>(t[n]=()=>e[n],t)),{})}var Z=i(568),ee=i.n(Z);const te={data(){return{activeMenu:"",defaultActive:""}},methods:{actionOnSelectMenu(e,t=!0){if(e.startsWith("http"))return window.open(e),this.resetActiveMenu();const{route:n}=this.$router.resolve(e);if(0===n.matched.length)return console.warn(`点击菜单时出错,'${e}'没有对应的路由`),this.resetActiveMenu();F(this.$route)===F(n)?t&&w(this.$router):this.$router.push(n)},resetActiveMenu(){const e=this.$_getElMenuInstance();e&&e.items[this.activeMenu]&&e.updateActiveIndex(this.activeMenu)},setDefaultActiveMenu(){const e=this.activeMenu,t=this.defaultActive;this.defaultActive=e,t===e&&this.resetActiveMenu()},$_getElMenuInstance(){const e=this.$refs["nav-menu"];return e&&e.$refs["el-menu"]}}},ne={name:"Logo",props:{showTitle:Boolean},methods:{onClick(e){const{onLogoClick:t}=T;if(t)return t(e);const n=T.logoRoute,s="object"===typeof n&&n.replace?"replace":"push";this.$router[s](n,(()=>{}))}},render(e){const{logo:t,title:n,logoSlot:s}=T,i=t&&e("img",{attrs:{src:t}}),o=!j(n)&&this.showTitle&&e("h1",[n]),r=s?s(e,{img:i,title:o,props:this.$props}):[i,o];if(r&&(!Array.isArray(r)||0!==r.filter(Boolean).length))return e("div",{class:"logo-container",on:{click:this.onClick}},[r])}},se=ne;var ie,oe,re=a(se,ie,oe,!1,null,null,null);const ae=re.exports;var le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{class:e.className,style:e.paddingStyle,on:{click:e.handleClick}},[[e._t("default"),e._t("title")]],2)},ue=[],ce=i(451);const de={...ce.MenuItem.mixins[0],props:{inlineIndent:{type:Number,default:20}},computed:{...ce.MenuItem.mixins[0].computed,paddingStyle(){if("vertical"!==this.rootMenu.mode)return;let e=this.inlineIndent;if(!this.rootMenu.collapse){let t=this.$parent;while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=this.inlineIndent),t=t.$parent}return{"padding-left":`${e}px`}}}},he={name:ce.MenuItem.name,componentName:ce.MenuItem.componentName,mixins:[de,...ce.MenuItem.mixins.slice(1)],props:ce.MenuItem.props,computed:{active:ce.MenuItem.computed.active,className(){return{"el-menu-item":!0,"is-active":this.active,"is-disabled":this.disabled}},showTooltip(){return"ElMenu"===this.parentMenu.$options.componentName&&this.rootMenu.collapse},iconContainerStyle(){return`position: absolute;left: 0;top: 0;height: 100%;width: 100%;display: inline-block;box-sizing: border-box;padding: 0 ${this.inlineIndent}px;`}},methods:{handleClick:ce.MenuItem.methods.handleClick},mounted:ce.MenuItem.mounted,beforeDestroy:ce.MenuItem.beforeDestroy},me=he;var pe=a(me,le,ue,!1,null,null,null);const fe=pe.exports,ve={name:ce.Submenu.name,componentName:ce.Submenu.componentName,mixins:[de,...ce.Submenu.mixins.slice(1)],props:{...ce.Submenu.props,popperAppendToBody:{type:Boolean,default:!0}},data:ce.Submenu.data,computed:{appendToBody:ce.Submenu.computed.appendToBody,menuTransitionName:ce.Submenu.computed.menuTransitionName,opened:ce.Submenu.computed.opened,active:ce.Submenu.computed.active,mode:ce.Submenu.computed.mode,isMenuPopup:ce.Submenu.computed.isMenuPopup,isFirstLevel:ce.Submenu.computed.isFirstLevel,className(){return{"el-submenu":!0,"is-active":this.active,"is-opened":this.opened,"is-disabled":this.disabled}},submenuArrowClass(){const e="horizontal"===this.rootMenu.mode&&this.isFirstLevel||"vertical"===this.rootMenu.mode&&!this.rootMenu.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return"el-submenu__icon-arrow "+e},popupMenuClass(){return`el-menu el-menu--popup el-menu--popup-${this.currentPlacement}`}},watch:ce.Submenu.watch,methods:ce.Submenu.methods,created:ce.Submenu.created,mounted:ce.Submenu.mounted,beforeDestroy:ce.Submenu.beforeDestroy,render(){const e=arguments[0];return e("li",{class:this.className,on:{mouseenter:this.handleMouseenter,mouseleave:()=>this.handleMouseleave(!1),focus:this.handleMouseenter}},[e("div",{ref:"submenu-title",class:"el-submenu__title",on:{click:this.handleClick}},[this.$slots.title,e("i",{class:this.submenuArrowClass})]),this.isMenuPopup?e("transition",{attrs:{name:this.menuTransitionName}},[e("div",{ref:"menu",directives:[{name:"show",value:this.opened}],class:[`el-menu--${this.mode}`,this.popperClass],on:{mouseenter:e=>this.handleMouseenter(e,100),mouseleave:()=>this.handleMouseleave(!0),focus:e=>this.handleMouseenter(e,100)}},[e("div",{class:"menu-display"},[this.$slots.default.map((t=>e("ul",{style:"display:inline-block;width:200px;vertical-align: top;margin:0;",class:this.popupMenuClass},[t])))])])]):e("el-collapse-transition",[e("ul",{style:"display:inline-block",directives:[{name:"show",value:this.opened}],class:"el-menu el-menu--inline"},[this.$slots.default])])])}},ge=ve;var we,be,Me=a(ge,we,be,!1,null,null,null);const ye=Me.exports;const $e={name:"NavMenu",props:{menus:{type:Array,default:()=>[]},theme:{type:String,default:"dark"},inlineIndent:Number,showCollapseIcon:Boolean,showParentOnCollapse:Boolean,switchTransitionName:String,menuIconSlot:Function,menuContentSlot:Function,mode:{type:String,default:"vertical"},collapse:Boolean,defaultActive:String,defaultOpeneds:Array,uniqueOpened:Boolean},computed:{children(){const e=this.$createElement;let t=this.renderMenus(e,this.menus);const{switchTransitionName:n}=this;return j(n)||(t=e("transition-group",{props:{name:n}},t)),t},themeClass(){return`el-menu--${this.theme}`},menuClass(){return[`el-menu--${this.mode}`,this.themeClass,!this.showCollapseIcon&&"hide-collapse-icon"]}},methods:{onSelect(...e){this.$emit("select",...e)},renderMenuIcon(e,t,n){const s=this.menuIconSlot;if(s)return s(e,{menu:t,depth:n});const i=t.meta.icon;return i&&e("i",{style:"font-size:28px;vertical-align: middle;line-height:44px",class:`menu-icon ${i}`})},renderMenuContent(e,t,n){const s=this.menuContentSlot;return s?s(e,{menu:t,depth:n}):e("span",[t.meta.title])},renderSingleMenu(e,t,n,s){const{fullPath:i}=t;return"/index"===i?"":e(fe,{key:i,attrs:{index:i,"inline-indent":this.inlineIndent},style:s&&"height:60px;text-align:center;padding:0;line-height:60px;letter-spacing: 3px;"},[e("template",{slot:"title"},[s&&e("div",[e("div",[this.renderMenuIcon(e,t,n),e("span",{style:"margin-left:8px;vertical-align: middle;font-size:18px;letter-spacing: 3px;"},[t.meta.title])])]),!s&&this.renderMenuContent(e,t,n)])])},renderSubMenu(e,t,n,s){const{fullPath:i}=t,o=1===s&&this.collapse&&"vertical"===this.mode;return e(ye,{key:i,attrs:{index:i,"inline-indent":this.inlineIndent,"popper-class":this.themeClass,"popper-append-to-body":!0}},[e("template",{slot:"title"},[1==s&&e("div",{style:"height:100%;line-height:44.1px"},[this.renderMenuIcon(e,t,s),e("span",{style:"margin-left:8px;vertical-align: middle;font-size:18px;letter-spacing: 3px;"},[t.meta.title])]),!o&&this.renderMenuContent(e,t,s)]),n])},renderChildrenWithParentMenu(e,t,n,s){let i=[];return t.children.forEach((t=>{let n=[];t.children.forEach((t=>{n.push(this.renderSingleMenu(e,t,s+1))})),i.push(e("div",[e("div",{style:"font-weight:800;color:black",class:"popover-menu__title"},[e("div",{class:"title-boder"},[this.renderMenuContent(e,t,s)])]),e("div",{class:"el-menu el-menu--inline"},[n])]))})),i},renderMenus(e,t,n=1){return t.map((t=>{let s=[];return t.children[0].children?(s=this.renderChildrenWithParentMenu(e,t,s,n+1),this.renderSubMenu(e,t,s,n)):this.renderSingleMenu(e,t.children[0],n,!0)}))}},render(){const e=arguments[0];return e("el-menu",{ref:"el-menu",class:this.menuClass,attrs:{mode:this.mode,collapse:this.collapse,"collapse-transition":!1,"unique-opened":this.uniqueOpened,"default-active":this.defaultActive,"default-openeds":this.defaultOpeneds},on:{select:this.onSelect}},[this.children])}},xe=$e;var Ce,Se,Te=a(xe,Ce,Se,!1,null,null,null);const Ie=Te.exports,Ae={name:"Hamburger",render(){const e=arguments[0],t=T.isMobile?O.show:!O.collapse,n="hamburger"+(t?" collapsed":"");return e("div",{class:n,attrs:{title:(t?"折叠":"展开")+"侧边栏"},on:{click:L["switch"]}},[e("i",{class:"el-icon-s-unfold"})])}},_e=Ae;var ke,Oe,Le=a(_e,ke,Oe,!1,null,null,null);const Ee=Le.exports;var Pe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-loading-spinner"},[n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])])},Ve=[];const ze={name:"LoadingSpinner"},De=ze;var Ne=a(De,Pe,Ve,!1,null,null,null);const Re=Ne.exports,He={name:"DefaultSidebar",mixins:[te],data(){return{mouseOutside:!0,openedMenuNum:0}},computed:{sidebarMenus(){const e=T.menus;let t;if(T.isMobile)t=e;else switch(T.navMode){case"aside":t=e;break;case"mix":const n=e.find((e=>e.fullPath===T.activeRootMenu));t=n&&n.children||[];break;default:t=[]}const n=O.postMenus;return n?n(this.copyMenus(t)):t},renderInDrawer(){return T.isMobile||O.autoHide},drawerClass(){const e=!T.isMobile&&"top-bottom"===T.struct;return"sidebar-drawer"+(e?" behind-header":"")},show(){return!!O.show||!T.isMobile&&(!!O.autoHide&&(!this.mouseOutside||this.collapse&&this.openedMenuNum>0))},collapse(){return O.collapse&&!T.isMobile},showLogo(){return!0},sidebarClass(){return{sidebar:!0,collapse:this.collapse}},sidebarEvent(){return!T.isMobile&&O.autoHide?{mouseleave:this.onMouseLeave,mouseenter:this.onMouseEnter}:void 0}},watch:{$route:{immediate:!0,handler(e){if(G(e))return;this.activeMenu=q(this.$route);const t=this.$_getElMenuInstance();if(!t)return;this.resetActiveMenu();const n=t.items[this.activeMenu];n&&(this.onSelect(n.index,n.indexPath,n,!1),this.$nextTick(this.moveToActiveMenuVertically))}}},methods:{copyMenus(e){return e.map((e=>{const t={...e};return t.children&&(t.children=this.copyMenus(t.children)),t}))},onSelect(e,t,n,s=!0){if(t.length>20)this.$message.error("最多打开20个页面,请先关闭之前的页面再打开新页面");else{if(!O.collapse&&O.uniqueOpen){const e=this.$_getElMenuInstance();e.openedMenus=t.slice(0,-1)}s&&this.actionOnSelectMenu(e),this.renderInDrawer&&this.show&&(L.close(),this.mouseOutside=!0)}},moveToActiveMenuVertically(){const e=this.$_getElMenuInstance();if(!e)return;const t=e.activeIndex;if(!t)return;const n=e.items[t];if(!n)return;let s=n.$el;if(e.collapse){let e=n;while("ElMenu"!==e.$parent.$options.componentName)e=e.$parent;s=e.$el}window.setTimeout((()=>s.scrollIntoView({behavior:"smooth",block:"nearest"})),300)},onMouseMove(e){e.clientX<=1&&(this.mouseOutside=!1)},onMouseLeave(){this.mouseOutside=!0},onMouseEnter(){this.mouseOutside=!1},watchOpenedMenus(){this.watchOpenedMenusCallback&&(this.watchOpenedMenusCallback(),this.watchOpenedMenusCallback=null);const e=this.$_getElMenuInstance();e&&(this.watchOpenedMenusCallback=e.$watch("openedMenus",(e=>{this.openedMenuNum=e.length})))},onDrawerOpened(){this.$nextTick(this.moveToActiveMenuVertically)},renderHeader(e){const t=this.showLogo&&e(ae,{attrs:{"show-title":!this.collapse}}),{headerSlot:n}=O;return n?n(e,t):t},renderFooter(e){const t=O.showHamburger&&!this.renderInDrawer&&e(Ee),{footerSlot:n}=O;let s;if(n){let i=n(e,t);Array.isArray(i)?(i=i.filter(Boolean),i.length>0&&(s=i)):s=i}else s=t;return s&&e("div",{class:"sidebar-footer"},[s])}},created(){this.$watch("sidebarMenus",this.setDefaultActiveMenu,{immediate:!0}),this.$watch((()=>!T.isMobile&&(!!O.autoHide&&(!this.show&&this.mouseOutside))),(e=>{window.removeEventListener("mousemove",this.onMouseMove),e&&window.addEventListener("mousemove",this.onMouseMove)}),{immediate:!0}),this.$watch((()=>T.isMobile),(e=>(e||O.autoHide)&&L.close()))},beforeDestroy(){window.removeEventListener("mousemove",this.onMouseMove)},render(e){if(0===this.sidebarMenus.length&&!O.alwaysRender)return;const t=e("div",ee()([{},{class:this.sidebarClass,on:this.sidebarEvent}]),[this.renderHeader(e),T.loadingMenu?e("div",{style:"position: relative;flex: 1"},[e(Re)]):e(Ie,{ref:"nav-menu",attrs:{menus:this.sidebarMenus,collapse:this.collapse,"default-active":this.defaultActive,"default-openeds":O.defaultOpeneds,theme:O.theme,"unique-opened":O.uniqueOpen,"show-parent-on-collapse":O.showParentOnCollapse,"inline-indent":O.inlineIndent,"switch-transition-name":O.switchTransitionName,"menu-icon-slot":O.menuIconSlot,"menu-content-slot":O.menuContentSlot},on:{select:this.onSelect,"hook:mounted":this.watchOpenedMenus}}),this.renderFooter(e)]);return this.renderInDrawer?e("el-drawer",{attrs:{visible:this.show,"with-header":!1,"custom-class":this.drawerClass,modal:T.isMobile,direction:"ltr",size:"auto"},on:{close:L.close,opened:this.onDrawerOpened}},[t]):t}},je=He;var Be,Ke,Fe=a(je,Be,Ke,!1,null,null,null);const We=Fe.exports,qe={name:"Aside",computed:{style(){return T.isMobile?"z-index: auto !important":void 0}},render(e){const{defaultSlot:t}=O;return e("aside",{class:"aside dark",style:this.style},[t?t(e):e(We,{ref:"default-sidebar"})])}},Ge=qe;var Ue,Xe,Ye=a(Ge,Ue,Xe,!1,null,null,null);const Je=Ye.exports,Qe={name:"GhostMenu",data(){return{menus:[],menuItemSizes:[]}},computed:{...Q(V,["menuIconSlot","menuContentSlot"]),menuClass(){const{theme:e,showCollapseIcon:t}=V;return["el-menu--horizontal",`el-menu--${e}`,!t&&"hide-collapse-icon"]}},methods:{renderMenuIcon:Ie.methods.renderMenuIcon,renderMenuContent:Ie.methods.renderMenuContent,renderSingleMenu:Ie.methods.renderSingleMenu,renderSubMenu(e,t,n){const{fullPath:s}=t;return e(ye,{key:s,attrs:{index:s}},[e("template",{slot:"title"},[this.renderMenuIcon(e,t,n),this.renderMenuContent(e,t,n)])])},renderMenus(e,t,n=1){return t.map((t=>Array.isArray(t.children)?this.renderSubMenu(e,t,n):this.renderSingleMenu(e,t,n)))},resize(){const e=this.$el;if(!e)return;const t=e.children;t&&0!==t.length&&(this.menuItemSizes=Array.from(t).map((e=>e.getBoundingClientRect().width)))}},mounted(){const e=this.$el;e.style.position="fixed",e.style.bottom="-1000px",e.style.right="-1000px",e.style.width="auto",document.body.appendChild(e),this.resizeObserver=new window.ResizeObserver(this.resize),this.resizeObserver.observe(e),this.$once("hook:beforeDestroy",(()=>{this.$el&&document.body.removeChild(this.$el),Reflect.has(this,"$_resizeObserver")&&(this.$_resizeObserver.disconnect(),delete this.$_resizeObserver)}))},render(e){const t=this.renderMenus(e,this.menus);return e("el-menu",{class:this.menuClass,props:{mode:"horizontal"}},t)}},Ze=Qe;var et,tt,nt=a(Ze,et,tt,!1,null,null,null);const st=nt.exports,it={name:"HorizontalResizableMenu",mixins:[te],data(){return{lastVisibleIndex:void 0,$menuItemSizes:[],$overflowedIndicatorWidth:0,seed:0}},computed:{menus(){const{menus:e,navMode:t}=T;switch(t){case"head":return e;case"mix":return e.map((e=>({...e,children:void 0})));default:return[]}},realMenus(){const{lastVisibleIndex:e,menus:t,seed:n}=this;if(void 0===e)return t;const s=`_${n}`;if(-1===e)return[{fullPath:s,meta:{icon:"el-icon-menu"},children:t}];const i=t.slice(0,e+1),o=t.slice(e+1);return i.push({fullPath:s,meta:{title:"..."},children:o}),i},hasDom(){return!T.loadingMenu&&this.menus.length>0}},watch:{$route:{immediate:!0,handler(e){this.setActiveRootMenu(e)&&this.setActiveMenu(T.navMode,e)}},realMenus:{immediate:!0,handler(e){this.setActiveMenu(),this.setDefaultActiveMenu(e)}},hasDom:{immediate:!0,async handler(e){await this.$nextTick(),e?this.startObserver():this.stopObserver()}},lastVisibleIndex(){this.seed++}},methods:{setActiveRootMenu({path:e,meta:{activeMenu:t}}){const n=A(t||e);if(!n)return!1;let s=n;while(s.parent)s=s.parent;return I.activeRootMenu(s.fullPath),!0},setActiveMenu(e=T.navMode,t=this.$route){const n=this.activeMenu;this.activeMenu="mix"===e?T.activeRootMenu:q(t),this.activeMenu!==n&&this.resetActiveMenu()},onSelect(e){if("mix"===T.navMode)return this.onSelectRootMenu(e);this.actionOnSelectMenu(e)},onSelectRootMenu(e){const t=A(e),{leaf:n,hasOtherLeaf:s}=K(t);!n||T.activeRootMenu===e&&s||this.actionOnSelectMenu(n.fullPath)},getMenuEl(){return this.$el},genGhostMenu(){if(Reflect.has(this,"$_ghostMenu"))return void(this.$_ghostMenu.menus=this.menus);const e=p().extend(st),t=new e({data:{menus:this.menus}});t.$watch("menuItemSizes",(e=>{this.$data.$menuItemSizes=e,this.resize()})),t.$mount(),this.$_ghostMenu=t},destroyGhostMenu(){Reflect.has(this,"$_ghostMenu")&&this.$_ghostMenu.$destroy()},setOverflowedIndicatorWidth(){const e=document.createElement("ul");e.className="el-menu--horizontal el-menu el-menu--horizontal",e.style.position="fixed",e.style.top="-100px",e.style.right="-1000px",e.innerHTML='<li class="el-submenu"><div class="el-submenu__title"><span>...</span></div></li>',document.body.appendChild(e),this.$data.$overflowedIndicatorWidth=e.children[0].offsetWidth+1,document.body.removeChild(e)},resize(){const e=this.getMenuEl().getBoundingClientRect().width,{$menuItemSizes:t,$overflowedIndicatorWidth:n}=this.$data;let s=-1;for(let i=t.length-1,o=0;i>=0;i--){if(o+=t[i],o+n>e)break;if(s+=1,s===t.length-1){s=void 0;break}}this.lastVisibleIndex=s},startObserver(){this.resizeObserver=new window.ResizeObserver(this.resize),this.resizeObserver.observe(this.getMenuEl())},stopObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.destroyGhostMenu()}},async mounted(){await this.$nextTick(),this.setOverflowedIndicatorWidth()},beforeDestroy(){this.stopObserver()},render(){const e=arguments[0];return T.loadingMenu?e("div",{style:"position: relative;width: 100%;height: 100%"},[e(Re)]):0!==this.menus.length?(this.genGhostMenu(),e(Ie,{ref:"nav-menu",attrs:{menus:this.realMenus,theme:V.theme,mode:"horizontal","default-active":this.defaultActive,"show-collapse-icon":V.showCollapseIcon,"menu-icon-slot":V.menuIconSlot,"menu-content-slot":V.menuContentSlot},on:{select:this.onSelect}})):void 0}},ot=it;var rt,at,lt=a(ot,rt,at,!1,null,null,null);const ut=lt.exports,ct=["天","一","二","三","四","五","六"];let dt,ht=new Date;const mt={data(){return{year_:ht.getFullYear(),month_:ht.getMonth()+1,date_:ht.getDate(),day_:ct[ht.getDay()-1],time_:ht.toTimeString().substring(0,8)}},created(){let e=this;dt=setInterval((()=>{let t=new Date;e.year_=t.getFullYear(),e.month_=t.getMonth()+1,e.date_=t.getDate(),e.day_=ct[t.getDay()],e.time_=t.toTimeString().substring(0,8)}),1e3)},computed:{newTime(){return this.year_+"年"+this.month_+"月"+this.date_+"日 星期"+this.day_+" "+this.time_}},beforeDestroy(){clearInterval(dt)}},pt={name:"Header",mixins:[mt],computed:{defaultLogo(){!T.isMobile&&T.showLogo&&("head"===T.navMode||T.struct);return null},defaultHamburger(){const e=this.$createElement;return T.isMobile&&e(Ee,{class:"header-item header-icon"})},defaultHeadMenu(){const e=this.$createElement,t=!T.isMobile&&["head","aside"].includes(T.navMode);return t&&e(ut,{ref:"head-menu"})},defaultRefreshBtn(){const e=this.$createElement;return e("div",{attrs:{title:"刷新"},class:"header-item",on:{click:()=>w(this.$router)}},[e("i",{class:"el-icon-refresh-right header-icon"})])},defaultUserDropdown(){const e=this.$createElement,{logout:t={},message:n={},userinfo:s={},dowload:o={}}=z,{username:r}=V;return e("div",{class:"user-dropdown-reference"},[e("span",{class:"username time"},[this.newTime]),e("span",{class:"username shu"},["|"]),e("div",{attrs:{id:"downloadTrigger"},class:"download-trigger"},[e("i",{style:"color:#333",class:"el-icon-download header-icon",on:{click:()=>this.showDownloadPopover()}}),e("span",{class:"username",on:{click:()=>this.showDownloadPopover()}},["下载"]),e("el-popover",{ref:"downloadPopover",attrs:{placement:"bottom",width:"350",trigger:"manual",target:"downloadTrigger"}},[e("div",{class:"tag"},[e("div",{class:"erweima",style:"display: inline-block; margin-right: 20px;"},[e("img",{style:"height: 150px",attrs:{src:i(235)}}),e("div",{style:"font-size: 14px; font-weight: 800; color: #000; text-align: center;",class:"user-text"},["苹果用户"])]),e("div",{class:"erweima",style:"display: inline-block;"},[e("img",{style:"height: 150px",attrs:{src:i(188)}}),e("div",{style:"font-size: 14px; font-weight: 800; color: #000; text-align: center;",class:"user-text"},["安卓/鸿蒙用户"])])])])]),e("span",{class:"username shu"},["|"]),e("i",{style:"color:#333",class:"el-icon-bell header-icon",on:{click:n}}),e("span",{class:"username"},["消息中心"]),e("span",{class:"username shu"},["|"]),e("span",{on:{click:s}},[e("el-avatar",{attrs:{size:28,src:V.avatar,icon:"el-icon-user-solid"}})]),!j(r)&&e("span",{on:{click:s},class:"username hide-on-mobile"},[r]),e("span",{class:"username shu"},["|"]),e("span",{class:"username exit",on:{click:t}},["退出"])])}},methods:{showDownloadPopover(){this.$refs.downloadPopover.showPopper=!0,document.addEventListener("click",this.hideDownloadPopover)},hideDownloadPopover(e){this.$refs.downloadPopover?.$el.contains(e.target)||e.target.closest(".download-trigger")||(this.$refs.downloadPopover.showPopper=!1,document.removeEventListener("click",this.hideDownloadPopover))},renderLeftContent(e){const t=[this.defaultLogo,this.defaultHamburger],{leftSlot:n}=V;return n?n(e,t):t},renderCenterContent(e){const t=[this.defaultHeadMenu],{centerSlot:n}=V;return n?n(e,t):t},renderRightContent(e){const t=[this.defaultRefreshBtn,this.defaultUserDropdown],{rightSlot:n}=V;return n?n(e,t):t}},render(e){return e("header",{class:`header ${V.theme}`},[e("div",{class:"header-left"},[this.renderLeftContent(e)]),e("div",{class:"header-center"},[this.renderCenterContent(e)]),e("div",{class:"header-right"},[this.renderRightContent(e)])])}},ft=pt;var vt,gt,wt=a(ft,vt,gt,!1,null,null,null);const bt=wt.exports;var Mt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"context-menu",style:e.style,on:{contextmenu:function(e){e.preventDefault()},click:e.onClick}},e._l(e.menuItems,(function(t,s){return n("li",{key:t.content,staticClass:"context-menu-item",attrs:{"data-index":s}},[e._v(" "+e._s(t.content)+" ")])})),0)},yt=[];const $t={name:"ContextMenu",props:{value:Boolean,items:Array,left:Number,top:Number,minDistance:{type:Number,default:10}},data(){return this.willAutoAdaptLeft=!1,this.willAutoAdaptTop=!1,{realLeft:"0px",realTop:"0px"}},computed:{style(){return{left:this.realLeft,top:this.realTop}},menuItems(){return this.items.filter(Boolean)}},watch:{value:{immediate:!0,handler(e){document.body[e?"addEventListener":"removeEventListener"]("click",this.close),e&&(this.willAutoAdaptLeft=!0,this.willAutoAdaptTop=!0,this.$nextTick(this.autoAdapt))}},left:{immediate:!0,handler:"autoAdaptLeft"},top:{immediate:!0,handler:"autoAdaptTop"}},methods:{close(){this.$emit("input",!1)},autoAdapt(){this.autoAdaptTop(this.top),this.autoAdaptLeft(this.left)},autoAdaptTop(e){if(this.willAutoAdaptTop)return void(this.willAutoAdaptTop=!1);if(!this.value||null==e)return;const t=this.$el.offsetHeight,n=document.body.clientHeight-e-this.minDistance,s=t-n,i=s>0?e-s:e;this.realTop=`${i}px`},autoAdaptLeft(e){if(this.willAutoAdaptLeft)return void(this.willAutoAdaptLeft=!1);if(!this.value||null==e)return;const t=this.$el.offsetWidth,n=document.body.clientWidth-e-this.minDistance,s=t-n,i=s>0?e-s:e;this.realLeft=`${i}px`},onClick(e){if(!e.target.classList.contains("context-menu-item"))return;const t=Number(e.target.dataset.index),n=this.menuItems[t];n&&n.click()}},beforeDestroy(){document.body.removeEventListener("click",this.close)}},xt=$t;var Ct=a(xt,Mt,yt,!1,null,null,null);const St=Ct.exports;function Tt(e,t){const n=p().extend(St),s=new n({propsData:{value:!0,items:e,...t}});return s.$mount(),s.$once("input",(e=>{e||(s.$destroy(),document.body.removeChild(s.$el))})),document.body.appendChild(s.$el),()=>s.close()}var It=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"horizontal-scroller",on:{wheel:e.handleScroll}},[e._t("default")],2)},At=[];const _t={name:"HorizontalScroller",props:{between:{type:Number,default:4}},methods:{handleScroll(e){const t=e.deltaY,{scrollLeft:n,scrollWidth:s,clientWidth:i}=this.$el;t<0&&0===n||t>0&&s<=n+i||(this.$el.scrollLeft+=t)},moveToTarget(e){const t=Array.from(this.$el.children),{offsetWidth:n,scrollWidth:s,scrollLeft:i}=this.$el;if(n>=s)return;let o=null,r=null;if(t.length>0&&(o=t[0],r=t[t.length-1]),o===e)return this.scrollLeft(0);if(r===e)return this.scrollLeft(s-n);const a=t.findIndex((t=>t===e)),l=t[a-1],u=t[a+1],c=u.offsetLeft+u.offsetWidth+this.between,d=l.offsetLeft-this.between;c>i+n?this.scrollLeft(c-n):d<i&&this.scrollLeft(d)},scrollLeft(e){this.$el.scrollTo({left:e,behavior:"smooth"})}}},kt=_t;var Ot=a(kt,It,At,!1,null,null,null);const Lt=Ot.exports;function Et(e){return!!e&&e.meta.affix}function Pt(e,t){return t.reduce(((t,n)=>{const{fullPath:s,children:i,meta:o}=n;if(!0===o.affix){const{route:n}=e.resolve(s);t.push({...n,meta:{affix:!0,...n.meta,title:W(n)}})}if(i){const n=Pt(e,i);n.length&&t.push(...n)}return t}),[])}function Vt(e,{key:t,active:n=!1,on:s,title:i,close:o}){const r="tags-view-item"+(n?" active":"");return e("div",{key:t,class:r,on:{...s}},["/index"!==t&&e("span",[i]),"/index"===t&&e("span",[e("i",{class:"svg-home home-class"})]),o&&"/index"!==t&&e("i",{class:"el-icon-error",on:{click:o}})])}const zt={name:"TagsView",data(){return{activeKey:"",selectedTag:void 0,contextMenu:{show:!1,top:0,left:0}}},computed:{contextMenuItems(){const{visitedViews:e}=Y,t=e.length>1&&!Et(this.selectedTag);return[{content:"刷新",click:this.refreshSelectedTag},{content:t&&"关闭",click:this.closeSelectedTag},{content:"关闭其他",click:this.closeOthersTags},{content:"关闭全部",click:this.closeAllTags}].filter((e=>e.content))},tagsSlot(){return this._u([{key:"default",fn:this.renderTags,proxy:!0}])}},watch:{$route(e,t){Y.enableChangeTransition&&this.decideRouteTransition(e,t),G(e)||(this.setActiveKey(e),this.addTag(e),this.$nextTick(this.moveToCurrentTag))}},methods:{setActiveKey(e){this.activeKey=F(e)},decideRouteTransition(e,t){const{next:n,prev:s}=R.transition,{visitedViews:i}=Y,o=F(t),r=F(e),a=i.findIndex((e=>e.key===o)),l=i.findIndex((e=>e.key===r));let u=s;(-1===l||a<l)&&(u=n),H.transition({curr:u})},initTags(){Pt(this.$router,T.menus).forEach(J.addTagOnly),this.addTag(this.$route)},addTag(e){J.addTagAndCache({...e,meta:{...e.meta,title:W(e)}})},moveToCurrentTag(){const{scroller:e}=this.$refs,t=Array.from(e.$el.children).find((e=>e.classList.contains("active")));t&&e.moveToTarget(t)},gotoLastTag(e=!1){const t=Y.visitedViews,n=this.$router;if(0===t.length)return n.push("/");const s=t[t.length-1];this.activeKey===s.key?e&&w(n):this.$nextTick((()=>n.push(s)))},refreshSelectedTag(e=this.selectedTag){w(this.$router,e)},closeSelectedTag(e=this.selectedTag){if(["访销订单","车销单","销售出库单"].includes(e.meta.title))this.$confirm(`是否关闭${e.meta.title},没有保存的单据将会丢失?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{Y.visitedViews.length<=1||Et(e)||(J.delTagAndCache(e),this.activeKey===e.key&&this.gotoLastTag())})).catch((()=>{}));else{if(Y.visitedViews.length<=1||Et(e))return;J.delTagAndCache(e),this.activeKey===e.key&&this.gotoLastTag(),["销售工作台"].includes(e.meta.title)&&(window.localStorage.removeItem("allotEdit"),localStorage.removeItem("shipEdit"))}},closeOthersTags(){J.delOtherTagAndCache(this.selectedTag),this.gotoLastTag()},closeAllTags(){J.delAllTagAndCache(),this.gotoLastTag(!0)},openContextMenu(e,t){t.preventDefault(),this.$tagscontextmenu&&this.$tagscontextmenu(),this.selectedTag=e,this.$tagscontextmenu=Tt(this.contextMenuItems,{left:t.clientX+15,top:t.clientY+5})},renderTags(){const{$createElement:e,$router:t,activeKey:n}=this,{itemSlot:s,visitedViews:i}=Y,o=s||Vt;return i.map((s=>{const r=n===s.key,a=!Et(s)&&i.length>1,l={contextmenu:e=>this.openContextMenu(s,e)},u=e=>{e.stopPropagation(),this.closeSelectedTag(s)};return r||(l.click=()=>t.push(s,(()=>{}))),o(e,{key:s.key,active:r,on:l,title:s.meta.title,close:a&&u})}))}},mounted(){this.setActiveKey(this.$route),this.initTags()},render(){const e=arguments[0];return e("nav",{class:"tags-view"},[e(Lt,{ref:"scroller",scopedSlots:this.tagsSlot})])}},Dt=zt;var Nt,Rt,Ht=a(Dt,Nt,Rt,!1,null,null,null);const jt=Ht.exports;var Bt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"page-main"},[n("page-content"),n("page-iframe")],1)},Kt=[],Ft=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showIframe,expression:"showIframe"}],staticClass:"page-iframe"},e._l(e.iframeList,(function(t){return n("iframe",{directives:[{name:"show",rawName:"v-show",value:t===e.currentIframe,expression:"src === currentIframe"}],key:t,attrs:{id:t,src:t,frameborder:"0",height:"100%",width:"100%"}})})),0)},Wt=[];const qt={name:"PageIframe",computed:{showIframe(){return R.showIframe},iframeList(){return R.iframeList},currentIframe(){return R.currentIframe}},watch:{$route:{handler(e,t){this.iframeCtrl(e,t)},immediate:!0}},methods:{iframeCtrl(e,t){if(t&&t.meta.iframe){const e=F(t),n=j(e)||!Y.cachedViews.includes(e);H.closeIframe(t.meta.iframe,n)}e.meta.iframe&&H.openIframe(e.meta.iframe)}}},Gt=qt;var Ut=a(Gt,Ft,Wt,!1,null,null,null);const Xt=Ut.exports;function Yt(e,t){if(!t)return;const{cache:n,_vnode:s}=t,i=n[e];!i||s&&i.tag===s.tag||i.componentInstance.$destroy(),delete n[e],t.keys=[]}const Jt={name:"CachedRouterView",inheritAttrs:!0,data(){return{renderView:!0}},computed:{routerViewKey(){return F(this.$route)},useKeepAlive(){return Y.enabled&&Y.enableCache},keepAliveData(){const e=Date.now(),t=Y.cachedViews.map((t=>t+e));return{props:{exclude:t},on:{"hook:updated":this.onKeepAliveUpdated}}},cachedKeyMap(){return Y.cachedViews.reduce(((e,t)=>(e[t]=1,e)),{})},useTransition(){return R.enableTransition},transitionName(){return R.transition.curr}},methods:{getKeepAliveInstance(){if(!this._vnode)return;const e=this._vnode.children[0];return R.enableTransition?e.child._vnode.componentInstance:e.componentInstance},onKeepAliveUpdated(){const e=this.getKeepAliveInstance(),{cache:t}=e,n=R.enableTransition;Object.keys(t).forEach((t=>{const s=n?t.replace(/__transition-(\d+)-/,""):t;!this.cachedKeyMap[s]&&Yt(t,e)}))},rerenderRouterView(){this.renderView&&(this.renderView=!1,this.$nextTick((()=>this.renderView=!0)))}},render(e){let t=this.renderView&&e("router-view",{key:this.routerViewKey});return this.useKeepAlive&&(t=e("keep-alive",ee()([{},this.keepAliveData]),[t])),this.useTransition&&(t=e("transition",{attrs:{name:this.transitionName,mode:"out-in"}},[t])),e("div",[t])}},Qt=Jt;var Zt,en,tn=a(Qt,Zt,en,!1,null,null,null);const nn=tn.exports;var sn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"breadcrumb"},[n("transition-group",{attrs:{name:"breadcrumb"}},[e._l(e.items,(function(t,s){var i=t.fullPath,o=t.meta.title;return s!==e.items.length-1?n("div",{key:i,staticClass:"breadcrumb-item"},[n("span",{staticClass:"breadcrumb-inner is-link",on:{click:function(){return e.onClick(i)}}},[e._v(" "+e._s(o)+" ")]),n("span",{staticClass:"breadcrumb-separator"},[e._v("/")])]):e._e()})),e.lastItem?n("div",{key:e.lastItem.fullPath,staticClass:"breadcrumb-item"},[n("span",{staticClass:"breadcrumb-inner"},[e._v(e._s(e.lastItem.meta.title))])]):e._e()],2)],1)},on=[];const rn={name:"Breadcrumb",data(){return{items:[]}},computed:{lastItem(){return this.items.length<=1?void 0:this.items[this.items.length-1]}},watch:{$route:{handler(e){const t=this.generateBreadcrumb(e);Array.isArray(t)&&0!==t.length&&(this.items=t)},immediate:!0}},methods:{onClick(e){let t=A(e);if(!t)return;while(t.children&&t.children.length>=1)t=t.children[0];const{route:n}=this.$router.resolve(t.fullPath);F(n)!==F(this.$route)&&this.$router.push(n)},generateBreadcrumb(e){const{path:t,fullPath:n,meta:{activeMenu:s}}=e;if(G(e))return;const i=s||t,o=A(i);if(!o)return[];const r=[o];let a=o.parent;while(a)r.unshift(a),a=a.parent;return s&&r.push({fullPath:n,meta:{title:W(e)}}),r}}},an=rn;var ln=a(an,sn,on,!1,null,null,null);const un=ln.exports,cn={name:"PageFooter",render(e){return e("div",{staticClass:"page-header"},this.$slots.default)}},dn={name:"PageFooter",render(e){return e("footer",{staticClass:"page-footer"},this.$slots.default)}},hn={name:"PageContent",computed:{showHeader(){return R.showHeader&&!1!==this.$route.meta.pageHeader},showFooter(){return R.showFooter&&!1!==this.$route.meta.pageFooter}},render(e){const{headerSlot:t,footerSlot:n}=R,s=this.showFooter&&n,i={"page-content":!0,"has-page-header":this.showHeader,"has-page-footer":s};return e("div",{class:i},[this.showHeader&&e(cn,[t?t(e):e(un)]),e(nn,{class:"page-view"}),s&&e(dn,[n(e)])])}},mn=hn;var pn,fn,vn=a(mn,pn,fn,!1,null,null,null);const gn=vn.exports,wn={name:"Page",components:{PageContent:gn,PageIframe:Xt}},bn=wn;var Mn=a(bn,Bt,Kt,!1,null,null,null);const yn=Mn.exports,$n={name:"ElAdminLayout",computed:{isLeftRight(){return!0},renderAside(){return T.isMobile||["aside","mix"].includes(T.navMode)}},methods:{mutateStoreSlot(){const e=this.$_cachedScopedSlots,t=this.$scopedSlots;Object.keys(e).forEach((e=>{if(!t[e]){const t=this.getMutationBySlot(e);t(void 0)}})),Object.keys(t).forEach((n=>{if(!e[n]){const e=this.getMutationBySlot(n);e(((e,s)=>t[n](s)))}})),this.$_cachedScopedSlots=t},getMutations(e){switch(e){case"aside":return L;case"header":return z;case"page":return H}},getMutationBySlot(e){const t=this.$_slotMutationsMap;if(t[e])return t[e];if("logo"===e)return t[e]=I.logoSlot,t[e];if("tags-view-item"===e)return t[e]=J.itemSlot,t[e];const n=e.split("-"),s=this.getMutations(n[0]);if(1===n.length)t[e]=s.defaultSlot;else{let i=n[1];for(let e=2,t=n.length;e<t;e++)i+=n[e][0].toUpperCase()+[...n[e].slice(1)].join("");t[e]=s[i+="Slot"]}return t[e]}},beforeCreate(){this.$_cachedScopedSlots=Object.create(null),this.$_slotMutationsMap=Object.create(null)},mounted(){this.$_resize=B((()=>{!document.hidden&&I.isMobile(g())})),window.addEventListener("resize",this.$_resize)},beforeDestroy(){this.$_resize&&(window.removeEventListener("resize",this.$_resize),delete this.$_resize),delete this.$_cachedScopedSlots,delete this.$_slotMutationsMap},render(){const e=arguments[0];return n.enableLayoutSlot&&this.mutateStoreSlot(),e("div",{class:{"el-admin-layout":!0,"has-header":!0,"has-tags-view":Y.enabled,"left-right":this.isLeftRight}},[e(bt,{ref:"header"}),Y.enabled&&e(jt,{ref:"tags-view"}),this.renderAside&&e(Je,{ref:"aside"}),e(yn,{ref:"page"})])}},xn=$n;var Cn,Sn,Tn=a(xn,Cn,Sn,!1,null,null,null);const In=Tn.exports;window&&window.Vue&&window.Vue.component(In.name,In)})(),o})()}));
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -195,14 +195,14 @@ export default {
|
|
|
195
195
|
this.activeKey === view.key && this.gotoLastTag();
|
|
196
196
|
})
|
|
197
197
|
.catch(() => {});
|
|
198
|
-
else
|
|
199
|
-
sessionStorage.removeItem("nodeId");
|
|
200
|
-
tagsViewMutations.delTagAndCache(view);
|
|
201
|
-
this.activeKey === view.key && this.gotoLastTag();
|
|
202
|
-
} else {
|
|
198
|
+
else {
|
|
203
199
|
if (tagsViewGetters.visitedViews.length <= 1 || isAffix(view)) return;
|
|
204
200
|
tagsViewMutations.delTagAndCache(view);
|
|
205
201
|
this.activeKey === view.key && this.gotoLastTag();
|
|
202
|
+
if (["销售工作台"].includes(view.meta.title)) {
|
|
203
|
+
window.localStorage.removeItem("allotEdit");
|
|
204
|
+
localStorage.removeItem("shipEdit");
|
|
205
|
+
}
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
|