upp-platform-core 1.1.21 → 1.1.22
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.
- package/README.md +4 -1
- package/lib/index.js +1 -1
- package/lib/index.js.gz +0 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"vue";import{Message as t,MessageBox as n,Notification as o,Loading as i}from"element-ui";import a from"axios";import{saveAs as A}from"file-saver";import r from"@/utils/errorCode";import{blobValidate as s}from"@/utils/commonSettings";import g from"@/config/host";import l from"clipboard";import C from"jsencrypt";import c from"lodash/debounce";import{sm4 as d}from"gm-crypt";import I from"js-md5";import{mapGetters as p,mapState as u,mapActions as m}from"vuex";import{RefreshIcon as h,ArrowLeftIcon as f,ArrowRightIcon as v,HomeIcon as b,CloseCircleIcon as y,ViewListIcon as x,UserCircleIcon as E,PoweroffIcon as w,SettingIcon as _,ChevronDownIcon as B,UserIcon as k}from"tdesign-icons-vue";import{Color as $}from"tvision-color";import{g as S,a as F,i as T}from"./settingColorHelper-ee383e17.js";var D={install:function(e,{componentPath:t,store:n}){e.prototype.$getRouteNameByPageValue=function(e){return n.getters["permission/menuPath"][t[e]]},e.prototype.$changePage=function(e,o={},i={}){const a=n.getters["permission/menuPath"][t[e]];a?this.$router.push({name:a,params:o,query:i}):this.$message.error("您没有该页面的权限!")},e.prototype.$tabClose=function(e,t,o){e?(n.commit("tabRouter/subtractCurrentTabRouter",{path:this.$route.path,routerIdx:n.getters["tabRouter/tabRouterList"].findIndex((e=>e.path===this.$route.path))}),this.$changePage(e,t,o)):this.$router.go(-1)}}};function R(e,t){for(const n in t)try{t[n].constructor===Object?e[n]=R(e[n],t[n]):e[n]=t[n]}catch(o){e[n]=t[n]}return e}class P{constructor(e,t,n){this.label=e,this.value=t,this.raw=n}}const O=["label","name","title"],L=["value","id","uid","key"];function N(e,...t){return t.find((t=>Object.prototype.hasOwnProperty.call(e,t)))}const q={metas:{"*":{request:()=>Promise.resolve([]),responseConverter:function(e,t){const n=e.content instanceof Array?e.content:e;return void 0===n?(console.error(`no dict data of "${t.type}" found in the response`),[]):n.map((e=>function(e,t){const n=N(e,t.labelField,...O),o=N(e,t.valueField,...L);return new P(e[n],e[o],e)}(e,t)))},labelField:"label",valueField:"value"}},DEFAULT_LABEL_FIELDS:O,DEFAULT_VALUE_FIELDS:L};function j(e){R(q,e)}class z{constructor(e){this.type=e.type,this.request=e.request,this.responseConverter=e.responseConverter,this.labelField=e.labelField,this.valueField=e.valueField,this.lazy=!0===e.lazy}}z.parse=function(e){let t=null;return"string"==typeof e?(t=q.metas[e]||{},t.type=e):"object"==typeof e&&(t=e),t=R(q.metas["*"],t),new z(t)};const M={types:[]};function W(t,n){return n.request(n).then((o=>{const{type:i}=n;let a=n.responseConverter(o,n);return a instanceof Array?a.filter((e=>e instanceof P)).length!==a.length&&(console.error("the type of elements in dicts must be DictData"),a=[]):(console.error("the return of responseConverter must be Array.<DictData>"),a=[]),t.type[i].splice(0,Number.MAX_SAFE_INTEGER,...a),a.forEach((n=>{e.set(t.label[i],n.value,n.label)})),a}))}class Y{constructor(){this.owner=null,this.label={},this.type={}}init(t){t instanceof Array&&(t={types:t});const n=R(M,t);if(void 0===n.types)throw new Error("need dict types");const o=[];return this._dictMetas=n.types.map((e=>z.parse(e))),this._dictMetas.forEach((t=>{const{type:n}=t;e.set(this.label,n,{}),e.set(this.type,n,[]),t.lazy||o.push(W(this,t))})),Promise.all(o)}reloadDict(e){const t=this._dictMetas.find((t=>t.type===e));return void 0===t?Promise.reject():W(this,t)}}function U(e,t){j(t),e.mixin({data(){if(void 0===this.$options||void 0===this.$options.dicts||null===this.$options.dicts)return{};const e=new Y;return e.owner=this,{dict:e}},created(){this.dict instanceof Y&&(t.onCreated?.(this.dict),this.dict.init(this.$options.dicts).then((()=>{t.onReady?.(this.dict),this.$nextTick((()=>{this.$emit("dict-ready",this.dict),this.$options.methods&&this.$options.methods.onDictReady instanceof Function&&this.$options.methods.onDictReady.call(this,this.dict)}))})))}})}var Z={install:function(e,{getDicts:t}){e.use(U,{metas:{"*":{labelField:"dictLabel",valueField:"dictValue",request:e=>t(e.type).then((e=>e.data))}}})}};function V(e,t){const n=t.getters&&t.getters["user/permissions"];return!!(e&&e.length>0)&&n.some((t=>"*:*:*"===t||t===e))}function H(e,t){const n=t.getters&&t.getters["user/permissions"];return!!(e&&e.length>0)&&n.some((t=>"admin"===t||t===e))}var X={session:{set(e,t){sessionStorage&&null!=e&&null!=t&&sessionStorage.setItem(e,t)},get:e=>sessionStorage?null==e?null:sessionStorage.getItem(e):null,setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(null!=t)return JSON.parse(t)},remove(e){sessionStorage.removeItem(e)}},local:{set(e,t){localStorage&&null!=e&&null!=t&&localStorage.setItem(e,t)},get:e=>localStorage?null==e?null:localStorage.getItem(e):null,setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(null!=t)return JSON.parse(t)},remove(e){localStorage.removeItem(e)}}};let G;var K={msg(e){t.info(e)},msgError(e){t.error(e)},msgSuccess(e){t.success(e)},msgWarning(e){t.warning(e)},alert(e){n.alert(e,"系统提示")},alertError(e){n.alert(e,"系统提示",{type:"error"})},alertSuccess(e){n.alert(e,"系统提示",{type:"success"})},alertWarning(e){n.alert(e,"系统提示",{type:"warning"})},notify(e){o.info(e)},notifyError(e){o.error(e)},notifySuccess(e){o.success(e)},notifyWarning(e){o.warning(e)},confirm:e=>n.confirm(e,"系统提示",{closeOnClickModal:!1,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}),prompt:e=>n.prompt(e,"系统提示",{closeOnClickModal:!1,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}),loading(e){G=i.service({lock:!0,text:e,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})},closeLoading(){G.close()}};const Q=g.development.API;var J={zip(e,t){a({method:"get",myUrl:Q+e,responseType:"blob",headers:{Authorization:`Bearer ${this.$store.getters["user/token"]}`}}).then((async e=>{if(await s(e.data)){const n=new Blob([e.data],{type:"application/zip"});this.saveAs(n,t)}else this.printErrMsg(e.data)}))},saveAs(e,t,n){A(e,t,n)},async printErrMsg(e){const n=await e.text(),o=JSON.parse(n),i=r[o.code]||o.msg||r.default;t.error(i)}},ee={install(e,{store:t}){e.prototype.$auth=function(e){return{hasPermi:e=>V(e),hasPermiOr:t=>t.some((t=>V(t,e))),hasPermiAnd:t=>t.every((t=>V(t,e))),hasRole:e=>H(e),hasRoleOr:t=>t.some((t=>H(t,e))),hasRoleAnd:t=>t.every((t=>H(t,e)))}}(t),e.prototype.$cache=X,e.prototype.$modal=K,e.prototype.$download=J}};var te={bind(e,t){const{value:n}=t;if(!1===n)return;const o=e.querySelector(".el-dialog__header"),i=e.querySelector(".el-dialog");o.style.cursor="move";const a=i.currentStyle||window.getComputedStyle(i,null);i.style.position="absolute",i.style.marginTop=0;let{width:A}=i.style;A=A.includes("%")?+document.body.clientWidth*(+A.replace(/%/g,"")/100):+A.replace(/\px/g,""),i.style.left=(document.body.clientWidth-A)/2+"px",o.onmousedown=e=>{const t=e.clientX-o.offsetLeft,n=e.clientY-o.offsetTop;let A,r;a.left.includes("%")?(A=+document.body.clientWidth*(+a.left.replace(/%/g,"")/100),r=+document.body.clientHeight*(+a.top.replace(/%/g,"")/100)):(A=+a.left.replace(/\px/g,""),r=+a.top.replace(/\px/g,"")),document.onmousemove=function(e){const o=e.clientX-t,a=e.clientY-n,s=o+A,g=a+r;i.style.left=`${s}px`,i.style.top=`${g}px`},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}}},ne={bind(e){const t=e.querySelector(".el-dialog"),n=document.createElement("div");n.style="width: 5px; background: inherit; height: 80%; position: absolute; right: 0; top: 0; bottom: 0; margin: auto; z-index: 1; cursor: w-resize;",n.addEventListener("mousedown",(n=>{const o=n.clientX-e.offsetLeft,i=t.offsetWidth;document.onmousemove=function(e){e.preventDefault();const n=e.clientX-o;t.style.width=`${i+n}px`},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}),!1),t.appendChild(n)}},oe={bind(e){const t=e.querySelector(".el-dialog"),n=document.createElement("div");n.style="width: 6px; background: inherit; height: 10px; position: absolute; right: 0; bottom: 0; margin: auto; z-index: 1; cursor: nwse-resize;",n.addEventListener("mousedown",(n=>{const o=n.clientX-e.offsetLeft,i=n.clientY-e.offsetTop,a=t.offsetWidth,A=t.offsetHeight;document.onmousemove=function(e){e.preventDefault();const n=e.clientX-o,r=e.clientY-i;t.style.width=`${a+n}px`,t.style.height=`${A+r}px`},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}),!1),t.appendChild(n)}},ie={bind(e,t){switch(t.arg){case"success":e._vClipBoard_success=t.value;break;case"error":e._vClipBoard_error=t.value;break;default:{const n=new l(e,{text:()=>t.value,action:()=>"cut"===t.arg?"cut":"copy"});n.on("success",(t=>{const n=e._vClipBoard_success;n?.(t)})),n.on("error",(t=>{const n=e._vClipBoard_error;n?.(t)})),e._vClipBoard=n}}},update(e,t){"success"===t.arg?e._vClipBoard_success=t.value:"error"===t.arg?e._vClipBoard_error=t.value:(e._vClipBoard.text=function(){return t.value},e._vClipBoard.action=()=>"cut"===t.arg?"cut":"copy")},unbind(e,t){e._vClipboard&&("success"===t.arg?delete e._vClipBoard_success:"error"===t.arg?delete e._vClipBoard_error:(e._vClipBoard.destroy(),delete e._vClipBoard))}};const ae=function(e,{store:t}){e.directive("hasRole",function(e){return{inserted(t,n){const{value:o}=n,i=e.getters&&e.getters["user/userRoles"];if(!(o&&o instanceof Array&&o.length>0))throw new Error('请设置角色权限标签值"');{const e=o;i.some((t=>"admin"===t||e.includes(t)))||t.parentNode?.removeChild(t)}}}}(t)),e.directive("hasPermi",function(e){return{inserted(t,n){const{value:o}=n,i=e.getters&&e.getters["user/permissions"];if(!(o&&o instanceof Array&&o.length>0))throw new Error("请设置操作权限标签值");{const e=o,n=i.some((t=>"*:*:*"===t||e.includes(t)));n||t.parentNode?.removeChild(t)}}}}(t)),e.directive("clipboard",ie),e.directive("dialogDrag",te),e.directive("dialogDragWidth",ne),e.directive("dialogDragHeight",oe)},Ae=(e,t,n)=>(e.includes("?")?e+=`&${t}=${n}`:e+=`?${t}=${n}`,e);async function re(t){return(await e.prototype.$request({url:`/system/app/${t}`,method:"get"})).data}async function se(t){return(await e.prototype.$request({url:"/system/token/exchangeClient",method:"get",params:{appId:t}})).data}var ge={install(e,t){var n;e.prototype.$jumpToApp=(n=t.store,async function(e,t){if(!t)return window.open(Ae(e,"access_token",n.getters["user/token"]));const{appType:o}=await re(t);if("0"===o){const n=await se(t);window.open(Ae(e,"access_token",n))}else window.open(e)})}},le={name:"FormSection",props:{action:{type:String,default:""},loading:{type:Boolean,default:!1},cancelText:{type:String,default:"取消"},saveText:{type:String,default:"保存"},submitText:{type:String,default:"提交"},border:{type:Boolean,default:!0},jumpPath:{type:String,default:""},hideFooter:{type:Boolean,default:!1}},data:()=>({loadingText:"玩命加载中请稍等...."}),computed:{isView(){return"View"===this.action}},methods:{handleCancel(){this.$listeners.cancel?this.$emit("cancel"):this.$tabClose(this.jumpPath)}}};function Ce(e,t,n,o,i,a,A,r,s,g){"boolean"!=typeof A&&(s=r,r=A,A=!1);const l="function"==typeof n?n.options:n;let C;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),o&&(l._scopeId=o),a?(C=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,s(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=C):t&&(C=A?function(e){t.call(this,g(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),C)if(l.functional){const e=l.render;l.render=function(t,n){return C.call(n),e(t,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,C):[C]}return n}const ce="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function de(e){return(e,t)=>function(e,t){const n=ce?t.media||"default":e,o=pe[n]||(pe[n]={ids:new Set,styles:[]});if(!o.ids.has(e)){o.ids.add(e);let n=t.source;if(t.map&&(n+="\n/*# sourceURL="+t.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),o.element||(o.element=document.createElement("style"),o.element.type="text/css",t.media&&o.element.setAttribute("media",t.media),void 0===Ie&&(Ie=document.head||document.getElementsByTagName("head")[0]),Ie.appendChild(o.element)),"styleSheet"in o.element)o.styles.push(n),o.element.styleSheet.cssText=o.styles.filter(Boolean).join("\n");else{const e=o.ids.size-1,t=document.createTextNode(n),i=o.element.childNodes;i[e]&&o.element.removeChild(i[e]),i.length?o.element.insertBefore(t,i[e]):o.element.appendChild(t)}}}(e,t)}let Ie;const pe={};const ue=le;var me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"form-section",class:{"form-section__view-only":e.isView,"no-footer":e.hideFooter},attrs:{"element-loading-text":e.loadingText}},[n("el-card",{staticClass:"box-margin form-section__card",class:{"form-view-hide-star":e.isView,"no-border":!e.border}},[n("div",{staticClass:"form-section__content"},[e._t("default")],2)]),e._v(" "),!e.hideFooter||e.$slots.btn?n("el-row",{staticClass:"submit-btns-box"},[n("div",{staticClass:"border-top"},[e.cancelText?n("el-button",{attrs:{icon:"el-icon-close"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.cancelText)+"\n ")]):e._e(),e._v(" "),e._t("btn"),e._v(" "),e.isView?e._e():[e.saveText?n("el-button",{attrs:{icon:"el-icon-check",type:"primary"},on:{click:function(t){return e.$emit("save","save")}}},[e._v("\n "+e._s(e.saveText)+"\n ")]):e._e(),e._v(" "),e.submitText&&"AuditEdit"!==e.action?n("el-button",{attrs:{icon:"el-icon-check",type:"primary"},on:{click:function(t){return e.$emit("submit","submit")}}},[e._v("\n "+e._s(e.submitText)+"\n ")]):e._e()]],2)]):e._e()],1)};me._withStripped=!0;const he=Ce({render:me,staticRenderFns:[]},(function(e){e&&e("data-v-025721e0_0",{source:'.form-section[data-v-025721e0] {\n height: 100%;\n overflow-y: auto;\n position: relative;\n}\n.form-section.common-content[data-v-025721e0] {\n padding: 0;\n}\n.form-section .el-card.form-section__card[data-v-025721e0] {\n overflow-y: auto;\n height: 100%;\n}\n.form-section .el-card.form-section__card.no-border[data-v-025721e0] {\n border: none;\n}\n.form-section[data-v-025721e0]:not(.no-footer) {\n padding-bottom: 72px;\n}\n.submit-btns-box[data-v-025721e0] {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n border-top: 1px solid #E9E9E9;\n padding: 20px;\n text-align: right;\n}\n.form-section__view-only[data-v-025721e0] .el-form-item__label::before {\n display: none;\n}\n.form-section__view-only[data-v-025721e0] .form-table.el-table .el-form-item.is-required {\n padding-left: 0;\n}\n.form-section__view-only[data-v-025721e0] .form-table.el-table .el-form-item.is-required::before {\n display: none;\n}\n.form-section__view-only[data-v-025721e0] .form-table.el-table .el-form-item span.view-item {\n margin-left: 0;\n margin-top: 0;\n padding: 0 15px;\n}\n:root[theme-mode="dark"] .border-top[data-v-025721e0],\n:root[theme-mode="dark"] .form-section[data-v-025721e0]::before {\n background: var(--td-bg-color-page);\n}\n',map:{version:3,sources:["FormSection.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ;AACA;EACE,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,SAAS;EACT,6BAA6B;EAC7B,aAAa;EACb,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;EACd,aAAa;EACb,eAAe;AACjB;AACA;;EAEE,mCAAmC;AACrC",file:"FormSection.vue",sourcesContent:['.form-section {\n height: 100%;\n overflow-y: auto;\n position: relative;\n}\n.form-section.common-content {\n padding: 0;\n}\n.form-section .el-card.form-section__card {\n overflow-y: auto;\n height: 100%;\n}\n.form-section .el-card.form-section__card.no-border {\n border: none;\n}\n.form-section:not(.no-footer) {\n padding-bottom: 72px;\n}\n.submit-btns-box {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n border-top: 1px solid #E9E9E9;\n padding: 20px;\n text-align: right;\n}\n.form-section__view-only ::v-deep .el-form-item__label::before {\n display: none;\n}\n.form-section__view-only ::v-deep .form-table.el-table .el-form-item.is-required {\n padding-left: 0;\n}\n.form-section__view-only ::v-deep .form-table.el-table .el-form-item.is-required::before {\n display: none;\n}\n.form-section__view-only ::v-deep .form-table.el-table .el-form-item span.view-item {\n margin-left: 0;\n margin-top: 0;\n padding: 0 15px;\n}\n:root[theme-mode="dark"] .border-top,\n:root[theme-mode="dark"] .form-section::before {\n background: var(--td-bg-color-page);\n}\n']},media:void 0})}),ue,"data-v-025721e0",false,undefined,!1,de,void 0,void 0);const fe={name:"CommonDialog",props:{value:{type:Boolean,default:!1},dialogTitle:{type:String,default:"详情"},label:{type:String,default:"打开弹窗"},btn:{type:Object,default:()=>({type:"primary"})},closeOnClickModal:{type:Boolean,default:!1},bodyScroll:{type:Boolean,default:!1},height:{type:String,default:"0"},viewOnly:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},btnType:{type:String,default:""},btnIcon:{type:String,default:""},showClose:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},computed:{visible:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},applyFooterPadding(){return this.$slots.footer}}};var ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.label?n("el-button",e._b({attrs:{icon:e.btnIcon,type:e.btnType,disabled:e.disabled,plain:""},on:{click:function(t){e.visible=!0,e.$emit("open")}}},"el-button",e.btn,!1),[e._v("\n "+e._s(e.label)+"\n ")]):e._e(),e._v(" "),n("el-dialog",e._g(e._b({class:{"common-dialog__body--scroll":e.bodyScroll,"fix-height":"1"===e.height,"common-dialog":!0,"view-only":e.viewOnly,"no-footer":e.noFooter,"apply-footer-padding":e.applyFooterPadding},attrs:{"close-on-click-modal":e.closeOnClickModal,"show-close":e.showClose,visible:e.visible,title:e.dialogTitle,top:e.bodyScroll||"1"===e.height?"80px":"15vh"},on:{"update:visible":function(t){e.visible=t}}},"el-dialog",e.$attrs,!1),e.$listeners),[e.$slots.title?[e._t("title")]:e._e(),e._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"common-dialog__main"},[e._t("default")],2),e._v(" "),e.noFooter?e._e():n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e._t("footer"),e._v(" "),e.viewOnly?e._e():n("el-button",{attrs:{icon:"el-icon-close",loading:e.loading},on:{click:function(t){e.visible=!1,e.$emit("cancel")}}},[e._v("取消")]),e._v(" "),e.viewOnly?e._e():n("el-button",{attrs:{icon:"el-icon-check",loading:e.loading,type:"primary"},on:{click:function(t){return e.$emit("ok")}}},[e._v("确定")])],2)],2)],1)};ve._withStripped=!0;const be=Ce({render:ve,staticRenderFns:[]},(function(e){e&&e("data-v-8f79c986_0",{source:".common-dialog[data-v-8f79c986] .common-dialog__main {\n height: 100%;\n}\n.common-dialog[data-v-8f79c986] .el-dialog__footer {\n padding: 20px;\n border-top: 1px solid #E9E9E9;\n}\n.common-dialog[data-v-8f79c986] .el-dialog__body {\n overflow-y: auto;\n padding: 20px;\n margin: 0;\n}\n.common-dialog[data-v-8f79c986] .form-section,\n.common-dialog[data-v-8f79c986] .el-card__body {\n padding: 0 !important;\n overflow-y: hidden;\n height: auto;\n}\n.common-dialog[data-v-8f79c986] .is-fullscreen .el-dialog__body {\n height: calc(100% - 120px);\n}\n.common-dialog.common-dialog__body--scroll[data-v-8f79c986] .el-dialog__body {\n max-height: calc(100vh - 300px);\n}\n.common-dialog.common-dialog__body--scroll.view-only[data-v-8f79c986] .el-dialog__body,\n.common-dialog.common-dialog__body--scroll.no-footer[data-v-8f79c986] .el-dialog__body {\n max-height: calc(100vh - 200px);\n}\n.common-dialog.fix-height[data-v-8f79c986] {\n /* stylelint-disable-next-line no-descending-specificity */\n}\n.common-dialog.fix-height[data-v-8f79c986] .el-dialog__body {\n height: calc(100vh - 300px);\n}\n.common-dialog.fix-height.view-only[data-v-8f79c986] .el-dialog__body,\n.common-dialog.fix-height.no-footer[data-v-8f79c986] .el-dialog__body {\n height: calc(100vh - 200px);\n}\n.common-dialog.view-only[data-v-8f79c986]:not(.apply-footer-padding) .el-dialog__footer {\n padding: 0px;\n}\n.common-dialog.no-footer[data-v-8f79c986] .is-fullscreen .el-dialog__body,\n.common-dialog.view-only[data-v-8f79c986]:not(.apply-footer-padding) .is-fullscreen .el-dialog__body {\n height: calc(100% - 47px);\n}\n",map:{version:3,sources:["CommonDialog.vue"],names:[],mappings:"AAAA;EACE,YAAY;AACd;AACA;EACE,aAAa;EACb,6BAA6B;AAC/B;AACA;EACE,gBAAgB;EAChB,aAAa;EACb,SAAS;AACX;AACA;;EAEE,qBAAqB;EACrB,kBAAkB;EAClB,YAAY;AACd;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,+BAA+B;AACjC;AACA;;EAEE,+BAA+B;AACjC;AACA;EACE,0DAA0D;AAC5D;AACA;EACE,2BAA2B;AAC7B;AACA;;EAEE,2BAA2B;AAC7B;AACA;EACE,YAAY;AACd;AACA;;EAEE,yBAAyB;AAC3B",file:"CommonDialog.vue",sourcesContent:[".common-dialog /deep/ .common-dialog__main {\n height: 100%;\n}\n.common-dialog /deep/ .el-dialog__footer {\n padding: 20px;\n border-top: 1px solid #E9E9E9;\n}\n.common-dialog /deep/ .el-dialog__body {\n overflow-y: auto;\n padding: 20px;\n margin: 0;\n}\n.common-dialog /deep/ .form-section,\n.common-dialog /deep/ .el-card__body {\n padding: 0 !important;\n overflow-y: hidden;\n height: auto;\n}\n.common-dialog /deep/ .is-fullscreen .el-dialog__body {\n height: calc(100% - 120px);\n}\n.common-dialog.common-dialog__body--scroll /deep/ .el-dialog__body {\n max-height: calc(100vh - 300px);\n}\n.common-dialog.common-dialog__body--scroll.view-only /deep/ .el-dialog__body,\n.common-dialog.common-dialog__body--scroll.no-footer /deep/ .el-dialog__body {\n max-height: calc(100vh - 200px);\n}\n.common-dialog.fix-height {\n /* stylelint-disable-next-line no-descending-specificity */\n}\n.common-dialog.fix-height /deep/ .el-dialog__body {\n height: calc(100vh - 300px);\n}\n.common-dialog.fix-height.view-only /deep/ .el-dialog__body,\n.common-dialog.fix-height.no-footer /deep/ .el-dialog__body {\n height: calc(100vh - 200px);\n}\n.common-dialog.view-only:not(.apply-footer-padding) /deep/ .el-dialog__footer {\n padding: 0px;\n}\n.common-dialog.no-footer /deep/ .is-fullscreen .el-dialog__body,\n.common-dialog.view-only:not(.apply-footer-padding) /deep/ .is-fullscreen .el-dialog__body {\n height: calc(100% - 47px);\n}\n"]},media:void 0})}),fe,"data-v-8f79c986",false,undefined,!1,de,void 0,void 0);const ye={name:"DictTag",props:{options:{type:Array,default:null},value:[Number,String,Array]},computed:{values(){return null!==this.value&&void 0!==this.value?Array.isArray(this.value)?this.value:[String(this.value)]:[]}}};var xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.options,(function(t,o){return[e.values.includes(t.value)?["default"==t.raw.listClass||""==t.raw.listClass?n("span",{key:t.value,class:t.raw.cssClass,attrs:{index:o}},[e._v(e._s(t.label))]):n("el-tag",{key:t.value,class:t.raw.cssClass,attrs:{"disable-transitions":!0,index:o,type:"primary"==t.raw.listClass?"":t.raw.listClass}},[e._v("\n "+e._s(t.label)+"\n ")])]:e._e()]}))],2)};xe._withStripped=!0;const Ee=Ce({render:xe,staticRenderFns:[]},(function(e){e&&e("data-v-0fe8dc64_0",{source:".el-tag + .el-tag[data-v-0fe8dc64] {\n margin-left: 10px;\n}\n",map:{version:3,sources:["DictTag.vue"],names:[],mappings:"AAAA;EACE,iBAAiB;AACnB",file:"DictTag.vue",sourcesContent:[".el-tag + .el-tag {\n margin-left: 10px;\n}\n"]},media:void 0})}),ye,"data-v-0fe8dc64",false,undefined,!1,de,void 0,void 0);const we={name:"RightToolbar",props:{hasSearch:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},backPathName:{type:String,default:""}},data:()=>({value:[],title:"显示/隐藏",open:!1}),created(){Object.keys(this.columns).forEach((e=>{!1===this.columns[e].visible&&this.value.push(parseInt(e,10))}))},methods:{toggleSearch(){this.$emit("update:showSearch",!this.showSearch)},refresh(){this.$emit("queryTable")},dataChange(e){Object.keys(this.columns).forEach((t=>{const n=this.columns[t].key;this.columns[t].visible=!e.includes(n)}))},showColumn(){this.open=!0},goBack(){this.$listeners.back?this.$emit("back"):this.$tabClose(this.backPathName)}}};var _e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"top-right-btn"},[n("el-row",[e.hasSearch?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.showSearch?"隐藏搜索":"显示搜索",placement:"top"}},[n("el-button",{attrs:{circle:"",icon:"el-icon-search"},on:{click:function(t){return e.toggleSearch()}}})],1):e._e(),e._v(" "),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"刷新",placement:"top"}},[n("el-button",{attrs:{circle:"",icon:"el-icon-refresh"},on:{click:function(t){return e.refresh()}}})],1),e._v(" "),e.columns.length>0?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"显隐列",placement:"top"}},[n("el-button",{attrs:{circle:"",icon:"el-icon-menu"},on:{click:function(t){return e.showColumn()}}})],1):e._e(),e._v(" "),e.backPathName||e.$listeners.back?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"返回",placement:"top"}},[n("el-button",{attrs:{circle:"",icon:"el-icon-back"},on:{click:function(t){return e.goBack()}}})],1):e._e()],1),e._v(" "),e.columns.length>0?n("el-dialog",{attrs:{"close-on-click-modal":!1,title:e.title,visible:e.open,"append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[n("el-transfer",{attrs:{titles:["显示","隐藏"],data:e.columns},on:{change:e.dataChange},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1):e._e()],1)};_e._withStripped=!0;const Be=Ce({render:_e,staticRenderFns:[]},(function(e){e&&e("data-v-7a954f48_0",{source:"[data-v-7a954f48] .el-transfer__button {\n border-radius: 50%;\n padding: 12px;\n display: block;\n margin-left: 0;\n}\n[data-v-7a954f48] .el-transfer__button:first-child {\n margin-bottom: 10px;\n}\n.top-right-btn[data-v-7a954f48] {\n flex: 1;\n display: flex;\n justify-content: flex-end;\n}\n.top-right-btn[data-v-7a954f48] .el-button--mini.is-circle {\n width: 40px;\n box-sizing: border-box;\n}\n",map:{version:3,sources:["RightToolbar.vue"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,aAAa;EACb,cAAc;EACd,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,OAAO;EACP,aAAa;EACb,yBAAyB;AAC3B;AACA;EACE,WAAW;EACX,sBAAsB;AACxB",file:"RightToolbar.vue",sourcesContent:["::v-deep .el-transfer__button {\n border-radius: 50%;\n padding: 12px;\n display: block;\n margin-left: 0;\n}\n::v-deep .el-transfer__button:first-child {\n margin-bottom: 10px;\n}\n.top-right-btn {\n flex: 1;\n display: flex;\n justify-content: flex-end;\n}\n.top-right-btn ::v-deep .el-button--mini.is-circle {\n width: 40px;\n box-sizing: border-box;\n}\n"]},media:void 0})}),we,"data-v-7a954f48",false,undefined,!1,de,void 0,void 0);function ke(e){const t=new C;return t.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvGqR2QqERJkFRCD/8i/9\nnDioWOq4xyDzIgWtSJWMmpsOQIC20rxdteVPa6UgJHZm3matHirRkixqFIceXjIf\nK1UZQp8+ivsVqmZS3uCSqVXxHq/Y8aKG3h2ds2b3ddViffpKqFJZOL9Q0zlzYofy\nuwqd5ZnH+ESPUzVYV9qfUF8f9DlLIW2LYrbnAFWGN+OQ3yovsvMxxSTV9V/Yrb6Z\nNtfqiNJkHCPCh01g6WaP1ko1WjUTdFGisa06UJnDHU9Kq/V8AoI3umt2jSnWneO3\nhzkWI1d87Cmyt90kgU+N8f6ld1GFOvxaNW+nuq/e/RJff18tO3V+04m9uzBVkJmT\n+wIDAQAB"),t.encrypt(e)}function $e(e){return function(t){const n=new C;return n.setPublicKey(e||"MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKsr9kM6vJHJb8KgWhY6xVaYCkLEr+QKeuYUoZ2uX3+t4lzbxdf1JeJ2jUs26jWWgkpe3W1UHxXUaapyTG9sFbECAwEAAQ=="),n.encrypt(t)}}const Se="token-expired-alert-box",Fe="api-error-alert-box";let Te,De=[];function Re(e){const t=document.querySelector(`.${e}`);return-1===t?.parentElement?.getAttribute("style")?.indexOf("display: none;")}let Pe=0;const Oe=c((()=>{Te&&Te.close(),Te=null}),300);function Le(){Pe-=1,Pe=Math.max(Pe,0),0===Pe&&Oe()}function Ne(e,t,o,A,r,s,g,l=!0){const C=a.create({baseURL:o,timeout:9e4,withCredentials:!0});return C.interceptors.request.use((e=>{const n=!1===(e.headers||{}).isToken;if(r()&&!n&&(e.headers.Authorization=`Bearer ${r()}`),e.headers["App-Id"]=g,"get"===e.method&&e.params){let n=`${e.url}?${t(e.params)}`;n=n.slice(0,-1),e.params={},e.url=n}if(l){const n=["000000","00000","0000","000","00","0",""],o=`${parseInt(1e6*Math.random())}`,i=new d({key:"30807165ed274e01",mode:"ecb",cipherType:"base64"});e.headers["X-timestamp"]=(new Date).valueOf(),e.headers["X-nonce"]=n[o.length]+o;const a=e.data?JSON.stringify(e.data).replace(/\s/g,""):"";let A=e.url.startsWith("/")?e.url:`/${e.url}`;"get"!==e.method&&e.params&&(A=`${A}?${t(e.params)}`,A=A.slice(0,-1));const r=e.baseURL.endsWith("/workflow")?"/workflow":"";e.headers["X-signature"]=I(i.encrypt(r+A+a+e.headers["X-timestamp"]+e.headers["X-nonce"]))}var o;return!1!==e.headers.showLoading&&(o=e.headers.loadingTarget,0!==Pe||Te||(Te=i.service({lock:!0,text:"数据加载中...",background:"rgba(0, 0, 0, 0.5)",target:o||"body"})),Pe+=1),e}),(e=>{Le(),Promise.reject(e)})),C.interceptors.response.use((t=>{t.headers.ntk&&e.commit("user/setToken",t.headers.ntk);const n=t.config;return n.returnAll||"blob"===t.request.responseType||"arraybuffer"===t.request.responseType?(Le(),n.returnAll?t:t.data):200===t.data.code||200===t.status?(!1!==t.config.headers.showLoading&&Le(),A()&&!1!==t.config.headers.showLoading&&(Pe=1,Le()),t.data):(Le(),t.data)}),(t=>{const{config:o}=t;if(Le(),!o||!o.retry){if(401===t.response.data.code)!Re(Se)&&n.confirm("登录状态已过期,您可以继续留在该页面,或者重新登录","系统提示",{confirmButtonText:"重新登录",cancelButtonText:"取消",customClass:Se,type:"warning"}).then((()=>{s(),e.dispatch("user/logout"),e.dispatch("permission/restore")}));else if(!o.notErrorTip&&!Re(Se)){const e=t.response?.data?.errorInfo?.message||t.response?.data?.msg||t.response?.statusText||"接口报错";Re(Fe)&&De.includes(e)||(De.push(e),n.alert(e,"系统提示",{type:"error",dangerouslyUseHTMLString:!0,customClass:Fe}).finally((()=>{De=De.filter((t=>t!==e))})))}return Promise.reject(t)}if(o.retryCount=o.retryCount||0,o.retryCount>=o.retry)return Promise.reject(t);o.retryCount+=1;return new Promise((e=>{setTimeout((()=>{e({})}),o.retryDelay||1)})).then((()=>C(o)))})),C.interceptors.retry=3,C}async function qe(t={}){const n=await async function(t){return(await e.prototype.$request({url:`/system/app/${t}`,method:"get"})).data}(t.appId),{appPcAccessUrl:o,appType:i}=n,a=o.search(/#\//),A=-1===a?o:o.slice(0,a),r={...t};if("0"===i){const n=await async function(t){if(!t)return;return(await e.prototype.$request({url:"/system/token/exchangeClient",method:"get",params:{appId:t}})).data}(t.appId);r.access_token=n}r.action="Audit",r.url="task";const s=new URL(`${A}?${new URLSearchParams(r)}`),g=-1===a?s.toString():`${s.origin}${s.pathname?s.pathname:"/"}#/${s.search}`;window.open(g,"_self")}let je=!0;let ze=null;async function Me({NProgress:e,getStore:t,to:n,from:o,next:i}){if(function(e,t){return!!e.query.access_token&&("/appCallback"===e.path?(t(),!0):(t({path:"/appCallback",query:{...e.query,redirect:e.path}}),!0))}(n,i))return void(je=!1);const a=t();if(e.start(),n.query.isIframeView&&function(e){const t="dynamic-scrollbar-style";let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.innerHTML=`\n /* 你可以为所有滚动条设置样式,或限定某个元素 */\n ::-webkit-scrollbar {\n width: ${e} !important;\n height: ${e} !important;\n }\n `}("3px"),"/login"===n.path&&Object.prototype.hasOwnProperty.call(n.query,"srid"))return i(),void e.done();if("/homePage/todoList"===n.path&&Object.prototype.hasOwnProperty.call(n.query,"taskId")){const{query:e}=n;qe(e),i({path:o.path})}if(0===n.path.indexOf("/iamCallback")||"/logout"===n.path||"/appCallback"===n.path)i();else if(Object.prototype.hasOwnProperty.call(n.query,"srid"))await a.commit("user/removeToken"),i({path:"/login",query:{...n.query}});else{je&&!window.performance.navigation?.type&&(await a.dispatch("user/firstAccessApp"),je=!1);if(a.getters["user/token"]){const t=a.getters["user/roles"];if(t&&t.length>0&&a.getters["permission/routers"].length>0)"/login"===n.path||"/"===n.path||"/404"===n.path&&"/404"!==ze?(n.query.redirect?i(n.query.redirect):a.getters["user/showHomeDrag"]&&a.getters["permission/hasHomePage"]?i({path:"/homePage/index"}):i(ze),e.done()):i();else try{"/login"!==o.path&&await a.dispatch("user/getUserInfo",!0),await a.dispatch("permission/initRoutes"),ze=a.getters["permission/defaultTo"],i({...n})}catch(t){await a.commit("user/removeToken"),i(`/login?redirect=${n.fullPath}`),e.done()}}else-1!==a.getters["permission/whiteListRouters"].indexOf(n.path)?i():"/"===n.path&&ze?i(ze):"/"===n.path&&"/iamCallback"===window.location.pathname?window.location.href=`/#/iamCallback${window.location.search}`:n.query.skipLogin?i():i(`/login?redirect=${n.fullPath}`),e.done()}}const We={data:()=>({items:[]}),created(){this.$on("dict-ready",(()=>{this.items.forEach((e=>{e.dict&&this.dict?.type[e.dict]&&this.$set(e,"options",this.dict.type[e.dict].map((e=>({label:e.label,value:e.value}))))}))}))}},Ye=["webkit","moz","ms","o"];function Ue(){if("hidden"in document)return"hidden";for(let e=0;e<Ye.length;e++)if(`${Ye[e]}Hidden`in document)return`${Ye[e]}Hidden`;return null}let Ze=null;const Ve=Ue(),He=function(e=Ue()){return`${e.replace(/[H|h]idden/,"")}visibilitychange`}(Ve);let Xe=null;var Ge={data:()=>({needRefreshToken:!0}),computed:{isInIframe:function(){return window.self!==window.top}},watch:{"$route.path":{handler:function(e){this.needRefreshToken&&("/login"===e&&this.clearTokenInfo(),this.needTime(e)?Ze||this.startTiming():this.stopTiming())},immediate:!0}},mounted(){this.handleWindowTab()},beforeDestroy(){this.stopTiming(),document.removeEventListener(He,this.windowTabActive,!1)},methods:{needTime:function(e=this.$route.path){return!["/login","/"].includes(e)},handleWindowTab:function(){this.needRefreshToken&&Ve&&document.addEventListener(He,this.windowTabActive,!1)},windowTabActive:function(){if("visible"!==document[function(){if("visibilityState"in document)return"visibilityState";for(let e=0;e<Ye.length;e++)if(`${Ye[e]}VisibilityState`in document)return`${Ye[e]}VisibilityState`;return null}()])return!1;this.refreshToken().then((()=>{this.needTime()&&this.startTiming()})).catch((e=>{e&&"noRefresh"!==e.message&&console.error("refresnToken:",e)}))},getRequestData:function(){const e={},t=this.$store.getters["user/userInfo"];return t?.userName&&(e.username=t.userName,!1===this.localIsStoreUser()&&this.setLocalToStoreToken()),this.$route.query.srid&&(e.srid=this.$route.query.srid),e.token=this.getToken(),e},refreshToken:function(){return this.getToken()?this.$request.post("/auth/checkAndRefreshToken"+(this.$route.query.srid?`?srid=${this.$route.query.srid}`:""),{...this.getRequestData()},{headers:{showLoading:!1}}).then(this.handleRequestResult):(this.stopTiming(),Promise.reject(new Error("noRefresh")))},handleRequestResult:function({data:e}){if(this.isInIframe)e.newToken&&this.$store.commit("user/setToken",e.newToken);else if(e.tokenInvalid)this.reloadWindow(e.message||"token 无效","确定",(()=>{this.$route.push("/login")}));else if(e.redirectUrl)this.reloadWindow("已在其他页面登录,页面将重新载入","确定",(()=>{window.location.href=this.setComplateRedirectUrl(e)}));else if(e.refreshTokenExpired){const e=this.refreshTokenData.proxy[this.refreshTokenData.env].APP_ID,t=this.localIsStoreUser();e&&"$system$"!==e||!1===t||!localStorage.getItem(this.refreshTokenData.TOKEN_NAME)||this.$store.getters["user/token"]===localStorage.getItem(this.refreshTokenData.TOKEN_NAME)?(this.$store.commit("user/removeToken"),this.reloadWindow("已在其它地方登录或登出","重新登录")):this.reloadWindow("已在其他页面重新登录,页面将重新载入")}else e.tokenExpired?"/login"!==this.$route.path?this.reloadWindow("登录状态已过期","重新登录",(()=>{this.$store.dispatch("user/logout")})):this.$store.commit("user/removeToken"):e.userChanged?"/login"===this.$route.path?this.reloadWindow("已在其他页面登录,页面将重新载入","确定",(()=>{this.setLocalToStoreToken(),this.$router.push(this.$route.query.redirect||"/homePage/index")})):this.reloadWindow(`登录用户已改变【新用户为:${e.newUsername}】,页面将重新载入`):e.tenantChanged?(this.$store.commit("user/setToken",e.newToken),this.reloadWindow("租户已改变,页面将重新载入")):e.newToken&&this.$store.commit("user/setToken",e.newToken)},reloadWindow:function(e,t="确定",n=()=>window.location.reload()){const o=document.querySelector(".auto-refresh-token-alert-box");o?this.refreshTip(o,e,t):this.$alert(e,"系统提示",{type:"warning",showClose:!1,confirmButtonText:t,closeOnClickModal:!1,customClass:"auto-refresh-token-alert-box",callback:()=>{(Xe||n)()}})},refreshTip:function(e,t,n,o){e.querySelector(".el-message-box__message").innerHTML=`<p>${t}</p>`,e.querySelector(".el-button").innerHTML=`<span>${n}</span>`,Xe=o},startTiming:function(){Ze&&clearInterval(Ze),Ze=setInterval((()=>{this.refreshToken()}),3e5)},stopTiming:function(){Ze&&(clearInterval(Ze),Ze=null)},clearTokenInfo:function(){this.$store.commit("user/removeToken"),this.$store.commit("user/setUserInfo")},getToken:function(){return this.$store.getters["user/token"]||localStorage.getItem(this.refreshTokenData.TOKEN_NAME)},setComplateRedirectUrl:function(e){let t;return t="development"===this.refreshTokenData.env?`${window.location.origin}${this.refreshTokenData.proxy[this.refreshTokenData.env].API}`:this.refreshTokenData.proxy[this.refreshTokenData.env].API,t=`${t}/auth${e.redirectUrl}`,t},localIsStoreUser:function(){const e=localStorage.getItem(this.refreshTokenData.USER_NAME);return e&&this.$store.getters["user/userInfo"]?.userName===e},setLocalToStoreToken:function(){localStorage.getItem(this.refreshTokenData.TOKEN_NAME)&&this.$store.commit("user/setToken",localStorage.getItem(this.refreshTokenData.TOKEN_NAME))}}};const Ke={props:{loginContent:{type:Object,default:()=>({})},codeStatus:{type:Boolean,default:!1}},methods:{goCallBack(){this.$request.get("/auth/getCorpOauthUrl",{params:{redirect:this.$route.query.redirect,srid:this.$route.query.srid}}).then((e=>{window.location.href=e.data}))}}};var Qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"first-tab-body",style:e.loginContent.hideCompanyLoginBodyHeight?"":"height: 375px;"},[e.loginContent.hideCompanyLoginLogo?e._e():n("div",{staticClass:"logo-img"}),e._v(" "),e.loginContent.hideCompanyLoginContent?e._e():n("div",{staticClass:"company-name"},[n("div",{staticClass:"chinese-name"},[e._v("\n "+e._s(e.loginContent.loginCompanyChineseName)+"\n ")]),e._v(" "),n("div",{staticClass:"english-name"},[e._v("\n "+e._s(e.loginContent.loginCompanyEnglishName)+"\n ")])]),e._v(" "),e.codeStatus?n("t-button",{staticClass:"login__submit-btn",attrs:{block:"",size:"large"},on:{click:e.goCallBack}},[e._v("\n "+e._s(e.loginContent.loginCompanyBtn)+"\n ")]):e._e()],1)};Qe._withStripped=!0;const Je=Ce({render:Qe,staticRenderFns:[]},(function(e){e&&e("data-v-86c5adf0_0",{source:".first-tab-body .logo-img[data-v-86c5adf0] {\n width: 107px;\n height: 95px;\n background-size: 107px 95px;\n}\n.first-tab-body[data-v-86c5adf0] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.company-name[data-v-86c5adf0] {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px 0 30px;\n flex: 1;\n}\n.chinese-name[data-v-86c5adf0] {\n font-size: 28px;\n font-weight: 500;\n height: 33px;\n line-height: 33px;\n}\n.english-name[data-v-86c5adf0] {\n font-size: 22px;\n font-weight: 500;\n height: 28px;\n line-height: 28px;\n margin-top: 5px;\n}\n.login-btn[data-v-86c5adf0] {\n width: 100%;\n}\n",map:{version:3,sources:["ComponentsCompanyLogin.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,YAAY;EACZ,2BAA2B;AAC7B;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,oBAAoB;EACpB,OAAO;AACT;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,YAAY;EACZ,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,WAAW;AACb",file:"ComponentsCompanyLogin.vue",sourcesContent:[".first-tab-body .logo-img {\n width: 107px;\n height: 95px;\n background-size: 107px 95px;\n}\n.first-tab-body {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.company-name {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px 0 30px;\n flex: 1;\n}\n.chinese-name {\n font-size: 28px;\n font-weight: 500;\n height: 33px;\n line-height: 33px;\n}\n.english-name {\n font-size: 22px;\n font-weight: 500;\n height: 28px;\n line-height: 28px;\n margin-top: 5px;\n}\n.login-btn {\n width: 100%;\n}\n"]},media:void 0})}),Ke,"data-v-86c5adf0",false,undefined,!1,de,void 0,void 0);const et={name:"AppInfo",props:{loginContent:{type:Object,default:()=>({})},appIcon:{type:String,default:""}},data:function(){return{footerMessage:`${this.loginContent.loginPanelFooter.slice(-4)}:${this.loginContent.loginPanelFooter.slice(0,-4)}`,footerRecordNo:this.loginContent.recordNo,showInfo:this.$proxyEnv.showInfo}}};var tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login__app-info"},[e._m(0),e._v(" "),n("img",{attrs:{src:e.appIcon}}),e._v(" "),e.showInfo?n("div",{staticClass:"login__footer"},[n("span",[e._v(e._s(e.footerMessage))]),e._v(" "),n("span",[e._v(e._s(e.footerRecordNo))])]):e._e()])};tt._withStripped=!0;const nt={phone:[{required:!0,message:"手机号必填",type:"error"}],username:[{required:!0,message:"账号必填",type:"error"}],password:[{required:!0,message:"密码必填",type:"error"}],code:[{required:!0,message:"验证码必填",type:"error"}],corpOtpCode:[{required:!0,message:"动态口令必填",type:"error"}],captcha:[{required:!0,message:"图形验证码必填",type:"error"}]};const ot={name:"Login",components:{ComponentsCompanyLogin:Je,ComponentsappInfo:Ce({render:tt,staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"desc"},[n("p",{staticClass:"title"},[e._v("\n 移动端H5访问链接\n ")]),e._v(" "),n("p",{staticClass:"sub-title"},[e._v("\n 请用手机App扫右方二维码,进行移动\n 端H5界面的访问。\n ")])])}]},(function(e){e&&e("data-v-16650ef8_0",{source:'.login__app-info[data-v-16650ef8] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n}\n.login__app-info[data-v-16650ef8]::before {\n content: "";\n display: inline-block;\n position: absolute;\n height: 1.33px;\n background-color: #EEEEEE;\n top: -8px;\n left: 48px;\n right: 48px;\n}\n.login__app-info img[data-v-16650ef8] {\n width: 122px;\n height: 144px;\n}\n.login__app-info .desc[data-v-16650ef8] {\n flex: 1;\n}\n.login__app-info .desc .title[data-v-16650ef8] {\n font-size: 20px;\n line-height: 59.55px;\n letter-spacing: 1px;\n}\n.login__app-info .desc .sub-title[data-v-16650ef8] {\n font-size: 14px;\n line-height: 28px;\n letter-spacing: 0.4px;\n color: #909093;\n margin-bottom: 28px;\n}\n.login__app-info .login__footer[data-v-16650ef8] {\n position: fixed;\n bottom: 0;\n padding-bottom: 10px;\n width: 100vw;\n left: 0;\n right: 0;\n display: flex;\n justify-content: center;\n font-size: 14px;\n line-height: 45.55px;\n letter-spacing: 0.4px;\n color: #779BF0;\n}\n.login__app-info .login__footer span + span[data-v-16650ef8] {\n margin-left: 24px;\n}\n',map:{version:3,sources:["ComponentsAppInfo.vue","C:\\Users\\yuyang\\Desktop\\work\\qd\\platform-frontend-libs\\packages\\login\\ComponentsAppInfo.vue"],names:[],mappings:"AAAA;EACE,aAAa;EACb,8BAA8B;EAC9B,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,qBAAqB;EACrB,kBAAkB;EAClB,cAAc;EACd,yBAAyB;EACzB,SAAS;EACT,UAAU;EACV,WAAW;AACb;AACA;EACE,YAAY;EACZ,aAAa;AACf;AACA;EACE,OAAO;AACT;AACA;EACE,eAAe;EACf,oBAAoB;EACpB,mBAAmB;AACrB;AACA;EACE,eAAe;EACf,iBAAiB;EACjB,qBAAqB;EACrB,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,eAAe;EACf,SAAS;EACT,oBAAoB;EACpB,YAAY;EACZ,OAAO;EACP,QAAQ;EACR,aAAa;ECCf,uBAAA;EACA,eAAA;EACA,oBAAA;EACA,qBAAA;EACA,cAAA;ADCA;ACCA;EACA,iBAAA;AACA",file:"ComponentsAppInfo.vue",sourcesContent:['.login__app-info {\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n}\n.login__app-info::before {\n content: "";\n display: inline-block;\n position: absolute;\n height: 1.33px;\n background-color: #EEEEEE;\n top: -8px;\n left: 48px;\n right: 48px;\n}\n.login__app-info img {\n width: 122px;\n height: 144px;\n}\n.login__app-info .desc {\n flex: 1;\n}\n.login__app-info .desc .title {\n font-size: 20px;\n line-height: 59.55px;\n letter-spacing: 1px;\n}\n.login__app-info .desc .sub-title {\n font-size: 14px;\n line-height: 28px;\n letter-spacing: 0.4px;\n color: #909093;\n margin-bottom: 28px;\n}\n.login__app-info .login__footer {\n position: fixed;\n bottom: 0;\n padding-bottom: 10px;\n width: 100vw;\n left: 0;\n right: 0;\n display: flex;\n justify-content: center;\n font-size: 14px;\n line-height: 45.55px;\n letter-spacing: 0.4px;\n color: #779BF0;\n}\n.login__app-info .login__footer span + span {\n margin-left: 24px;\n}\n','<template>\r\n <div class="login__app-info">\r\n <div class="desc">\r\n <p class="title">\r\n 移动端H5访问链接\r\n </p>\r\n <p class="sub-title">\r\n 请用手机App扫右方二维码,进行移动\r\n 端H5界面的访问。\r\n </p>\r\n </div>\r\n <img :src="appIcon">\r\n <div v-if="showInfo" class="login__footer">\r\n <span>{{ footerMessage }}</span>\r\n <span>{{ footerRecordNo }}</span>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n\r\nexport default {\r\n name: "AppInfo",\r\n props: {\r\n loginContent: {\r\n type: Object,\r\n default: () => ({})\r\n },\r\n appIcon: {\r\n type: String,\r\n default: ""\r\n }\r\n },\r\n data: function() {\r\n return {\r\n // 将版权所有提到前面并添加冒号\r\n footerMessage: `${this.loginContent.loginPanelFooter.slice(-4)}:${this.loginContent.loginPanelFooter.slice(0, -4)}`,\r\n footerRecordNo: this.loginContent.recordNo,\r\n showInfo: this.$proxyEnv.showInfo\r\n };\r\n }\r\n};\r\n<\/script>\r\n<style scoped lang="less">\r\n.login__app-info {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n position: relative;\r\n\r\n &::before {\r\n content: "";\r\n display: inline-block;\r\n position: absolute;\r\n height: 1.33px;\r\n background-color: #EEEEEE;\r\n top: -8px;\r\n left: 48px;\r\n right: 48px;\r\n }\r\n\r\n img {\r\n width: 122px;\r\n height: 144px;\r\n }\r\n\r\n .desc {\r\n flex: 1;\r\n\r\n .title {\r\n font-size: 20px;\r\n line-height: 59.55px;\r\n letter-spacing: 1px;\r\n }\r\n\r\n .sub-title {\r\n font-size: 14px;\r\n line-height: 28px;\r\n letter-spacing: 0.4px;\r\n color: #909093;\r\n margin-bottom: 28px;\r\n }\r\n }\r\n\r\n .login__footer {\r\n position: fixed;\r\n bottom: 0;\r\n padding-bottom: 10px;\r\n width: 100vw;\r\n left: 0;\r\n right: 0;\r\n display: flex;\r\n justify-content: center;\r\n font-size: 14px;\r\n line-height: 45.55px;\r\n letter-spacing: 0.4px;\r\n color: #779BF0;\r\n\r\n span + span {\r\n margin-left: 24px;\r\n }\r\n }\r\n}\r\n</style>']},media:void 0})}),et,"data-v-16650ef8",false,undefined,!1,de,void 0,void 0)},props:{loginContent:{type:Object,default:()=>({})},apis:{type:Object,default:()=>({})},icons:{type:Object,default:()=>({})}},data(){const e=this.$proxyEnv.LOGIN_TYPES;return{codeUrl:"",codeType:"text",codeIntranet:!1,tabStyle:this.loginContent.theme,FORM_RULES:nt,type:"password",tipTitle:"尊敬的用户:",tipMessage:"内网环境下可点击统一认证按钮切换统一用户认证方式登录系统;亦可以在本平台输入信息,点击登录按钮登录。",formData:{phone:"",username:"",password:"",corpOtpCode:"",checked:!1,code:"",uuid:"",rememberMe:!1,captcha:""},showPsw:!1,countDown:0,intervalTimer:null,captchaOnOff:!0,tabValue:"password"===e[0]?"password":"corp",loginWayChoose:e,showInfo:this.$proxyEnv.showInfo,loading:!1,state:{time:60,sendBtn:!1},timer:null}},watch:{tabValue:{handler(){this.getCode()},immediate:!0}},created(){if(this.getCheck(),document.documentElement.setAttribute("theme-mode",localStorage.getItem("pageMode")),"/"===this.$route.query.redirect){const e={...this.$route.query};return delete e.redirect,void this.$router.replace({name:this.$route.name,query:e,params:this.$route.params})}},beforeDestroy(){clearInterval(this.intervalTimer),clearTimeout(this.timer)},methods:{getCaptcha(e){if(e.preventDefault(),this.formData.username&&this.formData.password&&this.formData.captcha){this.state.sendBtn=!0;const e=window.setInterval((()=>{this.state.time-=1,this.state.time<=0&&(this.state.time=60,this.state.sendBtn=!1,window.clearInterval(e))}),1e3);this.apis.getCodeMessage({username:ke(this.formData.username),password:ke(this.formData.password),uuid:this.formData.uuid,captcha:this.formData.captcha}).then((t=>{t&&200===t.code?this.$message.info("验证码发送成功"):202===t.code&&(this.$emit("tab-show",this.formData.username),clearInterval(e),this.state.time=60,this.state.sendBtn=!1)})).catch((t=>{t.code||(this.state.sendBtn=!0,this.$alert("请检查当前网络情况","提示",{confirmButtonText:"确定",type:"error"})),clearInterval(e),this.state.time=60,this.state.sendBtn=!1}))}else this.$message.error("请先输入用户名、密码和图片验证码!")},getCheck(){a.get(`${window.location.origin}/check`).then((e=>{this.codeIntranet=e.data.data.isIntranet}))},getCode(){this.apis.getCodeImg().then((e=>{this.codeType=e.data.type,this.codeUrl=`data:image/gif;base64,${e.data.img}`,this.captchaOnOff=void 0===e.data.captchaOnOff||e.data.captchaOnOff,(this.captchaOnOff||"corp"===this.tabValue)&&(this.formData.uuid=e.data.uuid)})),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.getCode()}),6e5)},switchType(e){this.type=e,this.$refs.form.reset()},async onSubmit({validateResult:e,firstError:t}){if(!0===e){"password"===this.tabValue?this.$set(this.formData,"internal",!1):this.$set(this.formData,"internal",!0),this.checkUrl();const e={...this.formData,submitUsername:ke(this.formData.username),submitPassword:ke(this.formData.password)};this.$store.dispatch("user/login",e).catch((e=>{const t=e.response?.data?.errorInfo?.message||e.response?.data?.msg||e.response?.statusText||"接口报错";this.$alert(t,"系统提示",{type:"error",customClass:"api-error-alert-box",callback:()=>{("text"!==this.codeType||"corp"===this.tabValue&&!this.loginWayChoose.includes("corp_oauth"))&&this.getCode()}}),this.getCode()}))}else this.$message.warning(t)},checkUrl(){const e=window.location.hash.split("?")[1];if(e){const t=new URLSearchParams(e),n=Object.fromEntries(t.entries());n.srid&&this.$set(this.formData,"srid",n.srid)}},handleCounter(){this.countDown=60,this.intervalTimer=setInterval((()=>{this.countDown>0?this.countDown-=1:(clearInterval(this.intervalTimer),this.countDown=0)}),1e3)}}};var it=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("t-form",{ref:"form",staticClass:"login-form",class:["item-container","login-"+e.type,"normal"===e.tabStyle?"login-form-normal":""],style:{"--login-panel-body-padding":e.loginContent.loginPanlBodyPadding},attrs:{data:e.formData,rules:e.FORM_RULES,"label-width":"0"},on:{submit:e.onSubmit}},[n("t-tabs",{class:"normal"===e.tabStyle?"tab-normal":"",attrs:{value:e.tabValue,theme:e.tabStyle},on:{change:function(t){return e.tabValue=t}}},[n("t-tab-panel",{attrs:{value:"corp",label:"normal"===e.tabStyle?"内部用户登录":"内部人员登录"}},[e.loginWayChoose.includes("corp_oauth")?n("components-company-login",{style:{padding:e.loginContent.loginPanlBodyPadding},attrs:{"code-status":e.codeIntranet,"login-content":e.loginContent}}):n("t-card",{attrs:{bordered:!1}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.codeIntranet,expression:"codeIntranet"}],staticStyle:{"margin-bottom":"5px"}},[n("t-form-item",{staticStyle:{color:"red",margin:"0"}},[e._v("\n "+e._s(e.tipTitle)+"\n ")]),e._v(" "),n("t-form-item",{staticClass:"tip-class"},[e._v("\n "+e._s(e.tipMessage)+"\n ")])],1),e._v(" "),n("t-form-item",{attrs:{name:"username"}},[n("t-input",{attrs:{size:"large",placeholder:"请输入账号"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.userName}})]},proxy:!0}],null,!1,1057614323),model:{value:e.formData.username,callback:function(t){e.$set(e.formData,"username",t)},expression:"formData.username"}})],1),e._v(" "),n("t-form-item",{attrs:{name:"password"}},[n("t-input",{key:"password",attrs:{size:"large",type:e.showPsw?"text":"password",clearable:"",placeholder:"请输入登录密码"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.password}})]},proxy:!0},{key:"suffix-icon",fn:function(){return[e.showPsw?n("browse-icon",{key:"browse",on:{click:function(t){e.showPsw=!e.showPsw}}}):n("browse-off-icon",{key:"browse-off",on:{click:function(t){e.showPsw=!e.showPsw}}})]},proxy:!0}],null,!1,152179460),model:{value:e.formData.password,callback:function(t){e.$set(e.formData,"password",t)},expression:"formData.password"}})],1),e._v(" "),n("t-form-item",{staticClass:"captcha",attrs:{name:"captcha"}},[n("t-input",{key:"captcha",staticStyle:{width:"65%"},attrs:{"auto-complete":"off",placeholder:"请输入图形验证码",clearable:"",size:"large"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.captcha}})]},proxy:!0}],null,!1,2266774473),model:{value:e.formData.captcha,callback:function(t){e.$set(e.formData,"captcha",t)},expression:"formData.captcha"}}),e._v(" "),n("div",{staticClass:"login-code",staticStyle:{width:"33%","padding-top":"2px"}},[n("img",{staticClass:"login-code-img",attrs:{src:e.codeUrl},on:{click:e.getCode}})])],1),e._v(" "),n("t-form-item",{staticClass:"verification-code",attrs:{name:"corpOtpCode"}},[n("t-input",{key:"corpOtpCode",attrs:{size:"large",placeholder:"请输入动态口令",clearable:""},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.verificationCode}})]},proxy:!0}],null,!1,2738210289),model:{value:e.formData.corpOtpCode,callback:function(t){e.$set(e.formData,"corpOtpCode",t)},expression:"formData.corpOtpCode"}})],1),e._v(" "),n("div",{staticClass:"check-container remember-pwd"},[n("t-form-item",{staticClass:"btn-container",staticStyle:{width:"100%"}},[n("t-button",{staticClass:"login__submit-btn",attrs:{block:"",size:"large",type:"submit"}},[e.loading?n("span",[e._v("登 录 中...")]):n("span",{staticStyle:{color:"#FFFFFF"}},[e._v("登 录")])])],1)],1),e._v(" "),n("components-company-login",{attrs:{"code-status":e.codeIntranet,"login-content":e.loginContent}})],1)],1),e._v(" "),n("t-tab-panel",{attrs:{value:"password",label:"normal"===e.tabStyle?"外部用户登录":"外部人员登录"}},[n("t-card",{attrs:{bordered:!1}},[n("t-form-item",{attrs:{name:"username"}},[n("t-input",{attrs:{size:"large",placeholder:"请输入账号"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.userName}})]},proxy:!0}]),model:{value:e.formData.username,callback:function(t){e.$set(e.formData,"username",t)},expression:"formData.username"}})],1),e._v(" "),n("t-form-item",{attrs:{name:"password"}},[n("t-input",{key:"password",attrs:{size:"large",type:e.showPsw?"text":"password",clearable:"",placeholder:"请输入登录密码"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.password}})]},proxy:!0},{key:"suffix-icon",fn:function(){return[e.showPsw?n("browse-icon",{key:"browse",on:{click:function(t){e.showPsw=!e.showPsw}}}):n("browse-off-icon",{key:"browse-off",on:{click:function(t){e.showPsw=!e.showPsw}}})]},proxy:!0}]),model:{value:e.formData.password,callback:function(t){e.$set(e.formData,"password",t)},expression:"formData.password"}})],1),e._v(" "),n("t-form-item",{staticClass:"captcha",attrs:{name:"captcha"}},[n("t-input",{key:"captcha",staticStyle:{width:"65%"},attrs:{"auto-complete":"off",placeholder:"请输入图形验证码",clearable:"",size:"large"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.captcha}})]},proxy:!0}]),model:{value:e.formData.captcha,callback:function(t){e.$set(e.formData,"captcha",t)},expression:"formData.captcha"}}),e._v(" "),n("div",{staticClass:"login-code",staticStyle:{width:"33%","padding-top":"2px"}},[n("img",{staticClass:"login-code-img",attrs:{src:e.codeUrl},on:{click:e.getCode}})])],1),e._v(" "),n("t-form-item",{staticClass:"captcha",attrs:{name:"code"}},[n("t-input",{key:"code",staticStyle:{width:"52%"},attrs:{"auto-complete":"off",placeholder:"请输入验证码",size:"large",clearable:""},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.verificationCode}})]},proxy:!0}]),model:{value:e.formData.code,callback:function(t){e.$set(e.formData,"code",t)},expression:"formData.code"}}),e._v(" "),n("div",{staticClass:"login-code"},["text"===e.codeType?n("el-button",{staticStyle:{"min-width":"112px"},attrs:{size:"large",disabled:e.state.sendBtn},domProps:{textContent:e._s(e.state.sendBtn?e.state.time+" s":"获取验证码")},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.getCaptcha.apply(null,arguments)}}}):"math"===e.codeType||"char"===e.codeType?n("img",{staticClass:"code-image",attrs:{src:e.codeUrl},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.getCode.apply(null,arguments)}}}):e._e()],1)],1),e._v(" "),n("t-form-item",{staticClass:"btn-container"},[n("t-button",{staticClass:"login__submit-btn",attrs:{block:"",size:"large",type:"submit"}},[e.loading?n("span",[e._v("登 录 中...")]):n("span",[e._v("登 录")])])],1)],1)],1)],1),e._v(" "),e.loginContent.loginPanelFooter&&!e.loginContent.showAppInfo&&e.showInfo?n("div",{staticClass:"login-panel-footer"},[n("span",{staticClass:"border-line"}),e._v(" "),n("span",{staticClass:"content"},[e._v(e._s(e.loginContent.loginPanelFooter))]),e._v(" "),n("span",{staticClass:"border-line"})]):e._e(),e._v(" "),e.loginContent.showAppInfo?n("componentsapp-info",{style:{padding:e.loginContent.loginPanlBodyPadding},attrs:{"app-icon":e.icons.appCode,"login-content":e.loginContent}}):e._e()],1)};it._withStripped=!0;const at=Ce({render:it,staticRenderFns:[]},(function(e){e&&e("data-v-36b26878_0",{source:".login-form[data-v-36b26878] {\n border-radius: 6px;\n margin-top: 15px;\n background: #FFFFFF;\n width: 400px;\n padding: 3px;\n border: 3px solid #FFFFFF;\n}\n.login-form-normal[data-v-36b26878] {\n padding: 0;\n}\n.tip-class[data-v-36b26878] {\n color: red;\n text-indent: 2em;\n}\n.t-input[data-v-36b26878] {\n height: 38px;\n}\n.input-icon[data-v-36b26878] {\n height: 39px;\n width: 14px;\n margin-left: 2px;\n}\n.login-tip[data-v-36b26878] {\n font-size: 13px;\n text-align: center;\n color: #BFBFBF;\n}\n.login-code-img[data-v-36b26878] {\n border-radius: 2px;\n height: 38px;\n width: 100%;\n}\n[data-v-36b26878] .t-tabs__nav-scroll .t-tabs__nav-item {\n padding-left: 0;\n padding-right: 0;\n width: 194px;\n justify-content: center;\n border: none;\n}\n[data-v-36b26878] .t-tabs__nav--card .t-tabs__nav-item {\n background-color: #8080FF;\n color: #FFFFFF;\n}\n[data-v-36b26878] .t-card__body {\n padding: var(--login-panel-body-padding);\n}\n[data-v-36b26878] .t-is-active {\n color: #000000 !important;\n}\n[data-v-36b26878] .captcha .t-form__controls-content {\n display: flex;\n}\n[data-v-36b26878] .captcha .t-form__controls-content .t-input__wrap {\n flex: 1;\n}\n[data-v-36b26878] .captcha .t-form__controls-content .login-code {\n margin-left: 10px;\n}\n[data-v-36b26878] .captcha .t-form__controls-content .login-code .code-image {\n min-width: 112px;\n height: 4.5vh;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n[data-v-36b26878] .tab-normal .t-tabs__nav-container {\n padding: 15px 0;\n}\n[data-v-36b26878] .tab-normal .t-tabs__nav-container .t-tabs__nav-item {\n font-size: 20px;\n flex: 1;\n}\n[data-v-36b26878] .tab-normal .t-tabs__bar {\n width: 50px !important;\n margin-left: 20%;\n}\n[data-v-36b26878] .tab-normal .t-tabs__nav-wrap {\n flex: 1;\n padding-bottom: 20px;\n border-bottom: 1px solid #D8D8D8;\n}\n.login-panel-footer[data-v-36b26878] {\n padding: var(--login-panel-body-padding);\n padding-top: 0;\n padding-bottom: 0;\n background-color: #FFFFFF;\n position: absolute;\n bottom: 70px;\n width: 100%;\n left: 0;\n display: flex;\n align-items: center;\n}\n.login-panel-footer .content[data-v-36b26878] {\n color: #737B8C;\n display: block;\n text-align: center;\n}\n.login-panel-footer .border-line[data-v-36b26878] {\n display: inline-block;\n height: 1px;\n flex: 1;\n background-color: #737B8C;\n}\n.login-panel-footer .border-line[data-v-36b26878]:first-child {\n margin-left: 3px;\n margin-right: 5px;\n}\n.login-panel-footer .border-line[data-v-36b26878]:last-child {\n margin-left: 5px;\n margin-right: 3px;\n}\n",map:{version:3,sources:["ComponentsLogin.vue"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,mBAAmB;EACnB,YAAY;EACZ,YAAY;EACZ,yBAAyB;AAC3B;AACA;EACE,UAAU;AACZ;AACA;EACE,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;EACZ,WAAW;EACX,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,WAAW;AACb;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,YAAY;EACZ,uBAAuB;EACvB,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,wCAAwC;AAC1C;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,aAAa;AACf;AACA;EACE,OAAO;AACT;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;EACf,OAAO;AACT;AACA;EACE,sBAAsB;EACtB,gBAAgB;AAClB;AACA;EACE,OAAO;EACP,oBAAoB;EACpB,gCAAgC;AAClC;AACA;EACE,wCAAwC;EACxC,cAAc;EACd,iBAAiB;EACjB,yBAAyB;EACzB,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,OAAO;EACP,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,cAAc;EACd,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,WAAW;EACX,OAAO;EACP,yBAAyB;AAC3B;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB",file:"ComponentsLogin.vue",sourcesContent:[".login-form {\n border-radius: 6px;\n margin-top: 15px;\n background: #FFFFFF;\n width: 400px;\n padding: 3px;\n border: 3px solid #FFFFFF;\n}\n.login-form-normal {\n padding: 0;\n}\n.tip-class {\n color: red;\n text-indent: 2em;\n}\n.t-input {\n height: 38px;\n}\n.input-icon {\n height: 39px;\n width: 14px;\n margin-left: 2px;\n}\n.login-tip {\n font-size: 13px;\n text-align: center;\n color: #BFBFBF;\n}\n.login-code-img {\n border-radius: 2px;\n height: 38px;\n width: 100%;\n}\n::v-deep .t-tabs__nav-scroll .t-tabs__nav-item {\n padding-left: 0;\n padding-right: 0;\n width: 194px;\n justify-content: center;\n border: none;\n}\n::v-deep .t-tabs__nav--card .t-tabs__nav-item {\n background-color: #8080FF;\n color: #FFFFFF;\n}\n::v-deep .t-card__body {\n padding: var(--login-panel-body-padding);\n}\n::v-deep .t-is-active {\n color: #000000 !important;\n}\n::v-deep .captcha .t-form__controls-content {\n display: flex;\n}\n::v-deep .captcha .t-form__controls-content .t-input__wrap {\n flex: 1;\n}\n::v-deep .captcha .t-form__controls-content .login-code {\n margin-left: 10px;\n}\n::v-deep .captcha .t-form__controls-content .login-code .code-image {\n min-width: 112px;\n height: 4.5vh;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n::v-deep .tab-normal .t-tabs__nav-container {\n padding: 15px 0;\n}\n::v-deep .tab-normal .t-tabs__nav-container .t-tabs__nav-item {\n font-size: 20px;\n flex: 1;\n}\n::v-deep .tab-normal .t-tabs__bar {\n width: 50px !important;\n margin-left: 20%;\n}\n::v-deep .tab-normal .t-tabs__nav-wrap {\n flex: 1;\n padding-bottom: 20px;\n border-bottom: 1px solid #D8D8D8;\n}\n.login-panel-footer {\n padding: var(--login-panel-body-padding);\n padding-top: 0;\n padding-bottom: 0;\n background-color: #FFFFFF;\n position: absolute;\n bottom: 70px;\n width: 100%;\n left: 0;\n display: flex;\n align-items: center;\n}\n.login-panel-footer .content {\n color: #737B8C;\n display: block;\n text-align: center;\n}\n.login-panel-footer .border-line {\n display: inline-block;\n height: 1px;\n flex: 1;\n background-color: #737B8C;\n}\n.login-panel-footer .border-line:first-child {\n margin-left: 3px;\n margin-right: 5px;\n}\n.login-panel-footer .border-line:last-child {\n margin-left: 5px;\n margin-right: 3px;\n}\n"]},media:void 0})}),ot,"data-v-36b26878",false,undefined,!1,de,void 0,void 0);const At={props:{show:{type:Boolean,default:!0},apis:{type:Object,default:()=>({})},userName:{type:String,default:""}},data(){return{state:{time:60,sendBtn:!1},user:{oldPassword:void 0,newPassword:void 0,confirmPassword:void 0,code:void 0},rules:{oldPassword:[{required:!0,message:"旧密码不能为空",trigger:"blur"}],newPassword:[{required:!0,message:"新密码不能为空",trigger:"blur"},{pattern:/^(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[\x21-\x2f\x3a-\x40\x5b-\x60\x7B-\x7F])[\da-zA-Z\x21-\x2f\x3a-\x40\x5b-\x60\x7B-\x7F]{8,20}$/,message:"必须包含大小写字母,数字和特殊字符,且字符在8到20之间"}],confirmPassword:[{required:!0,message:"确认密码不能为空",trigger:"blur"},{required:!0,validator:(e,t,n)=>{this.user.newPassword!==t?n(new Error("两次输入的密码不一致")):n()},trigger:"blur"}],code:[{required:!0,message:"验证码不能为空",trigger:"blur"}]}}},computed:{dialogVisible:{get(){return this.show||void 0},set(e){e||(this.user={},this.$refs.form.resetFields()),this.$emit("tab-show")}},username:{get(){return this.userName},set:e=>e}},methods:{submit(){this.$refs.form.validate((e=>{if(e){const e={userName:this.username,oldPassword:ke(this.user.oldPassword),newPassword:ke(this.user.newPassword),smsCaptcha:this.user.code};this.apis.updatePwdLogin(e).then((e=>{e&&200===e.code&&(this.$modal.msgSuccess("修改成功"),this.dialogVisible=!1,this.user={})}))}}))},getCaptcha(e){if(e.preventDefault(),this.user.newPassword&&this.user.oldPassword&&this.user.confirmPassword){this.state.sendBtn=!0;const e=window.setInterval((()=>{this.state.time-=1,this.state.time<=0&&(this.state.time=60,this.state.sendBtn=!1,window.clearInterval(e))}),1e3);this.apis.sendPwdSms({username:ke(this.username),password:ke(this.user.oldPassword)}).then((e=>{e&&200===e.code&&this.$message.info("验证码发送成功")})).catch((t=>{t.code||(this.state.sendBtn=!0,this.$alert("请检查当前网络情况","提示",{confirmButtonText:"确定",type:"error"})),clearInterval(e),this.state.time=60,this.state.sendBtn=!1}))}else this.$message.error("请将旧密码、新密码等信息填写完整")}}};var rt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:"重置密码",visible:e.dialogVisible,width:"50%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("el-alert",{attrs:{title:"首次登录/密码过期需更新密码",type:"error",effect:"dark","close-text":"我知道了"}}),e._v(" "),n("form-section",{attrs:{border:!1,"submit-text":"","save-text":"","cancel-text":""}},[n("el-form",{ref:"form",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"用户名",prop:"userName"}},[n("el-input",{attrs:{placeholder:"请输入用户名",disabled:""},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"旧密码",prop:"oldPassword"}},[n("el-input",{attrs:{placeholder:"请输入旧密码",type:"password","show-password":""},model:{value:e.user.oldPassword,callback:function(t){e.$set(e.user,"oldPassword",t)},expression:"user.oldPassword"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"新密码",prop:"newPassword"}},[n("el-input",{attrs:{placeholder:"请输入新密码",type:"password","show-password":""},model:{value:e.user.newPassword,callback:function(t){e.$set(e.user,"newPassword",t)},expression:"user.newPassword"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"确认密码",prop:"confirmPassword"}},[n("el-input",{attrs:{placeholder:"请确认密码",type:"password","show-password":""},model:{value:e.user.confirmPassword,callback:function(t){e.$set(e.user,"confirmPassword",t)},expression:"user.confirmPassword"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"验证码",prop:"code"}},[n("el-input",{key:"code",staticStyle:{width:"82%"},attrs:{"auto-complete":"off",placeholder:"请输入验证码",size:"large",clearable:""},model:{value:e.user.code,callback:function(t){e.$set(e.user,"code",t)},expression:"user.code"}}),e._v(" "),n("div",{staticClass:"login-code"},[n("el-button",{staticStyle:{"min-width":"112px"},attrs:{size:"large",disabled:e.state.sendBtn},domProps:{textContent:e._s(e.state.sendBtn?e.state.time+" s":"获取验证码")},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.getCaptcha.apply(null,arguments)}}})],1)],1)],1),e._v(" "),n("template",{slot:"btn"},[n("el-button",{attrs:{icon:"el-icon-check",type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("\n 保存\n ")])],1)],2)],1)};rt._withStripped=!0;const st={name:"LoginCom",components:{Login:at,resetPwd:Ce({render:rt,staticRenderFns:[]},(function(e){e&&e("data-v-61328124_0",{source:"[data-v-61328124] .el-form {\n min-height: calc(100vh - 407px);\n}\n.login-code[data-v-61328124] {\n margin-left: 10px;\n display: initial;\n}\n",map:{version:3,sources:["resetPwd.vue"],names:[],mappings:"AAAA;EACE,+BAA+B;AACjC;AACA;EACE,iBAAiB;EACjB,gBAAgB;AAClB",file:"resetPwd.vue",sourcesContent:["::v-deep .el-form {\n min-height: calc(100vh - 407px);\n}\n.login-code {\n margin-left: 10px;\n display: initial;\n}\n"]},media:void 0})}),At,"data-v-61328124",false,undefined,!1,de,void 0,void 0)},props:{loginContent:{type:Object,default:()=>({})}},data(){return{currentModel:this.$store.state.setting.mode,showInfo:this.$proxyEnv.showInfo,show:!1,userName:""}},created(){this.currentModel=localStorage.getItem("pageMode"),"inner"===this.$route.query.login_type&&this.$request.get("/auth/getCorpOauthUrl",{params:{redirect:this.$route.query.redirect,srid:this.$route.query.srid}}).then((e=>{window.location.href=e.data}))},methods:{tabShow(e){this.userName=e,this.show=!this.show}}};var gt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-wrapper",class:{"custom__login__submit-btn":e.loginContent.changeSubmitColor,"show-border-left":e.loginContent.showBorderLeft}},[n("div",{staticStyle:{width:"100%",height:"100%"},style:{background:"dark"===e.currentModel?"rgba(0,0,0,0.5)":"rgba(0,0,0,0)"}},[e.loginContent.showWelcome?n("div",{staticClass:"welcome"},[n("h1",{staticClass:"welcome-hello"},[e._v("\n Hi,你好!\n ")]),e._v(" "),n("h1",{staticClass:"welcome-platform"},[e._v("\n 欢迎进入"+e._s(e.platformTitle)+"\n ")]),e._v(" "),e.showInfo?n("h1",{staticClass:"welcome-english"},[e._v("\n "+e._s(e.loginContent.welcomeEnglish)+"\n ")]):e._e()]):n("div",{staticClass:"welcome welcome-default"},[n("div",{staticClass:"welcome-default-hello"},[e._v("\n 您好,欢迎进入\n ")]),e._v(" "),n("div",{staticClass:"welcome-default-platform"},[e._v("\n "+e._s(e.platformTitle)+"!\n ")])]),e._v(" "),e.showInfo?n("div",{staticClass:"main-title"},[e.loginContent.showLogo?n("div",{staticClass:"main-title-logo"}):n("span",[e._v("\n "+e._s(e.platformTitle)+"\n ")])]):e._e(),e._v(" "),n("div",{staticClass:"login-container",class:"normal"===e.loginContent.theme?"login-container-normal":""},[n("login",e._b({attrs:{"login-content":e.loginContent},on:{"tab-show":e.tabShow}},"login",e.$attrs,!1))],1),e._v(" "),n("reset-pwd",e._b({attrs:{show:e.show,"user-name":e.userName},on:{"update:show":function(t){e.show=t},"tab-show":e.tabShow}},"reset-pwd",e.$attrs,!1))],1)])};gt._withStripped=!0;const lt=Ce({render:gt,staticRenderFns:[]},(function(e){e&&e("data-v-dba5ed6c_0",{source:'.login-bg-img img {\n position: absolute;\n top: 0;\n height: 99vh;\n}\n.light {\n /* 自定义\n ---------------------------------------------------------------- */\n /* ---------------------------------------------------------------- */\n}\n.light.login-wrapper {\n background-color: white;\n background-size: 100% 100%;\n}\n.light.custom__login__submit-btn .login__submit-btn:not(:hover) {\n background-color: var(--light-blue-color);\n border-color: var(--light-blue-color);\n}\n.light input.t-input__inner {\n padding-left: 10px;\n margin-left: 0;\n}\n.light.show-border-left input.t-input__inner {\n border-left: 1px solid #D8D8D8;\n padding-left: 24px;\n margin-left: 6px;\n}\n.light .t-input__wrap .t-input__prefix-icon img {\n width: 20px;\n height: 20px;\n}\n.dark.login-wrapper {\n background-color: var(--td-bg-color-page);\n}\n.login-wrapper {\n height: 100vh;\n display: flex;\n flex-direction: column;\n background-size: cover;\n background-position: 100%;\n position: relative;\n}\n.login-wrapper > div {\n position: relative;\n overflow: auto;\n}\n.welcome {\n position: absolute;\n left: 6%;\n bottom: 43%;\n}\n.welcome-hello,\n.welcome-platform {\n color: #474F64;\n font-size: 64px;\n}\n.welcome-english {\n color: #737B8C;\n font-size: 24px;\n}\n.welcome-default {\n position: absolute;\n left: 8%;\n bottom: 58%;\n font-size: 68.9px;\n font-style: italic;\n letter-spacing: 3.4px;\n color: #FFFFFF;\n font-weight: lighter;\n}\n.welcome-default .welcome-default-platform {\n font-weight: 500;\n}\n.main-title {\n position: absolute;\n font-size: 20px;\n font-weight: 700;\n top: 5%;\n left: 5%;\n color: #FFFFFF;\n}\n.main-title-logo {\n width: 208px;\n height: 62px;\n background-position: left;\n background-size: 100%;\n background-repeat: no-repeat;\n vertical-align: middle;\n}\n.login-container {\n position: absolute;\n top: calc((100vh - 650px) / 2);\n right: 8%;\n min-height: 500px;\n line-height: 22px;\n}\n.login-container-normal {\n top: calc((100vh - 650px) / 2);\n right: 108px;\n}\n.login-container-normal .login-form-normal.login-form {\n width: 482px;\n}\n.check-container {\n font-size: 14px;\n color: var(--td-text-color-secondary);\n}\n.check-container .tip {\n float: right;\n font-size: 14px;\n color: var(--td-brand-color-8);\n}\n.switch-container {\n margin-top: 24px;\n}\n.switch-container .tip {\n font-size: 14px;\n color: var(--td-brand-color-8);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n margin-right: 14px;\n}\n.switch-container .tip::after {\n content: "";\n display: block;\n width: 1px;\n height: 12px;\n background: var(--td-gray-color-3);\n margin-left: 14px;\n}\n.switch-container .tip:last-child::after {\n display: none;\n}\n.title-container .title {\n font-size: 36px;\n line-height: 44px;\n color: var(--td-text-color-primary);\n margin-top: 4px;\n}\n.title-container .title.margin-no {\n margin-top: 0;\n}\n.title-container .sub-title {\n margin-top: 16px;\n}\n.title-container .sub-title .tip {\n display: inline-block;\n margin-right: 8px;\n font-size: 14px;\n}\n.title-container .sub-title .tip:first-child {\n color: var(--td-text-color-secondary);\n}\n.title-container .sub-title .tip:last-child {\n color: var(--td-text-color-primary);\n cursor: pointer;\n}\n.item-container {\n width: 400px;\n margin-top: 48px;\n}\n.item-container.login-qrcode .tip-container {\n width: 192px;\n margin-bottom: 16px;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n}\n.item-container.login-qrcode .tip-container .tip {\n color: var(--td-text-color-primary);\n}\n.item-container.login-qrcode .tip-container .refresh {\n display: flex;\n align-items: center;\n color: var(--td-brand-color);\n}\n.item-container.login-qrcode .tip-container .refresh .t-icon {\n font-size: 14px;\n}\n.item-container.login-qrcode .tip-container .refresh:hover {\n cursor: pointer;\n}\n.item-container.login-qrcode .bottom-container {\n margin-top: 32px;\n}\n.item-container.login-phone .bottom-container {\n margin-top: 66px;\n}\n.item-container .check-container {\n display: flex;\n align-items: center;\n}\n.item-container .check-container.remember-pwd {\n margin-bottom: 16px;\n justify-content: space-between;\n}\n.item-container .check-container .t-checkbox__label {\n color: var(--td-text-color-secondary);\n}\n.item-container .check-container span {\n color: var(--td-brand-color);\n}\n.item-container .check-container span:hover {\n cursor: pointer;\n}\n.item-container .verification-code {\n display: flex;\n align-items: center;\n}\n.item-container .verification-code .t-form__controls {\n width: 100%;\n}\n.item-container .verification-code .t-form__controls button {\n flex-shrink: 0;\n width: 102px;\n margin-left: 11px;\n}\n.item-container .btn-container {\n margin-top: 48px;\n}\n.copyright {\n font-size: 14px;\n position: absolute;\n left: 5%;\n bottom: 64px;\n color: var(--td-text-color-secondary);\n}\n@media screen and (max-height: 700px) {\n.copyright {\n display: none;\n}\n}\n',map:{version:3,sources:["Login.vue","C:\\Users\\yuyang\\Desktop\\work\\qd\\platform-frontend-libs\\packages\\login\\Login.vue"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,MAAM;EACN,YAAY;AACd;AACA;EACE;oEACkE;EAClE,qEAAqE;AACvE;AACA;EACE,uBAAuB;EACvB,0BAA0B;AAC5B;AACA;EACE,yCAAyC;EACzC,qCAAqC;AACvC;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,8BAA8B;EAC9B,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,YAAY;AACd;AACA;EACE,yCAAyC;AAC3C;AACA;EACE,aAAa;EACb,aAAa;EACb,sBAAsB;EACtB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,WAAW;AACb;AACA;;EAEE,cAAc;EACd,eAAe;AACjB;AACA;EACE,cAAc;EACd,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,iBAAiB;EACjB,kBAAkB;EAClB,qBAAqB;EACrB,cAAc;EACd,oBAAoB;AACtB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,eAAe;EACf,gBAAgB;EAChB,OAAO;EACP,QAAQ;EACR,cAAc;AAChB;AACA;EACE,YAAY;EACZ,YAAY;EACZ,yBAAyB;EACzB,qBAAqB;EACrB,4BAA4B;EAC5B,sBAAsB;AACxB;ACCA;EDCE,kBAAkB;EAClB,8BAA8B;EAC9B,SAAS;EACT,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,8BAA8B;EAC9B,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,eAAe;EACf,qCAAqC;AACvC;AACA;EACE,YAAY;EACZ,eAAe;EACf,8BAA8B;AAChC;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,8BAA8B;EAC9B,eAAe;EACf,oBAAoB;EACpB,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,cAAc;EACd,UAAU;EACV,YAAY;EACZ,kCAAkC;EAClC,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;EACf,iBAAiB;EACjB,mCAAmC;EACnC,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,qBAAqB;EACrB,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,qCAAqC;AACvC;AACA;EACE,mCAAmC;EACnC,eAAe;AACjB;AACA;EACE,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,YAAY;EACZ,mBAAmB;EACnB,eAAe;EACf,aAAa;EACb,8BAA8B;AAChC;AACA;EACE,mCAAmC;AACrC;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,4BAA4B;AAC9B;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,8BAA8B;AAChC;AACA;EACE,qCAAqC;AACvC;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,WAAW;AACb;AACA;EACE,cAAc;EACd,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,kBAAkB;EAClB,QAAQ;EACR,YAAY;EACZ,qCAAqC;AACvC;AACA;AACE;IACE,aAAa;AACf;AACF",file:"Login.vue",sourcesContent:['.login-bg-img img {\n position: absolute;\n top: 0;\n height: 99vh;\n}\n.light {\n /* 自定义\n ---------------------------------------------------------------- */\n /* ---------------------------------------------------------------- */\n}\n.light.login-wrapper {\n background-color: white;\n background-size: 100% 100%;\n}\n.light.custom__login__submit-btn .login__submit-btn:not(:hover) {\n background-color: var(--light-blue-color);\n border-color: var(--light-blue-color);\n}\n.light input.t-input__inner {\n padding-left: 10px;\n margin-left: 0;\n}\n.light.show-border-left input.t-input__inner {\n border-left: 1px solid #D8D8D8;\n padding-left: 24px;\n margin-left: 6px;\n}\n.light .t-input__wrap .t-input__prefix-icon img {\n width: 20px;\n height: 20px;\n}\n.dark.login-wrapper {\n background-color: var(--td-bg-color-page);\n}\n.login-wrapper {\n height: 100vh;\n display: flex;\n flex-direction: column;\n background-size: cover;\n background-position: 100%;\n position: relative;\n}\n.login-wrapper > div {\n position: relative;\n overflow: auto;\n}\n.welcome {\n position: absolute;\n left: 6%;\n bottom: 43%;\n}\n.welcome-hello,\n.welcome-platform {\n color: #474F64;\n font-size: 64px;\n}\n.welcome-english {\n color: #737B8C;\n font-size: 24px;\n}\n.welcome-default {\n position: absolute;\n left: 8%;\n bottom: 58%;\n font-size: 68.9px;\n font-style: italic;\n letter-spacing: 3.4px;\n color: #FFFFFF;\n font-weight: lighter;\n}\n.welcome-default .welcome-default-platform {\n font-weight: 500;\n}\n.main-title {\n position: absolute;\n font-size: 20px;\n font-weight: 700;\n top: 5%;\n left: 5%;\n color: #FFFFFF;\n}\n.main-title-logo {\n width: 208px;\n height: 62px;\n background-position: left;\n background-size: 100%;\n background-repeat: no-repeat;\n vertical-align: middle;\n}\n.login-container {\n position: absolute;\n top: calc((100vh - 650px) / 2);\n right: 8%;\n min-height: 500px;\n line-height: 22px;\n}\n.login-container-normal {\n top: calc((100vh - 650px) / 2);\n right: 108px;\n}\n.login-container-normal .login-form-normal.login-form {\n width: 482px;\n}\n.check-container {\n font-size: 14px;\n color: var(--td-text-color-secondary);\n}\n.check-container .tip {\n float: right;\n font-size: 14px;\n color: var(--td-brand-color-8);\n}\n.switch-container {\n margin-top: 24px;\n}\n.switch-container .tip {\n font-size: 14px;\n color: var(--td-brand-color-8);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n margin-right: 14px;\n}\n.switch-container .tip::after {\n content: "";\n display: block;\n width: 1px;\n height: 12px;\n background: var(--td-gray-color-3);\n margin-left: 14px;\n}\n.switch-container .tip:last-child::after {\n display: none;\n}\n.title-container .title {\n font-size: 36px;\n line-height: 44px;\n color: var(--td-text-color-primary);\n margin-top: 4px;\n}\n.title-container .title.margin-no {\n margin-top: 0;\n}\n.title-container .sub-title {\n margin-top: 16px;\n}\n.title-container .sub-title .tip {\n display: inline-block;\n margin-right: 8px;\n font-size: 14px;\n}\n.title-container .sub-title .tip:first-child {\n color: var(--td-text-color-secondary);\n}\n.title-container .sub-title .tip:last-child {\n color: var(--td-text-color-primary);\n cursor: pointer;\n}\n.item-container {\n width: 400px;\n margin-top: 48px;\n}\n.item-container.login-qrcode .tip-container {\n width: 192px;\n margin-bottom: 16px;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n}\n.item-container.login-qrcode .tip-container .tip {\n color: var(--td-text-color-primary);\n}\n.item-container.login-qrcode .tip-container .refresh {\n display: flex;\n align-items: center;\n color: var(--td-brand-color);\n}\n.item-container.login-qrcode .tip-container .refresh .t-icon {\n font-size: 14px;\n}\n.item-container.login-qrcode .tip-container .refresh:hover {\n cursor: pointer;\n}\n.item-container.login-qrcode .bottom-container {\n margin-top: 32px;\n}\n.item-container.login-phone .bottom-container {\n margin-top: 66px;\n}\n.item-container .check-container {\n display: flex;\n align-items: center;\n}\n.item-container .check-container.remember-pwd {\n margin-bottom: 16px;\n justify-content: space-between;\n}\n.item-container .check-container .t-checkbox__label {\n color: var(--td-text-color-secondary);\n}\n.item-container .check-container span {\n color: var(--td-brand-color);\n}\n.item-container .check-container span:hover {\n cursor: pointer;\n}\n.item-container .verification-code {\n display: flex;\n align-items: center;\n}\n.item-container .verification-code .t-form__controls {\n width: 100%;\n}\n.item-container .verification-code .t-form__controls button {\n flex-shrink: 0;\n width: 102px;\n margin-left: 11px;\n}\n.item-container .btn-container {\n margin-top: 48px;\n}\n.copyright {\n font-size: 14px;\n position: absolute;\n left: 5%;\n bottom: 64px;\n color: var(--td-text-color-secondary);\n}\n@media screen and (max-height: 700px) {\n .copyright {\n display: none;\n }\n}\n','<template>\r\n <div\r\n class="login-wrapper"\r\n :class="{\'custom__login__submit-btn\': loginContent.changeSubmitColor, \'show-border-left\': loginContent.showBorderLeft}"\r\n >\r\n <div\r\n style="width: 100%; height: 100%;"\r\n :style="{\r\n background: currentModel === \'dark\' ? \'rgba(0,0,0,0.5)\' : \'rgba(0,0,0,0)\',\r\n }"\r\n >\r\n <div v-if="loginContent.showWelcome" class="welcome">\r\n <h1 class="welcome-hello">\r\n Hi,你好!\r\n </h1>\r\n <h1 class="welcome-platform">\r\n 欢迎进入{{ platformTitle }}\r\n </h1>\r\n <h1 v-if="showInfo" class="welcome-english">\r\n {{ loginContent.welcomeEnglish }}\r\n </h1>\r\n </div>\r\n <div v-else class="welcome welcome-default">\r\n <div class="welcome-default-hello">\r\n 您好,欢迎进入\r\n </div>\r\n <div class="welcome-default-platform">\r\n {{ platformTitle }}!\r\n </div>\r\n </div>\r\n <div v-if="showInfo" class="main-title">\r\n <div v-if="loginContent.showLogo" class="main-title-logo" />\r\n <span v-else>\r\n {{ platformTitle }}\r\n </span>\r\n </div>\r\n <div class="login-container" :class="loginContent.theme === \'normal\' ? \'login-container-normal\' : \'\'">\r\n <login v-bind="$attrs" :login-content="loginContent" @tab-show="tabShow" />\r\n </div>\r\n <reset-pwd\r\n v-bind="$attrs"\r\n :show.sync="show"\r\n :user-name="userName"\r\n @tab-show="tabShow"\r\n />\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport Login from "./ComponentsLogin.vue";\r\nimport resetPwd from "./resetPwd.vue";\r\n\r\nexport default {\r\n name: "LoginCom",\r\n components: {\r\n Login,\r\n resetPwd\r\n },\r\n props: {\r\n loginContent: {\r\n type: Object,\r\n default: () => ({})\r\n }\r\n },\r\n data() {\r\n return {\r\n currentModel: this.$store.state.setting.mode,\r\n showInfo: this.$proxyEnv.showInfo,\r\n show: false,\r\n userName: ""\r\n };\r\n },\r\n created() {\r\n this.currentModel = localStorage.getItem("pageMode");\r\n if (this.$route.query.login_type === "inner") {\r\n this.$request.get("/auth/getCorpOauthUrl", { params: { redirect: this.$route.query.redirect, srid: this.$route.query.srid }}).then((response) => {\r\n window.location.href = response.data;\r\n });\r\n }\r\n },\r\n methods: {\r\n tabShow(userName) {\r\n this.userName = userName;\r\n this.show = !this.show;\r\n }\r\n }\r\n};\r\n<\/script>\r\n<style lang="less">\r\n@import "./index.less";\r\n</style>']},media:void 0})}),st,undefined,false,undefined,!1,de,void 0,void 0);const Ct={props:{getAppRedirectUrl:{type:Function,default:null}},data:()=>({loading:!1}),created(){this.$store.commit("tabRouter/removeTabRouterList"),this.$store.commit("user/removeToken"),this.$store.commit("user/setUserInfo",{roles:[]});const{query:e}=this.$route;if(e.access_token)if(this.$store.commit("user/setToken",e.access_token),e.businessKey&&e.taskId&&e.processInstanceId)this.$request({url:`/system/flow/${e.url||"task"}/${e.taskId}/view-component`,method:"get"}).then((t=>{if(t.success&&t.viewComponent){this.$store.commit("tabRouter/removeTabRouterList");const{action:n,businessKey:o,taskId:i,processInstanceId:a}=e;this.$store.dispatch("permission/initRoutes").then((()=>{this.$changePage(t.viewComponent,{action:n,..."view"===n.toLowerCase()&&{id:o}||{}},"view"!==n.toLowerCase()?{taskId:i,processInstanceId:a,businessKey:o}:void 0)}))}}));else if(e.redirect){const t={...e},n=e.redirect;delete t.access_token,this.$router.push({path:n,query:t})}else this.$router.push("/");else{const e={appId:this.$proxyEnv.APP_ID,redirect:window.location.href};this.loading=!0,this.getAppRedirectUrl(e).then((e=>{e&&200===e.code&&(window.location.href=e.data)})).finally((()=>{this.loading=!1}))}}};var ct=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100vw",height:"100vh"}})};ct._withStripped=!0;const dt=Ce({render:ct,staticRenderFns:[]},undefined,Ct,undefined,false,undefined,!1,void 0,void 0,void 0);var It={props:{callBackLogin:{type:Function,default:null}},data:()=>({loading:!1}),created(){this.loading=!0,this.$store.commit("tabRouter/removeTabRouterList"),localStorage.removeItem("tabRouterList"),this.$store.commit("user/removeToken");const e=window.location.hash.split("?")[1];if(e){const t=new URLSearchParams(e),n=Object.fromEntries(t.entries());if(Object.hasOwnProperty.call(n,"code")&&Object.hasOwnProperty.call(n,"state")){const e={grantType:"corp_au_oauth",corpOauthCode:n.code,corpOauthState:n.state};let t={};n.srid&&(t={srid:n.srid}),this.callBackLogin(e,t).then((e=>{if(console.error("test:IamCallback",e),this.$store.commit("user/setToken",e.data.access_token),t.srid&&e.data.redirectUrl){let t="";t="development"===this.$envValue?`${window.location.origin}${this.$proxyEnv.API}`:this.$proxyEnv.API,t=`${t}/auth${e.data.redirectUrl}`,window.location.href=t,this.loading=!1}else n.redirect?(this.$router.push(n.redirect),this.loading=!1):(this.$router.push("/homePage/index"),this.loading=!1)}))}else this.$message.error("参数不全,缺少code或state")}else this.$message.error("参数不全")},render:e=>e()};const pt=It;var ut=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]})};ut._withStripped=!0;const mt=Ce({render:ut,staticRenderFns:[]},undefined,pt,undefined,false,undefined,!1,void 0,void 0,void 0);function ht(e){return e&&(e.Ctor.options.name||e.tag)}const ft={type:[String,RegExp,Array],default:""};function vt(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function bt(e){return null!=e}const yt=Object.prototype.toString;function xt(e,t,n,o){const i=e[t];!i||o&&i.tag===o.tag||i.componentInstance.$destroy(),e[t]=null,vt(n,t)}function Et(e,t){const n=e.cache,o=e.keys,i=e._vnode;Object.keys(n).forEach((e=>{const a=n[e];if(a){const A=a.name;A&&!t(A)&&xt(n,e,o,i)}}))}function wt(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===yt.call(n)&&e.test(t));var n}const _t={},Bt=[];var kt={name:"ContentKeepAlive",props:{needCache:{type:Boolean,default:!1},include:ft,exclude:ft,max:[String,Number],isRefreshing:{type:Boolean,default:!1},noDestroyPathArray:Array},watch:{noDestroyPathArray:{handler:function(e){this.cache&&Object.keys(this.cache).forEach((t=>{this.cache[t]&&!e.includes(this.cache[t].path)&&xt(this.cache,t,this.keys)}))}}},methods:{cacheVNode(){const e=this.cache,t=this.keys,n=this.vnodeToCache,o=this.keyToCache;if(n){const i=n.tag,a=n.componentInstance;a.__keepAlivePath=this.$route.path;const A=n.componentOptions;e[o]={name:ht(A),tag:i,componentInstance:a,fullPath:this.$route.fullPath,path:this.$route.path,key:o,initTime:(new Date).getTime()},t.push(o),this.max&&t.length>window.parseInt(this.max)&&xt(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=_t,this.keys=Bt},mounted(){this.cacheVNode(),this.$watch("include",(e=>{Et(this,(t=>wt(e,t)))})),this.$watch("exclude",(e=>{Et(this,(t=>!wt(e,t)))}))},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let n=0;n<e.length;n++){const o=e[n];if(bt(o)&&(bt(o.componentOptions)||(t=o).isComment&&t.asyncFactory))return o}var t}(e);if(!this.needCache)return t;const n=t&&t.componentOptions;if(n){const e=ht(n),o=this.include,i=this.exclude;if(o&&(!e||!wt(o,e))||i&&e&&wt(i,e))return t;const a=this.cache,A=this.keys,r=null==t.key?n.Ctor.cid+(n.tag?`::${n.tag}`:""):t.key;a[r]?(t.componentInstance=a[r].componentInstance,vt(A,r),A.push(r),this.$nextTick((()=>{t?.componentInstance&&t.componentInstance.__keepAlivePath===this.$route.path&&t?.componentInstance?.loadData&&(new Date).getTime()-a[r].initTime>300&&t.componentInstance.loadData()}))):(this.vnodeToCache=t,this.keyToCache=r),t.data.keepAlive=!0}return t||e&&e[0]}};const $t={name:"BlankContent",components:{BytzKeepAlive:kt},props:{isCacheIframe:{type:Boolean,default:!1}},computed:{...p({isRefreshing:"tabRouter/isRefreshing",noDestroyPathArray:"tabRouter/noDestroyPathArray"}),needCache:function(){return!this.$route.meta.noCache}}};var St=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("bytz-keep-alive",{attrs:{"need-cache":e.needCache,"no-destroy-path-array":e.noDestroyPathArray,"is-refreshing":e.isRefreshing}},[!e.needCache||e.isRefreshing||e.isCacheIframe?e.isRefreshing||e.isCacheIframe?e._e():n("router-view",{key:e.$route.path}):n("router-view")],1)],1)};St._withStripped=!0;const Ft=Ce({render:St,staticRenderFns:[]},(function(e){e&&e("data-v-2b6f1974_0",{source:".fade-leave-active[data-v-2b6f1974],\n.fade-enter-active[data-v-2b6f1974] {\n transition: opacity 0.28s cubic-bezier(0.38, 0, 0.24, 1);\n}\n.fade-enter[data-v-2b6f1974],\n.fade-leave-to[data-v-2b6f1974] {\n opacity: 0;\n}\n",map:{version:3,sources:["Content.vue"],names:[],mappings:"AAAA;;EAEE,wDAAwD;AAC1D;AACA;;EAEE,UAAU;AACZ",file:"Content.vue",sourcesContent:[".fade-leave-active,\n.fade-enter-active {\n transition: opacity 0.28s cubic-bezier(0.38, 0, 0.24, 1);\n}\n.fade-enter,\n.fade-leave-to {\n opacity: 0;\n}\n"]},media:void 0})}),$t,"data-v-2b6f1974",false,undefined,!1,de,void 0,void 0);const Tt={name:"TdesignStarterBreadcrumb",computed:{crumbs(){const e=this.$route.path.split("/");e.shift();const t=[],n=this.$router.getRoutes();return e.reduce(((e,o)=>{e+=`/${o}`;const i=n.find((t=>t.path===e));return i&&i.meta.title!==t[t.length-1]?.title&&t.push({path:i.path,to:i.path,title:i.meta.title||i.path}),e}),""),t}}};var Dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("t-breadcrumb",{staticClass:"tdesign-breadcrumb",attrs:{"max-item-width":"150"}},e._l(e.crumbs,(function(t){return n("t-breadcrumb-item",{key:t.to,attrs:{to:t.to}},[e._v("\n "+e._s(t.title)+"\n ")])})),1)};Dt._withStripped=!0;const Rt=Ce({render:Dt,staticRenderFns:[]},(function(e){e&&e("data-v-45da5ea1_0",{source:"\n.tdesign-breadcrumb[data-v-45da5ea1] {\r\n margin-bottom: 8px;\n}\r\n",map:{version:3,sources:["C:\\Users\\yuyang\\Desktop\\work\\qd\\platform-frontend-libs\\packages\\layout\\Breadcrumb.vue"],names:[],mappings:";AAqCA;EACA,kBAAA;AACA",file:"Breadcrumb.vue",sourcesContent:['<template>\r\n <t-breadcrumb :max-item-width="\'150\'" class="tdesign-breadcrumb">\r\n <t-breadcrumb-item v-for="item in crumbs" :key="item.to" :to="item.to">\r\n {{ item.title }}\r\n </t-breadcrumb-item>\r\n </t-breadcrumb>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: "TdesignStarterBreadcrumb",\r\n computed: {\r\n crumbs() {\r\n const pathArray = this.$route.path.split("/");\r\n pathArray.shift();\r\n\r\n const breadcrumbs = [];\r\n const allRoutes = this.$router.getRoutes();\r\n pathArray.reduce((lastStr, item) => {\r\n lastStr += `/${item}`;\r\n const route = allRoutes.find((v) => v.path === lastStr) ;\r\n if (route && route.meta.title !== breadcrumbs[breadcrumbs.length - 1]?.title) {\r\n breadcrumbs.push({\r\n path: route.path,\r\n to: route.path,\r\n title: route.meta.title || route.path\r\n });\r\n }\r\n\r\n return lastStr;\r\n }, "");\r\n return breadcrumbs;\r\n }\r\n }\r\n};\r\n<\/script>\r\n<style scoped>\r\n.tdesign-breadcrumb {\r\n margin-bottom: 8px;\r\n}\r\n</style>']},media:void 0})}),Tt,"data-v-45da5ea1",false,undefined,!1,de,void 0,void 0);const Pt={name:"Layoutfooter"};var Ot=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"footer-content"},[e._v("\n Copyright @ 2021-"+e._s((new Date).getFullYear())+" Company. All Rights Reserved\n")])};Ot._withStripped=!0;const Lt=Ce({render:Ot,staticRenderFns:[]},(function(e){e&&e("data-v-1e35e399_0",{source:".footer-content[data-v-1e35e399] {\n color: var(--td-text-color-placeholder);\n line-height: 20px;\n text-align: center;\n}\n",map:{version:3,sources:["Footer.vue"],names:[],mappings:"AAAA;EACE,uCAAuC;EACvC,iBAAiB;EACjB,kBAAkB;AACpB",file:"Footer.vue",sourcesContent:[".footer-content {\n color: var(--td-text-color-placeholder);\n line-height: 20px;\n text-align: center;\n}\n"]},media:void 0})}),Pt,"data-v-1e35e399",false,undefined,!1,de,void 0,void 0),Nt="content_full_screen";const qt={name:"FullScreen",data:function(){return{isFullScreen:!1}},mounted(){this.isFullScreen="true"===localStorage.getItem(Nt),this.changeDom()},methods:{changeFullScreen:function(){this.isFullScreen=!this.isFullScreen,localStorage.setItem(Nt,this.isFullScreen),this.changeDom(),this.$bus.$emit("full-screen",this.isFullScreen)},changeDom:function(){this.isFullScreen?document.body.classList.add("is-in-full-screen"):document.body.classList.remove("is-in-full-screen")}}};var jt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.isFullScreen?"退出全屏":"显示全屏",placement:"top-end"}},[n("div",{staticClass:"content-full-screen",class:{"is-full-screen":e.isFullScreen},on:{click:e.changeFullScreen}},[n("i",{class:e.isFullScreen?"el-icon-switch-button":"el-icon-full-screen"})])])};jt._withStripped=!0;const zt=Ce({render:jt,staticRenderFns:[]},(function(e){e&&e("data-v-b3876f82_0",{source:".content-full-screen[data-v-b3876f82] {\n z-index: 999;\n position: absolute;\n bottom: 24px;\n right: 24px;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0.5;\n cursor: pointer;\n transition: all 0.5s;\n}\n.content-full-screen[data-v-b3876f82]:hover {\n opacity: 1;\n transform: scale(1.5);\n}\n.content-full-screen.is-full-screen[data-v-b3876f82] {\n bottom: 0;\n right: 0;\n position: fixed;\n}\n",map:{version:3,sources:["FullScreen.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,YAAY;EACZ,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,UAAU;EACV,qBAAqB;AACvB;AACA;EACE,SAAS;EACT,QAAQ;EACR,eAAe;AACjB",file:"FullScreen.vue",sourcesContent:[".content-full-screen {\n z-index: 999;\n position: absolute;\n bottom: 24px;\n right: 24px;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0.5;\n cursor: pointer;\n transition: all 0.5s;\n}\n.content-full-screen:hover {\n opacity: 1;\n transform: scale(1.5);\n}\n.content-full-screen.is-full-screen {\n bottom: 0;\n right: 0;\n position: fixed;\n}\n"]},media:void 0})}),qt,"data-v-b3876f82",false,undefined,!1,de,void 0,void 0);const Mt={name:"IframeView",data:function(){return{src:void 0,token:void 0}},watch:{"$route.path":{handler:function(){"IframeView"===this.$route.meta.component&&this.setSrc()},immediate:!0}},methods:{setSrc:async function(){try{const{url:e,appId:t,checkToken:n}=JSON.parse(this.$route.meta.query),o=e.split("?")[1],i=o?Object.fromEntries(new URLSearchParams(o).entries()):{},a=i.token||i.access_token;let A=this.$route.query;if(A?.iframeQuery&&delete A.iframeQuery,A="{}"!==JSON.stringify(A)?Object.entries(A).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&"):"",t){const{appType:n}=await re(t);"0"===n?(this.token="$replaceAppToken$"===a?await se(t):this.$store.getters["user/token"],this.src=`${e.replace(a,this.token)}${A?`&${A}`:""}`):this.src=`${e.replace(/(&|\?)token=[^&]*/,"")}${A?`?${A}`:""}`}else a?(this.token=this.$store.getters["user/token"],this.src=`${e.replace(a,this.token)}${A?`&${A}`:""}`):this.src=`${e}${A?`?${A}`:""}`}catch(e){this.$message.error("请检查菜单参数!"),console.error(e)}}}};var Wt=function(){var e=this,t=e.$createElement;return(e._self._c||t)("iframe",{staticClass:"iframe-view",attrs:{src:e.src}})};Wt._withStripped=!0;const Yt=Ce({render:Wt,staticRenderFns:[]},(function(e){e&&e("data-v-6f640d93_0",{source:".iframe-content .iframe-view[data-v-6f640d93],\n.iframe-view[data-v-6f640d93] {\n width: 100%;\n height: 100%;\n border: none;\n padding: 0;\n display: block;\n}\n",map:{version:3,sources:["IframeView.vue"],names:[],mappings:"AAAA;;EAEE,WAAW;EACX,YAAY;EACZ,YAAY;EACZ,UAAU;EACV,cAAc;AAChB",file:"IframeView.vue",sourcesContent:[".iframe-content .iframe-view,\n.iframe-view {\n width: 100%;\n height: 100%;\n border: none;\n padding: 0;\n display: block;\n}\n"]},media:void 0})}),Mt,"data-v-6f640d93",false,undefined,!1,de,void 0,void 0);const Ut={name:"IframeContent",dicts:["cross_domain_white_list"],data:function(){return{componentArray:[],currentPath:null}},computed:{...p({menuRouters:"subMenus",noDestroyPathArray:"tabRouter/noDestroyPathArray"})},watch:{"$route.path":{handler:function(){this.$route.meta?.component&&!this.$route.meta.noCache&&["IframeView","AppIframeView"].includes(this.$route.meta.component)&&(this.currentPath=this.$route.path,this.setCurrentComponent())},immediate:!0},noDestroyPathArray:function(e){this.componentArray=this.componentArray.filter((t=>e.find((e=>e===t.path))))}},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},methods:{getCurrentComponentInfo:function(e=this.menuRouters){let t=null;for(let n=0;n<e.length;n++){const o=e[n];if(this.$route.path===e[n].path)return t=o,t;if(o.children&&(t=this.getCurrentComponentInfo(o.children),t))return t}return null},setCurrentComponent:function(){this.componentArray.find((e=>e.path===this.$route.path))||this.componentArray.push({component:this.getCurrentComponentInfo()?.component,path:this.$route.path})},handleMessage(e){if(e.data?.newIfarmeTab){const t={path:e.data.path,appId:"$system$",groupBy:"0",components:{default:Yt},name:e.data.path,meta:{component:"IframeView",icon:"#",isFrame:void 0,link:null,noCache:!0,title:e.data.title,query:`{"url": "${e.data.url}"}`}},n=this.$router.getRoutes().find((t=>t.path===e.data.path));if(console.log(n,11),n)n.meta.query=`{"url": "${e.data.url}"}`,console.log(n.meta.query),n.meta.title=e.data.title,this.$router.push({path:e.data.path,query:{t:Date.now()}});else{const n=this.$router.getRoutes().find((e=>""===e.path));n.children||(n.children=[]),n.children.push(t),this.$router.addRoute(n),this.$router.push({path:e.data.path})}}}}};var Zt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"iframe-content"},[e._l(e.componentArray,(function(t){return[n(t.component,{directives:[{name:"show",rawName:"v-show",value:t.path===e.currentPath,expression:"item.path === currentPath"}],key:t.path,tag:"component"})]}))],2)};Zt._withStripped=!0;const Vt={name:"LayoutContent",components:{CommonContent:Ft,LayoutFooter:Lt,LayoutBreadcrumb:Rt,RefreshIcon:h,ArrowLeftIcon:f,ArrowRightIcon:v,HomeIcon:b,CloseCircleIcon:y,FullScreen:zt,IframeContent:Ce({render:Zt,staticRenderFns:[]},(function(e){e&&e("data-v-3a77127f_0",{source:".iframe-content[data-v-3a77127f] {\n height: 100%;\n padding: 0 !important;\n overflow: hidden !important;\n}\n",map:{version:3,sources:["IframeContent.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,qBAAqB;EACrB,2BAA2B;AAC7B",file:"IframeContent.vue",sourcesContent:[".iframe-content {\n height: 100%;\n padding: 0 !important;\n overflow: hidden !important;\n}\n"]},media:void 0})}),Ut,"data-v-3a77127f",false,undefined,!1,de,void 0,void 0)},props:{prefix:String},data:()=>({activeTabPath:""}),computed:{...p({showFooter:"setting/showFooter",mode:"setting/mode",isUseTabsRouter:"setting/isUseTabsRouter",menuRouters:"permission/routers",tabRouterList:"tabRouter/tabRouterList"}),setting(){return this.$store.state.setting},isGroupLogin:()=>"true"===sessionStorage.getItem("isGroupLogin"),isInIframe:function(){return window.self!==window.top},canFullScreen:function(){const e=this.$route.meta.query;if(!e)return!1;try{return 1===JSON.parse(e).fullScreen}catch(e){console.error("canFullScreen:",e)}return!0},isCacheIframe(){return this.$route.meta?.component&&!this.$route.meta.noCache&&["IframeView","AppIframeView"].includes(this.$route.meta.component)}},methods:{handleRemove(e,t){const n=this.tabRouterList[t+1]||this.tabRouterList[t-1];this.$store.commit("tabRouter/subtractCurrentTabRouter",{path:e,routeIdx:t}),e===this.$router.history?.current?.path&&this.$router.push({path:n.path,query:n.query||{}})},handleChangeCurrentTab(e){const t=this.tabRouterList.find((t=>t.path===e))||{path:e};this.$router.push({path:t.path,query:t.query||{}})},handleRefresh(e,t){this.$store.commit("tabRouter/toggleTabRouterAlive",t),this.$nextTick((()=>{this.$store.commit("tabRouter/toggleTabRouterAlive",t),this.$router.replace({path:e})})),this.activeTabPath=null},handleCloseAhead(e,t){this.$store.commit("tabRouter/subtractTabRouterAhead",{path:e,routeIdx:t}),this.handleOperationEffect("ahead",t)},handleCloseBehind(e,t){this.$store.commit("tabRouter/subtractTabRouterBehind",{path:e,routeIdx:t}),this.handleOperationEffect("behind",t)},handleCloseOther(e,t){this.$store.commit("tabRouter/subtractTabRouterOther",{path:e,routeIdx:t}),this.handleOperationEffect("other",t)},handleOperationEffect(e,t){const n=this.$router.history?.current?.path,o=this.tabRouterList,i=o.findIndex((e=>e.path===n));if("other"===e&&i!==t||"ahead"===e&&i<t||"behind"===e&&-1===i){let t;switch(e){case"behind":case"other":default:t=o.length-1;break;case"ahead":t=1}const n=this.tabRouterList[t];this.$router.push(n.path)}this.activeTabPath=null},handleTabMenuClick(e,t,n){"document"===t?.trigger&&(this.activeTabPath=null),e&&(this.activeTabPath=n)}}};var Ht=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("t-layout",{class:[e.prefix+"-layout"]},[!e.isUseTabsRouter||e.isGroupLogin||e.isInIframe?e._e():n("t-tabs",{class:e.prefix+"-layout-tabs-nav",style:{position:"sticky",top:0,width:"100%"},attrs:{theme:"card",value:e.$route.path},on:{change:e.handleChangeCurrentTab}},e._l(e.tabRouterList,(function(t,o){return n("t-tab-panel",{key:t.path+"_"+o,attrs:{value:t.path,removable:!t.isHome},on:{remove:function(){return e.handleRemove(t.path,o)}},scopedSlots:e._u([{key:"label",fn:function(){return[n("t-dropdown",{attrs:{trigger:"context-menu","min-column-width":128,"popup-props":{overlayClassName:"route-tabs-dropdown",onVisibleChange:function(n,o){return e.handleTabMenuClick(n,o,t.path)},visible:e.activeTabPath===t.path}},scopedSlots:e._u([{key:"dropdown",fn:function(){return[n("t-dropdown-menu",[e._e(),e._v(" "),o>1?n("t-dropdown-item",{on:{click:function(){return e.handleCloseAhead(t.path,o)}}},[n("arrow-left-icon"),e._v("\n 关闭左侧\n ")],1):e._e(),e._v(" "),o<e.tabRouterList.length-1?n("t-dropdown-item",{on:{click:function(){return e.handleCloseBehind(t.path,o)}}},[n("arrow-right-icon"),e._v("\n 关闭右侧\n ")],1):e._e(),e._v(" "),n("t-dropdown-item",{on:{click:function(){return e.handleCloseOther(t.path,o)}}},[n("close-circle-icon"),e._v("\n 关闭其它\n ")],1)],1)]},proxy:!0}],null,!0)},[t.isHome?n("home-icon"):[e._v("\n "+e._s(t.title)+"\n ")]],2)]},proxy:!0}],null,!0)})})),1),e._v(" "),n("t-content",{class:e.prefix+"-content-layout"},[e.setting.showBreadcrumb?n("layout-breadcrumb"):e._e(),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isCacheIframe,expression:"!isCacheIframe"}],staticStyle:{height:"100%"}},[n("common-content",{staticClass:"common-content",attrs:{"is-cache-iframe":e.isCacheIframe}})],1),e._v(" "),n("iframe-content",{directives:[{name:"show",rawName:"v-show",value:e.isCacheIframe,expression:"isCacheIframe"}]}),e._v(" "),e.canFullScreen&&!e.isInIframe?n("full-screen"):e._e()],1),e._v(" "),e.showFooter?n("t-footer",{class:e.prefix+"-footer-layout"},[n("layout-footer")],1):e._e()],1)};Ht._withStripped=!0;const Xt=Ce({render:Ht,staticRenderFns:[]},undefined,Vt,undefined,false,undefined,!1,void 0,void 0,void 0);const Gt={name:"LayoutMainMenu",computed:{...p({mainMenu:"permission/routers",showMainMenu:"user/showRootMenu"}),mainPath:function(){const e=this.$route.path?.split("/")||[];return e.shift(),`/${e[0]}`}},methods:{handleIconClick:function(e){const t=e.path.match(/http(s|):\/\/\S*?$/)?.[0],{isFrame:n,openNewWindow:o}=e?.meta,i="1"===o?"_self":"_blank";if("0"===n)return t?void window.open(t,i):void window.open(`${window.location.protocol}//${e.path}`,i);const a=e.redirect||e.path;if("0"===o)return t?void window.open(t):void window.open(`${window.origin}/#${a}`);this.$router.push({path:a})}}};var Kt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showMainMenu?n("div",{staticClass:"layout-main-menu-container"},e._l(e.mainMenu.filter((function(e){return!e.hidden})),(function(t,o){return n("div",{key:t.path,staticClass:"main-menu-item",class:{active:t.path===e.mainPath},on:{click:function(n){return e.handleIconClick(t,o)}}},[t.meta&&"string"==typeof t.meta.icon&&t.meta.icon?n("el-tooltip",{attrs:{effect:"dark",content:t.meta&&t.meta.title||"未设置",placement:"right"}},[n("svg-icon",{staticClass:"svg-icon-class",attrs:{"icon-class":t.meta&&t.meta.icon||"404"}})],1):e._e()],1)})),0):e._e()};Kt._withStripped=!0;const Qt=Ce({render:Kt,staticRenderFns:[]},(function(e){e&&e("data-v-094d3655_0",{source:".layout-main-menu-container[data-v-094d3655] {\n width: var(--root-menu-width);\n position: fixed;\n left: 0;\n top: 64px;\n bottom: 0;\n overflow-y: auto;\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.layout-main-menu-container .main-menu-item[data-v-094d3655] {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: var(--root-menu-width);\n height: var(--root-menu-width);\n min-height: var(--root-menu-width);\n}\n.layout-main-menu-container .svg-icon-class[data-v-094d3655] {\n width: 24px;\n height: 24px;\n color: #C5C5CE;\n}\n",map:{version:3,sources:["LayoutMainMenu.vue"],names:[],mappings:"AAAA;EACE,6BAA6B;EAC7B,eAAe;EACf,OAAO;EACP,SAAS;EACT,SAAS;EACT,gBAAgB;EAChB,kBAAkB;EAClB,aAAa;EACb,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,eAAe;EACf,6BAA6B;EAC7B,8BAA8B;EAC9B,kCAAkC;AACpC;AACA;EACE,WAAW;EACX,YAAY;EACZ,cAAc;AAChB",file:"LayoutMainMenu.vue",sourcesContent:[".layout-main-menu-container {\n width: var(--root-menu-width);\n position: fixed;\n left: 0;\n top: 64px;\n bottom: 0;\n overflow-y: auto;\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.layout-main-menu-container .main-menu-item {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: var(--root-menu-width);\n height: var(--root-menu-width);\n min-height: var(--root-menu-width);\n}\n.layout-main-menu-container .svg-icon-class {\n width: 24px;\n height: 24px;\n color: #C5C5CE;\n}\n"]},media:void 0})}),Gt,"data-v-094d3655",false,undefined,!1,de,void 0,void 0),Jt=(e,t)=>e?e.map((e=>{let n;n=t&&"0"!==e.isFrame?`${t}/${e.path}`:e.path;return-1===n.indexOf("//")||e.path.match(/(http|https):\/\/([\w.]+\/?)\S*/)||(n=`/${n.split("//")[1]}`),{path:n,appImg:e.meta?.appImg||"",title:e.meta?.title,icon:e.meta?.icon||"",isFrame:e.isFrame,openNewWindow:e.openNewWindow||(e.children&&e.children.length>0?e.children[0]?.openNewWindow:void 0),children:Jt(e.children,n),meta:e.meta,redirect:e.redirect,hidden:e.hidden}})).filter((e=>e.meta&&!0!==e.hidden)):[];e.component("RenderFnIcon",{props:{item:{type:Object,required:!0}},render(e){if("function"==typeof this.item.icon||this.item.icon&&"function"==typeof this.item.icon.render)return e(this.item.icon,{class:"t-icon"})}});const en={name:"MenuContent",props:{navData:Array,isTop:{type:Boolean,default:!1}},computed:{...p({showHomeDrag:"user/showHomeDrag"}),list(){return Jt(this.navData)},mapHhM:function(){return this.$route.params.hhM?`/${this.$getRouteNameByPageValue(this.$route.params.hhM).replace(/-/g,"/")}`:null}},mounted(){const e=document.querySelector(".top-nav"),t=e?.querySelectorAll(".t-menu__popup");e&&t&&t.length>0&&e.addEventListener("scroll",(()=>{t.forEach((t=>{t.style.marginLeft=`-${e.scrollLeft}px`}))}))},methods:{getUrl:e=>e.path.toLowerCase().startsWith("http")?e.path:`${window.origin}/#${e.path}`,getHref(e){const t=e.path?.match(/(http|https):\/\/([\w.]+\/?)\S*/)||[];return t.length?t[0]:`${window.location.protocol}//${e.path}`},addEllipsis(e){return this.isTop&&e.length>4?`${e.slice(0,3)}...`:e},tIsActive:function(e){return"/"!==e.path&&(this.$route.path===e.path||this.$route.path.startsWith(`${e.path}/`))||this.mapHhM===(e.redirect||e.path)}}};var tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.isTop?"top-nav":"",e.showHomeDrag?"is-user":"is-admin"]},[e._l(e.list,(function(t){return[t.children&&t.children.length&&!t.meta.single?n("t-submenu",{key:t.path,class:{"t-is-opened custom-active":e.$route.path.startsWith(t.path),"t-is-active":e.$route.path.startsWith(t.path)},attrs:{name:t.path,value:t.path,title:e.addEllipsis(t.title)},scopedSlots:e._u([{key:"icon",fn:function(){return[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.title,offset:-100,placement:"top-start","hide-after":1e3}},[t.appImg?n("el-image",{staticStyle:{width:"27px",height:"25px","border-radius":"50%","object-fit":"cover"},attrs:{src:t.appImg}}):"string"==typeof t.icon&&t.icon&&"#"!==t.icon?n("svg-icon",{staticClass:"svg-icon-menu-class",attrs:{"icon-class":t.icon}}):e._e()],1),e._v(" "),n("render-fn-icon",{attrs:{item:t}})]},proxy:!0}],null,!0)},[e._v(" "),t.children?n("menu-content",{attrs:{"nav-data":t.children}}):e._e()],1):["0"===t.isFrame?n("t-menu-item",{key:t.path,class:{"t-is-active":e.tIsActive(t)},attrs:{href:e.getHref(t),name:t.path,value:t.meta.single?t.redirect:t.path,target:"1"===t.openNewWindow?"_self":"_blank"},scopedSlots:e._u([{key:"icon",fn:function(){return["string"==typeof t.icon&&t.icon?n("svg-icon",{staticClass:"svg-icon-menu-class",attrs:{"icon-class":t.icon}}):e._e(),e._v(" "),n("render-fn-icon",{attrs:{item:t}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.title)+"\n ")]):"0"===t.openNewWindow?n("t-menu-item",{key:t.path,class:{"t-is-active":e.tIsActive(t)},attrs:{name:t.path,value:t.meta.single?t.redirect:t.path,href:e.getUrl(t)},scopedSlots:e._u([{key:"icon",fn:function(){return["string"==typeof t.icon&&t.icon?n("svg-icon",{staticClass:"svg-icon-menu-class",attrs:{"icon-class":t.icon}}):e._e(),e._v(" "),n("render-fn-icon",{attrs:{item:t}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.title)+"\n ")]):t.meta.link?n("t-menu-item",{key:t.path,class:{"t-is-active":e.tIsActive(t)},attrs:{name:t.path,value:t.meta.single?t.redirect:t.path,href:t.meta.link},scopedSlots:e._u([{key:"icon",fn:function(){return["string"==typeof t.icon&&t.icon?n("svg-icon",{staticClass:"svg-icon-menu-class",attrs:{"icon-class":t.icon}}):e._e(),e._v(" "),n("render-fn-icon",{attrs:{item:t}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.title)+"\n ")]):n("t-menu-item",{key:t.path,class:{"t-is-active":e.tIsActive(t)},attrs:{name:t.path,value:t.meta.single?t.redirect:t.path,to:t.meta.single?t.redirect:t.path},scopedSlots:e._u([{key:"icon",fn:function(){return[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.title,offset:-100,placement:"top-start"}},["string"==typeof t.icon&&t.icon&&"#"!==t.icon?n("svg-icon",{staticClass:"svg-icon-menu-class",attrs:{"icon-class":t.icon}}):e._e()],1),e._v(" "),n("render-fn-icon",{attrs:{item:t}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.title)+"\n ")])]]}))],2)};tn._withStripped=!0;const nn=Ce({render:tn,staticRenderFns:[]},(function(e){e&&e("data-v-afadcc20_0",{source:".svg-icon-menu-class {\n width: 2em !important;\n height: 1.8em !important;\n}\n.top-nav ::v-deep .t-submenu {\n position: static;\n}\n.top-nav ::v-deep .t-submenu ::v-deep .t-is-opened {\n height: 50px !important;\n}\n.top-nav ::v-deep .t-submenu .t-menu__popup {\n min-width: auto;\n max-height: var(--popup-max-height, 999px) !important;\n}\n.top-nav ::v-deep .t-submenu .t-menu__item::before {\n display: none;\n}\n",map:{version:3,sources:["MenuContent.vue"],names:[],mappings:"AAAA;EACE,qBAAqB;EACrB,wBAAwB;AAC1B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,eAAe;EACf,qDAAqD;AACvD;AACA;EACE,aAAa;AACf",file:"MenuContent.vue",sourcesContent:[".svg-icon-menu-class {\n width: 2em !important;\n height: 1.8em !important;\n}\n.top-nav ::v-deep .t-submenu {\n position: static;\n}\n.top-nav ::v-deep .t-submenu ::v-deep .t-is-opened {\n height: 50px !important;\n}\n.top-nav ::v-deep .t-submenu .t-menu__popup {\n min-width: auto;\n max-height: var(--popup-max-height, 999px) !important;\n}\n.top-nav ::v-deep .t-submenu .t-menu__item::before {\n display: none;\n}\n"]},media:void 0})}),en,undefined,false,undefined,!1,de,void 0,void 0);let on=[];var an={name:"SideNav",components:{MenuContent:nn,LayoutMainMenu:Qt},props:{prefix:String,myLogo:Object,menu:Array,showLogo:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},icons:{type:Object,default:()=>({})},layout:String,headerHeight:{type:String,default:"64px"},theme:{type:String,default:"light"},isCompact:{type:Boolean,default:!1}},data(){return{formData:this.$store.state.setting,showInfo:this.$proxyEnv.showInfo,collapsed:this.$store.state.setting.isSidebarCompact}},computed:{...p({showHomeDrag:"user/showHomeDrag"}),defaultExpanded(){const e=this.$route.path,t=[];let n="";return e.split("/").forEach((e=>{e&&(n+=`/${e}`,t.push(n))})),t},sideNavCls(){return[`${this.prefix}-sidebar-layout`,{[`${this.prefix}-sidebar-compact`]:!this.collapsed,...this.showHomeDrag?{}:{[`${this.prefix}-admin-sidebar-compact`]:!this.collapsed}}]},menuCls(){return["side-nav__container",`${this.prefix}-side-nav`,{[`${this.prefix}-side-nav-no-logo`]:!this.showLogo,[`${this.prefix}-side-nav-no-fixed`]:!this.isFixed,[`${this.prefix}-side-nav-mix-fixed`]:"mix"===this.layout&&this.isFixed}]},active(){return this.$route.path?this.$route.path.split("/").filter(((e,t)=>t>0)).map((e=>`/${e}`)).join(""):""},sideNavStyle(){return{width:this.collapsed?"64px":"234px"}}},methods:{changeCol(){this.collapsed=!this.collapsed,this.$store.commit("setting/showSidebarCompact",this.collapsed)},handleExpand:function(){this.initPopupMenuHeight()},initPopupMenuHeight:function(){this.collapsed&&this.showHomeDrag&&this.$nextTick((()=>{const e=this.$el.querySelectorAll(".t-menu__popup"),t=[];for(let n=0;n<e.length;n++){const o=e[n];o.classList.contains("t-is-opened")?(t.push(o),on.includes(o)||(o.style.position="fixed",o.style.width="216px",setTimeout((()=>{const e=o.previousElementSibling,t=e?.getBoundingClientRect();e&&(o.style.position="fixed",o.style.left=`${t.right+16}px`,o.style.top=`${t.top}px`),o.style.maxHeight="",o.style.overflowY="";let n=window.innerHeight-t.top-2;const i=o.scrollHeight;if(n<200&&i>n){let e=0;i<200?(e=i-n,n=i):(e=200-n,n=200),o.style.top=t.top-e+"px"}if(i>n){const e=Math.max(n+2,100);o.style.maxHeight=`${e}px`,o.style.overflowY="auto",o.style.overflowX="hidden"}else o.style.maxHeight="unset"}),150))):on.includes(o)&&(o.style.width=0)}on=t}))}}};const An=an;var rn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"side-nav",class:e.sideNavCls,style:e.showHomeDrag?e.sideNavStyle:""},[e.showHomeDrag?n("img",{staticClass:"colIcon",attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAADICAYAAABvRChfAAAACXBIWXMAAAsTAAALEwEAmpwYAAA4G2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMTQgNzkuMTUxNDgxLCAyMDEzLzAzLzEzLTEyOjA5OjE1ICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDI1LTAzLTE3VDE3OjU5OjQxKzA4OjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMjUtMDMtMTdUMTg6MDI6NDQrMDg6MDA8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDI1LTAzLTE3VDE4OjAyOjQ0KzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD54bXAuaWlkOmY4OWU1MDY1LTlmMWMtNmE0Mi04NWJkLWM1ZTk5ODAwOGE1OTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpmODllNTA2NS05ZjFjLTZhNDItODViZC1jNWU5OTgwMDhhNTk8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDpmODllNTA2NS05ZjFjLTZhNDItODViZC1jNWU5OTgwMDhhNTk8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jcmVhdGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6Zjg5ZTUwNjUtOWYxYy02YTQyLTg1YmQtYzVlOTk4MDA4YTU5PC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDI1LTAzLTE3VDE3OjU5OjQxKzA4OjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjY1NTM1PC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj4zNzwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4yMDA8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PvI0X3QAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAtFJREFUeNrs3b2O2kAQB/CZlpoyRa6luiKNyxNNGq/CI/hNjjfh3gAhitCAr6eIeAIXFBQnOhrklVMkvjicjdf27IdO/2kQBeKnHbPMTrHDq9WqoPZI/75mzJzlef4ym80yshRsiKqFMnNKRK95nmeSyCGoamRENNdapxI4KVQ1kqE4G6h3nFJqERqKiCjVWiddV8026v1567JqLlB/voj52XQrcYbqAnOKMoU5R5nAvKDaYN5QJSyO43lQKCIirfXD7Wp5RxFRqpR6Cg31IY1BoG7TGAyqulrBoKqrFRSqLHdCQy2UUkloKNJaPwSHIqIkRFQKVHDlMFBAAQUUUEABBRRQQAEFFFBAAQUUUEABBRRQQAEFFFBAAQUUUECVEUXR8nA4fLtcLl+CQE2n05+j0eh7URTH3W5HbTDrqBJUvjeBWUXdgsq4Xq+/NpvNo3NUE6goiuN+v387nU5uUUNAVlBDQeIoCZAoSgokhpIEiaCkQYNRNkCDULZAvVE2Qb1QtkGdUS5AnVCuQMYolyAjlGtQK8oH6C7KF6gR5RPUiIqiaDkej3/UfWC73R5NTiRW0ucTdvdB9wVr3RJ8wIw2T9cw478Zl7BOf8iuYJ1LFxewXkWebVjvctgmbNDBwRZs8BHLBkzkMCoNEzu2S8JEGxxSMPFWkATMStNsKMxae3EIzGojtglWFMVxvV77QdXBvDVim2DeGrFNMZlMlufz+avzRqyXIg8ooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCqjPjMqAMkod8zOujTZJnVIqrAu2y9vkcZO8SeqC2qdCHATw34CJIFC3ozi8o+qGlvhGfZgL4h1VN0HFK4qZn+I4ToMpXe6BvKDaQM5RJiCXqIyZExOQK1Ttz94byjRdrlALZn7pA7KBSpl53hcjjRLBSKAWRPQqNQeyDyqjf2M9rUCq8XsA1HbGg7Iqy3kAAAAASUVORK5CYII="},on:{click:e.changeCol}}):e._e(),e._v(" "),n("t-menu",{staticClass:"t-menu-logo",class:[e.menuCls,e.collapsed?"":"side-nav-admin-container"],staticStyle:{"z-index":"99"},attrs:{width:"232px",theme:e.theme,value:e.active,collapsed:e.showHomeDrag?e.collapsed:e.showHomeDrag,"default-expanded":e.defaultExpanded},on:{expand:e.handleExpand},scopedSlots:e._u([{key:"logo",fn:function(){return[n("span",{staticClass:"logo-display"},[e.showLogo?n("span",[n(e.showInfo?e.myLogo:"",{tag:"component"})],1):e._e(),e._v(" "),!e.collapsed&&e.showLogo&&e.menu.length?n("span",{class:e.showLogo?"":"text-center",staticStyle:{"font-size":"24px","margin-left":"20px","font-weight":"700",color:"#4F4E4E"},style:{color:"light"==e.formData.mode?"#000":"#fff"}},[e._v(e._s(e.platformTitle))]):e._e()])]},proxy:!0},{key:"operations",fn:function(){},proxy:!0}])},[e._v(" "),n("layout-main-menu"),e._v(" "),n("menu-content",{staticClass:"side-nav__menu-content menu-padding-left",attrs:{"nav-data":e.menu}})],1),e._v(" "),n("div",{class:e.prefix+"-side-nav-placeholder"+(e.showHomeDrag&&e.collapsed?"-hidden":"")})],1)};rn._withStripped=!0;const sn=Ce({render:rn,staticRenderFns:[]},(function(e){e&&e("data-v-1130656f_0",{source:"span.text-center[data-v-1130656f] {\n width: 100%;\n display: flex;\n justify-content: center;\n}\n.menu-padding-left[data-v-1130656f] ul.t-menu__sub {\n --padding-left: 32px !important;\n}\n.menu-padding-left[data-v-1130656f] ul.t-menu__sub ul {\n --padding-left: 44px !important;\n}\n.t-menu-logo[data-v-1130656f] .t-menu__logo {\n justify-content: center;\n border-bottom: none;\n}\n.t-menu-logo .logo-display[data-v-1130656f] {\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n justify-content: center;\n}\n[data-v-1130656f] .t-menu__popup-wrapper {\n border-radius: var(--td-radius-medium);\n}\n.colIcon[data-v-1130656f] {\n position: absolute;\n height: 50px;\n width: 12px;\n right: -12px;\n top: 45%;\n z-index: 99;\n cursor: pointer;\n}\n.side-nav[data-v-1130656f] {\n transition: width 0.3s ease;\n overflow: hidden;\n}\n[data-v-1130656f] .t-default-menu.t-is-collapsed .t-submenu > .t-menu__item::after {\n display: none;\n}\n",map:{version:3,sources:["SideNav.vue"],names:[],mappings:"AAAA;EACE,WAAW;EACX,aAAa;EACb,uBAAuB;AACzB;AACA;EACE,+BAA+B;AACjC;AACA;EACE,+BAA+B;AACjC;AACA;EACE,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,yBAAyB;EACzB,sBAAsB;EACtB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,sCAAsC;AACxC;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,YAAY;EACZ,QAAQ;EACR,WAAW;EACX,eAAe;AACjB;AACA;EACE,2BAA2B;EAC3B,gBAAgB;AAClB;AACA;EACE,aAAa;AACf",file:"SideNav.vue",sourcesContent:["span.text-center {\n width: 100%;\n display: flex;\n justify-content: center;\n}\n.menu-padding-left /deep/ ul.t-menu__sub {\n --padding-left: 32px !important;\n}\n.menu-padding-left /deep/ ul.t-menu__sub ul {\n --padding-left: 44px !important;\n}\n.t-menu-logo /deep/ .t-menu__logo {\n justify-content: center;\n border-bottom: none;\n}\n.t-menu-logo .logo-display {\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n justify-content: center;\n}\n::v-deep .t-menu__popup-wrapper {\n border-radius: var(--td-radius-medium);\n}\n.colIcon {\n position: absolute;\n height: 50px;\n width: 12px;\n right: -12px;\n top: 45%;\n z-index: 99;\n cursor: pointer;\n}\n.side-nav {\n transition: width 0.3s ease;\n overflow: hidden;\n}\n::v-deep .t-default-menu.t-is-collapsed .t-submenu > .t-menu__item::after {\n display: none;\n}\n"]},media:void 0})}),An,"data-v-1130656f",false,undefined,!1,de,void 0,void 0),gn={name:"MenuItem",props:{item:Object,activeColor:String,normalColor:String,normalIconColor:String,textActiveColor:String,activeIndex:String},data:()=>({isRootActive:!1}),watch:{$route:{handler:function(e){this.item.isRoot&&(this.isRootActive=e.path.startsWith(this.item.path))},immediate:!0}},computed:{rootClassName:function(){return this.item.isRoot?"menu--root"+(this.isRootActive?" is-active":""):""}},render(e){const{item:t}=this,n=t.children?.filter((e=>!e.hidden)),o={color:this.isRootActive?this.textActiveColor:this.normalIconColor};return n&&n.length?e("el-submenu",{props:{index:t.path,popperAppendToBody:!1,popperClass:"side-nav-brief--pop"},key:t.path,class:this.rootClassName},[e("template",{slot:"title"},[t.meta.icon&&t.isRoot&&e("div",{class:"active-icon-bg",style:{backgroundColor:this.activeColor}}),t.meta.icon&&(t.meta.icon.startsWith("el")?e("i",{class:t.meta.icon,style:o}):e("svg-icon",{class:"svg-icon-class",style:o,props:{iconClass:t.meta.icon}})),e("span",{class:"submenu-title",style:{color:this.isRootActive?this.activeColor:this.normalColor}},t.meta.title)]),...n.map((t=>e(gn,{props:{item:t}})))]):e("el-menu-item",{props:{index:t.path},key:t.path,class:this.rootClassName,style:{color:this.isRootActive?this.activeColor:this.normalColor}},[t.meta.icon&&this.item.isRoot&&e("div",{class:"active-icon-bg",style:{backgroundColor:this.activeColor}}),t.meta.icon&&(t.meta.icon.startsWith("el")?e("i",{class:t.meta.icon,style:o}):e("svg-icon",{class:"svg-icon-class",style:o,props:{iconClass:t.meta.icon}})),e("span",{class:"menu-title",style:{color:this.isRootActive?this.activeColor:this.normalColor}},t.meta.title)])}};const ln={name:"SideNavBreif",components:{MenuItem:gn},props:{menus:Array,width:{type:Number,default:155},popWidth:{type:Number,default:156},menuColor:{type:Object,default:()=>({})},menuWidth:Number},data:function(){return{activeIndex:void 0,activeColor:this.menuColor.activeColor||"#2684fe",normalColor:this.menuColor.normalColor||"#aeb2ba",textActiveColor:this.menuColor.textActiveColor||"#ffffff",normalIconColor:this.menuColor.normalIconColor||"#000000",bgc:this.menuColor.bgc||"#ffffff",rootMenuSize:this.menuWidth||.7*this.width}},computed:{filterMenus:function(){return this.menus.filter((e=>!e.hidden)).map((e=>({...e,isRoot:!0})))}},created(){this.activeIndex=this.$router.resolve(this.$route.path).route.path}};var Cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"side-nav-brief",style:{width:e.width+"px"}},[n("el-menu",{style:{"--normal-color":e.normalColor,"--text-active-color":e.textActiveColor,"--active-color":e.activeColor,"--pop-width":e.popWidth+"px","--root-menu-size":e.rootMenuSize+"px"},attrs:{router:"","default-active":e.activeIndex,collapse:!0,"text-color":e.normalColor,"background-color":e.bgc}},e._l(e.filterMenus,(function(t){return n("menu-item",{key:t.path,attrs:{"active-index":e.activeIndex,"active-color":e.activeColor,"normal-color":e.normalColor,"text-active-color":e.textActiveColor,"normal-icon-color":e.normalIconColor,item:t}})})),1)],1)};Cn._withStripped=!0;const cn={name:"LayoutSidebar",components:{SideNav:sn,SideNavBrief:Ce({render:Cn,staticRenderFns:[]},(function(e){e&&e("data-v-c71ac40a_0",{source:"[data-v-c71ac40a].el-menu--collapse {\n width: var(--root-menu-size);\n display: flex;\n margin: 0 auto;\n flex-direction: column;\n border-right: none;\n /* stylelint-disable no-descending-specificity */\n}\n[data-v-c71ac40a].el-menu--collapse > .el-menu-item,[data-v-c71ac40a].el-menu--collapse > .el-submenu > .el-submenu__title {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 13px;\n height: var(--root-menu-size);\n transition: all 0.5s;\n}\n[data-v-c71ac40a].el-menu--collapse > .el-menu-item .svg-icon-class,[data-v-c71ac40a].el-menu--collapse > .el-submenu > .el-submenu__title .svg-icon-class {\n width: 22px;\n height: 22px;\n z-index: 1;\n margin-top: 20px;\n}\n[data-v-c71ac40a].el-menu--collapse .active-icon-bg {\n display: none;\n}\n[data-v-c71ac40a].el-menu--collapse .el-menu-item.is-active {\n color: #FFFFFF;\n background-color: #2684FE !important;\n}\n[data-v-c71ac40a].el-menu--collapse .menu--root.is-active .active-icon-bg,[data-v-c71ac40a].el-menu--collapse .menu--root:hover .active-icon-bg {\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: #2684FE;\n box-shadow: 5px 8px 10px 0 rgba(38, 132, 254, 0.32);\n border-radius: 8px;\n position: absolute;\n transform: translateY(-10px);\n}\n[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-menu-item,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-menu-item,[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title {\n gap: 26px;\n}\n[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-menu-item span,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-menu-item span,[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title span,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title span {\n color: var(--active-color) !important;\n}\n[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-menu-item svg,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-menu-item svg,[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title svg,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title svg {\n color: var(--text-active-color) !important;\n}\n[data-v-c71ac40a].el-menu--collapse > .el-menu-item span,[data-v-c71ac40a].el-menu--collapse > .el-submenu > .el-submenu__title span {\n height: 14px;\n width: auto;\n visibility: visible;\n overflow: visible;\n line-height: 14px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-submenu {\n min-width: 120px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-menu-item {\n min-width: 120px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-menu-item:not(.is-active) {\n color: var(--normal-color);\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .svg-icon-class {\n margin-right: 10px;\n width: 14px;\n height: 14px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-menu-item:hover,[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover {\n border-radius: 4px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-menu-item:hover span,[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover span,[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-menu-item:hover svg,[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover svg {\n color: var(--text-active-color) !important;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop li.el-submenu > .el-submenu__title,[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop li.el-menu-item {\n height: 36px;\n line-height: 36px;\n border-radius: 4px;\n padding-left: 13px !important;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop li + li {\n margin-top: 10px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop > ul {\n min-width: var(--pop-width);\n width: var(--pop-width);\n background-color: #FFFFFF;\n box-shadow: 5px 8px 10px 0 rgba(38, 132, 254, 0.32);\n border-radius: 8px;\n padding: 15px 10px;\n}\n[data-v-c71ac40a].el-menu--collapse .menu--root > .side-nav-brief--pop {\n transform: translate(-22px, 18px);\n}\n",map:{version:3,sources:["SideNavBrief.vue"],names:[],mappings:"AAAA;EACE,4BAA4B;EAC5B,aAAa;EACb,cAAc;EACd,sBAAsB;EACtB,kBAAkB;EAClB,gDAAgD;AAClD;AACA;EAEE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,uBAAuB;EACvB,SAAS;EACT,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;EACd,oCAAoC;AACtC;AACA;EAEE,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,yBAAyB;EACzB,mDAAmD;EACnD,kBAAkB;EAClB,kBAAkB;EAClB,4BAA4B;AAC9B;AACA;EAIE,SAAS;AACX;AACA;EAIE,qCAAqC;AACvC;AACA;EAIE,0CAA0C;AAC5C;AACA;EAEE,YAAY;EACZ,WAAW;EACX,mBAAmB;EACnB,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;AACd;AACA;EAEE,kBAAkB;AACpB;AACA;EAIE,0CAA0C;AAC5C;AACA;EAEE,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,6BAA6B;AAC/B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,2BAA2B;EAC3B,uBAAuB;EACvB,yBAAyB;EACzB,mDAAmD;EACnD,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,iCAAiC;AACnC",file:"SideNavBrief.vue",sourcesContent:["::v-deep.el-menu--collapse {\n width: var(--root-menu-size);\n display: flex;\n margin: 0 auto;\n flex-direction: column;\n border-right: none;\n /* stylelint-disable no-descending-specificity */\n}\n::v-deep.el-menu--collapse > .el-menu-item,\n::v-deep.el-menu--collapse > .el-submenu > .el-submenu__title {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 13px;\n height: var(--root-menu-size);\n transition: all 0.5s;\n}\n::v-deep.el-menu--collapse > .el-menu-item .svg-icon-class,\n::v-deep.el-menu--collapse > .el-submenu > .el-submenu__title .svg-icon-class {\n width: 22px;\n height: 22px;\n z-index: 1;\n margin-top: 20px;\n}\n::v-deep.el-menu--collapse .active-icon-bg {\n display: none;\n}\n::v-deep.el-menu--collapse .el-menu-item.is-active {\n color: #FFFFFF;\n background-color: #2684FE !important;\n}\n::v-deep.el-menu--collapse .menu--root.is-active .active-icon-bg,\n::v-deep.el-menu--collapse .menu--root:hover .active-icon-bg {\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: #2684FE;\n box-shadow: 5px 8px 10px 0 rgba(38, 132, 254, 0.32);\n border-radius: 8px;\n position: absolute;\n transform: translateY(-10px);\n}\n::v-deep.el-menu--collapse .menu--root.is-active.el-menu-item,\n::v-deep.el-menu--collapse .menu--root:hover.el-menu-item,\n::v-deep.el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title,\n::v-deep.el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title {\n gap: 26px;\n}\n::v-deep.el-menu--collapse .menu--root.is-active.el-menu-item span,\n::v-deep.el-menu--collapse .menu--root:hover.el-menu-item span,\n::v-deep.el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title span,\n::v-deep.el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title span {\n color: var(--active-color) !important;\n}\n::v-deep.el-menu--collapse .menu--root.is-active.el-menu-item svg,\n::v-deep.el-menu--collapse .menu--root:hover.el-menu-item svg,\n::v-deep.el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title svg,\n::v-deep.el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title svg {\n color: var(--text-active-color) !important;\n}\n::v-deep.el-menu--collapse > .el-menu-item span,\n::v-deep.el-menu--collapse > .el-submenu > .el-submenu__title span {\n height: 14px;\n width: auto;\n visibility: visible;\n overflow: visible;\n line-height: 14px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-submenu {\n min-width: 120px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-menu-item {\n min-width: 120px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-menu-item:not(.is-active) {\n color: var(--normal-color);\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .svg-icon-class {\n margin-right: 10px;\n width: 14px;\n height: 14px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-menu-item:hover,\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover {\n border-radius: 4px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-menu-item:hover span,\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover span,\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-menu-item:hover svg,\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover svg {\n color: var(--text-active-color) !important;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop li.el-submenu > .el-submenu__title,\n::v-deep.el-menu--collapse .side-nav-brief--pop li.el-menu-item {\n height: 36px;\n line-height: 36px;\n border-radius: 4px;\n padding-left: 13px !important;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop li + li {\n margin-top: 10px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop > ul {\n min-width: var(--pop-width);\n width: var(--pop-width);\n background-color: #FFFFFF;\n box-shadow: 5px 8px 10px 0 rgba(38, 132, 254, 0.32);\n border-radius: 8px;\n padding: 15px 10px;\n}\n::v-deep.el-menu--collapse .menu--root > .side-nav-brief--pop {\n transform: translate(-22px, 18px);\n}\n"]},media:void 0})}),ln,"data-v-c71ac40a",false,undefined,!1,de,void 0,void 0)},computed:{...p({showSidebar:"setting/showSidebar",showSidebarLogo:"setting/showSidebarLogo",getProjectionMode:"user/getProjectionMode",mode:"setting/mode",menuRouters:"subMenus"}),setting(){return this.$store.state.setting},isOnlyHome(){const e=this.menuRouters.filter((e=>!e.hidden));return 1===e.length&&"/homePage/index"===e[0].path},isGroupLogin:()=>"true"===sessionStorage.getItem("isGroupLogin"),sideMenu(){const{layout:e,splitMenu:t}=this.$store.state.setting;let{menuRouters:n}=this;return"mix"===e&&t&&n.forEach((e=>{0===this.$route.path.indexOf(e.path)&&(n=e.children.map((t=>({...t,path:`${e.path}/${t.path}`}))))})),n}}};var dn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"brief"===e.$attrs.sideMenuType?n("div",[n("side-nav-brief",e._b({attrs:{menus:e.sideMenu}},"side-nav-brief",e.$attrs,!1))],1):"custom"===e.$attrs.sideMenuType?n("div",[n(e.$attrs.customSideMenu,e._b({tag:"component",attrs:{menus:e.sideMenu}},"component",e.$attrs,!1))],1):!e.showSidebar||e.isGroupLogin||e.isOnlyHome||e.getProjectionMode?e._e():n("side-nav",e._b({class:{"side-nav--hide":0===e.menuRouters.length},attrs:{"show-logo":e.showSidebarLogo,layout:e.setting.layout,"is-fixed":e.setting.isSidebarFixed,menu:e.sideMenu,theme:e.mode,"is-compact":e.setting.isSidebarCompact}},"side-nav",e.$attrs,!1))};dn._withStripped=!0;const In=Ce({render:dn,staticRenderFns:[]},undefined,cn,"data-v-d93eed30",false,undefined,!1,void 0,void 0,void 0);const pn={name:"Thumbnail",props:{url:{type:String,default:""},type:{type:String,default:"layout"}},computed:{className(){return["thumbnail-container",{"thumbnail-circle":"circle"===this.type,"thumbnail-layout":"layout"===this.type}]}}};var un=function(){var e=this,t=e.$createElement;return(e._self._c||t)("img",{class:e.className,attrs:{src:e.url}})};un._withStripped=!0;const mn=Ce({render:un,staticRenderFns:[]},(function(e){e&&e("data-v-5f88aa88_0",{source:".thumbnail-container[data-v-5f88aa88] {\n display: inline-block;\n}\n.thumbnail-circle[data-v-5f88aa88] {\n border-radius: 50%;\n}\n.thumbnail-layout[data-v-5f88aa88] {\n width: 88px;\n height: 48px;\n}\n",map:{version:3,sources:["SettingThumbnail.vue"],names:[],mappings:"AAAA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,YAAY;AACd",file:"SettingThumbnail.vue",sourcesContent:[".thumbnail-container {\n display: inline-block;\n}\n.thumbnail-circle {\n border-radius: 50%;\n}\n.thumbnail-layout {\n width: 88px;\n height: 48px;\n}\n"]},media:void 0})}),pn,"data-v-5f88aa88",false,undefined,!1,de,void 0,void 0);const hn={name:"Color",props:{value:{type:String,default:"default"}},computed:{style(){const{colorList:e}=this.$store.state.setting;return{background:"dynamic"!==this.value?S(this.value,e)["--td-brand-color"]:"conic-gradient(from 90deg at 50% 50%, #FF0000 -19.41deg, #FF0000 18.76deg, #FF8A00 59.32deg, #FFE600 99.87deg, #14FF00 141.65deg, #00A3FF 177.72deg, #0500FF 220.23deg, #AD00FF 260.13deg, #FF00C7 300.69deg, #FF0000 340.59deg, #FF0000 378.76deg)"}}}};var fn=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"color-container",style:e.style})};fn._withStripped=!0;const vn=["mix","top","side"],bn=["default","cyan","green","yellow","orange","red","pink","purple","dynamic"],yn=[{type:"light",text:"明亮"},{type:"dark",text:"暗黑"},{type:"auto",text:"跟随系统"}];const xn={name:"DefaultLayoutSetting",components:{Thumbnail:mn,ColorContainer:Ce({render:fn,staticRenderFns:[]},(function(e){e&&e("data-v-10ebc37f_0",{source:".color-container[data-v-10ebc37f] {\n width: 24px;\n height: 24px;\n border-radius: 50%;\n display: inline-block;\n}\n",map:{version:3,sources:["SettingColor.vue"],names:[],mappings:"AAAA;EACE,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,qBAAqB;AACvB",file:"SettingColor.vue",sourcesContent:[".color-container {\n width: 24px;\n height: 24px;\n border-radius: 50%;\n display: inline-block;\n}\n"]},media:void 0})}),hn,"data-v-10ebc37f",false,undefined,!1,de,void 0,void 0)},props:{icons:{type:Object,default:()=>({})},styleConfig:{type:Object,default:()=>({})}},data(){return{visible:!1,thumbnailUrl:{mix:this.icons.mix,top:this.icons.top,side:this.icons.side},colors:{hex:null},MODE_OPTIONS:yn,LAYOUT_OPTION:vn,COLOR_OPTIONS:bn,formData:{},isColoPickerDisplay:!1}},computed:{...p({showSettingBtn:"setting/showSettingBtn",userInfo:"user/userInfo",userId:"user/userId",userName:"user/name"}),showSettingPanel:{get(){return this.$store.state.setting.showSettingPanel},set(e){this.$store.commit("setting/toggleSettingPanel",e)}},iconName(){return this.visible?"close":"setting"},showOthers(){return this.formData.showFooter&&!this.formData.isSidebarFixed||!this.formData.splitMenu}},watch:{formData:{handler(e){const{isSidebarCompact:t}=this.$store.state.setting;this.$store.dispatch("setting/changeTheme",{...e,isSidebarCompact:t})},deep:!0}},mounted(){this.userInfo.userSetting?this.formData=JSON.parse(this.userInfo.userSetting):this.formData={...this.styleConfig},document.querySelector(".dynamic-color-btn")?.addEventListener("click",(()=>{this.isColoPickerDisplay=!0}))},methods:{onPopupVisibleChange(e,t){e||"document"!==t.trigger||(this.isColoPickerDisplay=e)},onReset(){this.formData={...this.styleConfig},this.$message.success("已恢复初始设置")},onSubmit({result:e,firstError:t,e:n}){n.preventDefault(),!0===e?this.visible=!1:this.$message.warning(t)},getModeIcon(e){return"light"===e?this.icons.settingLightIcon:"dark"===e?this.icons.settingDarkIcon:this.icons.settingAutoIcon},getThumbnailUrl(e){return this.thumbnailUrl[e]},handleClick(){this.$store.commit("setting/toggleSettingPanel",!0)},handleCloseDrawer(){this.$store.commit("setting/toggleSettingPanel",!1)},changeColor(e){const{setting:t}=this.$store.state,n=$.getPaletteByGradation({colors:[e],step:10})[0],{mode:o}=this.$store.state.setting,i=F(e,n,o);this.$store.commit("setting/addColor",{[e]:i}),T(e,i,o),this.$store.dispatch("setting/changeTheme",{...t,brandTheme:e})},onClose(){this.visible=!1},resetCongig(){this.onReset();const e={userId:this.userId,userName:this.userName},t=this.formData||{};e.userSetting=JSON.stringify(t),this.$store.dispatch("user/updateModel",e),this.handleCloseDrawer(),this.visible=!1},saveCongig(){const e={userId:this.userId,userName:this.userName},t=this.formData||{};e.userSetting=JSON.stringify(t),this.$store.dispatch("user/updateModel",e),this.$message.success("保存成功"),this.handleCloseDrawer()}}};var En=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("t-drawer",{staticClass:"setting-drawer-container",attrs:{size:"408px",footer:!1,visible:e.showSettingPanel,header:"页面配置","close-btn":!0,"on-close-btn-click":e.handleCloseDrawer},on:{"update:visible":function(t){e.showSettingPanel=t}}},[n("div",{staticClass:"setting-container"},[n("t-form",{ref:"form",attrs:{data:e.formData,"label-align":"left"},on:{reset:e.onReset,submit:e.onSubmit}},[n("div",{staticClass:"setting-group-title"},[e._v("\n 主题模式\n ")]),e._v(" "),n("t-radio-group",{model:{value:e.formData.mode,callback:function(t){e.$set(e.formData,"mode",t)},expression:"formData.mode"}},e._l(e.MODE_OPTIONS,(function(t,o){return n("div",{key:o,staticClass:"setting-layout-drawer"},[n("div",[n("t-radio-button",{key:o,attrs:{value:t.type}},[n(e.getModeIcon(t.type),{tag:"component"})],1),e._v(" "),n("p",{style:{textAlign:"center",marginTop:"8px"}},[e._v("\n "+e._s(t.text)+"\n ")])],1)])})),0),e._v(" "),n("div",{staticClass:"setting-group-title"},[e._v("\n 主题色\n ")]),e._v(" "),n("t-radio-group",{model:{value:e.formData.brandTheme,callback:function(t){e.$set(e.formData,"brandTheme",t)},expression:"formData.brandTheme"}},[e._l(e.COLOR_OPTIONS.slice(0,e.COLOR_OPTIONS.length-1),(function(e,t){return n("div",{key:t,staticClass:"setting-layout-drawer"},[n("t-radio-button",{key:t,staticClass:"setting-layout-color-group",attrs:{value:e}},[n("color-container",{attrs:{value:e}})],1)],1)})),e._v(" "),n("div",{staticClass:"setting-layout-drawer"},[n("t-popup",{attrs:{"destroy-on-close":"","expand-animation":"",placement:"bottom-right",trigger:"click",visible:e.isColoPickerDisplay,"overlay-style":{padding:0}},on:{"visible-change":e.onPopupVisibleChange},scopedSlots:e._u([{key:"content",fn:function(){return[n("t-color-picker-panel",{attrs:{"on-change":e.changeColor,"color-modes":["monochrome"],format:"HEX","swatch-colors":[]}})]},proxy:!0}])},[e._v(" "),n("t-radio-button",{staticClass:"setting-layout-color-group dynamic-color-btn",attrs:{value:e.COLOR_OPTIONS[e.COLOR_OPTIONS.length-1]}},[n("color-container",{attrs:{value:e.COLOR_OPTIONS[e.COLOR_OPTIONS.length-1]}})],1)],1)],1)],2),e._v(" "),n("div",{staticClass:"setting-group-title"},[e._v("\n 导航布局\n ")]),e._v(" "),n("t-radio-group",{model:{value:e.formData.layout,callback:function(t){e.$set(e.formData,"layout",t)},expression:"formData.layout"}},e._l(e.LAYOUT_OPTION,(function(t,o){return n("div",{key:o,staticClass:"setting-layout-drawer"},[n("t-radio-button",{key:o,attrs:{value:t}},[n("thumbnail",{attrs:{src:e.getThumbnailUrl(t)}})],1)],1)})),0),e._v(" "),n("t-form-item",{directives:[{name:"show",rawName:"v-show",value:"mix"===e.formData.layout,expression:"formData.layout === 'mix'"}],attrs:{label:"分割菜单(混合模式下有效)",name:"splitMenu"}},[n("t-switch",{model:{value:e.formData.splitMenu,callback:function(t){e.$set(e.formData,"splitMenu",t)},expression:"formData.splitMenu"}})],1),e._v(" "),n("t-form-item",{directives:[{name:"show",rawName:"v-show",value:"side"!==e.formData.layout,expression:"formData.layout !== 'side'"}],attrs:{label:"固定 Header",name:"isHeaderFixed"}},[n("t-switch",{model:{value:e.formData.isHeaderFixed,callback:function(t){e.$set(e.formData,"isHeaderFixed",t)},expression:"formData.isHeaderFixed"}})],1),e._v(" "),n("t-form-item",{directives:[{name:"show",rawName:"v-show",value:"top"!==e.formData.layout,expression:"formData.layout !== 'top'"}],attrs:{label:"固定 Sidebar",name:"isSidebarFixed"}},[n("t-switch",{model:{value:e.formData.isSidebarFixed,callback:function(t){e.$set(e.formData,"isSidebarFixed",t)},expression:"formData.isSidebarFixed"}})],1),e._v(" "),n("div",{staticClass:"setting-group-title"},[e._v("\n 元素开关\n ")]),e._v(" "),n("t-form-item",{directives:[{name:"show",rawName:"v-show",value:"side"===e.formData.layout,expression:"formData.layout === 'side'"}],attrs:{label:"显示 Header",name:"showHeader"}},[n("t-switch",{model:{value:e.formData.showHeader,callback:function(t){e.$set(e.formData,"showHeader",t)},expression:"formData.showHeader"}})],1),e._v(" "),n("t-form-item",{attrs:{label:"显示 Breadcrumbs",name:"showBreadcrumb"}},[n("t-switch",{model:{value:e.formData.showBreadcrumb,callback:function(t){e.$set(e.formData,"showBreadcrumb",t)},expression:"formData.showBreadcrumb"}})],1),e._v(" "),n("t-form-item",{attrs:{label:"显示 Footer",name:"showFooter"}},[n("t-switch",{model:{value:e.formData.showFooter,callback:function(t){e.$set(e.formData,"showFooter",t)},expression:"formData.showFooter"}})],1),e._v(" "),n("t-form-item",{attrs:{label:"使用 多标签Tab页",name:"isUseTabsRouter"}},[n("t-switch",{model:{value:e.formData.isUseTabsRouter,callback:function(t){e.$set(e.formData,"isUseTabsRouter",t)},expression:"formData.isUseTabsRouter"}})],1),e._v(" "),n("t-form-item",{directives:[{name:"show",rawName:"v-show",value:e.formData.showFooter&&!e.formData.isSidebarFixed,expression:"formData.showFooter && !formData.isSidebarFixed"}],attrs:{label:"footer 内收",name:"footerPosition"}},[n("t-switch",{model:{value:e.formData.isFooterAside,callback:function(t){e.$set(e.formData,"isFooterAside",t)},expression:"formData.isFooterAside"}})],1)],1),e._v(" "),n("div",{staticClass:"setting-info"},[n("t-button",{staticStyle:{"margin-right":"15px"},attrs:{theme:"default",shape:"round",size:"large"},on:{click:function(t){e.visible=!0}}},[e._v("\n 重置\n ")]),e._v(" "),n("t-button",{attrs:{theme:"primary",shape:"round",size:"large"},on:{click:e.saveCongig}},[e._v("\n 保存\n ")])],1)],1)]),e._v(" "),n("t-dialog",{attrs:{theme:"warning",header:"提示",body:"您的修改还未保存,是否重置您的配置?",placement:"center",visible:e.visible,"on-close":e.onClose,"on-confirm":e.resetCongig}})],1)};En._withStripped=!0;const wn={name:"BaseLayout",components:{LayoutContent:Xt,LayoutSidebar:In,LayoutMainMenu:Qt,Setting:Ce({render:En,staticRenderFns:[]},(function(e){e&&e("data-v-41489cba_0",{source:'.tdesign-setting {\n z-index: 100;\n position: fixed;\n bottom: 200px;\n right: 0;\n height: 40px;\n width: 40px;\n border-radius: 20px 0 0 20px;\n transition: all 0.3s;\n}\n.tdesign-setting .t-icon {\n margin-left: 8px;\n}\n.tdesign-setting .tdesign-setting-text {\n font-size: 12px;\n display: none;\n}\n.tdesign-setting:hover {\n width: 96px;\n}\n.tdesign-setting:hover .tdesign-setting-text {\n display: inline-block;\n}\n.setting-layout-color-group {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n border-radius: 50% !important;\n padding: 6px !important;\n border: 2px solid transparent !important;\n}\n.setting-layout-color-group > .t-radio-button__label {\n display: inline-flex;\n}\n.tdesign-setting-close {\n position: fixed;\n bottom: 200px;\n right: 300px;\n}\n.setting-group-title {\n font-size: 14px;\n line-height: 22px;\n margin: 32px 0 24px;\n text-align: left;\n font-family: "Harmony_Sans", "PingFang SC", sans-serif;\n font-style: normal;\n font-weight: 500;\n color: var(--td-text-color-primary);\n}\n.setting-group-color {\n position: relative;\n}\n.setting-group-color > div {\n position: absolute;\n z-index: 2;\n right: 0;\n}\n.setting-link {\n cursor: pointer;\n color: var(--td-brand-color);\n margin-bottom: 8px;\n}\n.setting-info {\n position: absolute;\n padding: 12px 24px;\n bottom: 0;\n left: 0;\n line-height: 20px;\n font-size: 12px;\n text-align: end;\n color: var(--td-text-color-placeholder);\n width: 100%;\n background: var(--td-bg-color-container);\n}\n.setting-drawer-container .setting-container {\n padding-bottom: 100px;\n}\n.setting-drawer-container .t-radio-group.t-size-m {\n min-height: 32px;\n width: 100%;\n height: auto;\n justify-content: space-between;\n align-items: center;\n}\n.setting-drawer-container .t-form__controls-content {\n justify-content: end;\n}\n.setting-drawer-container .setting-layout-drawer {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-bottom: 16px;\n}\n.setting-drawer-container .setting-layout-drawer .t-radio-button {\n display: inline-flex;\n max-height: 78px;\n padding: 8px;\n border-radius: 3px;\n border: 2px solid rgba(100, 90, 90, 0.5);\n height: auto;\n}\n.setting-drawer-container .setting-layout-drawer .t-radio-button > .t-radio-button__label {\n display: inline-flex;\n}\n.setting-drawer-container .setting-layout-drawer .t-is-checked {\n border: 2px solid var(--td-brand-color) !important;\n}\n.setting-drawer-container .setting-layout-drawer .t-form__controls-content {\n justify-content: end;\n}\n.setting-route-theme .t-form__label {\n min-width: 310px !important;\n color: var(--td-text-color-secondary);\n}\n.setting-color-theme .setting-layout-drawer .t-radio-button {\n height: 32px;\n}\n.setting-color-theme .setting-layout-drawer:last-child {\n margin-right: 0;\n}\n.t-dialog__body {\n color: black;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n padding: 24px 0 0;\n}\n',map:{version:3,sources:["Setting.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,eAAe;EACf,aAAa;EACb,QAAQ;EACR,YAAY;EACZ,WAAW;EACX,4BAA4B;EAC5B,oBAAoB;AACtB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,aAAa;AACf;AACA;EACE,WAAW;AACb;AACA;EACE,qBAAqB;AACvB;AACA;EACE,oBAAoB;EACpB,uBAAuB;EACvB,mBAAmB;EACnB,6BAA6B;EAC7B,uBAAuB;EACvB,wCAAwC;AAC1C;AACA;EACE,oBAAoB;AACtB;AACA;EACE,eAAe;EACf,aAAa;EACb,YAAY;AACd;AACA;EACE,eAAe;EACf,iBAAiB;EACjB,mBAAmB;EACnB,gBAAgB;EAChB,sDAAsD;EACtD,kBAAkB;EAClB,gBAAgB;EAChB,mCAAmC;AACrC;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,QAAQ;AACV;AACA;EACE,eAAe;EACf,4BAA4B;EAC5B,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,iBAAiB;EACjB,eAAe;EACf,eAAe;EACf,uCAAuC;EACvC,WAAW;EACX,wCAAwC;AAC1C;AACA;EACE,qBAAqB;AACvB;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,YAAY;EACZ,8BAA8B;EAC9B,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,oBAAoB;EACpB,gBAAgB;EAChB,YAAY;EACZ,kBAAkB;EAClB,wCAAwC;EACxC,YAAY;AACd;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kDAAkD;AACpD;AACA;EACE,oBAAoB;AACtB;AACA;EACE,2BAA2B;EAC3B,qCAAqC;AACvC;AACA;EACE,YAAY;AACd;AACA;EACE,eAAe;AACjB;AACA;EACE,YAAY;EACZ,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,iBAAiB;AACnB",file:"Setting.vue",sourcesContent:['.tdesign-setting {\n z-index: 100;\n position: fixed;\n bottom: 200px;\n right: 0;\n height: 40px;\n width: 40px;\n border-radius: 20px 0 0 20px;\n transition: all 0.3s;\n}\n.tdesign-setting .t-icon {\n margin-left: 8px;\n}\n.tdesign-setting .tdesign-setting-text {\n font-size: 12px;\n display: none;\n}\n.tdesign-setting:hover {\n width: 96px;\n}\n.tdesign-setting:hover .tdesign-setting-text {\n display: inline-block;\n}\n.setting-layout-color-group {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n border-radius: 50% !important;\n padding: 6px !important;\n border: 2px solid transparent !important;\n}\n.setting-layout-color-group > .t-radio-button__label {\n display: inline-flex;\n}\n.tdesign-setting-close {\n position: fixed;\n bottom: 200px;\n right: 300px;\n}\n.setting-group-title {\n font-size: 14px;\n line-height: 22px;\n margin: 32px 0 24px;\n text-align: left;\n font-family: "Harmony_Sans", "PingFang SC", sans-serif;\n font-style: normal;\n font-weight: 500;\n color: var(--td-text-color-primary);\n}\n.setting-group-color {\n position: relative;\n}\n.setting-group-color > div {\n position: absolute;\n z-index: 2;\n right: 0;\n}\n.setting-link {\n cursor: pointer;\n color: var(--td-brand-color);\n margin-bottom: 8px;\n}\n.setting-info {\n position: absolute;\n padding: 12px 24px;\n bottom: 0;\n left: 0;\n line-height: 20px;\n font-size: 12px;\n text-align: end;\n color: var(--td-text-color-placeholder);\n width: 100%;\n background: var(--td-bg-color-container);\n}\n.setting-drawer-container .setting-container {\n padding-bottom: 100px;\n}\n.setting-drawer-container .t-radio-group.t-size-m {\n min-height: 32px;\n width: 100%;\n height: auto;\n justify-content: space-between;\n align-items: center;\n}\n.setting-drawer-container .t-form__controls-content {\n justify-content: end;\n}\n.setting-drawer-container .setting-layout-drawer {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-bottom: 16px;\n}\n.setting-drawer-container .setting-layout-drawer .t-radio-button {\n display: inline-flex;\n max-height: 78px;\n padding: 8px;\n border-radius: 3px;\n border: 2px solid rgba(100, 90, 90, 0.5);\n height: auto;\n}\n.setting-drawer-container .setting-layout-drawer .t-radio-button > .t-radio-button__label {\n display: inline-flex;\n}\n.setting-drawer-container .setting-layout-drawer .t-is-checked {\n border: 2px solid var(--td-brand-color) !important;\n}\n.setting-drawer-container .setting-layout-drawer .t-form__controls-content {\n justify-content: end;\n}\n.setting-route-theme .t-form__label {\n min-width: 310px !important;\n color: var(--td-text-color-secondary);\n}\n.setting-color-theme .setting-layout-drawer .t-radio-button {\n height: 32px;\n}\n.setting-color-theme .setting-layout-drawer:last-child {\n margin-right: 0;\n}\n.t-dialog__body {\n color: black;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n padding: 24px 0 0;\n}\n']},media:void 0})}),xn,undefined,false,undefined,!1,de,void 0,void 0)},props:{layoutHeader:{type:Object,default:null},prefix:String,myLogo:Object,expandIcon:String,menuParams:{type:Object,default:()=>({})}},computed:{...p({tabRouterList:"tabRouter/tabRouterList",showRootMenu:"user/showRootMenu"}),setting(){return this.$store.state.setting},isInIframe:function(){return window.self!==window.top},isShowHomeDrag(){this.$store.getters["user/showHomeDrag"]},sideLayouts(){return[{"side-layouts layout-role--user":this.$store.getters["user/showHomeDrag"],"layout-role--admin":!this.$store.getters["user/showHomeDrag"]}]}},watch:{$route(e){const{path:t,meta:{title:n},name:o,query:i,fullPath:a}=e;this.$store.commit("tabRouter/appendTabRouterList",{path:t,fullPath:a,title:n,name:o,query:i,isAlive:!0}),"{}"!==JSON.stringify(i)&&this.$store.commit("tabRouter/updateTabRouterQuery",{name:o,query:i})}},created(){window.addEventListener("beforeunload",this.setTabRouterListCache)},destroyed(){window.removeEventListener("beforeunload",this.setTabRouterListCache)},mounted(){const{path:e,meta:{title:t},name:n,query:o,fullPath:i}=this.$route;localStorage.getItem("tabRouterList")&&this.getTabRouterListCache(),this.$store.commit("tabRouter/appendTabRouterList",{path:e,fullPath:i,title:t,name:n,query:o,isAlive:!0})},methods:{getTabRouterListCache(){this.$store.commit("tabRouter/initTabRouterList",JSON.parse(localStorage.getItem("tabRouterList")))},setTabRouterListCache(){localStorage.setItem("tabRouterList",JSON.stringify(this.tabRouterList))}}};var _n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.sideLayouts},["side"===e.setting.layout?[n("t-layout",{key:"side"},[n("t-aside",[n("layout-sidebar",e._b({attrs:{prefix:e.prefix,"my-logo":e.myLogo,"expand-icon":e.expandIcon}},"layout-sidebar",e.menuParams,!1))],1),e._v(" "),n("t-layout",[n("t-header",[n(e.layoutHeader,{tag:"component"})],1),e._v(" "),n("t-content",[n("layout-content",{attrs:{prefix:e.prefix}})],1)],1)],1)]:"top"===e.setting.layout?[n("t-layout",{key:"top"},[n("t-header",[n(e.layoutHeader,{tag:"component"})],1),e._v(" "),n("t-content",[n("layout-main-menu"),e._v(" "),n("layout-content",{style:e.showRootMenu?{"margin-left":"var(--root-menu-width)"}:"",attrs:{prefix:e.prefix}})],1)],1)]:[n("t-layout",{key:"mix"},[e.isInIframe?e._e():n("t-header",[n(e.layoutHeader,{tag:"component"})],1),e._v(" "),n("t-layout",[e.isInIframe?e._e():n("t-aside",[n("layout-sidebar",e._b({attrs:{prefix:e.prefix,"my-logo":e.myLogo,"expand-icon":e.expandIcon}},"layout-sidebar",e.menuParams,!1))],1),e._v(" "),n("t-content",{class:{"is-in-iframe":e.isInIframe}},[n("layout-content",{attrs:{prefix:e.prefix}})],1)],1)],1)],e._v(" "),n("setting",e._b({},"setting",e.$attrs.setting,!1))],2)};_n._withStripped=!0;const Bn=Ce({render:_n,staticRenderFns:[]},(function(e){e&&e("data-v-0942bac6_0",{source:'.t-layout[data-v-0942bac6],[data-v-0942bac6] .narrow-scrollbar,[data-v-0942bac6] .t-tabs__nav-wrap,[data-v-0942bac6] .t-tabs__nav-item {\n font-family: "Harmony_Sans", PingFangSC-Regular, "PingFang SC", sans-serif;\n}\n.layout-role--admin[data-v-0942bac6] .t-head-menu .top-nav > .t-menu__item:not(:hover),\n.layout-role--admin[data-v-0942bac6] .t-head-menu .top-nav > .t-submenu > .t-menu__item:not(:hover) {\n color: #FFFFFF;\n}\n.layout-role--user[data-v-0942bac6] .t-head-menu .top-nav > .t-menu__item.t-is-active:not(:hover),\n.layout-role--user[data-v-0942bac6] .t-head-menu .top-nav > .t-submenu > .t-menu__item.t-is-active:not(:hover) {\n color: #FFFFFF;\n}\n[data-v-0942bac6] .t-is-collapsed .side-nav__menu-content .t-is-active {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n[data-v-0942bac6] .t-is-collapsed .side-nav__menu-content > .custom-active > .t-menu__item {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n[data-v-0942bac6] .t-default-menu:not(.t-menu--dark) .t-menu__item.t-is-active:not(.t-is-opened) {\n background: var(--td-brand-color-8);\n color: #FFFFFF;\n}\n[data-v-0942bac6] .t-default-menu:not(.t-menu--dark) .t-menu__item.t-is-active:not(.t-is-opened) .t-icon {\n color: var(--td-brand-color);\n}\n[data-v-0942bac6] .tdesign-starter-header-menu-fixed .side-nav__menu-content .t-is-active {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n[data-v-0942bac6] .tdesign-starter-header-menu-fixed .side-nav__menu-content > .custom-active > .t-menu__item {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n[data-v-0942bac6] .t-layout__header .t-menu__popup-wrapper {\n box-shadow: 5px 8px 10px #2684FE52;\n}\n',map:{version:3,sources:["index.vue"],names:[],mappings:"AAAA;EAIE,0EAA0E;AAC5E;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,iCAAiC;EACjC,cAAc;AAChB;AACA;EACE,iCAAiC;EACjC,cAAc;AAChB;AACA;EACE,mCAAmC;EACnC,cAAc;AAChB;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,iCAAiC;EACjC,cAAc;AAChB;AACA;EACE,iCAAiC;EACjC,cAAc;AAChB;AACA;EACE,kCAAkC;AACpC",file:"index.vue",sourcesContent:['.t-layout,\n::v-deep .narrow-scrollbar,\n::v-deep .t-tabs__nav-wrap,\n::v-deep .t-tabs__nav-item {\n font-family: "Harmony_Sans", PingFangSC-Regular, "PingFang SC", sans-serif;\n}\n.layout-role--admin /deep/ .t-head-menu .top-nav > .t-menu__item:not(:hover),\n.layout-role--admin /deep/ .t-head-menu .top-nav > .t-submenu > .t-menu__item:not(:hover) {\n color: #FFFFFF;\n}\n.layout-role--user /deep/ .t-head-menu .top-nav > .t-menu__item.t-is-active:not(:hover),\n.layout-role--user /deep/ .t-head-menu .top-nav > .t-submenu > .t-menu__item.t-is-active:not(:hover) {\n color: #FFFFFF;\n}\n::v-deep .t-is-collapsed .side-nav__menu-content .t-is-active {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n::v-deep .t-is-collapsed .side-nav__menu-content > .custom-active > .t-menu__item {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n::v-deep .t-default-menu:not(.t-menu--dark) .t-menu__item.t-is-active:not(.t-is-opened) {\n background: var(--td-brand-color-8);\n color: #FFFFFF;\n}\n::v-deep .t-default-menu:not(.t-menu--dark) .t-menu__item.t-is-active:not(.t-is-opened) .t-icon {\n color: var(--td-brand-color);\n}\n::v-deep .tdesign-starter-header-menu-fixed .side-nav__menu-content .t-is-active {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n::v-deep .tdesign-starter-header-menu-fixed .side-nav__menu-content > .custom-active > .t-menu__item {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n::v-deep .t-layout__header .t-menu__popup-wrapper {\n box-shadow: 5px 8px 10px #2684FE52;\n}\n']},media:void 0})}),wn,"data-v-0942bac6",false,undefined,!1,de,void 0,void 0);const kn={name:"MoveLevel",props:{leftIcon:{type:String,default:"el-icon-d-arrow-left"},rightIcon:{type:String,default:"el-icon-d-arrow-right"},showScroll:{type:Boolean,default:!1}},data:function(){return this.handleScroll=function(e,t=300){let n;return function(...o){clearTimeout(n),n=setTimeout((()=>e.apply(this,o)),t)}}((()=>{this.containerWidth()})),{leftIconDisabled:!0,rightIconDisabled:!1,showIcon:!1,timer:null,resizeObserver:null}},beforeDestroy(){window.removeEventListener("resize",this.containerWidth),this.handleScrollMouseUp(),this.resizeObserver&&this.resizeObserver.disconnect()},mounted(){this.setupResizeObserver(),window.addEventListener("resize",this.containerWidth),this.containerWidth()},methods:{setupResizeObserver(){this.resizeObserver=new ResizeObserver((()=>{this.containerWidth()}));const e=this.$refs.content.children[0];e&&this.resizeObserver.observe(e)},containerWidth:function(){this.$nextTick((()=>{const e=this.$refs.content;if(!e)return;const t=e.scrollWidth,n=e.clientWidth;this.showIcon=t>n;const o=t-n-1;e.scrollLeft<=0?this.leftIconDisabled=!0:this.leftIconDisabled=!1,e.scrollLeft>=o?this.rightIconDisabled=!0:this.rightIconDisabled=!1}))},handleScrollMouseDown:function(e){if(e&&this.leftIconDisabled||!e&&this.rightIconDisabled)return;const t=this.$refs.content,n=Math.max(parseFloat((1/window.devicePixelRatio).toFixed(2))+.01,1);if(e)this.timer=setInterval((()=>{t.scrollLeft-=n,t.scrollLeft<=0?(this.leftIconDisabled=!0,this.handleScrollMouseUp()):(this.rightIconDisabled=!1,this.leftIconDisabled=!1)}),10);else{const e=t.scrollWidth-t.clientWidth-1;this.timer=setInterval((()=>{t.scrollLeft+=n,t.scrollLeft>=e?(this.rightIconDisabled=!0,this.handleScrollMouseUp()):(this.rightIconDisabled=!1,this.leftIconDisabled=!1)}),10)}},handleScrollMouseUp:function(){clearInterval(this.timer),this.timer=null}}};var $n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"move-level",class:{"show-scroll":e.showScroll}},[e.$slots.left&&e.showIcon?n("div",{staticClass:"slot-button-left",style:{cursor:e.leftIconDisabled?"no-drop":"pointer"},on:{mousedown:function(t){return e.handleScrollMouseDown(!0)},mouseup:function(t){return e.handleScrollMouseUp(!0)}}},[e._t("left")],2):e._e(),e._v(" "),!e.$slots.left&&e.showIcon?n("el-button",{staticClass:"scroll-left",attrs:{disabled:e.leftIconDisabled,type:"text",icon:e.leftIcon},nativeOn:{mousedown:function(t){return e.handleScrollMouseDown(!0)},mouseup:function(t){return e.handleScrollMouseUp(!0)}}}):e._e(),e._v(" "),n("div",{ref:"content",staticClass:"content",on:{"&scroll":function(t){return e.handleScroll.apply(null,arguments)}}},[e._t("default")],2),e._v(" "),e.$slots.right&&e.showIcon?n("div",{staticClass:"slot-button-right",style:{cursor:e.rightIconDisabled?"no-drop":"pointer"},on:{mousedown:function(t){return e.handleScrollMouseDown(!1)},mouseup:function(t){return e.handleScrollMouseUp(!1)}}},[e._t("right")],2):e._e(),e._v(" "),!e.$slots.right&&e.showIcon?n("el-button",{staticClass:"scroll-right",attrs:{disabled:e.rightIconDisabled,type:"text",icon:e.rightIcon},nativeOn:{mousedown:function(t){return e.handleScrollMouseDown(!1)},mouseup:function(t){return e.handleScrollMouseUp(!1)}}}):e._e()],1)};$n._withStripped=!0;const Sn=Ce({render:$n,staticRenderFns:[]},(function(e){e&&e("data-v-58ce77aa_0",{source:".move-level[data-v-58ce77aa] {\n width: 100%;\n height: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n position: relative;\n overflow: hidden;\n}\n.move-level .slot-button-left[data-v-58ce77aa] {\n height: 100%;\n width: 20px;\n position: absolute;\n left: 0;\n}\n.move-level .slot-button-right[data-v-58ce77aa] {\n height: 100%;\n width: 20px;\n position: absolute;\n right: 0;\n}\n.move-level .content[data-v-58ce77aa] {\n width: 100%;\n background-color: transparent;\n overflow: hidden;\n}\n.move-level.show-scroll .content[data-v-58ce77aa] {\n overflow-x: auto;\n height: 100%;\n display: flex;\n align-items: center;\n}\n.move-level .el-button[data-v-58ce77aa] {\n position: absolute;\n}\n.move-level .el-button.scroll-left[data-v-58ce77aa] {\n left: 0;\n}\n.move-level .el-button.scroll-right[data-v-58ce77aa] {\n right: 0;\n}\n",map:{version:3,sources:["index.vue"],names:[],mappings:"AAAA;EACE,WAAW;EACX,YAAY;EACZ,eAAe;EACf,sBAAsB;EACtB,aAAa;EACb,mBAAmB;EACnB,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB,OAAO;AACT;AACA;EACE,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB,QAAQ;AACV;AACA;EACE,WAAW;EACX,6BAA6B;EAC7B,gBAAgB;AAClB;AACA;EACE,gBAAgB;EAChB,YAAY;EACZ,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,OAAO;AACT;AACA;EACE,QAAQ;AACV",file:"index.vue",sourcesContent:[".move-level {\n width: 100%;\n height: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n position: relative;\n overflow: hidden;\n}\n.move-level .slot-button-left {\n height: 100%;\n width: 20px;\n position: absolute;\n left: 0;\n}\n.move-level .slot-button-right {\n height: 100%;\n width: 20px;\n position: absolute;\n right: 0;\n}\n.move-level .content {\n width: 100%;\n background-color: transparent;\n overflow: hidden;\n}\n.move-level.show-scroll .content {\n overflow-x: auto;\n height: 100%;\n display: flex;\n align-items: center;\n}\n.move-level .el-button {\n position: absolute;\n}\n.move-level .el-button.scroll-left {\n left: 0;\n}\n.move-level .el-button.scroll-right {\n right: 0;\n}\n"]},media:void 0})}),kn,"data-v-58ce77aa",false,undefined,!1,de,void 0,void 0);const Fn={props:{read:{type:Function,default:null},nothingIcon:{type:String,default:null}},data:()=>({isMessageVisible:!1,queryParams:{pageNum:1,pageSize:10,status:"0"}}),computed:{...p({userInfo:"user/userInfo"}),...u("notification",["msgData"])},methods:{...m("notification",["getMsgData"]),onPopupVisibleChange(e,t){if("trigger-element-click"===t.trigger)return this.isMessageVisible=!0,void this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName},loading:!1});this.isMessageVisible=e},goDetail(){this.$router.push({name:"MessageList"}),this.isMessageVisible=!1},setRead(e){this.read({messageId:e.messageId}).then((e=>{e&&200===e.code?(this.$modal.msgSuccess("设为已读成功"),this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName},loading:!1})):this.$modal.msgError("设为已读失败,请重新操作")}))},handleToPage(e){e&&this.$jumpToApp(e)}}};var Tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("t-popup",{attrs:{"expand-animation":"",placement:"bottom-right",trigger:"click",visible:e.isMessageVisible},on:{"visible-change":e.onPopupVisibleChange},scopedSlots:e._u([{key:"content",fn:function(){return[n("div",{staticClass:"header-msg"},[n("div",{staticClass:"header-msg-top"},[n("p",[e._v("站内信")])]),e._v(" "),e.msgData.length>0?n("t-list",{staticClass:"narrow-scrollbar",attrs:{split:!0}},e._l(e.msgData,(function(t,o){return n("t-list-item",{key:o,scopedSlots:e._u([{key:"action",fn:function(){return[n("t-button",{attrs:{variant:"outline"},on:{click:function(n){return e.setRead(t)}}},[e._v("\n 设为已读\n ")])]},proxy:!0}],null,!0)},[n("div",{on:{click:function(n){return e.handleToPage(t.url)}}},[n("p",{staticClass:"msg-content"},[e._v("\n "+e._s(t.content)+"\n ")]),e._v(" "),n("p",{staticClass:"msg-type"},[e._v("\n "+e._s(t.title)+"\n ")])]),e._v(" "),n("p",{staticClass:"msg-time"},[e._v("\n "+e._s(t.createTime)+"\n ")])])})),1):n("div",{staticClass:"empty-list"},[n("img",{attrs:{src:e.nothingIcon,alt:"空"}}),e._v(" "),n("p",[e._v("暂无通知")])]),e._v(" "),n("div",{staticClass:"header-msg-bottom"},[e.msgData.length>0?n("t-button",{staticClass:"header-msg-bottom-link",attrs:{variant:"text",theme:"primary"},on:{click:e.goDetail}},[e._v("\n 查看全部\n ")]):e._e()],1)],1)]},proxy:!0}])},[e._v(" "),n("t-badge",{attrs:{dot:e.msgData.length>0,count:e.msgData.length,offset:[21,9]}},[n("t-button",{attrs:{theme:"default",shape:"circle",variant:"text"},on:{click:function(t){e.isMessageVisible=!0}}},[n("svg-icon",{staticClass:"svg-icon-class",staticStyle:{color:"var(--white-color)","font-size":"16px","margin-top":"3px"},attrs:{"icon-class":"bell"}})],1)],1)],1)};Tn._withStripped=!0;let Dn=[];var Rn={name:"GlobalHeader",components:{MenuContent:nn,Message:Ce({render:Tn,staticRenderFns:[]},(function(e){e&&e("data-v-b33f7f7a_0",{source:".header-msg[data-v-b33f7f7a] {\n width: 400px;\n height: 500px;\n}\n.header-msg .empty-list[data-v-b33f7f7a] {\n height: calc(100% - 104px);\n text-align: center;\n padding-top: 135px;\n font-size: 14px;\n color: var(--td-text-color-secondary);\n}\n.header-msg .empty-list img[data-v-b33f7f7a] {\n width: 63px;\n}\n.header-msg .empty-list p[data-v-b33f7f7a] {\n margin-top: 30px;\n}\n.header-msg-top[data-v-b33f7f7a] {\n position: relative;\n height: 56px;\n font-size: 16px;\n color: var(--td-text-color-primary);\n text-align: center;\n line-height: 56px;\n border-bottom: 1px solid var(--td-component-border);\n}\n.header-msg-top .clear-btn[data-v-b33f7f7a] {\n position: absolute;\n top: 12px;\n right: 24px;\n}\n.header-msg-bottom[data-v-b33f7f7a] {\n height: 48px;\n align-items: center;\n display: flex;\n justify-content: center;\n}\n.header-msg-bottom-link[data-v-b33f7f7a] {\n text-decoration: none;\n font-size: 14px;\n color: var(--td-brand-color);\n line-height: 48px;\n cursor: pointer;\n}\n.header-msg .t-list[data-v-b33f7f7a] {\n height: calc(100% - 104px);\n}\n.header-msg .t-list-item[data-v-b33f7f7a] {\n overflow: hidden;\n width: 100%;\n padding: 16px 24px;\n border-radius: 3px;\n font-size: 14px;\n color: var(--td-text-color-primary);\n line-height: 22px;\n cursor: pointer;\n}\n.header-msg .t-list-item .msg-content[data-v-b33f7f7a] {\n margin-bottom: 16px;\n}\n.header-msg .t-list-item .t-list-item__action button[data-v-b33f7f7a] {\n opacity: 0;\n position: absolute;\n right: 24px;\n bottom: -6px;\n}\n.header-msg .t-list-item .msg-time[data-v-b33f7f7a] {\n transition: all 0.2s ease;\n opacity: 1;\n right: 24px;\n bottom: 16px;\n color: var(--td-text-color-secondary);\n}\n.header-msg .t-list-item[data-v-b33f7f7a]:hover {\n transition: background 0.2s ease;\n background: var(--td-bg-color-container-hover);\n}\n.header-msg .t-list-item:hover .msg-content[data-v-b33f7f7a] {\n color: var(--td-brand-color-8);\n}\n.header-msg .t-list-item:hover .t-list-item__action button[data-v-b33f7f7a] {\n bottom: 16px;\n opacity: 1;\n}\n.header-msg .t-list-item:hover .msg-time[data-v-b33f7f7a] {\n bottom: -6px;\n}\n.header-msg .t-list-item .msg-type[data-v-b33f7f7a] {\n color: var(--td-text-color-secondary);\n}\n",map:{version:3,sources:["Message.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,aAAa;AACf;AACA;EACE,0BAA0B;EAC1B,kBAAkB;EAClB,kBAAkB;EAClB,eAAe;EACf,qCAAqC;AACvC;AACA;EACE,WAAW;AACb;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,eAAe;EACf,mCAAmC;EACnC,kBAAkB;EAClB,iBAAiB;EACjB,mDAAmD;AACrD;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,WAAW;AACb;AACA;EACE,YAAY;EACZ,mBAAmB;EACnB,aAAa;EACb,uBAAuB;AACzB;AACA;EACE,qBAAqB;EACrB,eAAe;EACf,4BAA4B;EAC5B,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,kBAAkB;EAClB,kBAAkB;EAClB,eAAe;EACf,mCAAmC;EACnC,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,kBAAkB;EAClB,WAAW;EACX,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,UAAU;EACV,WAAW;EACX,YAAY;EACZ,qCAAqC;AACvC;AACA;EACE,gCAAgC;EAChC,8CAA8C;AAChD;AACA;EACE,8BAA8B;AAChC;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,YAAY;AACd;AACA;EACE,qCAAqC;AACvC",file:"Message.vue",sourcesContent:[".header-msg {\n width: 400px;\n height: 500px;\n}\n.header-msg .empty-list {\n height: calc(100% - 104px);\n text-align: center;\n padding-top: 135px;\n font-size: 14px;\n color: var(--td-text-color-secondary);\n}\n.header-msg .empty-list img {\n width: 63px;\n}\n.header-msg .empty-list p {\n margin-top: 30px;\n}\n.header-msg-top {\n position: relative;\n height: 56px;\n font-size: 16px;\n color: var(--td-text-color-primary);\n text-align: center;\n line-height: 56px;\n border-bottom: 1px solid var(--td-component-border);\n}\n.header-msg-top .clear-btn {\n position: absolute;\n top: 12px;\n right: 24px;\n}\n.header-msg-bottom {\n height: 48px;\n align-items: center;\n display: flex;\n justify-content: center;\n}\n.header-msg-bottom-link {\n text-decoration: none;\n font-size: 14px;\n color: var(--td-brand-color);\n line-height: 48px;\n cursor: pointer;\n}\n.header-msg .t-list {\n height: calc(100% - 104px);\n}\n.header-msg .t-list-item {\n overflow: hidden;\n width: 100%;\n padding: 16px 24px;\n border-radius: 3px;\n font-size: 14px;\n color: var(--td-text-color-primary);\n line-height: 22px;\n cursor: pointer;\n}\n.header-msg .t-list-item .msg-content {\n margin-bottom: 16px;\n}\n.header-msg .t-list-item .t-list-item__action button {\n opacity: 0;\n position: absolute;\n right: 24px;\n bottom: -6px;\n}\n.header-msg .t-list-item .msg-time {\n transition: all 0.2s ease;\n opacity: 1;\n right: 24px;\n bottom: 16px;\n color: var(--td-text-color-secondary);\n}\n.header-msg .t-list-item:hover {\n transition: background 0.2s ease;\n background: var(--td-bg-color-container-hover);\n}\n.header-msg .t-list-item:hover .msg-content {\n color: var(--td-brand-color-8);\n}\n.header-msg .t-list-item:hover .t-list-item__action button {\n bottom: 16px;\n opacity: 1;\n}\n.header-msg .t-list-item:hover .msg-time {\n bottom: -6px;\n}\n.header-msg .t-list-item .msg-type {\n color: var(--td-text-color-secondary);\n}\n"]},media:void 0})}),Fn,"data-v-b33f7f7a",false,undefined,!1,de,void 0,void 0),ViewListIcon:x,UserCircleIcon:E,PoweroffIcon:w,SettingIcon:_,ChevronDownIcon:B,UserIcon:k,MoveLevel:Sn},props:{apis:{type:Object,default:()=>({})},prefix:String,theme:String,layout:{type:String,default:"top"},showLogo:{type:Boolean,default:!0},menu:{type:Array},isFixed:{type:Boolean,default:!1},isCompact:{type:Boolean,default:!1}},data(){return{tenantOptions:[],selectedTenantCode:"",showInfo:this.$proxyEnv.showInfo,isSystem:"$system$"===this.$proxyEnv.APP_ID}},computed:{...p({showHomeDrag:"user/showHomeDrag",userInfo:"user/userInfo"}),loginConfirmStyle(){return this.showHomeDrag?"login-confirm-user":"login-confirm-admin"},active(){return this.$route.path?this.$route.path.split("/").filter(((e,t)=>t>0)).map((e=>`/${e}`)).join(""):""},layoutCls(){return[`${this.prefix}-header-layout`]},showHomeDrag(){return this.$store.getters["user/showHomeDrag"]},menuCls(){return[{[`${this.prefix}-header-menu`]:!this.isFixed,[`${this.prefix}-header-menu-fixed`]:this.isFixed,[`${this.prefix}-header-menu-fixed-side`]:"side"===this.layout&&this.isFixed,[`${this.prefix}-header-menu-fixed-side-compact`]:"side"===this.layout&&this.isFixed&&this.isCompact}]},isGroupLogin:()=>"true"===sessionStorage.getItem("isGroupLogin"),isLoginConfirm(){return!this.$store.getters["user/token"]},isResetPsw(){return"0"===this.$store.getters["user/userInfo"].userType},bgColor(){return"index"===this.$route.name&&this.isSystem?{background:"var(--bottom-light)"}:{background:this.showHomeDrag?"rgba(41, 109, 241, 0.08)":"var(--bottom-light)"}}},mounted(){this.getInitDeptds()},methods:{handleUserPage(){this.$router.push({name:"userDetail",query:{userId:this.userInfo.userId,userName:this.userInfo.userName},params:{hhM:"HOMEPAGE_INDEX"}})},handleToHome(){this.$router.push("/index")},getInitDeptds(){this.$store.getters["permission/whiteListRouters"].includes(this.$route.path)||(this.$store.getters["user/userInfo"]?.userId?this.apis.getTenantsByUserId(this.$store.getters["user/userInfo"].userId).then((e=>{this.tenantOptions=e.data,this.$store.commit("user/SET_TENANT",e.data),this.tenantOptions.length>0?(this.selectedTenantCode=this.$store.getters["user/userInfo"].currentTenantCode,this.selectedTenantCode&&this.tenantOptions.find((e=>e.tenantCode===this.selectedTenantCode))||this.exchangeTenant(this.tenantOptions[0].tenantCode,this.tenantOptions[0].tenantId,this.tenantOptions[0].tenantName)):this.$store.getters["user/userInfo"].currentTenantCode&&this.apis.clearUserTenant(this.$store.getters["user/userInfo"].userId).then((()=>{window.location.reload()}))})):this.$message.error("没有正常获取到用户ID"))},treeselectSelect(e){this.exchangeTenant(this.selectedTenantCode,e.tenantId,e.tenantName)},exchangeTenant(e,t,n){this.apis.exchangeTenant({tenantRoleKey:e}).then((async e=>{this.$store.dispatch("user/exchangeTenant",{token:e.data,tenantId:t,tenantName:n})}))},toggleSettingPanel(){this.$store.commit("setting/toggleSettingPanel",!0)},handleLogout(){const e={userName:this.$store.getters["user/name"],logout:1};this.apis.updateLastLogout(e),this.$confirm("确定注销并退出系统吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>Promise.all([this.$store.dispatch("user/logout"),this.$store.dispatch("permission/restore")]))).then((()=>{this.$router.push("/login")})).catch((e=>{console.error(e)}))},changeCollapsed(){this.$store.commit("setting/toggleSidebarCompact")},resetPsw(){this.$emit("reset-password")},handleExpand:function(){this.initPopupMenuHeight()},initPopupMenuHeight:function(){this.$nextTick((()=>{const e=this.$el.querySelectorAll(".t-menu__popup"),t=[];for(let n=0;n<e.length;n++){const o=e[n];if(o.classList.contains("t-is-opened")){if(t.push(o),!Dn.includes(o)){o.style.position="fixed",o.style.maxHeight="auto",o.style.minWidth="100px";const e=o.previousElementSibling,t=e?.getBoundingClientRect();let n=0;e&&(o.style.position="fixed",o.parentElement.closest(".t-menu__popup")?(n=t.top,o.style.left=`${t.right+16}px`):(n=t.bottom+6,o.style.left=`${t.left}px`)),o.style.height="unset";let i=window.innerHeight-n-2;const a=o.scrollHeight;if(i<200&&a>i){let e=0;a<200?(e=a-i,i=a):(e=200-i,i=200),n-=e}if(o.style.top=`${n}px`,a>i){const e=Math.max(i+2,100);o.style.maxHeight=`${e}px`,o.style.overflowY="auto",o.style.overflowX="hidden"}else o.style.maxHeight="initial",o.style.overflow="visible"}}else Dn.includes(o)&&setTimeout((()=>{o.classList.contains("t-is-opened")||(o.style.maxHeight=0,o.style.overflow="hidden")}),60)}Dn=t}))}}};const Pn=Rn;var On=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.layoutCls},[n("t-head-menu",{class:e.menuCls,staticStyle:{"margin-right":"0"},style:e.bgColor,attrs:{theme:e.theme,"expand-type":"popup",value:e.active},on:{expand:e.handleExpand},scopedSlots:e._u([{key:"logo",fn:function(){return[e.showLogo?n("span",{staticClass:"header-logo-container"},[n("span",{staticClass:"t-logo-container",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.preventDefault(),e.handleToHome.apply(null,arguments)}}},[e.showInfo?e._t("logo"):e._e()],2),e._v(" "),n("span",{staticClass:"header__title"},[e._v(e._s(e.platformTitle))])]):e._e(),e._v(" "),"top"===e.layout||e.isGroupLogin?e._e():n("div",{staticClass:"header-operate-left"},[n("t-button",{attrs:{theme:"default",shape:"square",variant:"text"},on:{click:e.changeCollapsed}},[n("view-list-icon",{staticClass:"collapsed-icon",staticStyle:{color:"var(--white-color)"}})],1)],1)]},proxy:!0},{key:"operations",fn:function(){return[e.isLoginConfirm?n("div",{class:e.loginConfirmStyle},[n("span",{on:{click:function(t){return e.$router.push("/login")}}},[e._v("登录")])]):n("div",{staticClass:"operations-container",staticStyle:{"margin-left":"20px"}},[e._t("btn1"),e._v(" "),e.tenantOptions.length>1&&"index"!==e.$route.name?n("el-select",{staticClass:"tenant-select",staticStyle:{width:"150px","font-weight":"700 !important"},attrs:{placeholder:"请选择租户",disabled:!e.isSystem},model:{value:e.selectedTenantCode,callback:function(t){e.selectedTenantCode=t},expression:"selectedTenantCode"}},e._l(e.tenantOptions,(function(t){return n("el-option",{key:t.tenantId,staticStyle:{"font-weight":"700 !important"},attrs:{label:t.tenantName,value:t.tenantCode},nativeOn:{click:function(n){return e.treeselectSelect(t)}}})})),1):e._e(),e._v(" "),e._t("btn2"),e._v(" "),"/index"!==e.$route.path?n("t-tooltip",{staticStyle:{color:"var(--white-color)"},attrs:{content:"站内信",placement:"bottom","show-arrow":""}},[n("message",e._b({},"message",e.$attrs.message,!1))],1):e._e(),e._v(" "),"/index"!==e.$route.path?n("t-tooltip",{staticStyle:{color:"var(--white-color)"},attrs:{placement:"bottom",content:"系统设置"}},[n("t-button",{attrs:{theme:"default",shape:"circle"},on:{click:e.toggleSettingPanel}},[n("setting-icon",{staticStyle:{"margin-top":"-3px"}})],1)],1):e._e(),e._v(" "),e._t("btn"),e._v(" "),n("t-dropdown",{attrs:{"min-column-width":125,trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[n("t-dropdown-menu",[n("t-dropdown-item",{staticClass:"operations-dropdown-container-item",on:{click:e.handleUserPage}},[n("user-icon"),n("span",{staticStyle:{"font-weight":"700"}},[e._v("用户详情")])],1),e._v(" "),n("t-dropdown-item",{staticClass:"operations-dropdown-container-item",on:{click:e.handleLogout}},[n("poweroff-icon"),n("span",{staticStyle:{"font-weight":"700"}},[e._v("退出登录")])],1),e._v(" "),e.isResetPsw?n("t-dropdown-item",{staticClass:"operations-dropdown-container-item",on:{click:e.resetPsw}},[n("setting-icon"),n("span",{staticStyle:{"font-weight":"700"}},[e._v("重置密码")])],1):e._e()],1)]},proxy:!0}],null,!1,2794212529)},[n("t-button",{staticClass:"header-user-btn",attrs:{theme:"default",variant:"text"},scopedSlots:e._u([{key:"icon",fn:function(){return[n("user-circle-icon",{staticClass:"header-user-avatar",staticStyle:{color:"var(--white-color)"}})]},proxy:!0}],null,!1,1284805753)},[e._v(" "),n("div",{staticClass:"header-user-account",staticStyle:{color:"var(--white-color)","font-weight":"700"}},[e._v("\n "+e._s(e.$store.getters["user/userInfo"].nickName)+"\n "),n("chevron-down-icon")],1)])],1)],2)]},proxy:!0}],null,!0)},[e._v(" "),"side"===e.layout||e.isGroupLogin?e._e():n("move-level",{attrs:{"show-scroll":!0}},[n("menu-content",{staticClass:"header-menu",attrs:{"nav-data":e.menu,"is-top":!0}}),e._v(" "),e._t("topMenu")],2)],1)],1)};On._withStripped=!0;const Ln=Ce({render:On,staticRenderFns:[]},(function(e){e&&e("data-v-54b920be_0",{source:".operations-container .tenant-select .el-input__inner {\n font-weight: 700 !important;\n}\n.header-menu {\n flex: 1 1 1;\n display: inline-flex;\n}\n.operations-container {\n display: flex;\n align-items: center;\n margin-right: 12px;\n}\n.operations-container .t-popup__reference {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.operations-container .t-button {\n margin: 0 8px;\n background-color: var(--light-bg);\n border: 1px solid transparent;\n}\n.operations-container .t-button.header-user-btn {\n margin: 0;\n background: transparent;\n border: none !important;\n}\n.operations-container .t-button.header-user-btn:hover {\n background-color: transparent;\n}\n.operations-container .t-button:hover {\n background-color: var(--light-bg-hover);\n border: 1px solid var(--light-bg-hover-border);\n}\n.operations-container .t-icon {\n font-size: 20px;\n}\n.operations-container .t-icon.general {\n margin-right: 16px;\n}\n.header-operate-left {\n display: flex;\n margin-left: 20px;\n align-items: normal;\n line-height: 0;\n}\n.header-operate-left .collapsed-icon {\n font-size: 20px;\n}\n.header-logo-container {\n font-size: 20px;\n width: 260px;\n height: 100%;\n display: flex;\n align-items: center;\n margin-left: 24px;\n color: var(--form-text);\n}\n.header-logo-container .t-logo {\n width: 100%;\n height: 100%;\n}\n.header-logo-container .t-logo:hover {\n cursor: pointer;\n}\n.header-user-account {\n display: inline-flex;\n align-items: center;\n color: var(--td-text-color-primary);\n}\n.header-user-account .t-icon {\n margin-left: 4px;\n font-size: 16px;\n}\n.t-head-menu__inner {\n border-bottom: 1px solid var(--td-border-level-1-color);\n}\n.t-menu--light .header-user-account {\n color: var(--td-text-color-primary);\n}\n.t-menu--dark .t-head-menu__inner {\n border-bottom: 1px solid var(--td-gray-color-10);\n}\n.t-menu--dark .header-user-account {\n color: rgba(255, 255, 255, 0.55);\n}\n.operations-dropdown-container-item {\n width: 100%;\n display: flex;\n align-items: center;\n}\n.operations-dropdown-container-item .t-icon {\n margin-right: 8px;\n}\n.operations-dropdown-container-item .t-dropdown__item {\n width: 100%;\n margin-bottom: 0;\n}\n.operations-dropdown-container-item .t-dropdown__item .t-dropdown__item__content {\n display: flex;\n justify-content: center;\n}\n.operations-dropdown-container-item .t-dropdown__item .t-dropdown__item__content__text {\n display: flex;\n align-items: center;\n font-size: 14px;\n}\n.operations-dropdown-container-item:last-child .t-dropdown__item {\n margin-bottom: 8px;\n}\n.login-confirm-admin span {\n color: #FFFFFF;\n font-weight: 700;\n margin-right: 30px;\n cursor: pointer;\n}\n.login-confirm-user span {\n color: #86909A;\n font-weight: 700;\n margin-right: 30px;\n cursor: pointer;\n}\n.tenant-select {\n margin-right: 8px;\n}\n.t-head-menu > .t-head-menu__inner > .t-menu {\n overflow-x: hidden;\n}\n",map:{version:3,sources:["Header.vue"],names:[],mappings:"AAAA;EACE,2BAA2B;AAC7B;AACA;EACE,WAAW;EACX,oBAAoB;AACtB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,aAAa;EACb,iCAAiC;EACjC,6BAA6B;AAC/B;AACA;EACE,SAAS;EACT,uBAAuB;EACvB,uBAAuB;AACzB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,uCAAuC;EACvC,8CAA8C;AAChD;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,iBAAiB;EACjB,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;EACf,YAAY;EACZ,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,iBAAiB;EACjB,uBAAuB;AACzB;AACA;EACE,WAAW;EACX,YAAY;AACd;AACA;EACE,eAAe;AACjB;AACA;EACE,oBAAoB;EACpB,mBAAmB;EACnB,mCAAmC;AACrC;AACA;EACE,gBAAgB;EAChB,eAAe;AACjB;AACA;EACE,uDAAuD;AACzD;AACA;EACE,mCAAmC;AACrC;AACA;EACE,gDAAgD;AAClD;AACA;EACE,gCAAgC;AAClC;AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,uBAAuB;AACzB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB",file:"Header.vue",sourcesContent:[".operations-container .tenant-select .el-input__inner {\n font-weight: 700 !important;\n}\n.header-menu {\n flex: 1 1 1;\n display: inline-flex;\n}\n.operations-container {\n display: flex;\n align-items: center;\n margin-right: 12px;\n}\n.operations-container .t-popup__reference {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.operations-container .t-button {\n margin: 0 8px;\n background-color: var(--light-bg);\n border: 1px solid transparent;\n}\n.operations-container .t-button.header-user-btn {\n margin: 0;\n background: transparent;\n border: none !important;\n}\n.operations-container .t-button.header-user-btn:hover {\n background-color: transparent;\n}\n.operations-container .t-button:hover {\n background-color: var(--light-bg-hover);\n border: 1px solid var(--light-bg-hover-border);\n}\n.operations-container .t-icon {\n font-size: 20px;\n}\n.operations-container .t-icon.general {\n margin-right: 16px;\n}\n.header-operate-left {\n display: flex;\n margin-left: 20px;\n align-items: normal;\n line-height: 0;\n}\n.header-operate-left .collapsed-icon {\n font-size: 20px;\n}\n.header-logo-container {\n font-size: 20px;\n width: 260px;\n height: 100%;\n display: flex;\n align-items: center;\n margin-left: 24px;\n color: var(--form-text);\n}\n.header-logo-container .t-logo {\n width: 100%;\n height: 100%;\n}\n.header-logo-container .t-logo:hover {\n cursor: pointer;\n}\n.header-user-account {\n display: inline-flex;\n align-items: center;\n color: var(--td-text-color-primary);\n}\n.header-user-account .t-icon {\n margin-left: 4px;\n font-size: 16px;\n}\n.t-head-menu__inner {\n border-bottom: 1px solid var(--td-border-level-1-color);\n}\n.t-menu--light .header-user-account {\n color: var(--td-text-color-primary);\n}\n.t-menu--dark .t-head-menu__inner {\n border-bottom: 1px solid var(--td-gray-color-10);\n}\n.t-menu--dark .header-user-account {\n color: rgba(255, 255, 255, 0.55);\n}\n.operations-dropdown-container-item {\n width: 100%;\n display: flex;\n align-items: center;\n}\n.operations-dropdown-container-item .t-icon {\n margin-right: 8px;\n}\n.operations-dropdown-container-item .t-dropdown__item {\n width: 100%;\n margin-bottom: 0;\n}\n.operations-dropdown-container-item .t-dropdown__item .t-dropdown__item__content {\n display: flex;\n justify-content: center;\n}\n.operations-dropdown-container-item .t-dropdown__item .t-dropdown__item__content__text {\n display: flex;\n align-items: center;\n font-size: 14px;\n}\n.operations-dropdown-container-item:last-child .t-dropdown__item {\n margin-bottom: 8px;\n}\n.login-confirm-admin span {\n color: #FFFFFF;\n font-weight: 700;\n margin-right: 30px;\n cursor: pointer;\n}\n.login-confirm-user span {\n color: #86909A;\n font-weight: 700;\n margin-right: 30px;\n cursor: pointer;\n}\n.tenant-select {\n margin-right: 8px;\n}\n.t-head-menu > .t-head-menu__inner > .t-menu {\n overflow-x: hidden;\n}\n"]},media:void 0})}),Pn,undefined,false,undefined,!1,de,void 0,void 0);var Nn={name:"DetailSecondary",dicts:["sys_detail_secondary_status"],props:{apis:{type:Object,default:()=>({})}},data:()=>({showSearch:!0,title:"",open:!1,form:{},queryParams:{pageNum:1,pageSize:10,status:"0"}}),computed:{...p({userInfo:"user/userInfo"}),...u("notification",["msgData"]),...u("notification",["msgTotal"])},created(){this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName}})},methods:{...m("notification",["getMsgData"]),indexMethod(e){return e+1+(this.queryParams.pageNum-1)*this.queryParams.pageSize},handleQuery(){this.queryParams.pageNum=1,this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName}})},resetQuery(){this.resetForm("queryForm"),this.handleQuery()},handleRead(e){this.$modal.confirm(`确认将标题为${e.title}的消息设为已读吗?`).then((()=>{this.apis.read({messageId:e.messageId}).then((e=>{e&&200===e.code?(this.$modal.msgSuccess("设为已读成功"),this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName}})):this.$modal.msgError("设为已读失败,请重新操作")}))}))},handleUnRead(e){this.$modal.confirm(`确认将标题为${e.title}的消息设为未读吗?`).then((()=>{this.apis.unRead({messageId:e.messageId}).then((e=>{e&&200===e.code?(this.$modal.msgSuccess("设为未读成功"),this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName}})):this.$modal.msgError("设为未读失败,请重新操作")}))}))},handleDelete(e){this.$modal.confirm(`确认将标题为${e.title}的消息删除吗?`).then((()=>{this.apis.deleteMsg(e.messageId).then((e=>{e&&200===e.code?(this.$modal.msgSuccess("删除成功"),this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName}})):this.$modal.msgError("删除失败,请重新操作")}))}))},cellHandleclick(e,t){"消息标题"===t.label&&e.url&&this.$jumpToApp(e.url)},mouseEnterCell(e,t,n){"消息标题"==t.label&&(n.style.cursor="pointer",n.style.color="var(--td-brand-color-8)")},mouseLeaveCell(e,t,n){"消息标题"==t.label&&(n.style.color="rgba(0, 0, 0, 0.6)")}}};const qn=Nn;var jn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"状态",prop:"status"}},[n("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择消息状态",clearable:""},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.dict.type.sys_detail_secondary_status,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleQuery}},[e._v("\n 搜索\n ")]),e._v(" "),n("el-button",{attrs:{icon:"el-icon-refresh"},on:{click:e.resetQuery}},[e._v("\n 重置\n ")])],1)],1),e._v(" "),n("el-row",{staticClass:"mb8",attrs:{gutter:10}},[e._e(),e._v(" "),n("right-toolbar",{attrs:{"show-search":e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:function(t){return e.getMsgData({queryParams:Object.assign({},e.queryParams,{userId:e.userInfo.userName})})}}})],1),e._v(" "),n("div",{staticClass:"footer-box container-box--background"},[n("el-table",{attrs:{data:e.msgData},on:{"cell-mouse-enter":e.mouseEnterCell,"cell-mouse-leave":e.mouseLeaveCell,"cell-click":e.cellHandleclick}},[n("el-table-column",{attrs:{label:"序号",align:"center",type:"index",index:e.indexMethod}}),e._v(" "),n("el-table-column",{attrs:{label:"消息标题",align:"center",prop:"title","show-overflow-tooltip":!0}}),e._v(" "),n("el-table-column",{attrs:{label:"消息内容",prop:"content",align:"center","show-overflow-tooltip":!0}}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("dict-tag",{attrs:{options:e.dict.type.sys_detail_secondary_status,value:t.row.status}})]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return["0"===t.row.status?n("el-button",{attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(n){return e.handleRead(t.row)}}},[e._v("\n 设为已读\n ")]):n("el-button",{attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(n){return e.handleUnRead(t.row)}}},[e._v("\n 设为未读\n ")]),e._v(" "),n("el-button",{attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(n){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.msgTotal>0,expression:"msgTotal > 0"}],attrs:{total:e.msgTotal,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:function(t){return e.getMsgData({queryParams:Object.assign({},e.queryParams,{userId:e.userInfo.userName})})}}})],1),e._v(" "),n("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.open=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"消息标题",prop:"title"}},[n("el-input",{attrs:{placeholder:"请输入消息标题"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"状态",prop:"status"}},[n("el-select",{attrs:{placeholder:"请选择消息状态",clearable:""},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.dict.type.sys_detail_secondary_status,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"消息内容",prop:"content"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入消息内容"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"备注",prop:"remark"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{icon:"el-icon-close"}},[e._v("\n 取 消\n ")]),e._v(" "),n("el-button",{attrs:{icon:"el-icon-check",type:"primary"}},[e._v("\n 确 定\n ")])],1)],1)],1)};jn._withStripped=!0;const zn=Ce({render:jn,staticRenderFns:[]},undefined,qn,"data-v-4229fea2",false,undefined,!1,void 0,void 0,void 0);const Mn={name:"ImportFile",props:{uploadFile:{type:Function,default:null},accept:{type:String,default:".xlsx, .xls"},btnType:{type:String,default:"warning"},btnIcon:{type:String,default:"el-icon-upload2"},btnText:{type:String,default:"导入"},disabled:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},baseUrl:{type:String,default:void 0},uploadUrl:{type:String,default:"/file/upload"}},data:function(){return{loading:!1}},methods:{httpRequest:function(e){const t=new FormData;return t.append("file",e.file,e.file.name),this.uploadFile(t,this.baseUrl,this.uploadUrl)},handleBeforeUpload:function(e){if(this.$modal.loading("正在上传文件,请稍候..."),this.loading=!0,this.accept){let t="";e.name.lastIndexOf(".")>-1&&(t=e.name.slice(e.name.lastIndexOf(".")+1));if(!this.accept.includes(t))return this.$modal.msgError(`文件格式不正确, 请上传${this.accept}格式文件!`),this.$modal.closeLoading(),this.loading=!1,!1}},handleSuccess:function(e){this.showMessage&&this.$message.success(e&&e.message||"导入成功"),this.$emit("ok",e),this.$modal.closeLoading(),this.loading=!1},handleError:function(e){if(console.error(e,e.message,e.errorInfo),this.showMessage){let t;try{t=`导入失败:${JSON.parse(e.message).errorInfo.message}`}catch(e){t="导入失败"}this.$message.error(t)}this.$modal.closeLoading(),this.loading=!1}}};var Wn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-upload",{ref:"upload",staticClass:"import-file",attrs:{multiple:e.multiple,action:"","on-error":e.handleError,"on-success":e.handleSuccess,"before-upload":e.handleBeforeUpload,"show-file-list":!1,accept:e.accept,"http-request":e.httpRequest}},[n("el-button",{attrs:{type:e.btnType,icon:e.btnIcon,plain:"",loading:e.loading}},[e._v("\n "+e._s(e.btnText)+"\n ")])],1)};Wn._withStripped=!0;const Yn=Ce({render:Wn,staticRenderFns:[]},(function(e){e&&e("data-v-20da1508_0",{source:".import-file[data-v-20da1508] .el-upload {\n margin-top: 0;\n}\n",map:{version:3,sources:["ImportFile.vue"],names:[],mappings:"AAAA;EACE,aAAa;AACf",file:"ImportFile.vue",sourcesContent:[".import-file /deep/ .el-upload {\n margin-top: 0;\n}\n"]},media:void 0})}),Mn,"data-v-20da1508",false,undefined,!1,de,void 0,void 0);function Un(e){return Promise.resolve().then((()=>URL.createObjectURL(e)))}const Zn=["bmp","jpg","jpeg","png","gif"],Vn=["mpg","mpeg","avi","rm","rmvb","mov","wmv","asf","dat"];const Hn={name:"FileUpload",props:{apis:{type:Object,default:()=>({})},value:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:void 0},isShowTip:{type:Boolean,default:!0},downLoadUrl:{type:String,default:"/file/download/file"},isPictureCard:{type:Boolean,default:!1},buttonType:{type:String,default:"primary"},showUpload:{type:Boolean,default:!0},fileStatus:{type:Number,default:void 0},bizPath:{type:String},bucketName:{type:String},videoBucketName:{type:String},pictureBucketName:{type:String},uploadType:{type:String,default:"minio"},drag:{type:Boolean,default:!0},viewOnly:{type:Boolean,default:!1},needSpecialEmit:{type:Boolean,default:!1},hasPreview:{type:Boolean,default:!0}},data:()=>({number:0,uploadList:[],fileList:[],accept:"",dialogImageUrl:"",dialogVisible:!1,myFileType:void 0,defaultFileType:["doc","docx","xls","xlsx","ppt","pptx","txt","pdf",...Zn,...Vn],defaultPictureType:Zn,defaultVideoType:Vn,isMyEmit:!1}),computed:{showTip(){return this.isShowTip&&(this.fileType||this.fileSize)}},watch:{value:{handler(e){if(!e)return this.fileList=[],[];{const t=Array.isArray(e)?e:e.split("|");this.isMyEmit?this.isMyEmit=!1:this.initFileList(t.map((e=>{if("string"==typeof e){const[t,n]=e.split(":");e={id:t,name:n}}return e})))}},deep:!0,immediate:!0}},mounted(){this.fileType?this.myFileType=this.fileType:this.isPictureCard?this.myFileType=this.defaultPictureType:this.myFileType=this.defaultFileType,this.accept=this.myFileType.map((e=>`.${e}`)).join(",")},methods:{httpRequest:function(e){const t=e.file.name.split(".").pop(),n=new FormData;return this.pictureBucketName&&this.defaultPictureType.includes(t)?n.append("bucketName",this.pictureBucketName):this.videoBucketName&&this.defaultVideoType.includes(t)?n.append("bucketName",this.videoBucketName):n.append("bucketName",this.bucketName),n.append("file",e.file,e.file.name),n.append("bizPath",this.bizPath),n.append("uploadType",this.uploadType),new Promise(((e,t)=>{this.apis.uploadFile(n).then((n=>{200===n.code?e(n):t(n)})).catch((e=>{t(e)}))}))},initFileList(e){this.isPictureCard&&e.length>0?(this.fileList=[],e.forEach((e=>this.apis.downFile(e.id,{notErrorTip:!0}).then((e=>Un(e))).then((t=>{this.$set(e,"url",t),this.fileList.push(e)}))))):this.fileList=e},handleBeforeUpload(e){if(this.myFileType){let t="";e.name.lastIndexOf(".")>-1&&(t=e.name.slice(e.name.lastIndexOf(".")+1));if(!this.myFileType.some((n=>e.type.indexOf(n)>-1||!!(t&&t.indexOf(n)>-1))))return this.$modal.msgError(`文件格式不正确, 请上传${this.myFileType.join("/")}格式文件!`),!1}if(this.fileSize){if(!(e.size/1024/1024<this.fileSize))return this.$modal.msgError(`上传文件大小不能超过 ${this.fileSize} MB!`),!1}return this.$modal.loading("正在上传文件,请稍候..."),this.number+=1,!0},handleExceed(){this.$modal.msgError(`上传文件数量不能超过 ${this.limit} 个!`)},handleUploadError(){this.$modal.msgError("上传失败,请重试"),this.$modal.closeLoading()},handleUploadSuccess(e,t){const[n,o]=e.data.split(":");200===e.code&&(this.uploadList.push({name:o,id:n,url:t.url}),this.uploadList.length===this.number&&(this.fileList.push(...this.uploadList),this.uploadList=[],this.number=0,this.handleEmit(),this.$modal.closeLoading()))},listToString:e=>(e=e||[]).map((e=>`${e.id}:${e.name}`)).join("|"),handlePictureCardPreview(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove(e){this.fileList.splice(this.fileList.findIndex((t=>t.id===e.id)),1),this.handleEmit()},validateFile(){this.dispatch("el-form-item","el.form.blur",this.value)},dispatch(e,t,n){let o=this.$parent||this.$root,i=o.$options._componentTag;for(;o&&(!i||i!==e);)o=o.$parent,o&&(i=o.$options._componentTag);o&&o.$emit(t,n)},handlePreview(e){const t=e.name.split(".").pop();this.defaultPictureType.includes(t)?this.apis.downFile(e.id).then((e=>Un(e))).then((e=>{this.dialogImageUrl=e,this.dialogVisible=!0})):this.needSpecialEmit?this.$emit("on-view",e):this.apis.filePreview(e.id).then((e=>{window.open(e.data)}))},handleLoad(e){this.apis.downloadTemplate(`/file/download/${e.id}`)},handleEmit:function(){this.isMyEmit=!0,this.$emit("input",this.listToString(this.fileList)),this.$emit("change",this.fileList),this.validateFile()}}};var Xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"upload-file",class:{"view-only":e.viewOnly}},[n("el-dialog",{attrs:{visible:e.dialogVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"file-uplaod__preview-image"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})]),e._v(" "),e.isPictureCard?[n("el-upload",{ref:"upload",staticClass:"upload-file-uploader upload-file-picture",class:[e.fileList.length>=e.limit?"hide-upload":""],attrs:{"list-type":"picture-card",action:"","before-upload":e.handleBeforeUpload,limit:e.limit,drag:"","on-error":e.handleUploadError,"on-exceed":e.handleExceed,"on-success":e.handleUploadSuccess,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.fileList,accept:e.accept,"http-request":e.httpRequest,disabled:e.viewOnly}},[e.viewOnly?e._e():[n("div",[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",[e._v("\n 拖拽或者点击上传\n ")])]),e._v(" "),e.showTip?n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("\n 请上传\n "),e.fileSize?[e._v("\n 大小不超过 "),n("b",{staticStyle:{color:"#F56C6C"}},[e._v(e._s(e.fileSize)+"MB")])]:e._e(),e._v(" "),e.fileType?[e._v("\n 格式为 "),n("b",{staticStyle:{color:"#F56C6C"}},[e._v(e._s(e.fileType.join("/")))])]:e._e(),e._v("\n 的文件\n ")],2):e._e()]],2)]:e._e(),e._v(" "),e.isPictureCard?e._e():[e.showUpload?n("el-upload",{ref:"upload",staticClass:"upload-file-uploader",class:[e.fileList.length>=e.limit?"hide-upload":"",e.drag?"text-align-center":"upload-file-text"],attrs:{multiple:"",action:"","before-upload":e.handleBeforeUpload,"file-list":e.fileList,limit:e.limit,drag:e.drag,"on-error":e.handleUploadError,"on-exceed":e.handleExceed,"on-success":e.handleUploadSuccess,"show-file-list":!1,accept:e.accept,"http-request":e.httpRequest}},[e.viewOnly?e._e():[e.drag?n("div",[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或"),n("em",[e._v("点击上传")])])]):n("div",[n("el-button",{attrs:{type:e.buttonType}},[e._v("\n 选取文件\n ")])],1),e._v(" "),e.showTip?n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("\n 请上传\n "),e.fileSize?[e._v("\n 大小不超过 "),n("b",{staticStyle:{color:"#F56C6C"}},[e._v(e._s(e.fileSize)+"MB")])]:e._e(),e._v(" "),e.fileType?[e._v("\n 格式为 "),n("b",{staticStyle:{color:"#F56C6C"}},[e._v(e._s(e.fileType.join("/")))])]:e._e(),e._v("\n 的文件\n ")],2):e._e()]],2):e._e(),e._v(" "),n("transition-group",{staticClass:"upload-file-list el-upload-list el-upload-list--text",attrs:{name:"el-fade-in-linear",tag:"ul"}},e._l(e.fileList,(function(t){return n("li",{key:t.id,staticClass:"el-upload-list__item ele-upload-list__item-content"},[n("el-link",{attrs:{underline:!1}},[n("span",{staticClass:"el-icon-document"},[e._v(" "+e._s(t.name)+" ")])]),e._v(" "),n("div",{staticClass:"ele-upload-list__item-content-action"},[e.viewOnly?e._e():n("el-link",{attrs:{underline:!1,type:"danger"},on:{click:function(n){return e.handleRemove(t)}}},[e._v("\n 删除\n ")]),e._v(" "),n("el-link",{attrs:{underline:!1,type:"primary"},on:{click:function(n){return e.handleLoad(t)}}},[e._v("\n 下载\n ")]),e._v(" "),e.hasPreview?n("el-link",{attrs:{type:"primary",underline:!1},on:{click:function(n){return e.handlePreview(t)}}},[e._v("\n 预览\n ")]):e._e()],1)],1)})),0)]],2)};Xn._withStripped=!0;const Gn=Ce({render:Xn,staticRenderFns:[]},(function(e){e&&e("data-v-601d6542_0",{source:".upload-file-uploader[data-v-601d6542] .el-upload {\n margin-top: 0;\n}\n[data-v-601d6542] .upload-file-picture {\n width: 100%;\n}\n[data-v-601d6542] .upload-file-picture .el-upload--picture-card {\n width: 148px;\n height: 148px;\n line-height: 0;\n}\n[data-v-601d6542] .upload-file-picture .el-upload-dragger {\n height: 100%;\n}\n.upload-file-list .el-upload-list__item[data-v-601d6542] {\n border: 1px solid #E4E7ED;\n line-height: 2;\n margin-bottom: 10px;\n position: relative;\n padding-left: 5px;\n}\n.upload-file-list .el-upload-list__item[data-v-601d6542]:first-child {\n margin-top: 0;\n}\n.upload-file-list .ele-upload-list__item-content[data-v-601d6542] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: inherit;\n}\n.ele-upload-list__item-content-action .el-link[data-v-601d6542] {\n margin-right: 10px;\n}\n[data-v-601d6542] .hide-upload div.el-upload {\n display: none;\n transition: all 0.5s;\n}\n[data-v-601d6542] .hide-upload .el-upload__tip {\n display: none;\n transition: all 0.5s;\n}\n.upload-file-text[data-v-601d6542] .el-upload {\n text-align: right;\n}\n.text-align-center[data-v-601d6542] .el-upload {\n text-align: center;\n}\n.upload-file.view-only[data-v-601d6542] .el-upload {\n display: none;\n}\n.upload-file[data-v-601d6542] .el-upload-list__item.is-ready,\n.upload-file[data-v-601d6542] .el-upload-list__item.is-uploading {\n display: none !important;\n}\n",map:{version:3,sources:["index.vue"],names:[],mappings:"AAAA;EACE,aAAa;AACf;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;EACZ,aAAa;EACb,cAAc;AAChB;AACA;EACE,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,cAAc;EACd,mBAAmB;EACnB,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;EACb,8BAA8B;EAC9B,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,oBAAoB;AACtB;AACA;EACE,aAAa;EACb,oBAAoB;AACtB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;AACf;AACA;;EAEE,wBAAwB;AAC1B",file:"index.vue",sourcesContent:[".upload-file-uploader /deep/ .el-upload {\n margin-top: 0;\n}\n::v-deep .upload-file-picture {\n width: 100%;\n}\n::v-deep .upload-file-picture .el-upload--picture-card {\n width: 148px;\n height: 148px;\n line-height: 0;\n}\n::v-deep .upload-file-picture .el-upload-dragger {\n height: 100%;\n}\n.upload-file-list .el-upload-list__item {\n border: 1px solid #E4E7ED;\n line-height: 2;\n margin-bottom: 10px;\n position: relative;\n padding-left: 5px;\n}\n.upload-file-list .el-upload-list__item:first-child {\n margin-top: 0;\n}\n.upload-file-list .ele-upload-list__item-content {\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: inherit;\n}\n.ele-upload-list__item-content-action .el-link {\n margin-right: 10px;\n}\n::v-deep .hide-upload div.el-upload {\n display: none;\n transition: all 0.5s;\n}\n::v-deep .hide-upload .el-upload__tip {\n display: none;\n transition: all 0.5s;\n}\n.upload-file-text ::v-deep .el-upload {\n text-align: right;\n}\n.text-align-center ::v-deep .el-upload {\n text-align: center;\n}\n.upload-file.view-only /deep/ .el-upload {\n display: none;\n}\n.upload-file /deep/ .el-upload-list__item.is-ready,\n.upload-file /deep/ .el-upload-list__item.is-uploading {\n display: none !important;\n}\n"]},media:void 0})}),Hn,"data-v-601d6542",false,undefined,!1,de,void 0,void 0);var Kn={install:function(e,t){e.use(D,t),e.use(Z,t),e.use(ee,t),e.use(ae,t),e.component("FormSection",he),e.component("DictTag",Ee),e.component("CommonDialog",be),e.component("RightToolbar",Be),e.use(ge,t)}};export{dt as AppCallbackCom,kt as BytzKeepAlive,Ft as ContentCom,We as DictArrayAddOptionsMixin,Gn as FileUpload,Ln as HeaderCom,mt as IamCallbackCom,Yt as IframeViewCom,Yn as ImportFile,Bn as LayoutIndexCom,lt as LoginCom,zn as MessageListCom,Kn as default,ke as encrypt,Me as getPermission,Ne as getRequest,$e as processEncrypt,Ge as refreshTokenMixin};
|
|
1
|
+
import e from"vue";import{Message as t,MessageBox as n,Notification as o,Loading as i}from"element-ui";import a from"axios";import{saveAs as A}from"file-saver";import r from"@/utils/errorCode";import{blobValidate as s}from"@/utils/commonSettings";import g from"@/config/host";import l from"clipboard";import C from"jsencrypt";import c from"lodash/debounce";import{sm4 as d}from"gm-crypt";import I from"js-md5";import{mapGetters as p,mapState as u,mapActions as m}from"vuex";import{RefreshIcon as h,ArrowLeftIcon as f,ArrowRightIcon as v,HomeIcon as b,CloseCircleIcon as y,ViewListIcon as x,UserCircleIcon as E,PoweroffIcon as w,SettingIcon as _,ChevronDownIcon as B,UserIcon as k}from"tdesign-icons-vue";import{Color as $}from"tvision-color";import{g as S,a as F,i as T}from"./settingColorHelper-ee383e17.js";var D={install:function(e,{componentPath:t,store:n}){e.prototype.$getRouteNameByPageValue=function(e){return n.getters["permission/menuPath"][t[e]]},e.prototype.$changePage=function(e,o={},i={}){const a=n.getters["permission/menuPath"][t[e]];a?this.$router.push({name:a,params:o,query:i}):this.$message.error("您没有该页面的权限!")},e.prototype.$tabClose=function(e,t,o){e?(n.commit("tabRouter/subtractCurrentTabRouter",{path:this.$route.path,routerIdx:n.getters["tabRouter/tabRouterList"].findIndex((e=>e.path===this.$route.path))}),this.$changePage(e,t,o)):this.$router.go(-1)}}};function R(e,t){for(const n in t)try{t[n].constructor===Object?e[n]=R(e[n],t[n]):e[n]=t[n]}catch(o){e[n]=t[n]}return e}class P{constructor(e,t,n){this.label=e,this.value=t,this.raw=n}}const O=["label","name","title"],L=["value","id","uid","key"];function N(e,...t){return t.find((t=>Object.prototype.hasOwnProperty.call(e,t)))}const q={metas:{"*":{request:()=>Promise.resolve([]),responseConverter:function(e,t){const n=e.content instanceof Array?e.content:e;return void 0===n?(console.error(`no dict data of "${t.type}" found in the response`),[]):n.map((e=>function(e,t){const n=N(e,t.labelField,...O),o=N(e,t.valueField,...L);return new P(e[n],e[o],e)}(e,t)))},labelField:"label",valueField:"value"}},DEFAULT_LABEL_FIELDS:O,DEFAULT_VALUE_FIELDS:L};function j(e){R(q,e)}class z{constructor(e){this.type=e.type,this.request=e.request,this.responseConverter=e.responseConverter,this.labelField=e.labelField,this.valueField=e.valueField,this.lazy=!0===e.lazy}}z.parse=function(e){let t=null;return"string"==typeof e?(t=q.metas[e]||{},t.type=e):"object"==typeof e&&(t=e),t=R(q.metas["*"],t),new z(t)};const M={types:[]};function W(t,n){return n.request(n).then((o=>{const{type:i}=n;let a=n.responseConverter(o,n);return a instanceof Array?a.filter((e=>e instanceof P)).length!==a.length&&(console.error("the type of elements in dicts must be DictData"),a=[]):(console.error("the return of responseConverter must be Array.<DictData>"),a=[]),t.type[i].splice(0,Number.MAX_SAFE_INTEGER,...a),a.forEach((n=>{e.set(t.label[i],n.value,n.label)})),a}))}class Y{constructor(){this.owner=null,this.label={},this.type={}}init(t){t instanceof Array&&(t={types:t});const n=R(M,t);if(void 0===n.types)throw new Error("need dict types");const o=[];return this._dictMetas=n.types.map((e=>z.parse(e))),this._dictMetas.forEach((t=>{const{type:n}=t;e.set(this.label,n,{}),e.set(this.type,n,[]),t.lazy||o.push(W(this,t))})),Promise.all(o)}reloadDict(e){const t=this._dictMetas.find((t=>t.type===e));return void 0===t?Promise.reject():W(this,t)}}function U(e,t){j(t),e.mixin({data(){if(void 0===this.$options||void 0===this.$options.dicts||null===this.$options.dicts)return{};const e=new Y;return e.owner=this,{dict:e}},created(){this.dict instanceof Y&&(t.onCreated?.(this.dict),this.dict.init(this.$options.dicts).then((()=>{t.onReady?.(this.dict),this.$nextTick((()=>{this.$emit("dict-ready",this.dict),this.$options.methods&&this.$options.methods.onDictReady instanceof Function&&this.$options.methods.onDictReady.call(this,this.dict)}))})))}})}var Z={install:function(e,{getDicts:t}){e.use(U,{metas:{"*":{labelField:"dictLabel",valueField:"dictValue",request:e=>t(e.type).then((e=>e.data))}}})}};function V(e,t){const n=t.getters&&t.getters["user/permissions"];return!!(e&&e.length>0)&&n.some((t=>"*:*:*"===t||t===e))}function H(e,t){const n=t.getters&&t.getters["user/permissions"];return!!(e&&e.length>0)&&n.some((t=>"admin"===t||t===e))}var X={session:{set(e,t){sessionStorage&&null!=e&&null!=t&&sessionStorage.setItem(e,t)},get:e=>sessionStorage?null==e?null:sessionStorage.getItem(e):null,setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(null!=t)return JSON.parse(t)},remove(e){sessionStorage.removeItem(e)}},local:{set(e,t){localStorage&&null!=e&&null!=t&&localStorage.setItem(e,t)},get:e=>localStorage?null==e?null:localStorage.getItem(e):null,setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(null!=t)return JSON.parse(t)},remove(e){localStorage.removeItem(e)}}};let G;var K={msg(e){t.info(e)},msgError(e){t.error(e)},msgSuccess(e){t.success(e)},msgWarning(e){t.warning(e)},alert(e){n.alert(e,"系统提示")},alertError(e){n.alert(e,"系统提示",{type:"error"})},alertSuccess(e){n.alert(e,"系统提示",{type:"success"})},alertWarning(e){n.alert(e,"系统提示",{type:"warning"})},notify(e){o.info(e)},notifyError(e){o.error(e)},notifySuccess(e){o.success(e)},notifyWarning(e){o.warning(e)},confirm:e=>n.confirm(e,"系统提示",{closeOnClickModal:!1,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}),prompt:e=>n.prompt(e,"系统提示",{closeOnClickModal:!1,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}),loading(e){G=i.service({lock:!0,text:e,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})},closeLoading(){G.close()}};const Q=g.development.API;var J={zip(e,t){a({method:"get",myUrl:Q+e,responseType:"blob",headers:{Authorization:`Bearer ${this.$store.getters["user/token"]}`}}).then((async e=>{if(await s(e.data)){const n=new Blob([e.data],{type:"application/zip"});this.saveAs(n,t)}else this.printErrMsg(e.data)}))},saveAs(e,t,n){A(e,t,n)},async printErrMsg(e){const n=await e.text(),o=JSON.parse(n),i=r[o.code]||o.msg||r.default;t.error(i)}},ee={install(e,{store:t}){e.prototype.$auth=function(e){return{hasPermi:e=>V(e),hasPermiOr:t=>t.some((t=>V(t,e))),hasPermiAnd:t=>t.every((t=>V(t,e))),hasRole:e=>H(e),hasRoleOr:t=>t.some((t=>H(t,e))),hasRoleAnd:t=>t.every((t=>H(t,e)))}}(t),e.prototype.$cache=X,e.prototype.$modal=K,e.prototype.$download=J}};var te={bind(e,t){const{value:n}=t;if(!1===n)return;const o=e.querySelector(".el-dialog__header"),i=e.querySelector(".el-dialog");o.style.cursor="move";const a=i.currentStyle||window.getComputedStyle(i,null);i.style.position="absolute",i.style.marginTop=0;let{width:A}=i.style;A=A.includes("%")?+document.body.clientWidth*(+A.replace(/%/g,"")/100):+A.replace(/\px/g,""),i.style.left=(document.body.clientWidth-A)/2+"px",o.onmousedown=e=>{const t=e.clientX-o.offsetLeft,n=e.clientY-o.offsetTop;let A,r;a.left.includes("%")?(A=+document.body.clientWidth*(+a.left.replace(/%/g,"")/100),r=+document.body.clientHeight*(+a.top.replace(/%/g,"")/100)):(A=+a.left.replace(/\px/g,""),r=+a.top.replace(/\px/g,"")),document.onmousemove=function(e){const o=e.clientX-t,a=e.clientY-n,s=o+A,g=a+r;i.style.left=`${s}px`,i.style.top=`${g}px`},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}}},ne={bind(e){const t=e.querySelector(".el-dialog"),n=document.createElement("div");n.style="width: 5px; background: inherit; height: 80%; position: absolute; right: 0; top: 0; bottom: 0; margin: auto; z-index: 1; cursor: w-resize;",n.addEventListener("mousedown",(n=>{const o=n.clientX-e.offsetLeft,i=t.offsetWidth;document.onmousemove=function(e){e.preventDefault();const n=e.clientX-o;t.style.width=`${i+n}px`},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}),!1),t.appendChild(n)}},oe={bind(e){const t=e.querySelector(".el-dialog"),n=document.createElement("div");n.style="width: 6px; background: inherit; height: 10px; position: absolute; right: 0; bottom: 0; margin: auto; z-index: 1; cursor: nwse-resize;",n.addEventListener("mousedown",(n=>{const o=n.clientX-e.offsetLeft,i=n.clientY-e.offsetTop,a=t.offsetWidth,A=t.offsetHeight;document.onmousemove=function(e){e.preventDefault();const n=e.clientX-o,r=e.clientY-i;t.style.width=`${a+n}px`,t.style.height=`${A+r}px`},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}),!1),t.appendChild(n)}},ie={bind(e,t){switch(t.arg){case"success":e._vClipBoard_success=t.value;break;case"error":e._vClipBoard_error=t.value;break;default:{const n=new l(e,{text:()=>t.value,action:()=>"cut"===t.arg?"cut":"copy"});n.on("success",(t=>{const n=e._vClipBoard_success;n?.(t)})),n.on("error",(t=>{const n=e._vClipBoard_error;n?.(t)})),e._vClipBoard=n}}},update(e,t){"success"===t.arg?e._vClipBoard_success=t.value:"error"===t.arg?e._vClipBoard_error=t.value:(e._vClipBoard.text=function(){return t.value},e._vClipBoard.action=()=>"cut"===t.arg?"cut":"copy")},unbind(e,t){e._vClipboard&&("success"===t.arg?delete e._vClipBoard_success:"error"===t.arg?delete e._vClipBoard_error:(e._vClipBoard.destroy(),delete e._vClipBoard))}};const ae=function(e,{store:t}){e.directive("hasRole",function(e){return{inserted(t,n){const{value:o}=n,i=e.getters&&e.getters["user/userRoles"];if(!(o&&o instanceof Array&&o.length>0))throw new Error('请设置角色权限标签值"');{const e=o;i.some((t=>"admin"===t||e.includes(t)))||t.parentNode?.removeChild(t)}}}}(t)),e.directive("hasPermi",function(e){return{inserted(t,n){const{value:o}=n,i=e.getters&&e.getters["user/permissions"];if(!(o&&o instanceof Array&&o.length>0))throw new Error("请设置操作权限标签值");{const e=o,n=i.some((t=>"*:*:*"===t||e.includes(t)));n||t.parentNode?.removeChild(t)}}}}(t)),e.directive("clipboard",ie),e.directive("dialogDrag",te),e.directive("dialogDragWidth",ne),e.directive("dialogDragHeight",oe)},Ae=(e,t,n)=>(e.includes("?")?e+=`&${t}=${n}`:e+=`?${t}=${n}`,e);async function re(t){return(await e.prototype.$request({url:`/system/app/${t}`,method:"get"})).data}async function se(t){return(await e.prototype.$request({url:"/system/token/exchangeClient",method:"get",params:{appId:t}})).data}var ge={install(e,t){var n;e.prototype.$jumpToApp=(n=t.store,async function(e,t){if(!t)return window.open(Ae(e,"access_token",n.getters["user/token"]));const{appType:o}=await re(t);if("0"===o){const n=await se(t);window.open(Ae(e,"access_token",n))}else window.open(e)})}},le={name:"FormSection",props:{action:{type:String,default:""},loading:{type:Boolean,default:!1},cancelText:{type:String,default:"取消"},saveText:{type:String,default:"保存"},submitText:{type:String,default:"提交"},border:{type:Boolean,default:!0},jumpPath:{type:String,default:""},hideFooter:{type:Boolean,default:!1}},data:()=>({loadingText:"玩命加载中请稍等...."}),computed:{isView(){return"View"===this.action}},methods:{handleCancel(){this.$listeners.cancel?this.$emit("cancel"):this.$tabClose(this.jumpPath)}}};function Ce(e,t,n,o,i,a,A,r,s,g){"boolean"!=typeof A&&(s=r,r=A,A=!1);const l="function"==typeof n?n.options:n;let C;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),o&&(l._scopeId=o),a?(C=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,s(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=C):t&&(C=A?function(e){t.call(this,g(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),C)if(l.functional){const e=l.render;l.render=function(t,n){return C.call(n),e(t,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,C):[C]}return n}const ce="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function de(e){return(e,t)=>function(e,t){const n=ce?t.media||"default":e,o=pe[n]||(pe[n]={ids:new Set,styles:[]});if(!o.ids.has(e)){o.ids.add(e);let n=t.source;if(t.map&&(n+="\n/*# sourceURL="+t.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),o.element||(o.element=document.createElement("style"),o.element.type="text/css",t.media&&o.element.setAttribute("media",t.media),void 0===Ie&&(Ie=document.head||document.getElementsByTagName("head")[0]),Ie.appendChild(o.element)),"styleSheet"in o.element)o.styles.push(n),o.element.styleSheet.cssText=o.styles.filter(Boolean).join("\n");else{const e=o.ids.size-1,t=document.createTextNode(n),i=o.element.childNodes;i[e]&&o.element.removeChild(i[e]),i.length?o.element.insertBefore(t,i[e]):o.element.appendChild(t)}}}(e,t)}let Ie;const pe={};const ue=le;var me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"form-section",class:{"form-section__view-only":e.isView,"no-footer":e.hideFooter},attrs:{"element-loading-text":e.loadingText}},[n("el-card",{staticClass:"box-margin form-section__card",class:{"form-view-hide-star":e.isView,"no-border":!e.border}},[n("div",{staticClass:"form-section__content"},[e._t("default")],2)]),e._v(" "),!e.hideFooter||e.$slots.btn?n("el-row",{staticClass:"submit-btns-box"},[n("div",{staticClass:"border-top"},[e.cancelText?n("el-button",{attrs:{icon:"el-icon-close"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.cancelText)+"\n ")]):e._e(),e._v(" "),e._t("btn"),e._v(" "),e.isView?e._e():[e.saveText?n("el-button",{attrs:{icon:"el-icon-check",type:"primary"},on:{click:function(t){return e.$emit("save","save")}}},[e._v("\n "+e._s(e.saveText)+"\n ")]):e._e(),e._v(" "),e.submitText&&"AuditEdit"!==e.action?n("el-button",{attrs:{icon:"el-icon-check",type:"primary"},on:{click:function(t){return e.$emit("submit","submit")}}},[e._v("\n "+e._s(e.submitText)+"\n ")]):e._e()]],2)]):e._e()],1)};me._withStripped=!0;const he=Ce({render:me,staticRenderFns:[]},(function(e){e&&e("data-v-025721e0_0",{source:'.form-section[data-v-025721e0] {\n height: 100%;\n overflow-y: auto;\n position: relative;\n}\n.form-section.common-content[data-v-025721e0] {\n padding: 0;\n}\n.form-section .el-card.form-section__card[data-v-025721e0] {\n overflow-y: auto;\n height: 100%;\n}\n.form-section .el-card.form-section__card.no-border[data-v-025721e0] {\n border: none;\n}\n.form-section[data-v-025721e0]:not(.no-footer) {\n padding-bottom: 72px;\n}\n.submit-btns-box[data-v-025721e0] {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n border-top: 1px solid #E9E9E9;\n padding: 20px;\n text-align: right;\n}\n.form-section__view-only[data-v-025721e0] .el-form-item__label::before {\n display: none;\n}\n.form-section__view-only[data-v-025721e0] .form-table.el-table .el-form-item.is-required {\n padding-left: 0;\n}\n.form-section__view-only[data-v-025721e0] .form-table.el-table .el-form-item.is-required::before {\n display: none;\n}\n.form-section__view-only[data-v-025721e0] .form-table.el-table .el-form-item span.view-item {\n margin-left: 0;\n margin-top: 0;\n padding: 0 15px;\n}\n:root[theme-mode="dark"] .border-top[data-v-025721e0],\n:root[theme-mode="dark"] .form-section[data-v-025721e0]::before {\n background: var(--td-bg-color-page);\n}\n',map:{version:3,sources:["FormSection.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ;AACA;EACE,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,SAAS;EACT,6BAA6B;EAC7B,aAAa;EACb,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;EACd,aAAa;EACb,eAAe;AACjB;AACA;;EAEE,mCAAmC;AACrC",file:"FormSection.vue",sourcesContent:['.form-section {\n height: 100%;\n overflow-y: auto;\n position: relative;\n}\n.form-section.common-content {\n padding: 0;\n}\n.form-section .el-card.form-section__card {\n overflow-y: auto;\n height: 100%;\n}\n.form-section .el-card.form-section__card.no-border {\n border: none;\n}\n.form-section:not(.no-footer) {\n padding-bottom: 72px;\n}\n.submit-btns-box {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n border-top: 1px solid #E9E9E9;\n padding: 20px;\n text-align: right;\n}\n.form-section__view-only ::v-deep .el-form-item__label::before {\n display: none;\n}\n.form-section__view-only ::v-deep .form-table.el-table .el-form-item.is-required {\n padding-left: 0;\n}\n.form-section__view-only ::v-deep .form-table.el-table .el-form-item.is-required::before {\n display: none;\n}\n.form-section__view-only ::v-deep .form-table.el-table .el-form-item span.view-item {\n margin-left: 0;\n margin-top: 0;\n padding: 0 15px;\n}\n:root[theme-mode="dark"] .border-top,\n:root[theme-mode="dark"] .form-section::before {\n background: var(--td-bg-color-page);\n}\n']},media:void 0})}),ue,"data-v-025721e0",false,undefined,!1,de,void 0,void 0);const fe={name:"CommonDialog",props:{value:{type:Boolean,default:!1},dialogTitle:{type:String,default:"详情"},label:{type:String,default:"打开弹窗"},btn:{type:Object,default:()=>({type:"primary"})},closeOnClickModal:{type:Boolean,default:!1},bodyScroll:{type:Boolean,default:!1},height:{type:String,default:"0"},viewOnly:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},btnType:{type:String,default:""},btnIcon:{type:String,default:""},showClose:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},computed:{visible:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},applyFooterPadding(){return this.$slots.footer}}};var ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.label?n("el-button",e._b({attrs:{icon:e.btnIcon,type:e.btnType,disabled:e.disabled,plain:""},on:{click:function(t){e.visible=!0,e.$emit("open")}}},"el-button",e.btn,!1),[e._v("\n "+e._s(e.label)+"\n ")]):e._e(),e._v(" "),n("el-dialog",e._g(e._b({class:{"common-dialog__body--scroll":e.bodyScroll,"fix-height":"1"===e.height,"common-dialog":!0,"view-only":e.viewOnly,"no-footer":e.noFooter,"apply-footer-padding":e.applyFooterPadding},attrs:{"close-on-click-modal":e.closeOnClickModal,"show-close":e.showClose,visible:e.visible,title:e.dialogTitle,top:e.bodyScroll||"1"===e.height?"80px":"15vh"},on:{"update:visible":function(t){e.visible=t}}},"el-dialog",e.$attrs,!1),e.$listeners),[e.$slots.title?[e._t("title")]:e._e(),e._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"common-dialog__main"},[e._t("default")],2),e._v(" "),e.noFooter?e._e():n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e._t("footer"),e._v(" "),e.viewOnly?e._e():n("el-button",{attrs:{icon:"el-icon-close",loading:e.loading},on:{click:function(t){e.visible=!1,e.$emit("cancel")}}},[e._v("取消")]),e._v(" "),e.viewOnly?e._e():n("el-button",{attrs:{icon:"el-icon-check",loading:e.loading,type:"primary"},on:{click:function(t){return e.$emit("ok")}}},[e._v("确定")])],2)],2)],1)};ve._withStripped=!0;const be=Ce({render:ve,staticRenderFns:[]},(function(e){e&&e("data-v-8f79c986_0",{source:".common-dialog[data-v-8f79c986] .common-dialog__main {\n height: 100%;\n}\n.common-dialog[data-v-8f79c986] .el-dialog__footer {\n padding: 20px;\n border-top: 1px solid #E9E9E9;\n}\n.common-dialog[data-v-8f79c986] .el-dialog__body {\n overflow-y: auto;\n padding: 20px;\n margin: 0;\n}\n.common-dialog[data-v-8f79c986] .form-section,\n.common-dialog[data-v-8f79c986] .el-card__body {\n padding: 0 !important;\n overflow-y: hidden;\n height: auto;\n}\n.common-dialog[data-v-8f79c986] .is-fullscreen .el-dialog__body {\n height: calc(100% - 120px);\n}\n.common-dialog.common-dialog__body--scroll[data-v-8f79c986] .el-dialog__body {\n max-height: calc(100vh - 300px);\n}\n.common-dialog.common-dialog__body--scroll.view-only[data-v-8f79c986] .el-dialog__body,\n.common-dialog.common-dialog__body--scroll.no-footer[data-v-8f79c986] .el-dialog__body {\n max-height: calc(100vh - 200px);\n}\n.common-dialog.fix-height[data-v-8f79c986] {\n /* stylelint-disable-next-line no-descending-specificity */\n}\n.common-dialog.fix-height[data-v-8f79c986] .el-dialog__body {\n height: calc(100vh - 300px);\n}\n.common-dialog.fix-height.view-only[data-v-8f79c986] .el-dialog__body,\n.common-dialog.fix-height.no-footer[data-v-8f79c986] .el-dialog__body {\n height: calc(100vh - 200px);\n}\n.common-dialog.view-only[data-v-8f79c986]:not(.apply-footer-padding) .el-dialog__footer {\n padding: 0px;\n}\n.common-dialog.no-footer[data-v-8f79c986] .is-fullscreen .el-dialog__body,\n.common-dialog.view-only[data-v-8f79c986]:not(.apply-footer-padding) .is-fullscreen .el-dialog__body {\n height: calc(100% - 47px);\n}\n",map:{version:3,sources:["CommonDialog.vue"],names:[],mappings:"AAAA;EACE,YAAY;AACd;AACA;EACE,aAAa;EACb,6BAA6B;AAC/B;AACA;EACE,gBAAgB;EAChB,aAAa;EACb,SAAS;AACX;AACA;;EAEE,qBAAqB;EACrB,kBAAkB;EAClB,YAAY;AACd;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,+BAA+B;AACjC;AACA;;EAEE,+BAA+B;AACjC;AACA;EACE,0DAA0D;AAC5D;AACA;EACE,2BAA2B;AAC7B;AACA;;EAEE,2BAA2B;AAC7B;AACA;EACE,YAAY;AACd;AACA;;EAEE,yBAAyB;AAC3B",file:"CommonDialog.vue",sourcesContent:[".common-dialog /deep/ .common-dialog__main {\n height: 100%;\n}\n.common-dialog /deep/ .el-dialog__footer {\n padding: 20px;\n border-top: 1px solid #E9E9E9;\n}\n.common-dialog /deep/ .el-dialog__body {\n overflow-y: auto;\n padding: 20px;\n margin: 0;\n}\n.common-dialog /deep/ .form-section,\n.common-dialog /deep/ .el-card__body {\n padding: 0 !important;\n overflow-y: hidden;\n height: auto;\n}\n.common-dialog /deep/ .is-fullscreen .el-dialog__body {\n height: calc(100% - 120px);\n}\n.common-dialog.common-dialog__body--scroll /deep/ .el-dialog__body {\n max-height: calc(100vh - 300px);\n}\n.common-dialog.common-dialog__body--scroll.view-only /deep/ .el-dialog__body,\n.common-dialog.common-dialog__body--scroll.no-footer /deep/ .el-dialog__body {\n max-height: calc(100vh - 200px);\n}\n.common-dialog.fix-height {\n /* stylelint-disable-next-line no-descending-specificity */\n}\n.common-dialog.fix-height /deep/ .el-dialog__body {\n height: calc(100vh - 300px);\n}\n.common-dialog.fix-height.view-only /deep/ .el-dialog__body,\n.common-dialog.fix-height.no-footer /deep/ .el-dialog__body {\n height: calc(100vh - 200px);\n}\n.common-dialog.view-only:not(.apply-footer-padding) /deep/ .el-dialog__footer {\n padding: 0px;\n}\n.common-dialog.no-footer /deep/ .is-fullscreen .el-dialog__body,\n.common-dialog.view-only:not(.apply-footer-padding) /deep/ .is-fullscreen .el-dialog__body {\n height: calc(100% - 47px);\n}\n"]},media:void 0})}),fe,"data-v-8f79c986",false,undefined,!1,de,void 0,void 0);const ye={name:"DictTag",props:{options:{type:Array,default:null},value:[Number,String,Array]},computed:{values(){return null!==this.value&&void 0!==this.value?Array.isArray(this.value)?this.value:[String(this.value)]:[]}}};var xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.options,(function(t,o){return[e.values.includes(t.value)?["default"==t.raw.listClass||""==t.raw.listClass?n("span",{key:t.value,class:t.raw.cssClass,attrs:{index:o}},[e._v(e._s(t.label))]):n("el-tag",{key:t.value,class:t.raw.cssClass,attrs:{"disable-transitions":!0,index:o,type:"primary"==t.raw.listClass?"":t.raw.listClass}},[e._v("\n "+e._s(t.label)+"\n ")])]:e._e()]}))],2)};xe._withStripped=!0;const Ee=Ce({render:xe,staticRenderFns:[]},(function(e){e&&e("data-v-0fe8dc64_0",{source:".el-tag + .el-tag[data-v-0fe8dc64] {\n margin-left: 10px;\n}\n",map:{version:3,sources:["DictTag.vue"],names:[],mappings:"AAAA;EACE,iBAAiB;AACnB",file:"DictTag.vue",sourcesContent:[".el-tag + .el-tag {\n margin-left: 10px;\n}\n"]},media:void 0})}),ye,"data-v-0fe8dc64",false,undefined,!1,de,void 0,void 0);const we={name:"RightToolbar",props:{hasSearch:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},backPathName:{type:String,default:""}},data:()=>({value:[],title:"显示/隐藏",open:!1}),created(){Object.keys(this.columns).forEach((e=>{!1===this.columns[e].visible&&this.value.push(parseInt(e,10))}))},methods:{toggleSearch(){this.$emit("update:showSearch",!this.showSearch)},refresh(){this.$emit("queryTable")},dataChange(e){Object.keys(this.columns).forEach((t=>{const n=this.columns[t].key;this.columns[t].visible=!e.includes(n)}))},showColumn(){this.open=!0},goBack(){this.$listeners.back?this.$emit("back"):this.$tabClose(this.backPathName)}}};var _e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"top-right-btn"},[n("el-row",[e.hasSearch?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.showSearch?"隐藏搜索":"显示搜索",placement:"top"}},[n("el-button",{attrs:{circle:"",icon:"el-icon-search"},on:{click:function(t){return e.toggleSearch()}}})],1):e._e(),e._v(" "),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"刷新",placement:"top"}},[n("el-button",{attrs:{circle:"",icon:"el-icon-refresh"},on:{click:function(t){return e.refresh()}}})],1),e._v(" "),e.columns.length>0?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"显隐列",placement:"top"}},[n("el-button",{attrs:{circle:"",icon:"el-icon-menu"},on:{click:function(t){return e.showColumn()}}})],1):e._e(),e._v(" "),e.backPathName||e.$listeners.back?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"返回",placement:"top"}},[n("el-button",{attrs:{circle:"",icon:"el-icon-back"},on:{click:function(t){return e.goBack()}}})],1):e._e()],1),e._v(" "),e.columns.length>0?n("el-dialog",{attrs:{"close-on-click-modal":!1,title:e.title,visible:e.open,"append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[n("el-transfer",{attrs:{titles:["显示","隐藏"],data:e.columns},on:{change:e.dataChange},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1):e._e()],1)};_e._withStripped=!0;const Be=Ce({render:_e,staticRenderFns:[]},(function(e){e&&e("data-v-7a954f48_0",{source:"[data-v-7a954f48] .el-transfer__button {\n border-radius: 50%;\n padding: 12px;\n display: block;\n margin-left: 0;\n}\n[data-v-7a954f48] .el-transfer__button:first-child {\n margin-bottom: 10px;\n}\n.top-right-btn[data-v-7a954f48] {\n flex: 1;\n display: flex;\n justify-content: flex-end;\n}\n.top-right-btn[data-v-7a954f48] .el-button--mini.is-circle {\n width: 40px;\n box-sizing: border-box;\n}\n",map:{version:3,sources:["RightToolbar.vue"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,aAAa;EACb,cAAc;EACd,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,OAAO;EACP,aAAa;EACb,yBAAyB;AAC3B;AACA;EACE,WAAW;EACX,sBAAsB;AACxB",file:"RightToolbar.vue",sourcesContent:["::v-deep .el-transfer__button {\n border-radius: 50%;\n padding: 12px;\n display: block;\n margin-left: 0;\n}\n::v-deep .el-transfer__button:first-child {\n margin-bottom: 10px;\n}\n.top-right-btn {\n flex: 1;\n display: flex;\n justify-content: flex-end;\n}\n.top-right-btn ::v-deep .el-button--mini.is-circle {\n width: 40px;\n box-sizing: border-box;\n}\n"]},media:void 0})}),we,"data-v-7a954f48",false,undefined,!1,de,void 0,void 0);function ke(e){const t=new C;return t.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvGqR2QqERJkFRCD/8i/9\nnDioWOq4xyDzIgWtSJWMmpsOQIC20rxdteVPa6UgJHZm3matHirRkixqFIceXjIf\nK1UZQp8+ivsVqmZS3uCSqVXxHq/Y8aKG3h2ds2b3ddViffpKqFJZOL9Q0zlzYofy\nuwqd5ZnH+ESPUzVYV9qfUF8f9DlLIW2LYrbnAFWGN+OQ3yovsvMxxSTV9V/Yrb6Z\nNtfqiNJkHCPCh01g6WaP1ko1WjUTdFGisa06UJnDHU9Kq/V8AoI3umt2jSnWneO3\nhzkWI1d87Cmyt90kgU+N8f6ld1GFOvxaNW+nuq/e/RJff18tO3V+04m9uzBVkJmT\n+wIDAQAB"),t.encrypt(e)}function $e(e){return function(t){const n=new C;return n.setPublicKey(e||"MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKsr9kM6vJHJb8KgWhY6xVaYCkLEr+QKeuYUoZ2uX3+t4lzbxdf1JeJ2jUs26jWWgkpe3W1UHxXUaapyTG9sFbECAwEAAQ=="),n.encrypt(t)}}const Se="token-expired-alert-box",Fe="api-error-alert-box";let Te,De=[];function Re(e){const t=document.querySelector(`.${e}`);return-1===t?.parentElement?.getAttribute("style")?.indexOf("display: none;")}let Pe=0;const Oe=c((()=>{Te&&Te.close(),Te=null}),300);function Le(){Pe-=1,Pe=Math.max(Pe,0),0===Pe&&Oe()}function Ne(e,t,o,A,r,s,g,l=!0){const C=a.create({baseURL:o,timeout:9e4,withCredentials:!0});return C.interceptors.request.use((e=>{const n=!1===(e.headers||{}).isToken;if(r()&&!n&&(e.headers.Authorization=`Bearer ${r()}`),e.headers["App-Id"]=g,"get"===e.method&&e.params){let n=`${e.url}?${t(e.params)}`;n=n.slice(0,-1),e.params={},e.url=n}if(l){const n=["000000","00000","0000","000","00","0",""],o=`${parseInt(1e6*Math.random())}`,i=new d({key:"30807165ed274e01",mode:"ecb",cipherType:"base64"});e.headers["X-timestamp"]=(new Date).valueOf(),e.headers["X-nonce"]=n[o.length]+o;const a=e.data?JSON.stringify(e.data).replace(/\s/g,""):"";let A=e.url.startsWith("/")?e.url:`/${e.url}`;"get"!==e.method&&e.params&&(A=`${A}?${t(e.params)}`,A=A.slice(0,-1));const r=e.baseURL.endsWith("/workflow")?"/workflow":"";e.headers["X-signature"]=I(i.encrypt(r+A+a+e.headers["X-timestamp"]+e.headers["X-nonce"]))}var o;return!1!==e.headers.showLoading&&(o=e.headers.loadingTarget,0!==Pe||Te||(Te=i.service({lock:!0,text:"数据加载中...",background:"rgba(0, 0, 0, 0.5)",target:o||"body"})),Pe+=1),e}),(e=>{Le(),Promise.reject(e)})),C.interceptors.response.use((t=>{t.headers.ntk&&e.commit("user/setToken",t.headers.ntk);const n=t.config;return n.returnAll||"blob"===t.request.responseType||"arraybuffer"===t.request.responseType?(Le(),n.returnAll?t:t.data):200===t.data.code||200===t.status?(!1!==t.config.headers.showLoading&&Le(),A()&&!1!==t.config.headers.showLoading&&(Pe=1,Le()),t.data):(Le(),t.data)}),(t=>{const{config:o}=t;if(Le(),!o||!o.retry){if(401===t.response.data.code)!Re(Se)&&n.confirm("登录状态已过期,您可以继续留在该页面,或者重新登录","系统提示",{confirmButtonText:"重新登录",cancelButtonText:"取消",customClass:Se,type:"warning"}).then((()=>{s(),e.dispatch("user/logout"),e.dispatch("permission/restore")}));else if(!o.notErrorTip&&!Re(Se)){const e=t.response?.data?.errorInfo?.message||t.response?.data?.msg||t.response?.statusText||"接口报错";Re(Fe)&&De.includes(e)||(De.push(e),n.alert(e,"系统提示",{type:"error",dangerouslyUseHTMLString:!0,customClass:Fe}).finally((()=>{De=De.filter((t=>t!==e))})))}return Promise.reject(t)}if(o.retryCount=o.retryCount||0,o.retryCount>=o.retry)return Promise.reject(t);o.retryCount+=1;return new Promise((e=>{setTimeout((()=>{e({})}),o.retryDelay||1)})).then((()=>C(o)))})),C.interceptors.retry=3,C}async function qe(t={}){const n=await async function(t){return(await e.prototype.$request({url:`/system/app/${t}`,method:"get"})).data}(t.appId),{appPcAccessUrl:o,appType:i}=n,a=o.search(/#\//),A=-1===a?o:o.slice(0,a),r={...t};if("0"===i){const n=await async function(t){if(!t)return;return(await e.prototype.$request({url:"/system/token/exchangeClient",method:"get",params:{appId:t}})).data}(t.appId);r.access_token=n}r.action="Audit",r.url="task";const s=new URL(`${A}?${new URLSearchParams(r)}`),g=-1===a?s.toString():`${s.origin}${s.pathname?s.pathname:"/"}#/${s.search}`;window.open(g,"_self")}let je=!0;let ze=null;async function Me({NProgress:e,getStore:t,to:n,from:o,next:i}){if("/homePage/todoList"===n.path&&Object.prototype.hasOwnProperty.call(n.query,"taskId")){const{query:e}=n;return qe(e),void i({path:o.path})}if(function(e,t){return!!e.query.access_token&&("/appCallback"===e.path?(t(),!0):(t({path:"/appCallback",query:{...e.query,redirect:e.path}}),!0))}(n,i))return void(je=!1);const a=t();if(e.start(),n.query.isIframeView&&function(e){const t="dynamic-scrollbar-style";let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.innerHTML=`\n /* 你可以为所有滚动条设置样式,或限定某个元素 */\n ::-webkit-scrollbar {\n width: ${e} !important;\n height: ${e} !important;\n }\n `}("3px"),"/login"===n.path&&Object.prototype.hasOwnProperty.call(n.query,"srid"))return i(),void e.done();if(0===n.path.indexOf("/iamCallback")||"/logout"===n.path||"/appCallback"===n.path)i();else if(Object.prototype.hasOwnProperty.call(n.query,"srid"))await a.commit("user/removeToken"),i({path:"/login",query:{...n.query}});else{je&&!window.performance.navigation?.type&&(await a.dispatch("user/firstAccessApp"),je=!1);if(a.getters["user/token"]){const t=a.getters["user/roles"];if(t&&t.length>0&&a.getters["permission/routers"].length>0)"/login"===n.path||"/"===n.path||"/404"===n.path&&"/404"!==ze?(n.query.redirect?i(n.query.redirect):a.getters["user/showHomeDrag"]&&a.getters["permission/hasHomePage"]?i({path:"/homePage/index"}):i(ze),e.done()):i();else try{"/login"!==o.path&&await a.dispatch("user/getUserInfo",!0),await a.dispatch("permission/initRoutes"),ze=a.getters["permission/defaultTo"],i({...n})}catch(t){await a.commit("user/removeToken"),i(`/login?redirect=${n.fullPath}`),e.done()}}else-1!==a.getters["permission/whiteListRouters"].indexOf(n.path)?i():"/"===n.path&&ze?i(ze):"/"===n.path&&"/iamCallback"===window.location.pathname?window.location.href=`/#/iamCallback${window.location.search}`:n.query.skipLogin?i():i(`/login?redirect=${n.fullPath}`),e.done()}}const We={data:()=>({items:[]}),created(){this.$on("dict-ready",(()=>{this.items.forEach((e=>{e.dict&&this.dict?.type[e.dict]&&this.$set(e,"options",this.dict.type[e.dict].map((e=>({label:e.label,value:e.value}))))}))}))}},Ye=["webkit","moz","ms","o"];function Ue(){if("hidden"in document)return"hidden";for(let e=0;e<Ye.length;e++)if(`${Ye[e]}Hidden`in document)return`${Ye[e]}Hidden`;return null}let Ze=null;const Ve=Ue(),He=function(e=Ue()){return`${e.replace(/[H|h]idden/,"")}visibilitychange`}(Ve);let Xe=null;var Ge={data:()=>({needRefreshToken:!0}),computed:{isInIframe:function(){return window.self!==window.top}},watch:{"$route.path":{handler:function(e){this.needRefreshToken&&("/login"===e&&this.clearTokenInfo(),this.needTime(e)?Ze||this.startTiming():this.stopTiming())},immediate:!0}},mounted(){this.handleWindowTab()},beforeDestroy(){this.stopTiming(),document.removeEventListener(He,this.windowTabActive,!1)},methods:{needTime:function(e=this.$route.path){return!["/login","/"].includes(e)},handleWindowTab:function(){this.needRefreshToken&&Ve&&document.addEventListener(He,this.windowTabActive,!1)},windowTabActive:function(){if("visible"!==document[function(){if("visibilityState"in document)return"visibilityState";for(let e=0;e<Ye.length;e++)if(`${Ye[e]}VisibilityState`in document)return`${Ye[e]}VisibilityState`;return null}()])return!1;this.refreshToken().then((()=>{this.needTime()&&this.startTiming()})).catch((e=>{e&&"noRefresh"!==e.message&&console.error("refresnToken:",e)}))},getRequestData:function(){const e={},t=this.$store.getters["user/userInfo"];return t?.userName&&(e.username=t.userName,!1===this.localIsStoreUser()&&this.setLocalToStoreToken()),this.$route.query.srid&&(e.srid=this.$route.query.srid),e.token=this.getToken(),e},refreshToken:function(){return this.getToken()?this.$request.post("/auth/checkAndRefreshToken"+(this.$route.query.srid?`?srid=${this.$route.query.srid}`:""),{...this.getRequestData()},{headers:{showLoading:!1}}).then(this.handleRequestResult):(this.stopTiming(),Promise.reject(new Error("noRefresh")))},handleRequestResult:function({data:e}){if(this.isInIframe)e.newToken&&this.$store.commit("user/setToken",e.newToken);else if(e.tokenInvalid)this.reloadWindow(e.message||"token 无效","确定",(()=>{this.$route.push("/login")}));else if(e.redirectUrl)this.reloadWindow("已在其他页面登录,页面将重新载入","确定",(()=>{window.location.href=this.setComplateRedirectUrl(e)}));else if(e.refreshTokenExpired){const e=this.refreshTokenData.proxy[this.refreshTokenData.env].APP_ID,t=this.localIsStoreUser();e&&"$system$"!==e||!1===t||!localStorage.getItem(this.refreshTokenData.TOKEN_NAME)||this.$store.getters["user/token"]===localStorage.getItem(this.refreshTokenData.TOKEN_NAME)?(this.$store.commit("user/removeToken"),this.reloadWindow("已在其它地方登录或登出","重新登录")):this.reloadWindow("已在其他页面重新登录,页面将重新载入")}else e.tokenExpired?"/login"!==this.$route.path?this.reloadWindow("登录状态已过期","重新登录",(()=>{this.$store.dispatch("user/logout")})):this.$store.commit("user/removeToken"):e.userChanged?"/login"===this.$route.path?this.reloadWindow("已在其他页面登录,页面将重新载入","确定",(()=>{this.setLocalToStoreToken(),this.$router.push(this.$route.query.redirect||"/homePage/index")})):this.reloadWindow(`登录用户已改变【新用户为:${e.newUsername}】,页面将重新载入`):e.tenantChanged?(this.$store.commit("user/setToken",e.newToken),this.reloadWindow("租户已改变,页面将重新载入")):e.newToken&&this.$store.commit("user/setToken",e.newToken)},reloadWindow:function(e,t="确定",n=()=>window.location.reload()){const o=document.querySelector(".auto-refresh-token-alert-box");o?this.refreshTip(o,e,t):this.$alert(e,"系统提示",{type:"warning",showClose:!1,confirmButtonText:t,closeOnClickModal:!1,customClass:"auto-refresh-token-alert-box",callback:()=>{(Xe||n)()}})},refreshTip:function(e,t,n,o){e.querySelector(".el-message-box__message").innerHTML=`<p>${t}</p>`,e.querySelector(".el-button").innerHTML=`<span>${n}</span>`,Xe=o},startTiming:function(){Ze&&clearInterval(Ze),Ze=setInterval((()=>{this.refreshToken()}),3e5)},stopTiming:function(){Ze&&(clearInterval(Ze),Ze=null)},clearTokenInfo:function(){this.$store.commit("user/removeToken"),this.$store.commit("user/setUserInfo")},getToken:function(){return this.$store.getters["user/token"]||localStorage.getItem(this.refreshTokenData.TOKEN_NAME)},setComplateRedirectUrl:function(e){let t;return t="development"===this.refreshTokenData.env?`${window.location.origin}${this.refreshTokenData.proxy[this.refreshTokenData.env].API}`:this.refreshTokenData.proxy[this.refreshTokenData.env].API,t=`${t}/auth${e.redirectUrl}`,t},localIsStoreUser:function(){const e=localStorage.getItem(this.refreshTokenData.USER_NAME);return e&&this.$store.getters["user/userInfo"]?.userName===e},setLocalToStoreToken:function(){localStorage.getItem(this.refreshTokenData.TOKEN_NAME)&&this.$store.commit("user/setToken",localStorage.getItem(this.refreshTokenData.TOKEN_NAME))}}};const Ke={props:{loginContent:{type:Object,default:()=>({})},codeStatus:{type:Boolean,default:!1}},methods:{goCallBack(){this.$request.get("/auth/getCorpOauthUrl",{params:{redirect:this.$route.query.redirect,srid:this.$route.query.srid}}).then((e=>{window.location.href=e.data}))}}};var Qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"first-tab-body",style:e.loginContent.hideCompanyLoginBodyHeight?"":"height: 375px;"},[e.loginContent.hideCompanyLoginLogo?e._e():n("div",{staticClass:"logo-img"}),e._v(" "),e.loginContent.hideCompanyLoginContent?e._e():n("div",{staticClass:"company-name"},[n("div",{staticClass:"chinese-name"},[e._v("\n "+e._s(e.loginContent.loginCompanyChineseName)+"\n ")]),e._v(" "),n("div",{staticClass:"english-name"},[e._v("\n "+e._s(e.loginContent.loginCompanyEnglishName)+"\n ")])]),e._v(" "),e.codeStatus?n("t-button",{staticClass:"login__submit-btn",attrs:{block:"",size:"large"},on:{click:e.goCallBack}},[e._v("\n "+e._s(e.loginContent.loginCompanyBtn)+"\n ")]):e._e()],1)};Qe._withStripped=!0;const Je=Ce({render:Qe,staticRenderFns:[]},(function(e){e&&e("data-v-86c5adf0_0",{source:".first-tab-body .logo-img[data-v-86c5adf0] {\n width: 107px;\n height: 95px;\n background-size: 107px 95px;\n}\n.first-tab-body[data-v-86c5adf0] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.company-name[data-v-86c5adf0] {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px 0 30px;\n flex: 1;\n}\n.chinese-name[data-v-86c5adf0] {\n font-size: 28px;\n font-weight: 500;\n height: 33px;\n line-height: 33px;\n}\n.english-name[data-v-86c5adf0] {\n font-size: 22px;\n font-weight: 500;\n height: 28px;\n line-height: 28px;\n margin-top: 5px;\n}\n.login-btn[data-v-86c5adf0] {\n width: 100%;\n}\n",map:{version:3,sources:["ComponentsCompanyLogin.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,YAAY;EACZ,2BAA2B;AAC7B;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,oBAAoB;EACpB,OAAO;AACT;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,YAAY;EACZ,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,WAAW;AACb",file:"ComponentsCompanyLogin.vue",sourcesContent:[".first-tab-body .logo-img {\n width: 107px;\n height: 95px;\n background-size: 107px 95px;\n}\n.first-tab-body {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.company-name {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px 0 30px;\n flex: 1;\n}\n.chinese-name {\n font-size: 28px;\n font-weight: 500;\n height: 33px;\n line-height: 33px;\n}\n.english-name {\n font-size: 22px;\n font-weight: 500;\n height: 28px;\n line-height: 28px;\n margin-top: 5px;\n}\n.login-btn {\n width: 100%;\n}\n"]},media:void 0})}),Ke,"data-v-86c5adf0",false,undefined,!1,de,void 0,void 0);const et={name:"AppInfo",props:{loginContent:{type:Object,default:()=>({})},appIcon:{type:String,default:""}},data:function(){return{footerMessage:`${this.loginContent.loginPanelFooter.slice(-4)}:${this.loginContent.loginPanelFooter.slice(0,-4)}`,footerRecordNo:this.loginContent.recordNo,showInfo:this.$proxyEnv.showInfo}}};var tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login__app-info"},[e._m(0),e._v(" "),n("img",{attrs:{src:e.appIcon}}),e._v(" "),e.showInfo?n("div",{staticClass:"login__footer"},[n("span",[e._v(e._s(e.footerMessage))]),e._v(" "),n("span",[e._v(e._s(e.footerRecordNo))])]):e._e()])};tt._withStripped=!0;const nt={phone:[{required:!0,message:"手机号必填",type:"error"}],username:[{required:!0,message:"账号必填",type:"error"}],password:[{required:!0,message:"密码必填",type:"error"}],code:[{required:!0,message:"验证码必填",type:"error"}],corpOtpCode:[{required:!0,message:"动态口令必填",type:"error"}],captcha:[{required:!0,message:"图形验证码必填",type:"error"}]};const ot={name:"Login",components:{ComponentsCompanyLogin:Je,ComponentsappInfo:Ce({render:tt,staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"desc"},[n("p",{staticClass:"title"},[e._v("\n 移动端H5访问链接\n ")]),e._v(" "),n("p",{staticClass:"sub-title"},[e._v("\n 请用手机App扫右方二维码,进行移动\n 端H5界面的访问。\n ")])])}]},(function(e){e&&e("data-v-16650ef8_0",{source:'.login__app-info[data-v-16650ef8] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n}\n.login__app-info[data-v-16650ef8]::before {\n content: "";\n display: inline-block;\n position: absolute;\n height: 1.33px;\n background-color: #EEEEEE;\n top: -8px;\n left: 48px;\n right: 48px;\n}\n.login__app-info img[data-v-16650ef8] {\n width: 122px;\n height: 144px;\n}\n.login__app-info .desc[data-v-16650ef8] {\n flex: 1;\n}\n.login__app-info .desc .title[data-v-16650ef8] {\n font-size: 20px;\n line-height: 59.55px;\n letter-spacing: 1px;\n}\n.login__app-info .desc .sub-title[data-v-16650ef8] {\n font-size: 14px;\n line-height: 28px;\n letter-spacing: 0.4px;\n color: #909093;\n margin-bottom: 28px;\n}\n.login__app-info .login__footer[data-v-16650ef8] {\n position: fixed;\n bottom: 0;\n padding-bottom: 10px;\n width: 100vw;\n left: 0;\n right: 0;\n display: flex;\n justify-content: center;\n font-size: 14px;\n line-height: 45.55px;\n letter-spacing: 0.4px;\n color: #779BF0;\n}\n.login__app-info .login__footer span + span[data-v-16650ef8] {\n margin-left: 24px;\n}\n',map:{version:3,sources:["ComponentsAppInfo.vue","C:\\Users\\yuyang\\Desktop\\work\\qd\\platform-frontend-libs\\packages\\login\\ComponentsAppInfo.vue"],names:[],mappings:"AAAA;EACE,aAAa;EACb,8BAA8B;EAC9B,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,qBAAqB;EACrB,kBAAkB;EAClB,cAAc;EACd,yBAAyB;EACzB,SAAS;EACT,UAAU;EACV,WAAW;AACb;AACA;EACE,YAAY;EACZ,aAAa;AACf;AACA;EACE,OAAO;AACT;AACA;EACE,eAAe;EACf,oBAAoB;EACpB,mBAAmB;AACrB;AACA;EACE,eAAe;EACf,iBAAiB;EACjB,qBAAqB;EACrB,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,eAAe;EACf,SAAS;EACT,oBAAoB;EACpB,YAAY;EACZ,OAAO;EACP,QAAQ;EACR,aAAa;ECCf,uBAAA;EACA,eAAA;EACA,oBAAA;EACA,qBAAA;EACA,cAAA;ADCA;ACCA;EACA,iBAAA;AACA",file:"ComponentsAppInfo.vue",sourcesContent:['.login__app-info {\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n}\n.login__app-info::before {\n content: "";\n display: inline-block;\n position: absolute;\n height: 1.33px;\n background-color: #EEEEEE;\n top: -8px;\n left: 48px;\n right: 48px;\n}\n.login__app-info img {\n width: 122px;\n height: 144px;\n}\n.login__app-info .desc {\n flex: 1;\n}\n.login__app-info .desc .title {\n font-size: 20px;\n line-height: 59.55px;\n letter-spacing: 1px;\n}\n.login__app-info .desc .sub-title {\n font-size: 14px;\n line-height: 28px;\n letter-spacing: 0.4px;\n color: #909093;\n margin-bottom: 28px;\n}\n.login__app-info .login__footer {\n position: fixed;\n bottom: 0;\n padding-bottom: 10px;\n width: 100vw;\n left: 0;\n right: 0;\n display: flex;\n justify-content: center;\n font-size: 14px;\n line-height: 45.55px;\n letter-spacing: 0.4px;\n color: #779BF0;\n}\n.login__app-info .login__footer span + span {\n margin-left: 24px;\n}\n','<template>\r\n <div class="login__app-info">\r\n <div class="desc">\r\n <p class="title">\r\n 移动端H5访问链接\r\n </p>\r\n <p class="sub-title">\r\n 请用手机App扫右方二维码,进行移动\r\n 端H5界面的访问。\r\n </p>\r\n </div>\r\n <img :src="appIcon">\r\n <div v-if="showInfo" class="login__footer">\r\n <span>{{ footerMessage }}</span>\r\n <span>{{ footerRecordNo }}</span>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n\r\nexport default {\r\n name: "AppInfo",\r\n props: {\r\n loginContent: {\r\n type: Object,\r\n default: () => ({})\r\n },\r\n appIcon: {\r\n type: String,\r\n default: ""\r\n }\r\n },\r\n data: function() {\r\n return {\r\n // 将版权所有提到前面并添加冒号\r\n footerMessage: `${this.loginContent.loginPanelFooter.slice(-4)}:${this.loginContent.loginPanelFooter.slice(0, -4)}`,\r\n footerRecordNo: this.loginContent.recordNo,\r\n showInfo: this.$proxyEnv.showInfo\r\n };\r\n }\r\n};\r\n<\/script>\r\n<style scoped lang="less">\r\n.login__app-info {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n position: relative;\r\n\r\n &::before {\r\n content: "";\r\n display: inline-block;\r\n position: absolute;\r\n height: 1.33px;\r\n background-color: #EEEEEE;\r\n top: -8px;\r\n left: 48px;\r\n right: 48px;\r\n }\r\n\r\n img {\r\n width: 122px;\r\n height: 144px;\r\n }\r\n\r\n .desc {\r\n flex: 1;\r\n\r\n .title {\r\n font-size: 20px;\r\n line-height: 59.55px;\r\n letter-spacing: 1px;\r\n }\r\n\r\n .sub-title {\r\n font-size: 14px;\r\n line-height: 28px;\r\n letter-spacing: 0.4px;\r\n color: #909093;\r\n margin-bottom: 28px;\r\n }\r\n }\r\n\r\n .login__footer {\r\n position: fixed;\r\n bottom: 0;\r\n padding-bottom: 10px;\r\n width: 100vw;\r\n left: 0;\r\n right: 0;\r\n display: flex;\r\n justify-content: center;\r\n font-size: 14px;\r\n line-height: 45.55px;\r\n letter-spacing: 0.4px;\r\n color: #779BF0;\r\n\r\n span + span {\r\n margin-left: 24px;\r\n }\r\n }\r\n}\r\n</style>']},media:void 0})}),et,"data-v-16650ef8",false,undefined,!1,de,void 0,void 0)},props:{loginContent:{type:Object,default:()=>({})},apis:{type:Object,default:()=>({})},icons:{type:Object,default:()=>({})}},data(){const e=this.$proxyEnv.LOGIN_TYPES;return{codeUrl:"",codeType:"text",codeIntranet:!1,tabStyle:this.loginContent.theme,FORM_RULES:nt,type:"password",tipTitle:"尊敬的用户:",tipMessage:"内网环境下可点击统一认证按钮切换统一用户认证方式登录系统;亦可以在本平台输入信息,点击登录按钮登录。",formData:{phone:"",username:"",password:"",corpOtpCode:"",checked:!1,code:"",uuid:"",rememberMe:!1,captcha:""},showPsw:!1,countDown:0,intervalTimer:null,captchaOnOff:!0,tabValue:"password"===e[0]?"password":"corp",loginWayChoose:e,showInfo:this.$proxyEnv.showInfo,loading:!1,state:{time:60,sendBtn:!1},timer:null}},watch:{tabValue:{handler(){this.getCode()},immediate:!0}},created(){if(this.getCheck(),document.documentElement.setAttribute("theme-mode",localStorage.getItem("pageMode")),"/"===this.$route.query.redirect){const e={...this.$route.query};return delete e.redirect,void this.$router.replace({name:this.$route.name,query:e,params:this.$route.params})}},beforeDestroy(){clearInterval(this.intervalTimer),clearTimeout(this.timer)},methods:{getCaptcha(e){if(e.preventDefault(),this.formData.username&&this.formData.password&&this.formData.captcha){this.state.sendBtn=!0;const e=window.setInterval((()=>{this.state.time-=1,this.state.time<=0&&(this.state.time=60,this.state.sendBtn=!1,window.clearInterval(e))}),1e3);this.apis.getCodeMessage({username:ke(this.formData.username),password:ke(this.formData.password),uuid:this.formData.uuid,captcha:this.formData.captcha}).then((t=>{t&&200===t.code?this.$message.info("验证码发送成功"):202===t.code&&(this.$emit("tab-show",this.formData.username),clearInterval(e),this.state.time=60,this.state.sendBtn=!1)})).catch((t=>{t.code||(this.state.sendBtn=!0,this.$alert("请检查当前网络情况","提示",{confirmButtonText:"确定",type:"error"})),clearInterval(e),this.state.time=60,this.state.sendBtn=!1}))}else this.$message.error("请先输入用户名、密码和图片验证码!")},getCheck(){a.get(`${window.location.origin}/check`).then((e=>{this.codeIntranet=e.data.data.isIntranet}))},getCode(){this.apis.getCodeImg().then((e=>{this.codeType=e.data.type,this.codeUrl=`data:image/gif;base64,${e.data.img}`,this.captchaOnOff=void 0===e.data.captchaOnOff||e.data.captchaOnOff,(this.captchaOnOff||"corp"===this.tabValue)&&(this.formData.uuid=e.data.uuid)})),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.getCode()}),6e5)},switchType(e){this.type=e,this.$refs.form.reset()},async onSubmit({validateResult:e,firstError:t}){if(!0===e){"password"===this.tabValue?this.$set(this.formData,"internal",!1):this.$set(this.formData,"internal",!0),this.checkUrl();const e={...this.formData,submitUsername:ke(this.formData.username),submitPassword:ke(this.formData.password)};this.$store.dispatch("user/login",e).catch((e=>{const t=e.response?.data?.errorInfo?.message||e.response?.data?.msg||e.response?.statusText||"接口报错";this.$alert(t,"系统提示",{type:"error",customClass:"api-error-alert-box",callback:()=>{("text"!==this.codeType||"corp"===this.tabValue&&!this.loginWayChoose.includes("corp_oauth"))&&this.getCode()}}),this.getCode()}))}else this.$message.warning(t)},checkUrl(){const e=window.location.hash.split("?")[1];if(e){const t=new URLSearchParams(e),n=Object.fromEntries(t.entries());n.srid&&this.$set(this.formData,"srid",n.srid)}},handleCounter(){this.countDown=60,this.intervalTimer=setInterval((()=>{this.countDown>0?this.countDown-=1:(clearInterval(this.intervalTimer),this.countDown=0)}),1e3)}}};var it=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("t-form",{ref:"form",staticClass:"login-form",class:["item-container","login-"+e.type,"normal"===e.tabStyle?"login-form-normal":""],style:{"--login-panel-body-padding":e.loginContent.loginPanlBodyPadding},attrs:{data:e.formData,rules:e.FORM_RULES,"label-width":"0"},on:{submit:e.onSubmit}},[n("t-tabs",{class:"normal"===e.tabStyle?"tab-normal":"",attrs:{value:e.tabValue,theme:e.tabStyle},on:{change:function(t){return e.tabValue=t}}},[n("t-tab-panel",{attrs:{value:"corp",label:"normal"===e.tabStyle?"内部用户登录":"内部人员登录"}},[e.loginWayChoose.includes("corp_oauth")?n("components-company-login",{style:{padding:e.loginContent.loginPanlBodyPadding},attrs:{"code-status":e.codeIntranet,"login-content":e.loginContent}}):n("t-card",{attrs:{bordered:!1}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.codeIntranet,expression:"codeIntranet"}],staticStyle:{"margin-bottom":"5px"}},[n("t-form-item",{staticStyle:{color:"red",margin:"0"}},[e._v("\n "+e._s(e.tipTitle)+"\n ")]),e._v(" "),n("t-form-item",{staticClass:"tip-class"},[e._v("\n "+e._s(e.tipMessage)+"\n ")])],1),e._v(" "),n("t-form-item",{attrs:{name:"username"}},[n("t-input",{attrs:{size:"large",placeholder:"请输入账号"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.userName}})]},proxy:!0}],null,!1,1057614323),model:{value:e.formData.username,callback:function(t){e.$set(e.formData,"username",t)},expression:"formData.username"}})],1),e._v(" "),n("t-form-item",{attrs:{name:"password"}},[n("t-input",{key:"password",attrs:{size:"large",type:e.showPsw?"text":"password",clearable:"",placeholder:"请输入登录密码"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.password}})]},proxy:!0},{key:"suffix-icon",fn:function(){return[e.showPsw?n("browse-icon",{key:"browse",on:{click:function(t){e.showPsw=!e.showPsw}}}):n("browse-off-icon",{key:"browse-off",on:{click:function(t){e.showPsw=!e.showPsw}}})]},proxy:!0}],null,!1,152179460),model:{value:e.formData.password,callback:function(t){e.$set(e.formData,"password",t)},expression:"formData.password"}})],1),e._v(" "),n("t-form-item",{staticClass:"captcha",attrs:{name:"captcha"}},[n("t-input",{key:"captcha",staticStyle:{width:"65%"},attrs:{"auto-complete":"off",placeholder:"请输入图形验证码",clearable:"",size:"large"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.captcha}})]},proxy:!0}],null,!1,2266774473),model:{value:e.formData.captcha,callback:function(t){e.$set(e.formData,"captcha",t)},expression:"formData.captcha"}}),e._v(" "),n("div",{staticClass:"login-code",staticStyle:{width:"33%","padding-top":"2px"}},[n("img",{staticClass:"login-code-img",attrs:{src:e.codeUrl},on:{click:e.getCode}})])],1),e._v(" "),n("t-form-item",{staticClass:"verification-code",attrs:{name:"corpOtpCode"}},[n("t-input",{key:"corpOtpCode",attrs:{size:"large",placeholder:"请输入动态口令",clearable:""},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.verificationCode}})]},proxy:!0}],null,!1,2738210289),model:{value:e.formData.corpOtpCode,callback:function(t){e.$set(e.formData,"corpOtpCode",t)},expression:"formData.corpOtpCode"}})],1),e._v(" "),n("div",{staticClass:"check-container remember-pwd"},[n("t-form-item",{staticClass:"btn-container",staticStyle:{width:"100%"}},[n("t-button",{staticClass:"login__submit-btn",attrs:{block:"",size:"large",type:"submit"}},[e.loading?n("span",[e._v("登 录 中...")]):n("span",{staticStyle:{color:"#FFFFFF"}},[e._v("登 录")])])],1)],1),e._v(" "),n("components-company-login",{attrs:{"code-status":e.codeIntranet,"login-content":e.loginContent}})],1)],1),e._v(" "),n("t-tab-panel",{attrs:{value:"password",label:"normal"===e.tabStyle?"外部用户登录":"外部人员登录"}},[n("t-card",{attrs:{bordered:!1}},[n("t-form-item",{attrs:{name:"username"}},[n("t-input",{attrs:{size:"large",placeholder:"请输入账号"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.userName}})]},proxy:!0}]),model:{value:e.formData.username,callback:function(t){e.$set(e.formData,"username",t)},expression:"formData.username"}})],1),e._v(" "),n("t-form-item",{attrs:{name:"password"}},[n("t-input",{key:"password",attrs:{size:"large",type:e.showPsw?"text":"password",clearable:"",placeholder:"请输入登录密码"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.password}})]},proxy:!0},{key:"suffix-icon",fn:function(){return[e.showPsw?n("browse-icon",{key:"browse",on:{click:function(t){e.showPsw=!e.showPsw}}}):n("browse-off-icon",{key:"browse-off",on:{click:function(t){e.showPsw=!e.showPsw}}})]},proxy:!0}]),model:{value:e.formData.password,callback:function(t){e.$set(e.formData,"password",t)},expression:"formData.password"}})],1),e._v(" "),n("t-form-item",{staticClass:"captcha",attrs:{name:"captcha"}},[n("t-input",{key:"captcha",staticStyle:{width:"65%"},attrs:{"auto-complete":"off",placeholder:"请输入图形验证码",clearable:"",size:"large"},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.captcha}})]},proxy:!0}]),model:{value:e.formData.captcha,callback:function(t){e.$set(e.formData,"captcha",t)},expression:"formData.captcha"}}),e._v(" "),n("div",{staticClass:"login-code",staticStyle:{width:"33%","padding-top":"2px"}},[n("img",{staticClass:"login-code-img",attrs:{src:e.codeUrl},on:{click:e.getCode}})])],1),e._v(" "),n("t-form-item",{staticClass:"captcha",attrs:{name:"code"}},[n("t-input",{key:"code",staticStyle:{width:"52%"},attrs:{"auto-complete":"off",placeholder:"请输入验证码",size:"large",clearable:""},scopedSlots:e._u([{key:"prefix-icon",fn:function(){return[n("img",{attrs:{src:e.icons.verificationCode}})]},proxy:!0}]),model:{value:e.formData.code,callback:function(t){e.$set(e.formData,"code",t)},expression:"formData.code"}}),e._v(" "),n("div",{staticClass:"login-code"},["text"===e.codeType?n("el-button",{staticStyle:{"min-width":"112px"},attrs:{size:"large",disabled:e.state.sendBtn},domProps:{textContent:e._s(e.state.sendBtn?e.state.time+" s":"获取验证码")},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.getCaptcha.apply(null,arguments)}}}):"math"===e.codeType||"char"===e.codeType?n("img",{staticClass:"code-image",attrs:{src:e.codeUrl},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.getCode.apply(null,arguments)}}}):e._e()],1)],1),e._v(" "),n("t-form-item",{staticClass:"btn-container"},[n("t-button",{staticClass:"login__submit-btn",attrs:{block:"",size:"large",type:"submit"}},[e.loading?n("span",[e._v("登 录 中...")]):n("span",[e._v("登 录")])])],1)],1)],1)],1),e._v(" "),e.loginContent.loginPanelFooter&&!e.loginContent.showAppInfo&&e.showInfo?n("div",{staticClass:"login-panel-footer"},[n("span",{staticClass:"border-line"}),e._v(" "),n("span",{staticClass:"content"},[e._v(e._s(e.loginContent.loginPanelFooter))]),e._v(" "),n("span",{staticClass:"border-line"})]):e._e(),e._v(" "),e.loginContent.showAppInfo?n("componentsapp-info",{style:{padding:e.loginContent.loginPanlBodyPadding},attrs:{"app-icon":e.icons.appCode,"login-content":e.loginContent}}):e._e()],1)};it._withStripped=!0;const at=Ce({render:it,staticRenderFns:[]},(function(e){e&&e("data-v-36b26878_0",{source:".login-form[data-v-36b26878] {\n border-radius: 6px;\n margin-top: 15px;\n background: #FFFFFF;\n width: 400px;\n padding: 3px;\n border: 3px solid #FFFFFF;\n}\n.login-form-normal[data-v-36b26878] {\n padding: 0;\n}\n.tip-class[data-v-36b26878] {\n color: red;\n text-indent: 2em;\n}\n.t-input[data-v-36b26878] {\n height: 38px;\n}\n.input-icon[data-v-36b26878] {\n height: 39px;\n width: 14px;\n margin-left: 2px;\n}\n.login-tip[data-v-36b26878] {\n font-size: 13px;\n text-align: center;\n color: #BFBFBF;\n}\n.login-code-img[data-v-36b26878] {\n border-radius: 2px;\n height: 38px;\n width: 100%;\n}\n[data-v-36b26878] .t-tabs__nav-scroll .t-tabs__nav-item {\n padding-left: 0;\n padding-right: 0;\n width: 194px;\n justify-content: center;\n border: none;\n}\n[data-v-36b26878] .t-tabs__nav--card .t-tabs__nav-item {\n background-color: #8080FF;\n color: #FFFFFF;\n}\n[data-v-36b26878] .t-card__body {\n padding: var(--login-panel-body-padding);\n}\n[data-v-36b26878] .t-is-active {\n color: #000000 !important;\n}\n[data-v-36b26878] .captcha .t-form__controls-content {\n display: flex;\n}\n[data-v-36b26878] .captcha .t-form__controls-content .t-input__wrap {\n flex: 1;\n}\n[data-v-36b26878] .captcha .t-form__controls-content .login-code {\n margin-left: 10px;\n}\n[data-v-36b26878] .captcha .t-form__controls-content .login-code .code-image {\n min-width: 112px;\n height: 4.5vh;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n[data-v-36b26878] .tab-normal .t-tabs__nav-container {\n padding: 15px 0;\n}\n[data-v-36b26878] .tab-normal .t-tabs__nav-container .t-tabs__nav-item {\n font-size: 20px;\n flex: 1;\n}\n[data-v-36b26878] .tab-normal .t-tabs__bar {\n width: 50px !important;\n margin-left: 20%;\n}\n[data-v-36b26878] .tab-normal .t-tabs__nav-wrap {\n flex: 1;\n padding-bottom: 20px;\n border-bottom: 1px solid #D8D8D8;\n}\n.login-panel-footer[data-v-36b26878] {\n padding: var(--login-panel-body-padding);\n padding-top: 0;\n padding-bottom: 0;\n background-color: #FFFFFF;\n position: absolute;\n bottom: 70px;\n width: 100%;\n left: 0;\n display: flex;\n align-items: center;\n}\n.login-panel-footer .content[data-v-36b26878] {\n color: #737B8C;\n display: block;\n text-align: center;\n}\n.login-panel-footer .border-line[data-v-36b26878] {\n display: inline-block;\n height: 1px;\n flex: 1;\n background-color: #737B8C;\n}\n.login-panel-footer .border-line[data-v-36b26878]:first-child {\n margin-left: 3px;\n margin-right: 5px;\n}\n.login-panel-footer .border-line[data-v-36b26878]:last-child {\n margin-left: 5px;\n margin-right: 3px;\n}\n",map:{version:3,sources:["ComponentsLogin.vue"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,mBAAmB;EACnB,YAAY;EACZ,YAAY;EACZ,yBAAyB;AAC3B;AACA;EACE,UAAU;AACZ;AACA;EACE,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;EACZ,WAAW;EACX,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,WAAW;AACb;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,YAAY;EACZ,uBAAuB;EACvB,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,wCAAwC;AAC1C;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,aAAa;AACf;AACA;EACE,OAAO;AACT;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;EACf,OAAO;AACT;AACA;EACE,sBAAsB;EACtB,gBAAgB;AAClB;AACA;EACE,OAAO;EACP,oBAAoB;EACpB,gCAAgC;AAClC;AACA;EACE,wCAAwC;EACxC,cAAc;EACd,iBAAiB;EACjB,yBAAyB;EACzB,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,OAAO;EACP,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,cAAc;EACd,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,WAAW;EACX,OAAO;EACP,yBAAyB;AAC3B;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB",file:"ComponentsLogin.vue",sourcesContent:[".login-form {\n border-radius: 6px;\n margin-top: 15px;\n background: #FFFFFF;\n width: 400px;\n padding: 3px;\n border: 3px solid #FFFFFF;\n}\n.login-form-normal {\n padding: 0;\n}\n.tip-class {\n color: red;\n text-indent: 2em;\n}\n.t-input {\n height: 38px;\n}\n.input-icon {\n height: 39px;\n width: 14px;\n margin-left: 2px;\n}\n.login-tip {\n font-size: 13px;\n text-align: center;\n color: #BFBFBF;\n}\n.login-code-img {\n border-radius: 2px;\n height: 38px;\n width: 100%;\n}\n::v-deep .t-tabs__nav-scroll .t-tabs__nav-item {\n padding-left: 0;\n padding-right: 0;\n width: 194px;\n justify-content: center;\n border: none;\n}\n::v-deep .t-tabs__nav--card .t-tabs__nav-item {\n background-color: #8080FF;\n color: #FFFFFF;\n}\n::v-deep .t-card__body {\n padding: var(--login-panel-body-padding);\n}\n::v-deep .t-is-active {\n color: #000000 !important;\n}\n::v-deep .captcha .t-form__controls-content {\n display: flex;\n}\n::v-deep .captcha .t-form__controls-content .t-input__wrap {\n flex: 1;\n}\n::v-deep .captcha .t-form__controls-content .login-code {\n margin-left: 10px;\n}\n::v-deep .captcha .t-form__controls-content .login-code .code-image {\n min-width: 112px;\n height: 4.5vh;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n::v-deep .tab-normal .t-tabs__nav-container {\n padding: 15px 0;\n}\n::v-deep .tab-normal .t-tabs__nav-container .t-tabs__nav-item {\n font-size: 20px;\n flex: 1;\n}\n::v-deep .tab-normal .t-tabs__bar {\n width: 50px !important;\n margin-left: 20%;\n}\n::v-deep .tab-normal .t-tabs__nav-wrap {\n flex: 1;\n padding-bottom: 20px;\n border-bottom: 1px solid #D8D8D8;\n}\n.login-panel-footer {\n padding: var(--login-panel-body-padding);\n padding-top: 0;\n padding-bottom: 0;\n background-color: #FFFFFF;\n position: absolute;\n bottom: 70px;\n width: 100%;\n left: 0;\n display: flex;\n align-items: center;\n}\n.login-panel-footer .content {\n color: #737B8C;\n display: block;\n text-align: center;\n}\n.login-panel-footer .border-line {\n display: inline-block;\n height: 1px;\n flex: 1;\n background-color: #737B8C;\n}\n.login-panel-footer .border-line:first-child {\n margin-left: 3px;\n margin-right: 5px;\n}\n.login-panel-footer .border-line:last-child {\n margin-left: 5px;\n margin-right: 3px;\n}\n"]},media:void 0})}),ot,"data-v-36b26878",false,undefined,!1,de,void 0,void 0);const At={props:{show:{type:Boolean,default:!0},apis:{type:Object,default:()=>({})},userName:{type:String,default:""}},data(){return{state:{time:60,sendBtn:!1},user:{oldPassword:void 0,newPassword:void 0,confirmPassword:void 0,code:void 0},rules:{oldPassword:[{required:!0,message:"旧密码不能为空",trigger:"blur"}],newPassword:[{required:!0,message:"新密码不能为空",trigger:"blur"},{pattern:/^(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[\x21-\x2f\x3a-\x40\x5b-\x60\x7B-\x7F])[\da-zA-Z\x21-\x2f\x3a-\x40\x5b-\x60\x7B-\x7F]{8,20}$/,message:"必须包含大小写字母,数字和特殊字符,且字符在8到20之间"}],confirmPassword:[{required:!0,message:"确认密码不能为空",trigger:"blur"},{required:!0,validator:(e,t,n)=>{this.user.newPassword!==t?n(new Error("两次输入的密码不一致")):n()},trigger:"blur"}],code:[{required:!0,message:"验证码不能为空",trigger:"blur"}]}}},computed:{dialogVisible:{get(){return this.show||void 0},set(e){e||(this.user={},this.$refs.form.resetFields()),this.$emit("tab-show")}},username:{get(){return this.userName},set:e=>e}},methods:{submit(){this.$refs.form.validate((e=>{if(e){const e={userName:this.username,oldPassword:ke(this.user.oldPassword),newPassword:ke(this.user.newPassword),smsCaptcha:this.user.code};this.apis.updatePwdLogin(e).then((e=>{e&&200===e.code&&(this.$modal.msgSuccess("修改成功"),this.dialogVisible=!1,this.user={})}))}}))},getCaptcha(e){if(e.preventDefault(),this.user.newPassword&&this.user.oldPassword&&this.user.confirmPassword){this.state.sendBtn=!0;const e=window.setInterval((()=>{this.state.time-=1,this.state.time<=0&&(this.state.time=60,this.state.sendBtn=!1,window.clearInterval(e))}),1e3);this.apis.sendPwdSms({username:ke(this.username),password:ke(this.user.oldPassword)}).then((e=>{e&&200===e.code&&this.$message.info("验证码发送成功")})).catch((t=>{t.code||(this.state.sendBtn=!0,this.$alert("请检查当前网络情况","提示",{confirmButtonText:"确定",type:"error"})),clearInterval(e),this.state.time=60,this.state.sendBtn=!1}))}else this.$message.error("请将旧密码、新密码等信息填写完整")}}};var rt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:"重置密码",visible:e.dialogVisible,width:"50%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("el-alert",{attrs:{title:"首次登录/密码过期需更新密码",type:"error",effect:"dark","close-text":"我知道了"}}),e._v(" "),n("form-section",{attrs:{border:!1,"submit-text":"","save-text":"","cancel-text":""}},[n("el-form",{ref:"form",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"用户名",prop:"userName"}},[n("el-input",{attrs:{placeholder:"请输入用户名",disabled:""},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"旧密码",prop:"oldPassword"}},[n("el-input",{attrs:{placeholder:"请输入旧密码",type:"password","show-password":""},model:{value:e.user.oldPassword,callback:function(t){e.$set(e.user,"oldPassword",t)},expression:"user.oldPassword"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"新密码",prop:"newPassword"}},[n("el-input",{attrs:{placeholder:"请输入新密码",type:"password","show-password":""},model:{value:e.user.newPassword,callback:function(t){e.$set(e.user,"newPassword",t)},expression:"user.newPassword"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"确认密码",prop:"confirmPassword"}},[n("el-input",{attrs:{placeholder:"请确认密码",type:"password","show-password":""},model:{value:e.user.confirmPassword,callback:function(t){e.$set(e.user,"confirmPassword",t)},expression:"user.confirmPassword"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"验证码",prop:"code"}},[n("el-input",{key:"code",staticStyle:{width:"82%"},attrs:{"auto-complete":"off",placeholder:"请输入验证码",size:"large",clearable:""},model:{value:e.user.code,callback:function(t){e.$set(e.user,"code",t)},expression:"user.code"}}),e._v(" "),n("div",{staticClass:"login-code"},[n("el-button",{staticStyle:{"min-width":"112px"},attrs:{size:"large",disabled:e.state.sendBtn},domProps:{textContent:e._s(e.state.sendBtn?e.state.time+" s":"获取验证码")},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.getCaptcha.apply(null,arguments)}}})],1)],1)],1),e._v(" "),n("template",{slot:"btn"},[n("el-button",{attrs:{icon:"el-icon-check",type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("\n 保存\n ")])],1)],2)],1)};rt._withStripped=!0;const st={name:"LoginCom",components:{Login:at,resetPwd:Ce({render:rt,staticRenderFns:[]},(function(e){e&&e("data-v-61328124_0",{source:"[data-v-61328124] .el-form {\n min-height: calc(100vh - 407px);\n}\n.login-code[data-v-61328124] {\n margin-left: 10px;\n display: initial;\n}\n",map:{version:3,sources:["resetPwd.vue"],names:[],mappings:"AAAA;EACE,+BAA+B;AACjC;AACA;EACE,iBAAiB;EACjB,gBAAgB;AAClB",file:"resetPwd.vue",sourcesContent:["::v-deep .el-form {\n min-height: calc(100vh - 407px);\n}\n.login-code {\n margin-left: 10px;\n display: initial;\n}\n"]},media:void 0})}),At,"data-v-61328124",false,undefined,!1,de,void 0,void 0)},props:{loginContent:{type:Object,default:()=>({})}},data(){return{currentModel:this.$store.state.setting.mode,showInfo:this.$proxyEnv.showInfo,show:!1,userName:""}},created(){this.currentModel=localStorage.getItem("pageMode"),"inner"===this.$route.query.login_type&&this.$request.get("/auth/getCorpOauthUrl",{params:{redirect:this.$route.query.redirect,srid:this.$route.query.srid}}).then((e=>{window.location.href=e.data}))},methods:{tabShow(e){this.userName=e,this.show=!this.show}}};var gt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-wrapper",class:{"custom__login__submit-btn":e.loginContent.changeSubmitColor,"show-border-left":e.loginContent.showBorderLeft}},[n("div",{staticStyle:{width:"100%",height:"100%"},style:{background:"dark"===e.currentModel?"rgba(0,0,0,0.5)":"rgba(0,0,0,0)"}},[e.loginContent.showWelcome?n("div",{staticClass:"welcome"},[n("h1",{staticClass:"welcome-hello"},[e._v("\n Hi,你好!\n ")]),e._v(" "),n("h1",{staticClass:"welcome-platform"},[e._v("\n 欢迎进入"+e._s(e.platformTitle)+"\n ")]),e._v(" "),e.showInfo?n("h1",{staticClass:"welcome-english"},[e._v("\n "+e._s(e.loginContent.welcomeEnglish)+"\n ")]):e._e()]):n("div",{staticClass:"welcome welcome-default"},[n("div",{staticClass:"welcome-default-hello"},[e._v("\n 您好,欢迎进入\n ")]),e._v(" "),n("div",{staticClass:"welcome-default-platform"},[e._v("\n "+e._s(e.platformTitle)+"!\n ")])]),e._v(" "),e.showInfo?n("div",{staticClass:"main-title"},[e.loginContent.showLogo?n("div",{staticClass:"main-title-logo"}):n("span",[e._v("\n "+e._s(e.platformTitle)+"\n ")])]):e._e(),e._v(" "),n("div",{staticClass:"login-container",class:"normal"===e.loginContent.theme?"login-container-normal":""},[n("login",e._b({attrs:{"login-content":e.loginContent},on:{"tab-show":e.tabShow}},"login",e.$attrs,!1))],1),e._v(" "),n("reset-pwd",e._b({attrs:{show:e.show,"user-name":e.userName},on:{"update:show":function(t){e.show=t},"tab-show":e.tabShow}},"reset-pwd",e.$attrs,!1))],1)])};gt._withStripped=!0;const lt=Ce({render:gt,staticRenderFns:[]},(function(e){e&&e("data-v-dba5ed6c_0",{source:'.login-bg-img img {\n position: absolute;\n top: 0;\n height: 99vh;\n}\n.light {\n /* 自定义\n ---------------------------------------------------------------- */\n /* ---------------------------------------------------------------- */\n}\n.light.login-wrapper {\n background-color: white;\n background-size: 100% 100%;\n}\n.light.custom__login__submit-btn .login__submit-btn:not(:hover) {\n background-color: var(--light-blue-color);\n border-color: var(--light-blue-color);\n}\n.light input.t-input__inner {\n padding-left: 10px;\n margin-left: 0;\n}\n.light.show-border-left input.t-input__inner {\n border-left: 1px solid #D8D8D8;\n padding-left: 24px;\n margin-left: 6px;\n}\n.light .t-input__wrap .t-input__prefix-icon img {\n width: 20px;\n height: 20px;\n}\n.dark.login-wrapper {\n background-color: var(--td-bg-color-page);\n}\n.login-wrapper {\n height: 100vh;\n display: flex;\n flex-direction: column;\n background-size: cover;\n background-position: 100%;\n position: relative;\n}\n.login-wrapper > div {\n position: relative;\n overflow: auto;\n}\n.welcome {\n position: absolute;\n left: 6%;\n bottom: 43%;\n}\n.welcome-hello,\n.welcome-platform {\n color: #474F64;\n font-size: 64px;\n}\n.welcome-english {\n color: #737B8C;\n font-size: 24px;\n}\n.welcome-default {\n position: absolute;\n left: 8%;\n bottom: 58%;\n font-size: 68.9px;\n font-style: italic;\n letter-spacing: 3.4px;\n color: #FFFFFF;\n font-weight: lighter;\n}\n.welcome-default .welcome-default-platform {\n font-weight: 500;\n}\n.main-title {\n position: absolute;\n font-size: 20px;\n font-weight: 700;\n top: 5%;\n left: 5%;\n color: #FFFFFF;\n}\n.main-title-logo {\n width: 208px;\n height: 62px;\n background-position: left;\n background-size: 100%;\n background-repeat: no-repeat;\n vertical-align: middle;\n}\n.login-container {\n position: absolute;\n top: calc((100vh - 650px) / 2);\n right: 8%;\n min-height: 500px;\n line-height: 22px;\n}\n.login-container-normal {\n top: calc((100vh - 650px) / 2);\n right: 108px;\n}\n.login-container-normal .login-form-normal.login-form {\n width: 482px;\n}\n.check-container {\n font-size: 14px;\n color: var(--td-text-color-secondary);\n}\n.check-container .tip {\n float: right;\n font-size: 14px;\n color: var(--td-brand-color-8);\n}\n.switch-container {\n margin-top: 24px;\n}\n.switch-container .tip {\n font-size: 14px;\n color: var(--td-brand-color-8);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n margin-right: 14px;\n}\n.switch-container .tip::after {\n content: "";\n display: block;\n width: 1px;\n height: 12px;\n background: var(--td-gray-color-3);\n margin-left: 14px;\n}\n.switch-container .tip:last-child::after {\n display: none;\n}\n.title-container .title {\n font-size: 36px;\n line-height: 44px;\n color: var(--td-text-color-primary);\n margin-top: 4px;\n}\n.title-container .title.margin-no {\n margin-top: 0;\n}\n.title-container .sub-title {\n margin-top: 16px;\n}\n.title-container .sub-title .tip {\n display: inline-block;\n margin-right: 8px;\n font-size: 14px;\n}\n.title-container .sub-title .tip:first-child {\n color: var(--td-text-color-secondary);\n}\n.title-container .sub-title .tip:last-child {\n color: var(--td-text-color-primary);\n cursor: pointer;\n}\n.item-container {\n width: 400px;\n margin-top: 48px;\n}\n.item-container.login-qrcode .tip-container {\n width: 192px;\n margin-bottom: 16px;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n}\n.item-container.login-qrcode .tip-container .tip {\n color: var(--td-text-color-primary);\n}\n.item-container.login-qrcode .tip-container .refresh {\n display: flex;\n align-items: center;\n color: var(--td-brand-color);\n}\n.item-container.login-qrcode .tip-container .refresh .t-icon {\n font-size: 14px;\n}\n.item-container.login-qrcode .tip-container .refresh:hover {\n cursor: pointer;\n}\n.item-container.login-qrcode .bottom-container {\n margin-top: 32px;\n}\n.item-container.login-phone .bottom-container {\n margin-top: 66px;\n}\n.item-container .check-container {\n display: flex;\n align-items: center;\n}\n.item-container .check-container.remember-pwd {\n margin-bottom: 16px;\n justify-content: space-between;\n}\n.item-container .check-container .t-checkbox__label {\n color: var(--td-text-color-secondary);\n}\n.item-container .check-container span {\n color: var(--td-brand-color);\n}\n.item-container .check-container span:hover {\n cursor: pointer;\n}\n.item-container .verification-code {\n display: flex;\n align-items: center;\n}\n.item-container .verification-code .t-form__controls {\n width: 100%;\n}\n.item-container .verification-code .t-form__controls button {\n flex-shrink: 0;\n width: 102px;\n margin-left: 11px;\n}\n.item-container .btn-container {\n margin-top: 48px;\n}\n.copyright {\n font-size: 14px;\n position: absolute;\n left: 5%;\n bottom: 64px;\n color: var(--td-text-color-secondary);\n}\n@media screen and (max-height: 700px) {\n.copyright {\n display: none;\n}\n}\n',map:{version:3,sources:["Login.vue","C:\\Users\\yuyang\\Desktop\\work\\qd\\platform-frontend-libs\\packages\\login\\Login.vue"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,MAAM;EACN,YAAY;AACd;AACA;EACE;oEACkE;EAClE,qEAAqE;AACvE;AACA;EACE,uBAAuB;EACvB,0BAA0B;AAC5B;AACA;EACE,yCAAyC;EACzC,qCAAqC;AACvC;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,8BAA8B;EAC9B,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,YAAY;AACd;AACA;EACE,yCAAyC;AAC3C;AACA;EACE,aAAa;EACb,aAAa;EACb,sBAAsB;EACtB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,WAAW;AACb;AACA;;EAEE,cAAc;EACd,eAAe;AACjB;AACA;EACE,cAAc;EACd,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,iBAAiB;EACjB,kBAAkB;EAClB,qBAAqB;EACrB,cAAc;EACd,oBAAoB;AACtB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,eAAe;EACf,gBAAgB;EAChB,OAAO;EACP,QAAQ;EACR,cAAc;AAChB;AACA;EACE,YAAY;EACZ,YAAY;EACZ,yBAAyB;EACzB,qBAAqB;EACrB,4BAA4B;EAC5B,sBAAsB;AACxB;ACCA;EDCE,kBAAkB;EAClB,8BAA8B;EAC9B,SAAS;EACT,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,8BAA8B;EAC9B,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,eAAe;EACf,qCAAqC;AACvC;AACA;EACE,YAAY;EACZ,eAAe;EACf,8BAA8B;AAChC;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,8BAA8B;EAC9B,eAAe;EACf,oBAAoB;EACpB,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,cAAc;EACd,UAAU;EACV,YAAY;EACZ,kCAAkC;EAClC,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;EACf,iBAAiB;EACjB,mCAAmC;EACnC,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,qBAAqB;EACrB,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,qCAAqC;AACvC;AACA;EACE,mCAAmC;EACnC,eAAe;AACjB;AACA;EACE,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,YAAY;EACZ,mBAAmB;EACnB,eAAe;EACf,aAAa;EACb,8BAA8B;AAChC;AACA;EACE,mCAAmC;AACrC;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,4BAA4B;AAC9B;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,8BAA8B;AAChC;AACA;EACE,qCAAqC;AACvC;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,WAAW;AACb;AACA;EACE,cAAc;EACd,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,kBAAkB;EAClB,QAAQ;EACR,YAAY;EACZ,qCAAqC;AACvC;AACA;AACE;IACE,aAAa;AACf;AACF",file:"Login.vue",sourcesContent:['.login-bg-img img {\n position: absolute;\n top: 0;\n height: 99vh;\n}\n.light {\n /* 自定义\n ---------------------------------------------------------------- */\n /* ---------------------------------------------------------------- */\n}\n.light.login-wrapper {\n background-color: white;\n background-size: 100% 100%;\n}\n.light.custom__login__submit-btn .login__submit-btn:not(:hover) {\n background-color: var(--light-blue-color);\n border-color: var(--light-blue-color);\n}\n.light input.t-input__inner {\n padding-left: 10px;\n margin-left: 0;\n}\n.light.show-border-left input.t-input__inner {\n border-left: 1px solid #D8D8D8;\n padding-left: 24px;\n margin-left: 6px;\n}\n.light .t-input__wrap .t-input__prefix-icon img {\n width: 20px;\n height: 20px;\n}\n.dark.login-wrapper {\n background-color: var(--td-bg-color-page);\n}\n.login-wrapper {\n height: 100vh;\n display: flex;\n flex-direction: column;\n background-size: cover;\n background-position: 100%;\n position: relative;\n}\n.login-wrapper > div {\n position: relative;\n overflow: auto;\n}\n.welcome {\n position: absolute;\n left: 6%;\n bottom: 43%;\n}\n.welcome-hello,\n.welcome-platform {\n color: #474F64;\n font-size: 64px;\n}\n.welcome-english {\n color: #737B8C;\n font-size: 24px;\n}\n.welcome-default {\n position: absolute;\n left: 8%;\n bottom: 58%;\n font-size: 68.9px;\n font-style: italic;\n letter-spacing: 3.4px;\n color: #FFFFFF;\n font-weight: lighter;\n}\n.welcome-default .welcome-default-platform {\n font-weight: 500;\n}\n.main-title {\n position: absolute;\n font-size: 20px;\n font-weight: 700;\n top: 5%;\n left: 5%;\n color: #FFFFFF;\n}\n.main-title-logo {\n width: 208px;\n height: 62px;\n background-position: left;\n background-size: 100%;\n background-repeat: no-repeat;\n vertical-align: middle;\n}\n.login-container {\n position: absolute;\n top: calc((100vh - 650px) / 2);\n right: 8%;\n min-height: 500px;\n line-height: 22px;\n}\n.login-container-normal {\n top: calc((100vh - 650px) / 2);\n right: 108px;\n}\n.login-container-normal .login-form-normal.login-form {\n width: 482px;\n}\n.check-container {\n font-size: 14px;\n color: var(--td-text-color-secondary);\n}\n.check-container .tip {\n float: right;\n font-size: 14px;\n color: var(--td-brand-color-8);\n}\n.switch-container {\n margin-top: 24px;\n}\n.switch-container .tip {\n font-size: 14px;\n color: var(--td-brand-color-8);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n margin-right: 14px;\n}\n.switch-container .tip::after {\n content: "";\n display: block;\n width: 1px;\n height: 12px;\n background: var(--td-gray-color-3);\n margin-left: 14px;\n}\n.switch-container .tip:last-child::after {\n display: none;\n}\n.title-container .title {\n font-size: 36px;\n line-height: 44px;\n color: var(--td-text-color-primary);\n margin-top: 4px;\n}\n.title-container .title.margin-no {\n margin-top: 0;\n}\n.title-container .sub-title {\n margin-top: 16px;\n}\n.title-container .sub-title .tip {\n display: inline-block;\n margin-right: 8px;\n font-size: 14px;\n}\n.title-container .sub-title .tip:first-child {\n color: var(--td-text-color-secondary);\n}\n.title-container .sub-title .tip:last-child {\n color: var(--td-text-color-primary);\n cursor: pointer;\n}\n.item-container {\n width: 400px;\n margin-top: 48px;\n}\n.item-container.login-qrcode .tip-container {\n width: 192px;\n margin-bottom: 16px;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n}\n.item-container.login-qrcode .tip-container .tip {\n color: var(--td-text-color-primary);\n}\n.item-container.login-qrcode .tip-container .refresh {\n display: flex;\n align-items: center;\n color: var(--td-brand-color);\n}\n.item-container.login-qrcode .tip-container .refresh .t-icon {\n font-size: 14px;\n}\n.item-container.login-qrcode .tip-container .refresh:hover {\n cursor: pointer;\n}\n.item-container.login-qrcode .bottom-container {\n margin-top: 32px;\n}\n.item-container.login-phone .bottom-container {\n margin-top: 66px;\n}\n.item-container .check-container {\n display: flex;\n align-items: center;\n}\n.item-container .check-container.remember-pwd {\n margin-bottom: 16px;\n justify-content: space-between;\n}\n.item-container .check-container .t-checkbox__label {\n color: var(--td-text-color-secondary);\n}\n.item-container .check-container span {\n color: var(--td-brand-color);\n}\n.item-container .check-container span:hover {\n cursor: pointer;\n}\n.item-container .verification-code {\n display: flex;\n align-items: center;\n}\n.item-container .verification-code .t-form__controls {\n width: 100%;\n}\n.item-container .verification-code .t-form__controls button {\n flex-shrink: 0;\n width: 102px;\n margin-left: 11px;\n}\n.item-container .btn-container {\n margin-top: 48px;\n}\n.copyright {\n font-size: 14px;\n position: absolute;\n left: 5%;\n bottom: 64px;\n color: var(--td-text-color-secondary);\n}\n@media screen and (max-height: 700px) {\n .copyright {\n display: none;\n }\n}\n','<template>\r\n <div\r\n class="login-wrapper"\r\n :class="{\'custom__login__submit-btn\': loginContent.changeSubmitColor, \'show-border-left\': loginContent.showBorderLeft}"\r\n >\r\n <div\r\n style="width: 100%; height: 100%;"\r\n :style="{\r\n background: currentModel === \'dark\' ? \'rgba(0,0,0,0.5)\' : \'rgba(0,0,0,0)\',\r\n }"\r\n >\r\n <div v-if="loginContent.showWelcome" class="welcome">\r\n <h1 class="welcome-hello">\r\n Hi,你好!\r\n </h1>\r\n <h1 class="welcome-platform">\r\n 欢迎进入{{ platformTitle }}\r\n </h1>\r\n <h1 v-if="showInfo" class="welcome-english">\r\n {{ loginContent.welcomeEnglish }}\r\n </h1>\r\n </div>\r\n <div v-else class="welcome welcome-default">\r\n <div class="welcome-default-hello">\r\n 您好,欢迎进入\r\n </div>\r\n <div class="welcome-default-platform">\r\n {{ platformTitle }}!\r\n </div>\r\n </div>\r\n <div v-if="showInfo" class="main-title">\r\n <div v-if="loginContent.showLogo" class="main-title-logo" />\r\n <span v-else>\r\n {{ platformTitle }}\r\n </span>\r\n </div>\r\n <div class="login-container" :class="loginContent.theme === \'normal\' ? \'login-container-normal\' : \'\'">\r\n <login v-bind="$attrs" :login-content="loginContent" @tab-show="tabShow" />\r\n </div>\r\n <reset-pwd\r\n v-bind="$attrs"\r\n :show.sync="show"\r\n :user-name="userName"\r\n @tab-show="tabShow"\r\n />\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport Login from "./ComponentsLogin.vue";\r\nimport resetPwd from "./resetPwd.vue";\r\n\r\nexport default {\r\n name: "LoginCom",\r\n components: {\r\n Login,\r\n resetPwd\r\n },\r\n props: {\r\n loginContent: {\r\n type: Object,\r\n default: () => ({})\r\n }\r\n },\r\n data() {\r\n return {\r\n currentModel: this.$store.state.setting.mode,\r\n showInfo: this.$proxyEnv.showInfo,\r\n show: false,\r\n userName: ""\r\n };\r\n },\r\n created() {\r\n this.currentModel = localStorage.getItem("pageMode");\r\n if (this.$route.query.login_type === "inner") {\r\n this.$request.get("/auth/getCorpOauthUrl", { params: { redirect: this.$route.query.redirect, srid: this.$route.query.srid }}).then((response) => {\r\n window.location.href = response.data;\r\n });\r\n }\r\n },\r\n methods: {\r\n tabShow(userName) {\r\n this.userName = userName;\r\n this.show = !this.show;\r\n }\r\n }\r\n};\r\n<\/script>\r\n<style lang="less">\r\n@import "./index.less";\r\n</style>']},media:void 0})}),st,undefined,false,undefined,!1,de,void 0,void 0);const Ct={props:{getAppRedirectUrl:{type:Function,default:null}},data:()=>({loading:!1}),created(){this.$store.commit("tabRouter/removeTabRouterList"),this.$store.commit("user/removeToken"),this.$store.commit("user/setUserInfo",{roles:[]});const{query:e}=this.$route;if(e.access_token)if(this.$store.commit("user/setToken",e.access_token),e.businessKey&&e.taskId&&e.processInstanceId)this.$request({url:`/system/flow/${e.url||"task"}/${e.taskId}/view-component`,method:"get"}).then((t=>{if(t.success&&t.viewComponent){this.$store.commit("tabRouter/removeTabRouterList");const{action:n,businessKey:o,taskId:i,processInstanceId:a}=e;this.$store.dispatch("permission/initRoutes").then((()=>{this.$changePage(t.viewComponent,{action:n,..."view"===n.toLowerCase()&&{id:o}||{}},"view"!==n.toLowerCase()?{taskId:i,processInstanceId:a,businessKey:o}:void 0)}))}}));else if(e.redirect){const t={...e},n=e.redirect;delete t.access_token,this.$router.push({path:n,query:t})}else this.$router.push("/");else{const e={appId:this.$proxyEnv.APP_ID,redirect:window.location.href};this.loading=!0,this.getAppRedirectUrl(e).then((e=>{e&&200===e.code&&(window.location.href=e.data)})).finally((()=>{this.loading=!1}))}}};var ct=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100vw",height:"100vh"}})};ct._withStripped=!0;const dt=Ce({render:ct,staticRenderFns:[]},undefined,Ct,undefined,false,undefined,!1,void 0,void 0,void 0);var It={props:{callBackLogin:{type:Function,default:null}},data:()=>({loading:!1}),created(){this.loading=!0,this.$store.commit("tabRouter/removeTabRouterList"),localStorage.removeItem("tabRouterList"),this.$store.commit("user/removeToken");const e=window.location.hash.split("?")[1];if(e){const t=new URLSearchParams(e),n=Object.fromEntries(t.entries());if(Object.hasOwnProperty.call(n,"code")&&Object.hasOwnProperty.call(n,"state")){const e={grantType:"corp_au_oauth",corpOauthCode:n.code,corpOauthState:n.state};let t={};n.srid&&(t={srid:n.srid}),this.callBackLogin(e,t).then((e=>{if(console.error("test:IamCallback",e),this.$store.commit("user/setToken",e.data.access_token),t.srid&&e.data.redirectUrl){let t="";t="development"===this.$envValue?`${window.location.origin}${this.$proxyEnv.API}`:this.$proxyEnv.API,t=`${t}/auth${e.data.redirectUrl}`,window.location.href=t,this.loading=!1}else n.redirect?(this.$router.push(n.redirect),this.loading=!1):(this.$router.push("/homePage/index"),this.loading=!1)}))}else this.$message.error("参数不全,缺少code或state")}else this.$message.error("参数不全")},render:e=>e()};const pt=It;var ut=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]})};ut._withStripped=!0;const mt=Ce({render:ut,staticRenderFns:[]},undefined,pt,undefined,false,undefined,!1,void 0,void 0,void 0);function ht(e){return e&&(e.Ctor.options.name||e.tag)}const ft={type:[String,RegExp,Array],default:""};function vt(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function bt(e){return null!=e}const yt=Object.prototype.toString;function xt(e,t,n,o){const i=e[t];!i||o&&i.tag===o.tag||i.componentInstance.$destroy(),e[t]=null,vt(n,t)}function Et(e,t){const n=e.cache,o=e.keys,i=e._vnode;Object.keys(n).forEach((e=>{const a=n[e];if(a){const A=a.name;A&&!t(A)&&xt(n,e,o,i)}}))}function wt(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===yt.call(n)&&e.test(t));var n}const _t={},Bt=[];var kt={name:"ContentKeepAlive",props:{needCache:{type:Boolean,default:!1},include:ft,exclude:ft,max:[String,Number],isRefreshing:{type:Boolean,default:!1},noDestroyPathArray:Array},watch:{noDestroyPathArray:{handler:function(e){this.cache&&Object.keys(this.cache).forEach((t=>{this.cache[t]&&!e.includes(this.cache[t].path)&&xt(this.cache,t,this.keys)}))}}},methods:{cacheVNode(){const e=this.cache,t=this.keys,n=this.vnodeToCache,o=this.keyToCache;if(n){const i=n.tag,a=n.componentInstance;a.__keepAlivePath=this.$route.path;const A=n.componentOptions;e[o]={name:ht(A),tag:i,componentInstance:a,fullPath:this.$route.fullPath,path:this.$route.path,key:o,initTime:(new Date).getTime()},t.push(o),this.max&&t.length>window.parseInt(this.max)&&xt(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=_t,this.keys=Bt},mounted(){this.cacheVNode(),this.$watch("include",(e=>{Et(this,(t=>wt(e,t)))})),this.$watch("exclude",(e=>{Et(this,(t=>!wt(e,t)))}))},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=function(e){if(Array.isArray(e))for(let n=0;n<e.length;n++){const o=e[n];if(bt(o)&&(bt(o.componentOptions)||(t=o).isComment&&t.asyncFactory))return o}var t}(e);if(!this.needCache)return t;const n=t&&t.componentOptions;if(n){const e=ht(n),o=this.include,i=this.exclude;if(o&&(!e||!wt(o,e))||i&&e&&wt(i,e))return t;const a=this.cache,A=this.keys,r=null==t.key?n.Ctor.cid+(n.tag?`::${n.tag}`:""):t.key;a[r]?(t.componentInstance=a[r].componentInstance,vt(A,r),A.push(r),this.$nextTick((()=>{t?.componentInstance&&t.componentInstance.__keepAlivePath===this.$route.path&&t?.componentInstance?.loadData&&(new Date).getTime()-a[r].initTime>300&&t.componentInstance.loadData()}))):(this.vnodeToCache=t,this.keyToCache=r),t.data.keepAlive=!0}return t||e&&e[0]}};const $t={name:"BlankContent",components:{BytzKeepAlive:kt},props:{isCacheIframe:{type:Boolean,default:!1}},computed:{...p({isRefreshing:"tabRouter/isRefreshing",noDestroyPathArray:"tabRouter/noDestroyPathArray"}),needCache:function(){return!this.$route.meta.noCache}}};var St=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("bytz-keep-alive",{attrs:{"need-cache":e.needCache,"no-destroy-path-array":e.noDestroyPathArray,"is-refreshing":e.isRefreshing}},[!e.needCache||e.isRefreshing||e.isCacheIframe?e.isRefreshing||e.isCacheIframe?e._e():n("router-view",{key:e.$route.path}):n("router-view")],1)],1)};St._withStripped=!0;const Ft=Ce({render:St,staticRenderFns:[]},(function(e){e&&e("data-v-2b6f1974_0",{source:".fade-leave-active[data-v-2b6f1974],\n.fade-enter-active[data-v-2b6f1974] {\n transition: opacity 0.28s cubic-bezier(0.38, 0, 0.24, 1);\n}\n.fade-enter[data-v-2b6f1974],\n.fade-leave-to[data-v-2b6f1974] {\n opacity: 0;\n}\n",map:{version:3,sources:["Content.vue"],names:[],mappings:"AAAA;;EAEE,wDAAwD;AAC1D;AACA;;EAEE,UAAU;AACZ",file:"Content.vue",sourcesContent:[".fade-leave-active,\n.fade-enter-active {\n transition: opacity 0.28s cubic-bezier(0.38, 0, 0.24, 1);\n}\n.fade-enter,\n.fade-leave-to {\n opacity: 0;\n}\n"]},media:void 0})}),$t,"data-v-2b6f1974",false,undefined,!1,de,void 0,void 0);const Tt={name:"TdesignStarterBreadcrumb",computed:{crumbs(){const e=this.$route.path.split("/");e.shift();const t=[],n=this.$router.getRoutes();return e.reduce(((e,o)=>{e+=`/${o}`;const i=n.find((t=>t.path===e));return i&&i.meta.title!==t[t.length-1]?.title&&t.push({path:i.path,to:i.path,title:i.meta.title||i.path}),e}),""),t}}};var Dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("t-breadcrumb",{staticClass:"tdesign-breadcrumb",attrs:{"max-item-width":"150"}},e._l(e.crumbs,(function(t){return n("t-breadcrumb-item",{key:t.to,attrs:{to:t.to}},[e._v("\n "+e._s(t.title)+"\n ")])})),1)};Dt._withStripped=!0;const Rt=Ce({render:Dt,staticRenderFns:[]},(function(e){e&&e("data-v-45da5ea1_0",{source:"\n.tdesign-breadcrumb[data-v-45da5ea1] {\r\n margin-bottom: 8px;\n}\r\n",map:{version:3,sources:["C:\\Users\\yuyang\\Desktop\\work\\qd\\platform-frontend-libs\\packages\\layout\\Breadcrumb.vue"],names:[],mappings:";AAqCA;EACA,kBAAA;AACA",file:"Breadcrumb.vue",sourcesContent:['<template>\r\n <t-breadcrumb :max-item-width="\'150\'" class="tdesign-breadcrumb">\r\n <t-breadcrumb-item v-for="item in crumbs" :key="item.to" :to="item.to">\r\n {{ item.title }}\r\n </t-breadcrumb-item>\r\n </t-breadcrumb>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: "TdesignStarterBreadcrumb",\r\n computed: {\r\n crumbs() {\r\n const pathArray = this.$route.path.split("/");\r\n pathArray.shift();\r\n\r\n const breadcrumbs = [];\r\n const allRoutes = this.$router.getRoutes();\r\n pathArray.reduce((lastStr, item) => {\r\n lastStr += `/${item}`;\r\n const route = allRoutes.find((v) => v.path === lastStr) ;\r\n if (route && route.meta.title !== breadcrumbs[breadcrumbs.length - 1]?.title) {\r\n breadcrumbs.push({\r\n path: route.path,\r\n to: route.path,\r\n title: route.meta.title || route.path\r\n });\r\n }\r\n\r\n return lastStr;\r\n }, "");\r\n return breadcrumbs;\r\n }\r\n }\r\n};\r\n<\/script>\r\n<style scoped>\r\n.tdesign-breadcrumb {\r\n margin-bottom: 8px;\r\n}\r\n</style>']},media:void 0})}),Tt,"data-v-45da5ea1",false,undefined,!1,de,void 0,void 0);const Pt={name:"Layoutfooter"};var Ot=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"footer-content"},[e._v("\n Copyright @ 2021-"+e._s((new Date).getFullYear())+" Company. All Rights Reserved\n")])};Ot._withStripped=!0;const Lt=Ce({render:Ot,staticRenderFns:[]},(function(e){e&&e("data-v-1e35e399_0",{source:".footer-content[data-v-1e35e399] {\n color: var(--td-text-color-placeholder);\n line-height: 20px;\n text-align: center;\n}\n",map:{version:3,sources:["Footer.vue"],names:[],mappings:"AAAA;EACE,uCAAuC;EACvC,iBAAiB;EACjB,kBAAkB;AACpB",file:"Footer.vue",sourcesContent:[".footer-content {\n color: var(--td-text-color-placeholder);\n line-height: 20px;\n text-align: center;\n}\n"]},media:void 0})}),Pt,"data-v-1e35e399",false,undefined,!1,de,void 0,void 0),Nt="content_full_screen";const qt={name:"FullScreen",data:function(){return{isFullScreen:!1}},mounted(){this.isFullScreen="true"===localStorage.getItem(Nt),this.changeDom()},methods:{changeFullScreen:function(){this.isFullScreen=!this.isFullScreen,localStorage.setItem(Nt,this.isFullScreen),this.changeDom(),this.$bus.$emit("full-screen",this.isFullScreen)},changeDom:function(){this.isFullScreen?document.body.classList.add("is-in-full-screen"):document.body.classList.remove("is-in-full-screen")}}};var jt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.isFullScreen?"退出全屏":"显示全屏",placement:"top-end"}},[n("div",{staticClass:"content-full-screen",class:{"is-full-screen":e.isFullScreen},on:{click:e.changeFullScreen}},[n("i",{class:e.isFullScreen?"el-icon-switch-button":"el-icon-full-screen"})])])};jt._withStripped=!0;const zt=Ce({render:jt,staticRenderFns:[]},(function(e){e&&e("data-v-b3876f82_0",{source:".content-full-screen[data-v-b3876f82] {\n z-index: 999;\n position: absolute;\n bottom: 24px;\n right: 24px;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0.5;\n cursor: pointer;\n transition: all 0.5s;\n}\n.content-full-screen[data-v-b3876f82]:hover {\n opacity: 1;\n transform: scale(1.5);\n}\n.content-full-screen.is-full-screen[data-v-b3876f82] {\n bottom: 0;\n right: 0;\n position: fixed;\n}\n",map:{version:3,sources:["FullScreen.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,YAAY;EACZ,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,UAAU;EACV,qBAAqB;AACvB;AACA;EACE,SAAS;EACT,QAAQ;EACR,eAAe;AACjB",file:"FullScreen.vue",sourcesContent:[".content-full-screen {\n z-index: 999;\n position: absolute;\n bottom: 24px;\n right: 24px;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0.5;\n cursor: pointer;\n transition: all 0.5s;\n}\n.content-full-screen:hover {\n opacity: 1;\n transform: scale(1.5);\n}\n.content-full-screen.is-full-screen {\n bottom: 0;\n right: 0;\n position: fixed;\n}\n"]},media:void 0})}),qt,"data-v-b3876f82",false,undefined,!1,de,void 0,void 0);const Mt={name:"IframeView",data:function(){return{src:void 0,token:void 0}},watch:{"$route.path":{handler:function(){"IframeView"===this.$route.meta.component&&this.setSrc()},immediate:!0}},methods:{setSrc:async function(){try{const{url:e,appId:t,checkToken:n}=JSON.parse(this.$route.meta.query),o=e.split("?")[1],i=o?Object.fromEntries(new URLSearchParams(o).entries()):{},a=i.token||i.access_token;let A=this.$route.query;if(A?.iframeQuery&&delete A.iframeQuery,A="{}"!==JSON.stringify(A)?Object.entries(A).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&"):"",t){const{appType:n}=await re(t);"0"===n?(this.token="$replaceAppToken$"===a?await se(t):this.$store.getters["user/token"],this.src=`${e.replace(a,this.token)}${A?`&${A}`:""}`):this.src=`${e.replace(/(&|\?)token=[^&]*/,"")}${A?`?${A}`:""}`}else a?(this.token=this.$store.getters["user/token"],this.src=`${e.replace(a,this.token)}${A?`&${A}`:""}`):this.src=`${e}${A?`?${A}`:""}`}catch(e){this.$message.error("请检查菜单参数!"),console.error(e)}}}};var Wt=function(){var e=this,t=e.$createElement;return(e._self._c||t)("iframe",{staticClass:"iframe-view",attrs:{src:e.src}})};Wt._withStripped=!0;const Yt=Ce({render:Wt,staticRenderFns:[]},(function(e){e&&e("data-v-6f640d93_0",{source:".iframe-content .iframe-view[data-v-6f640d93],\n.iframe-view[data-v-6f640d93] {\n width: 100%;\n height: 100%;\n border: none;\n padding: 0;\n display: block;\n}\n",map:{version:3,sources:["IframeView.vue"],names:[],mappings:"AAAA;;EAEE,WAAW;EACX,YAAY;EACZ,YAAY;EACZ,UAAU;EACV,cAAc;AAChB",file:"IframeView.vue",sourcesContent:[".iframe-content .iframe-view,\n.iframe-view {\n width: 100%;\n height: 100%;\n border: none;\n padding: 0;\n display: block;\n}\n"]},media:void 0})}),Mt,"data-v-6f640d93",false,undefined,!1,de,void 0,void 0);const Ut={name:"IframeContent",dicts:["cross_domain_white_list"],data:function(){return{componentArray:[],currentPath:null}},computed:{...p({menuRouters:"subMenus",noDestroyPathArray:"tabRouter/noDestroyPathArray"})},watch:{"$route.path":{handler:function(){this.$route.meta?.component&&!this.$route.meta.noCache&&["IframeView","AppIframeView"].includes(this.$route.meta.component)&&(this.currentPath=this.$route.path,this.setCurrentComponent())},immediate:!0},noDestroyPathArray:function(e){this.componentArray=this.componentArray.filter((t=>e.find((e=>e===t.path))))}},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},methods:{getCurrentComponentInfo:function(e=this.menuRouters){let t=null;for(let n=0;n<e.length;n++){const o=e[n];if(this.$route.path===e[n].path)return t=o,t;if(o.children&&(t=this.getCurrentComponentInfo(o.children),t))return t}return null},setCurrentComponent:function(){this.componentArray.find((e=>e.path===this.$route.path))||this.componentArray.push({component:this.getCurrentComponentInfo()?.component,path:this.$route.path})},handleMessage(e){if(e.data?.newIfarmeTab){const t={path:e.data.path,appId:"$system$",groupBy:"0",components:{default:Yt},name:e.data.path,meta:{component:"IframeView",icon:"#",isFrame:void 0,link:null,noCache:!0,title:e.data.title,query:`{"url": "${e.data.url}"}`}},n=this.$router.getRoutes().find((t=>t.path===e.data.path));if(console.log(n,11),n)n.meta.query=`{"url": "${e.data.url}"}`,console.log(n.meta.query),n.meta.title=e.data.title,this.$router.push({path:e.data.path,query:{t:Date.now()}});else{const n=this.$router.getRoutes().find((e=>""===e.path));n.children||(n.children=[]),n.children.push(t),this.$router.addRoute(n),this.$router.push({path:e.data.path})}}}}};var Zt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"iframe-content"},[e._l(e.componentArray,(function(t){return[n(t.component,{directives:[{name:"show",rawName:"v-show",value:t.path===e.currentPath,expression:"item.path === currentPath"}],key:t.path,tag:"component"})]}))],2)};Zt._withStripped=!0;const Vt={name:"LayoutContent",components:{CommonContent:Ft,LayoutFooter:Lt,LayoutBreadcrumb:Rt,RefreshIcon:h,ArrowLeftIcon:f,ArrowRightIcon:v,HomeIcon:b,CloseCircleIcon:y,FullScreen:zt,IframeContent:Ce({render:Zt,staticRenderFns:[]},(function(e){e&&e("data-v-3a77127f_0",{source:".iframe-content[data-v-3a77127f] {\n height: 100%;\n padding: 0 !important;\n overflow: hidden !important;\n}\n",map:{version:3,sources:["IframeContent.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,qBAAqB;EACrB,2BAA2B;AAC7B",file:"IframeContent.vue",sourcesContent:[".iframe-content {\n height: 100%;\n padding: 0 !important;\n overflow: hidden !important;\n}\n"]},media:void 0})}),Ut,"data-v-3a77127f",false,undefined,!1,de,void 0,void 0)},props:{prefix:String},data:()=>({activeTabPath:""}),computed:{...p({showFooter:"setting/showFooter",mode:"setting/mode",isUseTabsRouter:"setting/isUseTabsRouter",menuRouters:"permission/routers",tabRouterList:"tabRouter/tabRouterList"}),setting(){return this.$store.state.setting},isGroupLogin:()=>"true"===sessionStorage.getItem("isGroupLogin"),isInIframe:function(){return window.self!==window.top},canFullScreen:function(){const e=this.$route.meta.query;if(!e)return!1;try{return 1===JSON.parse(e).fullScreen}catch(e){console.error("canFullScreen:",e)}return!0},isCacheIframe(){return this.$route.meta?.component&&!this.$route.meta.noCache&&["IframeView","AppIframeView"].includes(this.$route.meta.component)}},methods:{handleRemove(e,t){const n=this.tabRouterList[t+1]||this.tabRouterList[t-1];this.$store.commit("tabRouter/subtractCurrentTabRouter",{path:e,routeIdx:t}),e===this.$router.history?.current?.path&&this.$router.push({path:n.path,query:n.query||{}})},handleChangeCurrentTab(e){const t=this.tabRouterList.find((t=>t.path===e))||{path:e};this.$router.push({path:t.path,query:t.query||{}})},handleRefresh(e,t){this.$store.commit("tabRouter/toggleTabRouterAlive",t),this.$nextTick((()=>{this.$store.commit("tabRouter/toggleTabRouterAlive",t),this.$router.replace({path:e})})),this.activeTabPath=null},handleCloseAhead(e,t){this.$store.commit("tabRouter/subtractTabRouterAhead",{path:e,routeIdx:t}),this.handleOperationEffect("ahead",t)},handleCloseBehind(e,t){this.$store.commit("tabRouter/subtractTabRouterBehind",{path:e,routeIdx:t}),this.handleOperationEffect("behind",t)},handleCloseOther(e,t){this.$store.commit("tabRouter/subtractTabRouterOther",{path:e,routeIdx:t}),this.handleOperationEffect("other",t)},handleOperationEffect(e,t){const n=this.$router.history?.current?.path,o=this.tabRouterList,i=o.findIndex((e=>e.path===n));if("other"===e&&i!==t||"ahead"===e&&i<t||"behind"===e&&-1===i){let t;switch(e){case"behind":case"other":default:t=o.length-1;break;case"ahead":t=1}const n=this.tabRouterList[t];this.$router.push(n.path)}this.activeTabPath=null},handleTabMenuClick(e,t,n){"document"===t?.trigger&&(this.activeTabPath=null),e&&(this.activeTabPath=n)}}};var Ht=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("t-layout",{class:[e.prefix+"-layout"]},[!e.isUseTabsRouter||e.isGroupLogin||e.isInIframe?e._e():n("t-tabs",{class:e.prefix+"-layout-tabs-nav",style:{position:"sticky",top:0,width:"100%"},attrs:{theme:"card",value:e.$route.path},on:{change:e.handleChangeCurrentTab}},e._l(e.tabRouterList,(function(t,o){return n("t-tab-panel",{key:t.path+"_"+o,attrs:{value:t.path,removable:!t.isHome},on:{remove:function(){return e.handleRemove(t.path,o)}},scopedSlots:e._u([{key:"label",fn:function(){return[n("t-dropdown",{attrs:{trigger:"context-menu","min-column-width":128,"popup-props":{overlayClassName:"route-tabs-dropdown",onVisibleChange:function(n,o){return e.handleTabMenuClick(n,o,t.path)},visible:e.activeTabPath===t.path}},scopedSlots:e._u([{key:"dropdown",fn:function(){return[n("t-dropdown-menu",[e._e(),e._v(" "),o>1?n("t-dropdown-item",{on:{click:function(){return e.handleCloseAhead(t.path,o)}}},[n("arrow-left-icon"),e._v("\n 关闭左侧\n ")],1):e._e(),e._v(" "),o<e.tabRouterList.length-1?n("t-dropdown-item",{on:{click:function(){return e.handleCloseBehind(t.path,o)}}},[n("arrow-right-icon"),e._v("\n 关闭右侧\n ")],1):e._e(),e._v(" "),n("t-dropdown-item",{on:{click:function(){return e.handleCloseOther(t.path,o)}}},[n("close-circle-icon"),e._v("\n 关闭其它\n ")],1)],1)]},proxy:!0}],null,!0)},[t.isHome?n("home-icon"):[e._v("\n "+e._s(t.title)+"\n ")]],2)]},proxy:!0}],null,!0)})})),1),e._v(" "),n("t-content",{class:e.prefix+"-content-layout"},[e.setting.showBreadcrumb?n("layout-breadcrumb"):e._e(),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isCacheIframe,expression:"!isCacheIframe"}],staticStyle:{height:"100%"}},[n("common-content",{staticClass:"common-content",attrs:{"is-cache-iframe":e.isCacheIframe}})],1),e._v(" "),n("iframe-content",{directives:[{name:"show",rawName:"v-show",value:e.isCacheIframe,expression:"isCacheIframe"}]}),e._v(" "),e.canFullScreen&&!e.isInIframe?n("full-screen"):e._e()],1),e._v(" "),e.showFooter?n("t-footer",{class:e.prefix+"-footer-layout"},[n("layout-footer")],1):e._e()],1)};Ht._withStripped=!0;const Xt=Ce({render:Ht,staticRenderFns:[]},undefined,Vt,undefined,false,undefined,!1,void 0,void 0,void 0);const Gt={name:"LayoutMainMenu",computed:{...p({mainMenu:"permission/routers",showMainMenu:"user/showRootMenu"}),mainPath:function(){const e=this.$route.path?.split("/")||[];return e.shift(),`/${e[0]}`}},methods:{handleIconClick:function(e){const t=e.path.match(/http(s|):\/\/\S*?$/)?.[0],{isFrame:n,openNewWindow:o}=e?.meta,i="1"===o?"_self":"_blank";if("0"===n)return t?void window.open(t,i):void window.open(`${window.location.protocol}//${e.path}`,i);const a=e.redirect||e.path;if("0"===o)return t?void window.open(t):void window.open(`${window.origin}/#${a}`);this.$router.push({path:a})}}};var Kt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showMainMenu?n("div",{staticClass:"layout-main-menu-container"},e._l(e.mainMenu.filter((function(e){return!e.hidden})),(function(t,o){return n("div",{key:t.path,staticClass:"main-menu-item",class:{active:t.path===e.mainPath},on:{click:function(n){return e.handleIconClick(t,o)}}},[t.meta&&"string"==typeof t.meta.icon&&t.meta.icon?n("el-tooltip",{attrs:{effect:"dark",content:t.meta&&t.meta.title||"未设置",placement:"right"}},[n("svg-icon",{staticClass:"svg-icon-class",attrs:{"icon-class":t.meta&&t.meta.icon||"404"}})],1):e._e()],1)})),0):e._e()};Kt._withStripped=!0;const Qt=Ce({render:Kt,staticRenderFns:[]},(function(e){e&&e("data-v-094d3655_0",{source:".layout-main-menu-container[data-v-094d3655] {\n width: var(--root-menu-width);\n position: fixed;\n left: 0;\n top: 64px;\n bottom: 0;\n overflow-y: auto;\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.layout-main-menu-container .main-menu-item[data-v-094d3655] {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: var(--root-menu-width);\n height: var(--root-menu-width);\n min-height: var(--root-menu-width);\n}\n.layout-main-menu-container .svg-icon-class[data-v-094d3655] {\n width: 24px;\n height: 24px;\n color: #C5C5CE;\n}\n",map:{version:3,sources:["LayoutMainMenu.vue"],names:[],mappings:"AAAA;EACE,6BAA6B;EAC7B,eAAe;EACf,OAAO;EACP,SAAS;EACT,SAAS;EACT,gBAAgB;EAChB,kBAAkB;EAClB,aAAa;EACb,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,eAAe;EACf,6BAA6B;EAC7B,8BAA8B;EAC9B,kCAAkC;AACpC;AACA;EACE,WAAW;EACX,YAAY;EACZ,cAAc;AAChB",file:"LayoutMainMenu.vue",sourcesContent:[".layout-main-menu-container {\n width: var(--root-menu-width);\n position: fixed;\n left: 0;\n top: 64px;\n bottom: 0;\n overflow-y: auto;\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.layout-main-menu-container .main-menu-item {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: var(--root-menu-width);\n height: var(--root-menu-width);\n min-height: var(--root-menu-width);\n}\n.layout-main-menu-container .svg-icon-class {\n width: 24px;\n height: 24px;\n color: #C5C5CE;\n}\n"]},media:void 0})}),Gt,"data-v-094d3655",false,undefined,!1,de,void 0,void 0),Jt=(e,t)=>e?e.map((e=>{let n;n=t&&"0"!==e.isFrame?`${t}/${e.path}`:e.path;return-1===n.indexOf("//")||e.path.match(/(http|https):\/\/([\w.]+\/?)\S*/)||(n=`/${n.split("//")[1]}`),{path:n,appImg:e.meta?.appImg||"",title:e.meta?.title,icon:e.meta?.icon||"",isFrame:e.isFrame,openNewWindow:e.openNewWindow||(e.children&&e.children.length>0?e.children[0]?.openNewWindow:void 0),children:Jt(e.children,n),meta:e.meta,redirect:e.redirect,hidden:e.hidden}})).filter((e=>e.meta&&!0!==e.hidden)):[];e.component("RenderFnIcon",{props:{item:{type:Object,required:!0}},render(e){if("function"==typeof this.item.icon||this.item.icon&&"function"==typeof this.item.icon.render)return e(this.item.icon,{class:"t-icon"})}});const en={name:"MenuContent",props:{navData:Array,isTop:{type:Boolean,default:!1}},computed:{...p({showHomeDrag:"user/showHomeDrag"}),list(){return Jt(this.navData)},mapHhM:function(){return this.$route.params.hhM?`/${this.$getRouteNameByPageValue(this.$route.params.hhM).replace(/-/g,"/")}`:null}},mounted(){const e=document.querySelector(".top-nav"),t=e?.querySelectorAll(".t-menu__popup");e&&t&&t.length>0&&e.addEventListener("scroll",(()=>{t.forEach((t=>{t.style.marginLeft=`-${e.scrollLeft}px`}))}))},methods:{getUrl:e=>e.path.toLowerCase().startsWith("http")?e.path:`${window.origin}/#${e.path}`,getHref(e){const t=e.path?.match(/(http|https):\/\/([\w.]+\/?)\S*/)||[];return t.length?t[0]:`${window.location.protocol}//${e.path}`},addEllipsis(e){return this.isTop&&e.length>4?`${e.slice(0,3)}...`:e},tIsActive:function(e){return"/"!==e.path&&(this.$route.path===e.path||this.$route.path.startsWith(`${e.path}/`))||this.mapHhM===(e.redirect||e.path)}}};var tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.isTop?"top-nav":"",e.showHomeDrag?"is-user":"is-admin"]},[e._l(e.list,(function(t){return[t.children&&t.children.length&&!t.meta.single?n("t-submenu",{key:t.path,class:{"t-is-opened custom-active":e.$route.path.startsWith(t.path),"t-is-active":e.$route.path.startsWith(t.path)},attrs:{name:t.path,value:t.path,title:e.addEllipsis(t.title)},scopedSlots:e._u([{key:"icon",fn:function(){return[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.title,offset:-100,placement:"top-start","hide-after":1e3}},[t.appImg?n("el-image",{staticStyle:{width:"27px",height:"25px","border-radius":"50%","object-fit":"cover"},attrs:{src:t.appImg}}):"string"==typeof t.icon&&t.icon&&"#"!==t.icon?n("svg-icon",{staticClass:"svg-icon-menu-class",attrs:{"icon-class":t.icon}}):e._e()],1),e._v(" "),n("render-fn-icon",{attrs:{item:t}})]},proxy:!0}],null,!0)},[e._v(" "),t.children?n("menu-content",{attrs:{"nav-data":t.children}}):e._e()],1):["0"===t.isFrame?n("t-menu-item",{key:t.path,class:{"t-is-active":e.tIsActive(t)},attrs:{href:e.getHref(t),name:t.path,value:t.meta.single?t.redirect:t.path,target:"1"===t.openNewWindow?"_self":"_blank"},scopedSlots:e._u([{key:"icon",fn:function(){return["string"==typeof t.icon&&t.icon?n("svg-icon",{staticClass:"svg-icon-menu-class",attrs:{"icon-class":t.icon}}):e._e(),e._v(" "),n("render-fn-icon",{attrs:{item:t}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.title)+"\n ")]):"0"===t.openNewWindow?n("t-menu-item",{key:t.path,class:{"t-is-active":e.tIsActive(t)},attrs:{name:t.path,value:t.meta.single?t.redirect:t.path,href:e.getUrl(t)},scopedSlots:e._u([{key:"icon",fn:function(){return["string"==typeof t.icon&&t.icon?n("svg-icon",{staticClass:"svg-icon-menu-class",attrs:{"icon-class":t.icon}}):e._e(),e._v(" "),n("render-fn-icon",{attrs:{item:t}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.title)+"\n ")]):t.meta.link?n("t-menu-item",{key:t.path,class:{"t-is-active":e.tIsActive(t)},attrs:{name:t.path,value:t.meta.single?t.redirect:t.path,href:t.meta.link},scopedSlots:e._u([{key:"icon",fn:function(){return["string"==typeof t.icon&&t.icon?n("svg-icon",{staticClass:"svg-icon-menu-class",attrs:{"icon-class":t.icon}}):e._e(),e._v(" "),n("render-fn-icon",{attrs:{item:t}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.title)+"\n ")]):n("t-menu-item",{key:t.path,class:{"t-is-active":e.tIsActive(t)},attrs:{name:t.path,value:t.meta.single?t.redirect:t.path,to:t.meta.single?t.redirect:t.path},scopedSlots:e._u([{key:"icon",fn:function(){return[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.title,offset:-100,placement:"top-start"}},["string"==typeof t.icon&&t.icon&&"#"!==t.icon?n("svg-icon",{staticClass:"svg-icon-menu-class",attrs:{"icon-class":t.icon}}):e._e()],1),e._v(" "),n("render-fn-icon",{attrs:{item:t}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(t.title)+"\n ")])]]}))],2)};tn._withStripped=!0;const nn=Ce({render:tn,staticRenderFns:[]},(function(e){e&&e("data-v-afadcc20_0",{source:".svg-icon-menu-class {\n width: 2em !important;\n height: 1.8em !important;\n}\n.top-nav ::v-deep .t-submenu {\n position: static;\n}\n.top-nav ::v-deep .t-submenu ::v-deep .t-is-opened {\n height: 50px !important;\n}\n.top-nav ::v-deep .t-submenu .t-menu__popup {\n min-width: auto;\n max-height: var(--popup-max-height, 999px) !important;\n}\n.top-nav ::v-deep .t-submenu .t-menu__item::before {\n display: none;\n}\n",map:{version:3,sources:["MenuContent.vue"],names:[],mappings:"AAAA;EACE,qBAAqB;EACrB,wBAAwB;AAC1B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,eAAe;EACf,qDAAqD;AACvD;AACA;EACE,aAAa;AACf",file:"MenuContent.vue",sourcesContent:[".svg-icon-menu-class {\n width: 2em !important;\n height: 1.8em !important;\n}\n.top-nav ::v-deep .t-submenu {\n position: static;\n}\n.top-nav ::v-deep .t-submenu ::v-deep .t-is-opened {\n height: 50px !important;\n}\n.top-nav ::v-deep .t-submenu .t-menu__popup {\n min-width: auto;\n max-height: var(--popup-max-height, 999px) !important;\n}\n.top-nav ::v-deep .t-submenu .t-menu__item::before {\n display: none;\n}\n"]},media:void 0})}),en,undefined,false,undefined,!1,de,void 0,void 0);let on=[];var an={name:"SideNav",components:{MenuContent:nn,LayoutMainMenu:Qt},props:{prefix:String,myLogo:Object,menu:Array,showLogo:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},icons:{type:Object,default:()=>({})},layout:String,headerHeight:{type:String,default:"64px"},theme:{type:String,default:"light"},isCompact:{type:Boolean,default:!1}},data(){return{formData:this.$store.state.setting,showInfo:this.$proxyEnv.showInfo,collapsed:this.$store.state.setting.isSidebarCompact}},computed:{...p({showHomeDrag:"user/showHomeDrag"}),defaultExpanded(){const e=this.$route.path,t=[];let n="";return e.split("/").forEach((e=>{e&&(n+=`/${e}`,t.push(n))})),t},sideNavCls(){return[`${this.prefix}-sidebar-layout`,{[`${this.prefix}-sidebar-compact`]:!this.collapsed,...this.showHomeDrag?{}:{[`${this.prefix}-admin-sidebar-compact`]:!this.collapsed}}]},menuCls(){return["side-nav__container",`${this.prefix}-side-nav`,{[`${this.prefix}-side-nav-no-logo`]:!this.showLogo,[`${this.prefix}-side-nav-no-fixed`]:!this.isFixed,[`${this.prefix}-side-nav-mix-fixed`]:"mix"===this.layout&&this.isFixed}]},active(){return this.$route.path?this.$route.path.split("/").filter(((e,t)=>t>0)).map((e=>`/${e}`)).join(""):""},sideNavStyle(){return{width:this.collapsed?"64px":"234px"}}},methods:{changeCol(){this.collapsed=!this.collapsed,this.$store.commit("setting/showSidebarCompact",this.collapsed)},handleExpand:function(){this.initPopupMenuHeight()},initPopupMenuHeight:function(){this.collapsed&&this.showHomeDrag&&this.$nextTick((()=>{const e=this.$el.querySelectorAll(".t-menu__popup"),t=[];for(let n=0;n<e.length;n++){const o=e[n];o.classList.contains("t-is-opened")?(t.push(o),on.includes(o)||(o.style.position="fixed",o.style.width="216px",setTimeout((()=>{const e=o.previousElementSibling,t=e?.getBoundingClientRect();e&&(o.style.position="fixed",o.style.left=`${t.right+16}px`,o.style.top=`${t.top}px`),o.style.maxHeight="",o.style.overflowY="";let n=window.innerHeight-t.top-2;const i=o.scrollHeight;if(n<200&&i>n){let e=0;i<200?(e=i-n,n=i):(e=200-n,n=200),o.style.top=t.top-e+"px"}if(i>n){const e=Math.max(n+2,100);o.style.maxHeight=`${e}px`,o.style.overflowY="auto",o.style.overflowX="hidden"}else o.style.maxHeight="unset"}),150))):on.includes(o)&&(o.style.width=0)}on=t}))}}};const An=an;var rn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"side-nav",class:e.sideNavCls,style:e.showHomeDrag?e.sideNavStyle:""},[e.showHomeDrag?n("img",{staticClass:"colIcon",attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAADICAYAAABvRChfAAAACXBIWXMAAAsTAAALEwEAmpwYAAA4G2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMTQgNzkuMTUxNDgxLCAyMDEzLzAzLzEzLTEyOjA5OjE1ICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDI1LTAzLTE3VDE3OjU5OjQxKzA4OjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMjUtMDMtMTdUMTg6MDI6NDQrMDg6MDA8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDI1LTAzLTE3VDE4OjAyOjQ0KzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD54bXAuaWlkOmY4OWU1MDY1LTlmMWMtNmE0Mi04NWJkLWM1ZTk5ODAwOGE1OTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpmODllNTA2NS05ZjFjLTZhNDItODViZC1jNWU5OTgwMDhhNTk8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDpmODllNTA2NS05ZjFjLTZhNDItODViZC1jNWU5OTgwMDhhNTk8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jcmVhdGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6Zjg5ZTUwNjUtOWYxYy02YTQyLTg1YmQtYzVlOTk4MDA4YTU5PC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDI1LTAzLTE3VDE3OjU5OjQxKzA4OjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjY1NTM1PC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj4zNzwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4yMDA8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PvI0X3QAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAtFJREFUeNrs3b2O2kAQB/CZlpoyRa6luiKNyxNNGq/CI/hNjjfh3gAhitCAr6eIeAIXFBQnOhrklVMkvjicjdf27IdO/2kQBeKnHbPMTrHDq9WqoPZI/75mzJzlef4ym80yshRsiKqFMnNKRK95nmeSyCGoamRENNdapxI4KVQ1kqE4G6h3nFJqERqKiCjVWiddV8026v1567JqLlB/voj52XQrcYbqAnOKMoU5R5nAvKDaYN5QJSyO43lQKCIirfXD7Wp5RxFRqpR6Cg31IY1BoG7TGAyqulrBoKqrFRSqLHdCQy2UUkloKNJaPwSHIqIkRFQKVHDlMFBAAQUUUEABBRRQQAEFFFBAAQUUUEABBRRQQAEFFFBAAQUUUECVEUXR8nA4fLtcLl+CQE2n05+j0eh7URTH3W5HbTDrqBJUvjeBWUXdgsq4Xq+/NpvNo3NUE6goiuN+v387nU5uUUNAVlBDQeIoCZAoSgokhpIEiaCkQYNRNkCDULZAvVE2Qb1QtkGdUS5AnVCuQMYolyAjlGtQK8oH6C7KF6gR5RPUiIqiaDkej3/UfWC73R5NTiRW0ucTdvdB9wVr3RJ8wIw2T9cw478Zl7BOf8iuYJ1LFxewXkWebVjvctgmbNDBwRZs8BHLBkzkMCoNEzu2S8JEGxxSMPFWkATMStNsKMxae3EIzGojtglWFMVxvV77QdXBvDVim2DeGrFNMZlMlufz+avzRqyXIg8ooIACCiiggAIKKKCAAgoooIACCiiggAIKKKCAAgoooIACCqjPjMqAMkod8zOujTZJnVIqrAu2y9vkcZO8SeqC2qdCHATw34CJIFC3ozi8o+qGlvhGfZgL4h1VN0HFK4qZn+I4ToMpXe6BvKDaQM5RJiCXqIyZExOQK1Ttz94byjRdrlALZn7pA7KBSpl53hcjjRLBSKAWRPQqNQeyDyqjf2M9rUCq8XsA1HbGg7Iqy3kAAAAASUVORK5CYII="},on:{click:e.changeCol}}):e._e(),e._v(" "),n("t-menu",{staticClass:"t-menu-logo",class:[e.menuCls,e.collapsed?"":"side-nav-admin-container"],staticStyle:{"z-index":"99"},attrs:{width:"232px",theme:e.theme,value:e.active,collapsed:e.showHomeDrag?e.collapsed:e.showHomeDrag,"default-expanded":e.defaultExpanded},on:{expand:e.handleExpand},scopedSlots:e._u([{key:"logo",fn:function(){return[n("span",{staticClass:"logo-display"},[e.showLogo?n("span",[n(e.showInfo?e.myLogo:"",{tag:"component"})],1):e._e(),e._v(" "),!e.collapsed&&e.showLogo&&e.menu.length?n("span",{class:e.showLogo?"":"text-center",staticStyle:{"font-size":"24px","margin-left":"20px","font-weight":"700",color:"#4F4E4E"},style:{color:"light"==e.formData.mode?"#000":"#fff"}},[e._v(e._s(e.platformTitle))]):e._e()])]},proxy:!0},{key:"operations",fn:function(){},proxy:!0}])},[e._v(" "),n("layout-main-menu"),e._v(" "),n("menu-content",{staticClass:"side-nav__menu-content menu-padding-left",attrs:{"nav-data":e.menu}})],1),e._v(" "),n("div",{class:e.prefix+"-side-nav-placeholder"+(e.showHomeDrag&&e.collapsed?"-hidden":"")})],1)};rn._withStripped=!0;const sn=Ce({render:rn,staticRenderFns:[]},(function(e){e&&e("data-v-1130656f_0",{source:"span.text-center[data-v-1130656f] {\n width: 100%;\n display: flex;\n justify-content: center;\n}\n.menu-padding-left[data-v-1130656f] ul.t-menu__sub {\n --padding-left: 32px !important;\n}\n.menu-padding-left[data-v-1130656f] ul.t-menu__sub ul {\n --padding-left: 44px !important;\n}\n.t-menu-logo[data-v-1130656f] .t-menu__logo {\n justify-content: center;\n border-bottom: none;\n}\n.t-menu-logo .logo-display[data-v-1130656f] {\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n justify-content: center;\n}\n[data-v-1130656f] .t-menu__popup-wrapper {\n border-radius: var(--td-radius-medium);\n}\n.colIcon[data-v-1130656f] {\n position: absolute;\n height: 50px;\n width: 12px;\n right: -12px;\n top: 45%;\n z-index: 99;\n cursor: pointer;\n}\n.side-nav[data-v-1130656f] {\n transition: width 0.3s ease;\n overflow: hidden;\n}\n[data-v-1130656f] .t-default-menu.t-is-collapsed .t-submenu > .t-menu__item::after {\n display: none;\n}\n",map:{version:3,sources:["SideNav.vue"],names:[],mappings:"AAAA;EACE,WAAW;EACX,aAAa;EACb,uBAAuB;AACzB;AACA;EACE,+BAA+B;AACjC;AACA;EACE,+BAA+B;AACjC;AACA;EACE,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,yBAAyB;EACzB,sBAAsB;EACtB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,sCAAsC;AACxC;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,YAAY;EACZ,QAAQ;EACR,WAAW;EACX,eAAe;AACjB;AACA;EACE,2BAA2B;EAC3B,gBAAgB;AAClB;AACA;EACE,aAAa;AACf",file:"SideNav.vue",sourcesContent:["span.text-center {\n width: 100%;\n display: flex;\n justify-content: center;\n}\n.menu-padding-left /deep/ ul.t-menu__sub {\n --padding-left: 32px !important;\n}\n.menu-padding-left /deep/ ul.t-menu__sub ul {\n --padding-left: 44px !important;\n}\n.t-menu-logo /deep/ .t-menu__logo {\n justify-content: center;\n border-bottom: none;\n}\n.t-menu-logo .logo-display {\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n justify-content: center;\n}\n::v-deep .t-menu__popup-wrapper {\n border-radius: var(--td-radius-medium);\n}\n.colIcon {\n position: absolute;\n height: 50px;\n width: 12px;\n right: -12px;\n top: 45%;\n z-index: 99;\n cursor: pointer;\n}\n.side-nav {\n transition: width 0.3s ease;\n overflow: hidden;\n}\n::v-deep .t-default-menu.t-is-collapsed .t-submenu > .t-menu__item::after {\n display: none;\n}\n"]},media:void 0})}),An,"data-v-1130656f",false,undefined,!1,de,void 0,void 0),gn={name:"MenuItem",props:{item:Object,activeColor:String,normalColor:String,normalIconColor:String,textActiveColor:String,activeIndex:String},data:()=>({isRootActive:!1}),watch:{$route:{handler:function(e){this.item.isRoot&&(this.isRootActive=e.path.startsWith(this.item.path))},immediate:!0}},computed:{rootClassName:function(){return this.item.isRoot?"menu--root"+(this.isRootActive?" is-active":""):""}},render(e){const{item:t}=this,n=t.children?.filter((e=>!e.hidden)),o={color:this.isRootActive?this.textActiveColor:this.normalIconColor};return n&&n.length?e("el-submenu",{props:{index:t.path,popperAppendToBody:!1,popperClass:"side-nav-brief--pop"},key:t.path,class:this.rootClassName},[e("template",{slot:"title"},[t.meta.icon&&t.isRoot&&e("div",{class:"active-icon-bg",style:{backgroundColor:this.activeColor}}),t.meta.icon&&(t.meta.icon.startsWith("el")?e("i",{class:t.meta.icon,style:o}):e("svg-icon",{class:"svg-icon-class",style:o,props:{iconClass:t.meta.icon}})),e("span",{class:"submenu-title",style:{color:this.isRootActive?this.activeColor:this.normalColor}},t.meta.title)]),...n.map((t=>e(gn,{props:{item:t}})))]):e("el-menu-item",{props:{index:t.path},key:t.path,class:this.rootClassName,style:{color:this.isRootActive?this.activeColor:this.normalColor}},[t.meta.icon&&this.item.isRoot&&e("div",{class:"active-icon-bg",style:{backgroundColor:this.activeColor}}),t.meta.icon&&(t.meta.icon.startsWith("el")?e("i",{class:t.meta.icon,style:o}):e("svg-icon",{class:"svg-icon-class",style:o,props:{iconClass:t.meta.icon}})),e("span",{class:"menu-title",style:{color:this.isRootActive?this.activeColor:this.normalColor}},t.meta.title)])}};const ln={name:"SideNavBreif",components:{MenuItem:gn},props:{menus:Array,width:{type:Number,default:155},popWidth:{type:Number,default:156},menuColor:{type:Object,default:()=>({})},menuWidth:Number},data:function(){return{activeIndex:void 0,activeColor:this.menuColor.activeColor||"#2684fe",normalColor:this.menuColor.normalColor||"#aeb2ba",textActiveColor:this.menuColor.textActiveColor||"#ffffff",normalIconColor:this.menuColor.normalIconColor||"#000000",bgc:this.menuColor.bgc||"#ffffff",rootMenuSize:this.menuWidth||.7*this.width}},computed:{filterMenus:function(){return this.menus.filter((e=>!e.hidden)).map((e=>({...e,isRoot:!0})))}},created(){this.activeIndex=this.$router.resolve(this.$route.path).route.path}};var Cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"side-nav-brief",style:{width:e.width+"px"}},[n("el-menu",{style:{"--normal-color":e.normalColor,"--text-active-color":e.textActiveColor,"--active-color":e.activeColor,"--pop-width":e.popWidth+"px","--root-menu-size":e.rootMenuSize+"px"},attrs:{router:"","default-active":e.activeIndex,collapse:!0,"text-color":e.normalColor,"background-color":e.bgc}},e._l(e.filterMenus,(function(t){return n("menu-item",{key:t.path,attrs:{"active-index":e.activeIndex,"active-color":e.activeColor,"normal-color":e.normalColor,"text-active-color":e.textActiveColor,"normal-icon-color":e.normalIconColor,item:t}})})),1)],1)};Cn._withStripped=!0;const cn={name:"LayoutSidebar",components:{SideNav:sn,SideNavBrief:Ce({render:Cn,staticRenderFns:[]},(function(e){e&&e("data-v-c71ac40a_0",{source:"[data-v-c71ac40a].el-menu--collapse {\n width: var(--root-menu-size);\n display: flex;\n margin: 0 auto;\n flex-direction: column;\n border-right: none;\n /* stylelint-disable no-descending-specificity */\n}\n[data-v-c71ac40a].el-menu--collapse > .el-menu-item,[data-v-c71ac40a].el-menu--collapse > .el-submenu > .el-submenu__title {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 13px;\n height: var(--root-menu-size);\n transition: all 0.5s;\n}\n[data-v-c71ac40a].el-menu--collapse > .el-menu-item .svg-icon-class,[data-v-c71ac40a].el-menu--collapse > .el-submenu > .el-submenu__title .svg-icon-class {\n width: 22px;\n height: 22px;\n z-index: 1;\n margin-top: 20px;\n}\n[data-v-c71ac40a].el-menu--collapse .active-icon-bg {\n display: none;\n}\n[data-v-c71ac40a].el-menu--collapse .el-menu-item.is-active {\n color: #FFFFFF;\n background-color: #2684FE !important;\n}\n[data-v-c71ac40a].el-menu--collapse .menu--root.is-active .active-icon-bg,[data-v-c71ac40a].el-menu--collapse .menu--root:hover .active-icon-bg {\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: #2684FE;\n box-shadow: 5px 8px 10px 0 rgba(38, 132, 254, 0.32);\n border-radius: 8px;\n position: absolute;\n transform: translateY(-10px);\n}\n[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-menu-item,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-menu-item,[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title {\n gap: 26px;\n}\n[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-menu-item span,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-menu-item span,[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title span,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title span {\n color: var(--active-color) !important;\n}\n[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-menu-item svg,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-menu-item svg,[data-v-c71ac40a].el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title svg,[data-v-c71ac40a].el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title svg {\n color: var(--text-active-color) !important;\n}\n[data-v-c71ac40a].el-menu--collapse > .el-menu-item span,[data-v-c71ac40a].el-menu--collapse > .el-submenu > .el-submenu__title span {\n height: 14px;\n width: auto;\n visibility: visible;\n overflow: visible;\n line-height: 14px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-submenu {\n min-width: 120px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-menu-item {\n min-width: 120px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-menu-item:not(.is-active) {\n color: var(--normal-color);\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .svg-icon-class {\n margin-right: 10px;\n width: 14px;\n height: 14px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-menu-item:hover,[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover {\n border-radius: 4px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-menu-item:hover span,[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover span,[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-menu-item:hover svg,[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover svg {\n color: var(--text-active-color) !important;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop li.el-submenu > .el-submenu__title,[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop li.el-menu-item {\n height: 36px;\n line-height: 36px;\n border-radius: 4px;\n padding-left: 13px !important;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop li + li {\n margin-top: 10px;\n}\n[data-v-c71ac40a].el-menu--collapse .side-nav-brief--pop > ul {\n min-width: var(--pop-width);\n width: var(--pop-width);\n background-color: #FFFFFF;\n box-shadow: 5px 8px 10px 0 rgba(38, 132, 254, 0.32);\n border-radius: 8px;\n padding: 15px 10px;\n}\n[data-v-c71ac40a].el-menu--collapse .menu--root > .side-nav-brief--pop {\n transform: translate(-22px, 18px);\n}\n",map:{version:3,sources:["SideNavBrief.vue"],names:[],mappings:"AAAA;EACE,4BAA4B;EAC5B,aAAa;EACb,cAAc;EACd,sBAAsB;EACtB,kBAAkB;EAClB,gDAAgD;AAClD;AACA;EAEE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,uBAAuB;EACvB,SAAS;EACT,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;EACd,oCAAoC;AACtC;AACA;EAEE,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,yBAAyB;EACzB,mDAAmD;EACnD,kBAAkB;EAClB,kBAAkB;EAClB,4BAA4B;AAC9B;AACA;EAIE,SAAS;AACX;AACA;EAIE,qCAAqC;AACvC;AACA;EAIE,0CAA0C;AAC5C;AACA;EAEE,YAAY;EACZ,WAAW;EACX,mBAAmB;EACnB,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;AACd;AACA;EAEE,kBAAkB;AACpB;AACA;EAIE,0CAA0C;AAC5C;AACA;EAEE,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,6BAA6B;AAC/B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,2BAA2B;EAC3B,uBAAuB;EACvB,yBAAyB;EACzB,mDAAmD;EACnD,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,iCAAiC;AACnC",file:"SideNavBrief.vue",sourcesContent:["::v-deep.el-menu--collapse {\n width: var(--root-menu-size);\n display: flex;\n margin: 0 auto;\n flex-direction: column;\n border-right: none;\n /* stylelint-disable no-descending-specificity */\n}\n::v-deep.el-menu--collapse > .el-menu-item,\n::v-deep.el-menu--collapse > .el-submenu > .el-submenu__title {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 13px;\n height: var(--root-menu-size);\n transition: all 0.5s;\n}\n::v-deep.el-menu--collapse > .el-menu-item .svg-icon-class,\n::v-deep.el-menu--collapse > .el-submenu > .el-submenu__title .svg-icon-class {\n width: 22px;\n height: 22px;\n z-index: 1;\n margin-top: 20px;\n}\n::v-deep.el-menu--collapse .active-icon-bg {\n display: none;\n}\n::v-deep.el-menu--collapse .el-menu-item.is-active {\n color: #FFFFFF;\n background-color: #2684FE !important;\n}\n::v-deep.el-menu--collapse .menu--root.is-active .active-icon-bg,\n::v-deep.el-menu--collapse .menu--root:hover .active-icon-bg {\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: #2684FE;\n box-shadow: 5px 8px 10px 0 rgba(38, 132, 254, 0.32);\n border-radius: 8px;\n position: absolute;\n transform: translateY(-10px);\n}\n::v-deep.el-menu--collapse .menu--root.is-active.el-menu-item,\n::v-deep.el-menu--collapse .menu--root:hover.el-menu-item,\n::v-deep.el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title,\n::v-deep.el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title {\n gap: 26px;\n}\n::v-deep.el-menu--collapse .menu--root.is-active.el-menu-item span,\n::v-deep.el-menu--collapse .menu--root:hover.el-menu-item span,\n::v-deep.el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title span,\n::v-deep.el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title span {\n color: var(--active-color) !important;\n}\n::v-deep.el-menu--collapse .menu--root.is-active.el-menu-item svg,\n::v-deep.el-menu--collapse .menu--root:hover.el-menu-item svg,\n::v-deep.el-menu--collapse .menu--root.is-active.el-submenu > .el-submenu__title svg,\n::v-deep.el-menu--collapse .menu--root:hover.el-submenu > .el-submenu__title svg {\n color: var(--text-active-color) !important;\n}\n::v-deep.el-menu--collapse > .el-menu-item span,\n::v-deep.el-menu--collapse > .el-submenu > .el-submenu__title span {\n height: 14px;\n width: auto;\n visibility: visible;\n overflow: visible;\n line-height: 14px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-submenu {\n min-width: 120px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-menu-item {\n min-width: 120px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-menu-item:not(.is-active) {\n color: var(--normal-color);\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .svg-icon-class {\n margin-right: 10px;\n width: 14px;\n height: 14px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-menu-item:hover,\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover {\n border-radius: 4px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-menu-item:hover span,\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover span,\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-menu-item:hover svg,\n::v-deep.el-menu--collapse .side-nav-brief--pop .el-submenu > .el-submenu__title:hover svg {\n color: var(--text-active-color) !important;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop li.el-submenu > .el-submenu__title,\n::v-deep.el-menu--collapse .side-nav-brief--pop li.el-menu-item {\n height: 36px;\n line-height: 36px;\n border-radius: 4px;\n padding-left: 13px !important;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop li + li {\n margin-top: 10px;\n}\n::v-deep.el-menu--collapse .side-nav-brief--pop > ul {\n min-width: var(--pop-width);\n width: var(--pop-width);\n background-color: #FFFFFF;\n box-shadow: 5px 8px 10px 0 rgba(38, 132, 254, 0.32);\n border-radius: 8px;\n padding: 15px 10px;\n}\n::v-deep.el-menu--collapse .menu--root > .side-nav-brief--pop {\n transform: translate(-22px, 18px);\n}\n"]},media:void 0})}),ln,"data-v-c71ac40a",false,undefined,!1,de,void 0,void 0)},computed:{...p({showSidebar:"setting/showSidebar",showSidebarLogo:"setting/showSidebarLogo",getProjectionMode:"user/getProjectionMode",mode:"setting/mode",menuRouters:"subMenus"}),setting(){return this.$store.state.setting},isOnlyHome(){const e=this.menuRouters.filter((e=>!e.hidden));return 1===e.length&&"/homePage/index"===e[0].path},isGroupLogin:()=>"true"===sessionStorage.getItem("isGroupLogin"),sideMenu(){const{layout:e,splitMenu:t}=this.$store.state.setting;let{menuRouters:n}=this;return"mix"===e&&t&&n.forEach((e=>{0===this.$route.path.indexOf(e.path)&&(n=e.children.map((t=>({...t,path:`${e.path}/${t.path}`}))))})),n}}};var dn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"brief"===e.$attrs.sideMenuType?n("div",[n("side-nav-brief",e._b({attrs:{menus:e.sideMenu}},"side-nav-brief",e.$attrs,!1))],1):"custom"===e.$attrs.sideMenuType?n("div",[n(e.$attrs.customSideMenu,e._b({tag:"component",attrs:{menus:e.sideMenu}},"component",e.$attrs,!1))],1):!e.showSidebar||e.isGroupLogin||e.isOnlyHome||e.getProjectionMode?e._e():n("side-nav",e._b({class:{"side-nav--hide":0===e.menuRouters.length},attrs:{"show-logo":e.showSidebarLogo,layout:e.setting.layout,"is-fixed":e.setting.isSidebarFixed,menu:e.sideMenu,theme:e.mode,"is-compact":e.setting.isSidebarCompact}},"side-nav",e.$attrs,!1))};dn._withStripped=!0;const In=Ce({render:dn,staticRenderFns:[]},undefined,cn,"data-v-d93eed30",false,undefined,!1,void 0,void 0,void 0);const pn={name:"Thumbnail",props:{url:{type:String,default:""},type:{type:String,default:"layout"}},computed:{className(){return["thumbnail-container",{"thumbnail-circle":"circle"===this.type,"thumbnail-layout":"layout"===this.type}]}}};var un=function(){var e=this,t=e.$createElement;return(e._self._c||t)("img",{class:e.className,attrs:{src:e.url}})};un._withStripped=!0;const mn=Ce({render:un,staticRenderFns:[]},(function(e){e&&e("data-v-5f88aa88_0",{source:".thumbnail-container[data-v-5f88aa88] {\n display: inline-block;\n}\n.thumbnail-circle[data-v-5f88aa88] {\n border-radius: 50%;\n}\n.thumbnail-layout[data-v-5f88aa88] {\n width: 88px;\n height: 48px;\n}\n",map:{version:3,sources:["SettingThumbnail.vue"],names:[],mappings:"AAAA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,YAAY;AACd",file:"SettingThumbnail.vue",sourcesContent:[".thumbnail-container {\n display: inline-block;\n}\n.thumbnail-circle {\n border-radius: 50%;\n}\n.thumbnail-layout {\n width: 88px;\n height: 48px;\n}\n"]},media:void 0})}),pn,"data-v-5f88aa88",false,undefined,!1,de,void 0,void 0);const hn={name:"Color",props:{value:{type:String,default:"default"}},computed:{style(){const{colorList:e}=this.$store.state.setting;return{background:"dynamic"!==this.value?S(this.value,e)["--td-brand-color"]:"conic-gradient(from 90deg at 50% 50%, #FF0000 -19.41deg, #FF0000 18.76deg, #FF8A00 59.32deg, #FFE600 99.87deg, #14FF00 141.65deg, #00A3FF 177.72deg, #0500FF 220.23deg, #AD00FF 260.13deg, #FF00C7 300.69deg, #FF0000 340.59deg, #FF0000 378.76deg)"}}}};var fn=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"color-container",style:e.style})};fn._withStripped=!0;const vn=["mix","top","side"],bn=["default","cyan","green","yellow","orange","red","pink","purple","dynamic"],yn=[{type:"light",text:"明亮"},{type:"dark",text:"暗黑"},{type:"auto",text:"跟随系统"}];const xn={name:"DefaultLayoutSetting",components:{Thumbnail:mn,ColorContainer:Ce({render:fn,staticRenderFns:[]},(function(e){e&&e("data-v-10ebc37f_0",{source:".color-container[data-v-10ebc37f] {\n width: 24px;\n height: 24px;\n border-radius: 50%;\n display: inline-block;\n}\n",map:{version:3,sources:["SettingColor.vue"],names:[],mappings:"AAAA;EACE,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,qBAAqB;AACvB",file:"SettingColor.vue",sourcesContent:[".color-container {\n width: 24px;\n height: 24px;\n border-radius: 50%;\n display: inline-block;\n}\n"]},media:void 0})}),hn,"data-v-10ebc37f",false,undefined,!1,de,void 0,void 0)},props:{icons:{type:Object,default:()=>({})},styleConfig:{type:Object,default:()=>({})}},data(){return{visible:!1,thumbnailUrl:{mix:this.icons.mix,top:this.icons.top,side:this.icons.side},colors:{hex:null},MODE_OPTIONS:yn,LAYOUT_OPTION:vn,COLOR_OPTIONS:bn,formData:{},isColoPickerDisplay:!1}},computed:{...p({showSettingBtn:"setting/showSettingBtn",userInfo:"user/userInfo",userId:"user/userId",userName:"user/name"}),showSettingPanel:{get(){return this.$store.state.setting.showSettingPanel},set(e){this.$store.commit("setting/toggleSettingPanel",e)}},iconName(){return this.visible?"close":"setting"},showOthers(){return this.formData.showFooter&&!this.formData.isSidebarFixed||!this.formData.splitMenu}},watch:{formData:{handler(e){const{isSidebarCompact:t}=this.$store.state.setting;this.$store.dispatch("setting/changeTheme",{...e,isSidebarCompact:t})},deep:!0}},mounted(){this.userInfo.userSetting?this.formData=JSON.parse(this.userInfo.userSetting):this.formData={...this.styleConfig},document.querySelector(".dynamic-color-btn")?.addEventListener("click",(()=>{this.isColoPickerDisplay=!0}))},methods:{onPopupVisibleChange(e,t){e||"document"!==t.trigger||(this.isColoPickerDisplay=e)},onReset(){this.formData={...this.styleConfig},this.$message.success("已恢复初始设置")},onSubmit({result:e,firstError:t,e:n}){n.preventDefault(),!0===e?this.visible=!1:this.$message.warning(t)},getModeIcon(e){return"light"===e?this.icons.settingLightIcon:"dark"===e?this.icons.settingDarkIcon:this.icons.settingAutoIcon},getThumbnailUrl(e){return this.thumbnailUrl[e]},handleClick(){this.$store.commit("setting/toggleSettingPanel",!0)},handleCloseDrawer(){this.$store.commit("setting/toggleSettingPanel",!1)},changeColor(e){const{setting:t}=this.$store.state,n=$.getPaletteByGradation({colors:[e],step:10})[0],{mode:o}=this.$store.state.setting,i=F(e,n,o);this.$store.commit("setting/addColor",{[e]:i}),T(e,i,o),this.$store.dispatch("setting/changeTheme",{...t,brandTheme:e})},onClose(){this.visible=!1},resetCongig(){this.onReset();const e={userId:this.userId,userName:this.userName},t=this.formData||{};e.userSetting=JSON.stringify(t),this.$store.dispatch("user/updateModel",e),this.handleCloseDrawer(),this.visible=!1},saveCongig(){const e={userId:this.userId,userName:this.userName},t=this.formData||{};e.userSetting=JSON.stringify(t),this.$store.dispatch("user/updateModel",e),this.$message.success("保存成功"),this.handleCloseDrawer()}}};var En=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("t-drawer",{staticClass:"setting-drawer-container",attrs:{size:"408px",footer:!1,visible:e.showSettingPanel,header:"页面配置","close-btn":!0,"on-close-btn-click":e.handleCloseDrawer},on:{"update:visible":function(t){e.showSettingPanel=t}}},[n("div",{staticClass:"setting-container"},[n("t-form",{ref:"form",attrs:{data:e.formData,"label-align":"left"},on:{reset:e.onReset,submit:e.onSubmit}},[n("div",{staticClass:"setting-group-title"},[e._v("\n 主题模式\n ")]),e._v(" "),n("t-radio-group",{model:{value:e.formData.mode,callback:function(t){e.$set(e.formData,"mode",t)},expression:"formData.mode"}},e._l(e.MODE_OPTIONS,(function(t,o){return n("div",{key:o,staticClass:"setting-layout-drawer"},[n("div",[n("t-radio-button",{key:o,attrs:{value:t.type}},[n(e.getModeIcon(t.type),{tag:"component"})],1),e._v(" "),n("p",{style:{textAlign:"center",marginTop:"8px"}},[e._v("\n "+e._s(t.text)+"\n ")])],1)])})),0),e._v(" "),n("div",{staticClass:"setting-group-title"},[e._v("\n 主题色\n ")]),e._v(" "),n("t-radio-group",{model:{value:e.formData.brandTheme,callback:function(t){e.$set(e.formData,"brandTheme",t)},expression:"formData.brandTheme"}},[e._l(e.COLOR_OPTIONS.slice(0,e.COLOR_OPTIONS.length-1),(function(e,t){return n("div",{key:t,staticClass:"setting-layout-drawer"},[n("t-radio-button",{key:t,staticClass:"setting-layout-color-group",attrs:{value:e}},[n("color-container",{attrs:{value:e}})],1)],1)})),e._v(" "),n("div",{staticClass:"setting-layout-drawer"},[n("t-popup",{attrs:{"destroy-on-close":"","expand-animation":"",placement:"bottom-right",trigger:"click",visible:e.isColoPickerDisplay,"overlay-style":{padding:0}},on:{"visible-change":e.onPopupVisibleChange},scopedSlots:e._u([{key:"content",fn:function(){return[n("t-color-picker-panel",{attrs:{"on-change":e.changeColor,"color-modes":["monochrome"],format:"HEX","swatch-colors":[]}})]},proxy:!0}])},[e._v(" "),n("t-radio-button",{staticClass:"setting-layout-color-group dynamic-color-btn",attrs:{value:e.COLOR_OPTIONS[e.COLOR_OPTIONS.length-1]}},[n("color-container",{attrs:{value:e.COLOR_OPTIONS[e.COLOR_OPTIONS.length-1]}})],1)],1)],1)],2),e._v(" "),n("div",{staticClass:"setting-group-title"},[e._v("\n 导航布局\n ")]),e._v(" "),n("t-radio-group",{model:{value:e.formData.layout,callback:function(t){e.$set(e.formData,"layout",t)},expression:"formData.layout"}},e._l(e.LAYOUT_OPTION,(function(t,o){return n("div",{key:o,staticClass:"setting-layout-drawer"},[n("t-radio-button",{key:o,attrs:{value:t}},[n("thumbnail",{attrs:{src:e.getThumbnailUrl(t)}})],1)],1)})),0),e._v(" "),n("t-form-item",{directives:[{name:"show",rawName:"v-show",value:"mix"===e.formData.layout,expression:"formData.layout === 'mix'"}],attrs:{label:"分割菜单(混合模式下有效)",name:"splitMenu"}},[n("t-switch",{model:{value:e.formData.splitMenu,callback:function(t){e.$set(e.formData,"splitMenu",t)},expression:"formData.splitMenu"}})],1),e._v(" "),n("t-form-item",{directives:[{name:"show",rawName:"v-show",value:"side"!==e.formData.layout,expression:"formData.layout !== 'side'"}],attrs:{label:"固定 Header",name:"isHeaderFixed"}},[n("t-switch",{model:{value:e.formData.isHeaderFixed,callback:function(t){e.$set(e.formData,"isHeaderFixed",t)},expression:"formData.isHeaderFixed"}})],1),e._v(" "),n("t-form-item",{directives:[{name:"show",rawName:"v-show",value:"top"!==e.formData.layout,expression:"formData.layout !== 'top'"}],attrs:{label:"固定 Sidebar",name:"isSidebarFixed"}},[n("t-switch",{model:{value:e.formData.isSidebarFixed,callback:function(t){e.$set(e.formData,"isSidebarFixed",t)},expression:"formData.isSidebarFixed"}})],1),e._v(" "),n("div",{staticClass:"setting-group-title"},[e._v("\n 元素开关\n ")]),e._v(" "),n("t-form-item",{directives:[{name:"show",rawName:"v-show",value:"side"===e.formData.layout,expression:"formData.layout === 'side'"}],attrs:{label:"显示 Header",name:"showHeader"}},[n("t-switch",{model:{value:e.formData.showHeader,callback:function(t){e.$set(e.formData,"showHeader",t)},expression:"formData.showHeader"}})],1),e._v(" "),n("t-form-item",{attrs:{label:"显示 Breadcrumbs",name:"showBreadcrumb"}},[n("t-switch",{model:{value:e.formData.showBreadcrumb,callback:function(t){e.$set(e.formData,"showBreadcrumb",t)},expression:"formData.showBreadcrumb"}})],1),e._v(" "),n("t-form-item",{attrs:{label:"显示 Footer",name:"showFooter"}},[n("t-switch",{model:{value:e.formData.showFooter,callback:function(t){e.$set(e.formData,"showFooter",t)},expression:"formData.showFooter"}})],1),e._v(" "),n("t-form-item",{attrs:{label:"使用 多标签Tab页",name:"isUseTabsRouter"}},[n("t-switch",{model:{value:e.formData.isUseTabsRouter,callback:function(t){e.$set(e.formData,"isUseTabsRouter",t)},expression:"formData.isUseTabsRouter"}})],1),e._v(" "),n("t-form-item",{directives:[{name:"show",rawName:"v-show",value:e.formData.showFooter&&!e.formData.isSidebarFixed,expression:"formData.showFooter && !formData.isSidebarFixed"}],attrs:{label:"footer 内收",name:"footerPosition"}},[n("t-switch",{model:{value:e.formData.isFooterAside,callback:function(t){e.$set(e.formData,"isFooterAside",t)},expression:"formData.isFooterAside"}})],1)],1),e._v(" "),n("div",{staticClass:"setting-info"},[n("t-button",{staticStyle:{"margin-right":"15px"},attrs:{theme:"default",shape:"round",size:"large"},on:{click:function(t){e.visible=!0}}},[e._v("\n 重置\n ")]),e._v(" "),n("t-button",{attrs:{theme:"primary",shape:"round",size:"large"},on:{click:e.saveCongig}},[e._v("\n 保存\n ")])],1)],1)]),e._v(" "),n("t-dialog",{attrs:{theme:"warning",header:"提示",body:"您的修改还未保存,是否重置您的配置?",placement:"center",visible:e.visible,"on-close":e.onClose,"on-confirm":e.resetCongig}})],1)};En._withStripped=!0;const wn={name:"BaseLayout",components:{LayoutContent:Xt,LayoutSidebar:In,LayoutMainMenu:Qt,Setting:Ce({render:En,staticRenderFns:[]},(function(e){e&&e("data-v-41489cba_0",{source:'.tdesign-setting {\n z-index: 100;\n position: fixed;\n bottom: 200px;\n right: 0;\n height: 40px;\n width: 40px;\n border-radius: 20px 0 0 20px;\n transition: all 0.3s;\n}\n.tdesign-setting .t-icon {\n margin-left: 8px;\n}\n.tdesign-setting .tdesign-setting-text {\n font-size: 12px;\n display: none;\n}\n.tdesign-setting:hover {\n width: 96px;\n}\n.tdesign-setting:hover .tdesign-setting-text {\n display: inline-block;\n}\n.setting-layout-color-group {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n border-radius: 50% !important;\n padding: 6px !important;\n border: 2px solid transparent !important;\n}\n.setting-layout-color-group > .t-radio-button__label {\n display: inline-flex;\n}\n.tdesign-setting-close {\n position: fixed;\n bottom: 200px;\n right: 300px;\n}\n.setting-group-title {\n font-size: 14px;\n line-height: 22px;\n margin: 32px 0 24px;\n text-align: left;\n font-family: "Harmony_Sans", "PingFang SC", sans-serif;\n font-style: normal;\n font-weight: 500;\n color: var(--td-text-color-primary);\n}\n.setting-group-color {\n position: relative;\n}\n.setting-group-color > div {\n position: absolute;\n z-index: 2;\n right: 0;\n}\n.setting-link {\n cursor: pointer;\n color: var(--td-brand-color);\n margin-bottom: 8px;\n}\n.setting-info {\n position: absolute;\n padding: 12px 24px;\n bottom: 0;\n left: 0;\n line-height: 20px;\n font-size: 12px;\n text-align: end;\n color: var(--td-text-color-placeholder);\n width: 100%;\n background: var(--td-bg-color-container);\n}\n.setting-drawer-container .setting-container {\n padding-bottom: 100px;\n}\n.setting-drawer-container .t-radio-group.t-size-m {\n min-height: 32px;\n width: 100%;\n height: auto;\n justify-content: space-between;\n align-items: center;\n}\n.setting-drawer-container .t-form__controls-content {\n justify-content: end;\n}\n.setting-drawer-container .setting-layout-drawer {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-bottom: 16px;\n}\n.setting-drawer-container .setting-layout-drawer .t-radio-button {\n display: inline-flex;\n max-height: 78px;\n padding: 8px;\n border-radius: 3px;\n border: 2px solid rgba(100, 90, 90, 0.5);\n height: auto;\n}\n.setting-drawer-container .setting-layout-drawer .t-radio-button > .t-radio-button__label {\n display: inline-flex;\n}\n.setting-drawer-container .setting-layout-drawer .t-is-checked {\n border: 2px solid var(--td-brand-color) !important;\n}\n.setting-drawer-container .setting-layout-drawer .t-form__controls-content {\n justify-content: end;\n}\n.setting-route-theme .t-form__label {\n min-width: 310px !important;\n color: var(--td-text-color-secondary);\n}\n.setting-color-theme .setting-layout-drawer .t-radio-button {\n height: 32px;\n}\n.setting-color-theme .setting-layout-drawer:last-child {\n margin-right: 0;\n}\n.t-dialog__body {\n color: black;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n padding: 24px 0 0;\n}\n',map:{version:3,sources:["Setting.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,eAAe;EACf,aAAa;EACb,QAAQ;EACR,YAAY;EACZ,WAAW;EACX,4BAA4B;EAC5B,oBAAoB;AACtB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,aAAa;AACf;AACA;EACE,WAAW;AACb;AACA;EACE,qBAAqB;AACvB;AACA;EACE,oBAAoB;EACpB,uBAAuB;EACvB,mBAAmB;EACnB,6BAA6B;EAC7B,uBAAuB;EACvB,wCAAwC;AAC1C;AACA;EACE,oBAAoB;AACtB;AACA;EACE,eAAe;EACf,aAAa;EACb,YAAY;AACd;AACA;EACE,eAAe;EACf,iBAAiB;EACjB,mBAAmB;EACnB,gBAAgB;EAChB,sDAAsD;EACtD,kBAAkB;EAClB,gBAAgB;EAChB,mCAAmC;AACrC;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,QAAQ;AACV;AACA;EACE,eAAe;EACf,4BAA4B;EAC5B,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,iBAAiB;EACjB,eAAe;EACf,eAAe;EACf,uCAAuC;EACvC,WAAW;EACX,wCAAwC;AAC1C;AACA;EACE,qBAAqB;AACvB;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,YAAY;EACZ,8BAA8B;EAC9B,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,oBAAoB;EACpB,gBAAgB;EAChB,YAAY;EACZ,kBAAkB;EAClB,wCAAwC;EACxC,YAAY;AACd;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kDAAkD;AACpD;AACA;EACE,oBAAoB;AACtB;AACA;EACE,2BAA2B;EAC3B,qCAAqC;AACvC;AACA;EACE,YAAY;AACd;AACA;EACE,eAAe;AACjB;AACA;EACE,YAAY;EACZ,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,iBAAiB;AACnB",file:"Setting.vue",sourcesContent:['.tdesign-setting {\n z-index: 100;\n position: fixed;\n bottom: 200px;\n right: 0;\n height: 40px;\n width: 40px;\n border-radius: 20px 0 0 20px;\n transition: all 0.3s;\n}\n.tdesign-setting .t-icon {\n margin-left: 8px;\n}\n.tdesign-setting .tdesign-setting-text {\n font-size: 12px;\n display: none;\n}\n.tdesign-setting:hover {\n width: 96px;\n}\n.tdesign-setting:hover .tdesign-setting-text {\n display: inline-block;\n}\n.setting-layout-color-group {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n border-radius: 50% !important;\n padding: 6px !important;\n border: 2px solid transparent !important;\n}\n.setting-layout-color-group > .t-radio-button__label {\n display: inline-flex;\n}\n.tdesign-setting-close {\n position: fixed;\n bottom: 200px;\n right: 300px;\n}\n.setting-group-title {\n font-size: 14px;\n line-height: 22px;\n margin: 32px 0 24px;\n text-align: left;\n font-family: "Harmony_Sans", "PingFang SC", sans-serif;\n font-style: normal;\n font-weight: 500;\n color: var(--td-text-color-primary);\n}\n.setting-group-color {\n position: relative;\n}\n.setting-group-color > div {\n position: absolute;\n z-index: 2;\n right: 0;\n}\n.setting-link {\n cursor: pointer;\n color: var(--td-brand-color);\n margin-bottom: 8px;\n}\n.setting-info {\n position: absolute;\n padding: 12px 24px;\n bottom: 0;\n left: 0;\n line-height: 20px;\n font-size: 12px;\n text-align: end;\n color: var(--td-text-color-placeholder);\n width: 100%;\n background: var(--td-bg-color-container);\n}\n.setting-drawer-container .setting-container {\n padding-bottom: 100px;\n}\n.setting-drawer-container .t-radio-group.t-size-m {\n min-height: 32px;\n width: 100%;\n height: auto;\n justify-content: space-between;\n align-items: center;\n}\n.setting-drawer-container .t-form__controls-content {\n justify-content: end;\n}\n.setting-drawer-container .setting-layout-drawer {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-bottom: 16px;\n}\n.setting-drawer-container .setting-layout-drawer .t-radio-button {\n display: inline-flex;\n max-height: 78px;\n padding: 8px;\n border-radius: 3px;\n border: 2px solid rgba(100, 90, 90, 0.5);\n height: auto;\n}\n.setting-drawer-container .setting-layout-drawer .t-radio-button > .t-radio-button__label {\n display: inline-flex;\n}\n.setting-drawer-container .setting-layout-drawer .t-is-checked {\n border: 2px solid var(--td-brand-color) !important;\n}\n.setting-drawer-container .setting-layout-drawer .t-form__controls-content {\n justify-content: end;\n}\n.setting-route-theme .t-form__label {\n min-width: 310px !important;\n color: var(--td-text-color-secondary);\n}\n.setting-color-theme .setting-layout-drawer .t-radio-button {\n height: 32px;\n}\n.setting-color-theme .setting-layout-drawer:last-child {\n margin-right: 0;\n}\n.t-dialog__body {\n color: black;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n padding: 24px 0 0;\n}\n']},media:void 0})}),xn,undefined,false,undefined,!1,de,void 0,void 0)},props:{layoutHeader:{type:Object,default:null},prefix:String,myLogo:Object,expandIcon:String,menuParams:{type:Object,default:()=>({})}},computed:{...p({tabRouterList:"tabRouter/tabRouterList",showRootMenu:"user/showRootMenu"}),setting(){return this.$store.state.setting},isInIframe:function(){return window.self!==window.top},isShowHomeDrag(){this.$store.getters["user/showHomeDrag"]},sideLayouts(){return[{"side-layouts layout-role--user":this.$store.getters["user/showHomeDrag"],"layout-role--admin":!this.$store.getters["user/showHomeDrag"]}]}},watch:{$route(e){const{path:t,meta:{title:n},name:o,query:i,fullPath:a}=e;this.$store.commit("tabRouter/appendTabRouterList",{path:t,fullPath:a,title:n,name:o,query:i,isAlive:!0}),"{}"!==JSON.stringify(i)&&this.$store.commit("tabRouter/updateTabRouterQuery",{name:o,query:i})}},created(){window.addEventListener("beforeunload",this.setTabRouterListCache)},destroyed(){window.removeEventListener("beforeunload",this.setTabRouterListCache)},mounted(){const{path:e,meta:{title:t},name:n,query:o,fullPath:i}=this.$route;localStorage.getItem("tabRouterList")&&this.getTabRouterListCache(),this.$store.commit("tabRouter/appendTabRouterList",{path:e,fullPath:i,title:t,name:n,query:o,isAlive:!0})},methods:{getTabRouterListCache(){this.$store.commit("tabRouter/initTabRouterList",JSON.parse(localStorage.getItem("tabRouterList")))},setTabRouterListCache(){localStorage.setItem("tabRouterList",JSON.stringify(this.tabRouterList))}}};var _n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.sideLayouts},["side"===e.setting.layout?[n("t-layout",{key:"side"},[n("t-aside",[n("layout-sidebar",e._b({attrs:{prefix:e.prefix,"my-logo":e.myLogo,"expand-icon":e.expandIcon}},"layout-sidebar",e.menuParams,!1))],1),e._v(" "),n("t-layout",[n("t-header",[n(e.layoutHeader,{tag:"component"})],1),e._v(" "),n("t-content",[n("layout-content",{attrs:{prefix:e.prefix}})],1)],1)],1)]:"top"===e.setting.layout?[n("t-layout",{key:"top"},[n("t-header",[n(e.layoutHeader,{tag:"component"})],1),e._v(" "),n("t-content",[n("layout-main-menu"),e._v(" "),n("layout-content",{style:e.showRootMenu?{"margin-left":"var(--root-menu-width)"}:"",attrs:{prefix:e.prefix}})],1)],1)]:[n("t-layout",{key:"mix"},[e.isInIframe?e._e():n("t-header",[n(e.layoutHeader,{tag:"component"})],1),e._v(" "),n("t-layout",[e.isInIframe?e._e():n("t-aside",[n("layout-sidebar",e._b({attrs:{prefix:e.prefix,"my-logo":e.myLogo,"expand-icon":e.expandIcon}},"layout-sidebar",e.menuParams,!1))],1),e._v(" "),n("t-content",{class:{"is-in-iframe":e.isInIframe}},[n("layout-content",{attrs:{prefix:e.prefix}})],1)],1)],1)],e._v(" "),n("setting",e._b({},"setting",e.$attrs.setting,!1))],2)};_n._withStripped=!0;const Bn=Ce({render:_n,staticRenderFns:[]},(function(e){e&&e("data-v-0942bac6_0",{source:'.t-layout[data-v-0942bac6],[data-v-0942bac6] .narrow-scrollbar,[data-v-0942bac6] .t-tabs__nav-wrap,[data-v-0942bac6] .t-tabs__nav-item {\n font-family: "Harmony_Sans", PingFangSC-Regular, "PingFang SC", sans-serif;\n}\n.layout-role--admin[data-v-0942bac6] .t-head-menu .top-nav > .t-menu__item:not(:hover),\n.layout-role--admin[data-v-0942bac6] .t-head-menu .top-nav > .t-submenu > .t-menu__item:not(:hover) {\n color: #FFFFFF;\n}\n.layout-role--user[data-v-0942bac6] .t-head-menu .top-nav > .t-menu__item.t-is-active:not(:hover),\n.layout-role--user[data-v-0942bac6] .t-head-menu .top-nav > .t-submenu > .t-menu__item.t-is-active:not(:hover) {\n color: #FFFFFF;\n}\n[data-v-0942bac6] .t-is-collapsed .side-nav__menu-content .t-is-active {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n[data-v-0942bac6] .t-is-collapsed .side-nav__menu-content > .custom-active > .t-menu__item {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n[data-v-0942bac6] .t-default-menu:not(.t-menu--dark) .t-menu__item.t-is-active:not(.t-is-opened) {\n background: var(--td-brand-color-8);\n color: #FFFFFF;\n}\n[data-v-0942bac6] .t-default-menu:not(.t-menu--dark) .t-menu__item.t-is-active:not(.t-is-opened) .t-icon {\n color: var(--td-brand-color);\n}\n[data-v-0942bac6] .tdesign-starter-header-menu-fixed .side-nav__menu-content .t-is-active {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n[data-v-0942bac6] .tdesign-starter-header-menu-fixed .side-nav__menu-content > .custom-active > .t-menu__item {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n[data-v-0942bac6] .t-layout__header .t-menu__popup-wrapper {\n box-shadow: 5px 8px 10px #2684FE52;\n}\n',map:{version:3,sources:["index.vue"],names:[],mappings:"AAAA;EAIE,0EAA0E;AAC5E;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,iCAAiC;EACjC,cAAc;AAChB;AACA;EACE,iCAAiC;EACjC,cAAc;AAChB;AACA;EACE,mCAAmC;EACnC,cAAc;AAChB;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,iCAAiC;EACjC,cAAc;AAChB;AACA;EACE,iCAAiC;EACjC,cAAc;AAChB;AACA;EACE,kCAAkC;AACpC",file:"index.vue",sourcesContent:['.t-layout,\n::v-deep .narrow-scrollbar,\n::v-deep .t-tabs__nav-wrap,\n::v-deep .t-tabs__nav-item {\n font-family: "Harmony_Sans", PingFangSC-Regular, "PingFang SC", sans-serif;\n}\n.layout-role--admin /deep/ .t-head-menu .top-nav > .t-menu__item:not(:hover),\n.layout-role--admin /deep/ .t-head-menu .top-nav > .t-submenu > .t-menu__item:not(:hover) {\n color: #FFFFFF;\n}\n.layout-role--user /deep/ .t-head-menu .top-nav > .t-menu__item.t-is-active:not(:hover),\n.layout-role--user /deep/ .t-head-menu .top-nav > .t-submenu > .t-menu__item.t-is-active:not(:hover) {\n color: #FFFFFF;\n}\n::v-deep .t-is-collapsed .side-nav__menu-content .t-is-active {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n::v-deep .t-is-collapsed .side-nav__menu-content > .custom-active > .t-menu__item {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n::v-deep .t-default-menu:not(.t-menu--dark) .t-menu__item.t-is-active:not(.t-is-opened) {\n background: var(--td-brand-color-8);\n color: #FFFFFF;\n}\n::v-deep .t-default-menu:not(.t-menu--dark) .t-menu__item.t-is-active:not(.t-is-opened) .t-icon {\n color: var(--td-brand-color);\n}\n::v-deep .tdesign-starter-header-menu-fixed .side-nav__menu-content .t-is-active {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n::v-deep .tdesign-starter-header-menu-fixed .side-nav__menu-content > .custom-active > .t-menu__item {\n background: var(--td-brand-color);\n color: #FFFFFF;\n}\n::v-deep .t-layout__header .t-menu__popup-wrapper {\n box-shadow: 5px 8px 10px #2684FE52;\n}\n']},media:void 0})}),wn,"data-v-0942bac6",false,undefined,!1,de,void 0,void 0);const kn={name:"MoveLevel",props:{leftIcon:{type:String,default:"el-icon-d-arrow-left"},rightIcon:{type:String,default:"el-icon-d-arrow-right"},showScroll:{type:Boolean,default:!1}},data:function(){return this.handleScroll=function(e,t=300){let n;return function(...o){clearTimeout(n),n=setTimeout((()=>e.apply(this,o)),t)}}((()=>{this.containerWidth()})),{leftIconDisabled:!0,rightIconDisabled:!1,showIcon:!1,timer:null,resizeObserver:null}},beforeDestroy(){window.removeEventListener("resize",this.containerWidth),this.handleScrollMouseUp(),this.resizeObserver&&this.resizeObserver.disconnect()},mounted(){this.setupResizeObserver(),window.addEventListener("resize",this.containerWidth),this.containerWidth()},methods:{setupResizeObserver(){this.resizeObserver=new ResizeObserver((()=>{this.containerWidth()}));const e=this.$refs.content.children[0];e&&this.resizeObserver.observe(e)},containerWidth:function(){this.$nextTick((()=>{const e=this.$refs.content;if(!e)return;const t=e.scrollWidth,n=e.clientWidth;this.showIcon=t>n;const o=t-n-1;e.scrollLeft<=0?this.leftIconDisabled=!0:this.leftIconDisabled=!1,e.scrollLeft>=o?this.rightIconDisabled=!0:this.rightIconDisabled=!1}))},handleScrollMouseDown:function(e){if(e&&this.leftIconDisabled||!e&&this.rightIconDisabled)return;const t=this.$refs.content,n=Math.max(parseFloat((1/window.devicePixelRatio).toFixed(2))+.01,1);if(e)this.timer=setInterval((()=>{t.scrollLeft-=n,t.scrollLeft<=0?(this.leftIconDisabled=!0,this.handleScrollMouseUp()):(this.rightIconDisabled=!1,this.leftIconDisabled=!1)}),10);else{const e=t.scrollWidth-t.clientWidth-1;this.timer=setInterval((()=>{t.scrollLeft+=n,t.scrollLeft>=e?(this.rightIconDisabled=!0,this.handleScrollMouseUp()):(this.rightIconDisabled=!1,this.leftIconDisabled=!1)}),10)}},handleScrollMouseUp:function(){clearInterval(this.timer),this.timer=null}}};var $n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"move-level",class:{"show-scroll":e.showScroll}},[e.$slots.left&&e.showIcon?n("div",{staticClass:"slot-button-left",style:{cursor:e.leftIconDisabled?"no-drop":"pointer"},on:{mousedown:function(t){return e.handleScrollMouseDown(!0)},mouseup:function(t){return e.handleScrollMouseUp(!0)}}},[e._t("left")],2):e._e(),e._v(" "),!e.$slots.left&&e.showIcon?n("el-button",{staticClass:"scroll-left",attrs:{disabled:e.leftIconDisabled,type:"text",icon:e.leftIcon},nativeOn:{mousedown:function(t){return e.handleScrollMouseDown(!0)},mouseup:function(t){return e.handleScrollMouseUp(!0)}}}):e._e(),e._v(" "),n("div",{ref:"content",staticClass:"content",on:{"&scroll":function(t){return e.handleScroll.apply(null,arguments)}}},[e._t("default")],2),e._v(" "),e.$slots.right&&e.showIcon?n("div",{staticClass:"slot-button-right",style:{cursor:e.rightIconDisabled?"no-drop":"pointer"},on:{mousedown:function(t){return e.handleScrollMouseDown(!1)},mouseup:function(t){return e.handleScrollMouseUp(!1)}}},[e._t("right")],2):e._e(),e._v(" "),!e.$slots.right&&e.showIcon?n("el-button",{staticClass:"scroll-right",attrs:{disabled:e.rightIconDisabled,type:"text",icon:e.rightIcon},nativeOn:{mousedown:function(t){return e.handleScrollMouseDown(!1)},mouseup:function(t){return e.handleScrollMouseUp(!1)}}}):e._e()],1)};$n._withStripped=!0;const Sn=Ce({render:$n,staticRenderFns:[]},(function(e){e&&e("data-v-58ce77aa_0",{source:".move-level[data-v-58ce77aa] {\n width: 100%;\n height: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n position: relative;\n overflow: hidden;\n}\n.move-level .slot-button-left[data-v-58ce77aa] {\n height: 100%;\n width: 20px;\n position: absolute;\n left: 0;\n}\n.move-level .slot-button-right[data-v-58ce77aa] {\n height: 100%;\n width: 20px;\n position: absolute;\n right: 0;\n}\n.move-level .content[data-v-58ce77aa] {\n width: 100%;\n background-color: transparent;\n overflow: hidden;\n}\n.move-level.show-scroll .content[data-v-58ce77aa] {\n overflow-x: auto;\n height: 100%;\n display: flex;\n align-items: center;\n}\n.move-level .el-button[data-v-58ce77aa] {\n position: absolute;\n}\n.move-level .el-button.scroll-left[data-v-58ce77aa] {\n left: 0;\n}\n.move-level .el-button.scroll-right[data-v-58ce77aa] {\n right: 0;\n}\n",map:{version:3,sources:["index.vue"],names:[],mappings:"AAAA;EACE,WAAW;EACX,YAAY;EACZ,eAAe;EACf,sBAAsB;EACtB,aAAa;EACb,mBAAmB;EACnB,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB,OAAO;AACT;AACA;EACE,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB,QAAQ;AACV;AACA;EACE,WAAW;EACX,6BAA6B;EAC7B,gBAAgB;AAClB;AACA;EACE,gBAAgB;EAChB,YAAY;EACZ,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,OAAO;AACT;AACA;EACE,QAAQ;AACV",file:"index.vue",sourcesContent:[".move-level {\n width: 100%;\n height: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n position: relative;\n overflow: hidden;\n}\n.move-level .slot-button-left {\n height: 100%;\n width: 20px;\n position: absolute;\n left: 0;\n}\n.move-level .slot-button-right {\n height: 100%;\n width: 20px;\n position: absolute;\n right: 0;\n}\n.move-level .content {\n width: 100%;\n background-color: transparent;\n overflow: hidden;\n}\n.move-level.show-scroll .content {\n overflow-x: auto;\n height: 100%;\n display: flex;\n align-items: center;\n}\n.move-level .el-button {\n position: absolute;\n}\n.move-level .el-button.scroll-left {\n left: 0;\n}\n.move-level .el-button.scroll-right {\n right: 0;\n}\n"]},media:void 0})}),kn,"data-v-58ce77aa",false,undefined,!1,de,void 0,void 0);const Fn={props:{read:{type:Function,default:null},nothingIcon:{type:String,default:null}},data:()=>({isMessageVisible:!1,queryParams:{pageNum:1,pageSize:10,status:"0"}}),computed:{...p({userInfo:"user/userInfo"}),...u("notification",["msgData"])},methods:{...m("notification",["getMsgData"]),onPopupVisibleChange(e,t){if("trigger-element-click"===t.trigger)return this.isMessageVisible=!0,void this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName},loading:!1});this.isMessageVisible=e},goDetail(){this.$router.push({name:"MessageList"}),this.isMessageVisible=!1},setRead(e){this.read({messageId:e.messageId}).then((e=>{e&&200===e.code?(this.$modal.msgSuccess("设为已读成功"),this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName},loading:!1})):this.$modal.msgError("设为已读失败,请重新操作")}))},handleToPage(e){e&&this.$jumpToApp(e)}}};var Tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("t-popup",{attrs:{"expand-animation":"",placement:"bottom-right",trigger:"click",visible:e.isMessageVisible},on:{"visible-change":e.onPopupVisibleChange},scopedSlots:e._u([{key:"content",fn:function(){return[n("div",{staticClass:"header-msg"},[n("div",{staticClass:"header-msg-top"},[n("p",[e._v("站内信")])]),e._v(" "),e.msgData.length>0?n("t-list",{staticClass:"narrow-scrollbar",attrs:{split:!0}},e._l(e.msgData,(function(t,o){return n("t-list-item",{key:o,scopedSlots:e._u([{key:"action",fn:function(){return[n("t-button",{attrs:{variant:"outline"},on:{click:function(n){return e.setRead(t)}}},[e._v("\n 设为已读\n ")])]},proxy:!0}],null,!0)},[n("div",{on:{click:function(n){return e.handleToPage(t.url)}}},[n("p",{staticClass:"msg-content"},[e._v("\n "+e._s(t.content)+"\n ")]),e._v(" "),n("p",{staticClass:"msg-type"},[e._v("\n "+e._s(t.title)+"\n ")])]),e._v(" "),n("p",{staticClass:"msg-time"},[e._v("\n "+e._s(t.createTime)+"\n ")])])})),1):n("div",{staticClass:"empty-list"},[n("img",{attrs:{src:e.nothingIcon,alt:"空"}}),e._v(" "),n("p",[e._v("暂无通知")])]),e._v(" "),n("div",{staticClass:"header-msg-bottom"},[e.msgData.length>0?n("t-button",{staticClass:"header-msg-bottom-link",attrs:{variant:"text",theme:"primary"},on:{click:e.goDetail}},[e._v("\n 查看全部\n ")]):e._e()],1)],1)]},proxy:!0}])},[e._v(" "),n("t-badge",{attrs:{dot:e.msgData.length>0,count:e.msgData.length,offset:[21,9]}},[n("t-button",{attrs:{theme:"default",shape:"circle",variant:"text"},on:{click:function(t){e.isMessageVisible=!0}}},[n("svg-icon",{staticClass:"svg-icon-class",staticStyle:{color:"var(--white-color)","font-size":"16px","margin-top":"3px"},attrs:{"icon-class":"bell"}})],1)],1)],1)};Tn._withStripped=!0;let Dn=[];var Rn={name:"GlobalHeader",components:{MenuContent:nn,Message:Ce({render:Tn,staticRenderFns:[]},(function(e){e&&e("data-v-b33f7f7a_0",{source:".header-msg[data-v-b33f7f7a] {\n width: 400px;\n height: 500px;\n}\n.header-msg .empty-list[data-v-b33f7f7a] {\n height: calc(100% - 104px);\n text-align: center;\n padding-top: 135px;\n font-size: 14px;\n color: var(--td-text-color-secondary);\n}\n.header-msg .empty-list img[data-v-b33f7f7a] {\n width: 63px;\n}\n.header-msg .empty-list p[data-v-b33f7f7a] {\n margin-top: 30px;\n}\n.header-msg-top[data-v-b33f7f7a] {\n position: relative;\n height: 56px;\n font-size: 16px;\n color: var(--td-text-color-primary);\n text-align: center;\n line-height: 56px;\n border-bottom: 1px solid var(--td-component-border);\n}\n.header-msg-top .clear-btn[data-v-b33f7f7a] {\n position: absolute;\n top: 12px;\n right: 24px;\n}\n.header-msg-bottom[data-v-b33f7f7a] {\n height: 48px;\n align-items: center;\n display: flex;\n justify-content: center;\n}\n.header-msg-bottom-link[data-v-b33f7f7a] {\n text-decoration: none;\n font-size: 14px;\n color: var(--td-brand-color);\n line-height: 48px;\n cursor: pointer;\n}\n.header-msg .t-list[data-v-b33f7f7a] {\n height: calc(100% - 104px);\n}\n.header-msg .t-list-item[data-v-b33f7f7a] {\n overflow: hidden;\n width: 100%;\n padding: 16px 24px;\n border-radius: 3px;\n font-size: 14px;\n color: var(--td-text-color-primary);\n line-height: 22px;\n cursor: pointer;\n}\n.header-msg .t-list-item .msg-content[data-v-b33f7f7a] {\n margin-bottom: 16px;\n}\n.header-msg .t-list-item .t-list-item__action button[data-v-b33f7f7a] {\n opacity: 0;\n position: absolute;\n right: 24px;\n bottom: -6px;\n}\n.header-msg .t-list-item .msg-time[data-v-b33f7f7a] {\n transition: all 0.2s ease;\n opacity: 1;\n right: 24px;\n bottom: 16px;\n color: var(--td-text-color-secondary);\n}\n.header-msg .t-list-item[data-v-b33f7f7a]:hover {\n transition: background 0.2s ease;\n background: var(--td-bg-color-container-hover);\n}\n.header-msg .t-list-item:hover .msg-content[data-v-b33f7f7a] {\n color: var(--td-brand-color-8);\n}\n.header-msg .t-list-item:hover .t-list-item__action button[data-v-b33f7f7a] {\n bottom: 16px;\n opacity: 1;\n}\n.header-msg .t-list-item:hover .msg-time[data-v-b33f7f7a] {\n bottom: -6px;\n}\n.header-msg .t-list-item .msg-type[data-v-b33f7f7a] {\n color: var(--td-text-color-secondary);\n}\n",map:{version:3,sources:["Message.vue"],names:[],mappings:"AAAA;EACE,YAAY;EACZ,aAAa;AACf;AACA;EACE,0BAA0B;EAC1B,kBAAkB;EAClB,kBAAkB;EAClB,eAAe;EACf,qCAAqC;AACvC;AACA;EACE,WAAW;AACb;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,eAAe;EACf,mCAAmC;EACnC,kBAAkB;EAClB,iBAAiB;EACjB,mDAAmD;AACrD;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,WAAW;AACb;AACA;EACE,YAAY;EACZ,mBAAmB;EACnB,aAAa;EACb,uBAAuB;AACzB;AACA;EACE,qBAAqB;EACrB,eAAe;EACf,4BAA4B;EAC5B,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,kBAAkB;EAClB,kBAAkB;EAClB,eAAe;EACf,mCAAmC;EACnC,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,kBAAkB;EAClB,WAAW;EACX,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,UAAU;EACV,WAAW;EACX,YAAY;EACZ,qCAAqC;AACvC;AACA;EACE,gCAAgC;EAChC,8CAA8C;AAChD;AACA;EACE,8BAA8B;AAChC;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,YAAY;AACd;AACA;EACE,qCAAqC;AACvC",file:"Message.vue",sourcesContent:[".header-msg {\n width: 400px;\n height: 500px;\n}\n.header-msg .empty-list {\n height: calc(100% - 104px);\n text-align: center;\n padding-top: 135px;\n font-size: 14px;\n color: var(--td-text-color-secondary);\n}\n.header-msg .empty-list img {\n width: 63px;\n}\n.header-msg .empty-list p {\n margin-top: 30px;\n}\n.header-msg-top {\n position: relative;\n height: 56px;\n font-size: 16px;\n color: var(--td-text-color-primary);\n text-align: center;\n line-height: 56px;\n border-bottom: 1px solid var(--td-component-border);\n}\n.header-msg-top .clear-btn {\n position: absolute;\n top: 12px;\n right: 24px;\n}\n.header-msg-bottom {\n height: 48px;\n align-items: center;\n display: flex;\n justify-content: center;\n}\n.header-msg-bottom-link {\n text-decoration: none;\n font-size: 14px;\n color: var(--td-brand-color);\n line-height: 48px;\n cursor: pointer;\n}\n.header-msg .t-list {\n height: calc(100% - 104px);\n}\n.header-msg .t-list-item {\n overflow: hidden;\n width: 100%;\n padding: 16px 24px;\n border-radius: 3px;\n font-size: 14px;\n color: var(--td-text-color-primary);\n line-height: 22px;\n cursor: pointer;\n}\n.header-msg .t-list-item .msg-content {\n margin-bottom: 16px;\n}\n.header-msg .t-list-item .t-list-item__action button {\n opacity: 0;\n position: absolute;\n right: 24px;\n bottom: -6px;\n}\n.header-msg .t-list-item .msg-time {\n transition: all 0.2s ease;\n opacity: 1;\n right: 24px;\n bottom: 16px;\n color: var(--td-text-color-secondary);\n}\n.header-msg .t-list-item:hover {\n transition: background 0.2s ease;\n background: var(--td-bg-color-container-hover);\n}\n.header-msg .t-list-item:hover .msg-content {\n color: var(--td-brand-color-8);\n}\n.header-msg .t-list-item:hover .t-list-item__action button {\n bottom: 16px;\n opacity: 1;\n}\n.header-msg .t-list-item:hover .msg-time {\n bottom: -6px;\n}\n.header-msg .t-list-item .msg-type {\n color: var(--td-text-color-secondary);\n}\n"]},media:void 0})}),Fn,"data-v-b33f7f7a",false,undefined,!1,de,void 0,void 0),ViewListIcon:x,UserCircleIcon:E,PoweroffIcon:w,SettingIcon:_,ChevronDownIcon:B,UserIcon:k,MoveLevel:Sn},props:{apis:{type:Object,default:()=>({})},prefix:String,theme:String,layout:{type:String,default:"top"},showLogo:{type:Boolean,default:!0},menu:{type:Array},isFixed:{type:Boolean,default:!1},isCompact:{type:Boolean,default:!1}},data(){return{tenantOptions:[],selectedTenantCode:"",showInfo:this.$proxyEnv.showInfo,isSystem:"$system$"===this.$proxyEnv.APP_ID}},computed:{...p({showHomeDrag:"user/showHomeDrag",userInfo:"user/userInfo"}),loginConfirmStyle(){return this.showHomeDrag?"login-confirm-user":"login-confirm-admin"},active(){return this.$route.path?this.$route.path.split("/").filter(((e,t)=>t>0)).map((e=>`/${e}`)).join(""):""},layoutCls(){return[`${this.prefix}-header-layout`]},showHomeDrag(){return this.$store.getters["user/showHomeDrag"]},menuCls(){return[{[`${this.prefix}-header-menu`]:!this.isFixed,[`${this.prefix}-header-menu-fixed`]:this.isFixed,[`${this.prefix}-header-menu-fixed-side`]:"side"===this.layout&&this.isFixed,[`${this.prefix}-header-menu-fixed-side-compact`]:"side"===this.layout&&this.isFixed&&this.isCompact}]},isGroupLogin:()=>"true"===sessionStorage.getItem("isGroupLogin"),isLoginConfirm(){return!this.$store.getters["user/token"]},isResetPsw(){return"0"===this.$store.getters["user/userInfo"].userType},bgColor(){return"index"===this.$route.name&&this.isSystem?{background:"var(--bottom-light)"}:{background:this.showHomeDrag?"rgba(41, 109, 241, 0.08)":"var(--bottom-light)"}}},mounted(){this.getInitDeptds()},methods:{handleUserPage(){this.$router.push({name:"userDetail",query:{userId:this.userInfo.userId,userName:this.userInfo.userName},params:{hhM:"HOMEPAGE_INDEX"}})},handleToHome(){this.$router.push("/index")},getInitDeptds(){this.$store.getters["permission/whiteListRouters"].includes(this.$route.path)||(this.$store.getters["user/userInfo"]?.userId?this.apis.getTenantsByUserId(this.$store.getters["user/userInfo"].userId).then((e=>{this.tenantOptions=e.data,this.$store.commit("user/SET_TENANT",e.data),this.tenantOptions.length>0?(this.selectedTenantCode=this.$store.getters["user/userInfo"].currentTenantCode,this.selectedTenantCode&&this.tenantOptions.find((e=>e.tenantCode===this.selectedTenantCode))||this.exchangeTenant(this.tenantOptions[0].tenantCode,this.tenantOptions[0].tenantId,this.tenantOptions[0].tenantName)):this.$store.getters["user/userInfo"].currentTenantCode&&this.apis.clearUserTenant(this.$store.getters["user/userInfo"].userId).then((()=>{window.location.reload()}))})):this.$message.error("没有正常获取到用户ID"))},treeselectSelect(e){this.exchangeTenant(this.selectedTenantCode,e.tenantId,e.tenantName)},exchangeTenant(e,t,n){this.apis.exchangeTenant({tenantRoleKey:e}).then((async e=>{this.$store.dispatch("user/exchangeTenant",{token:e.data,tenantId:t,tenantName:n})}))},toggleSettingPanel(){this.$store.commit("setting/toggleSettingPanel",!0)},handleLogout(){const e={userName:this.$store.getters["user/name"],logout:1};this.apis.updateLastLogout(e),this.$confirm("确定注销并退出系统吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>Promise.all([this.$store.dispatch("user/logout"),this.$store.dispatch("permission/restore")]))).then((()=>{this.$router.push("/login")})).catch((e=>{console.error(e)}))},changeCollapsed(){this.$store.commit("setting/toggleSidebarCompact")},resetPsw(){this.$emit("reset-password")},handleExpand:function(){this.initPopupMenuHeight()},initPopupMenuHeight:function(){this.$nextTick((()=>{const e=this.$el.querySelectorAll(".t-menu__popup"),t=[];for(let n=0;n<e.length;n++){const o=e[n];if(o.classList.contains("t-is-opened")){if(t.push(o),!Dn.includes(o)){o.style.position="fixed",o.style.maxHeight="auto",o.style.minWidth="100px";const e=o.previousElementSibling,t=e?.getBoundingClientRect();let n=0;e&&(o.style.position="fixed",o.parentElement.closest(".t-menu__popup")?(n=t.top,o.style.left=`${t.right+16}px`):(n=t.bottom+6,o.style.left=`${t.left}px`)),o.style.height="unset";let i=window.innerHeight-n-2;const a=o.scrollHeight;if(i<200&&a>i){let e=0;a<200?(e=a-i,i=a):(e=200-i,i=200),n-=e}if(o.style.top=`${n}px`,a>i){const e=Math.max(i+2,100);o.style.maxHeight=`${e}px`,o.style.overflowY="auto",o.style.overflowX="hidden"}else o.style.maxHeight="initial",o.style.overflow="visible"}}else Dn.includes(o)&&setTimeout((()=>{o.classList.contains("t-is-opened")||(o.style.maxHeight=0,o.style.overflow="hidden")}),60)}Dn=t}))}}};const Pn=Rn;var On=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.layoutCls},[n("t-head-menu",{class:e.menuCls,staticStyle:{"margin-right":"0"},style:e.bgColor,attrs:{theme:e.theme,"expand-type":"popup",value:e.active},on:{expand:e.handleExpand},scopedSlots:e._u([{key:"logo",fn:function(){return[e.showLogo?n("span",{staticClass:"header-logo-container"},[n("span",{staticClass:"t-logo-container",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.preventDefault(),e.handleToHome.apply(null,arguments)}}},[e.showInfo?e._t("logo"):e._e()],2),e._v(" "),n("span",{staticClass:"header__title"},[e._v(e._s(e.platformTitle))])]):e._e(),e._v(" "),"top"===e.layout||e.isGroupLogin?e._e():n("div",{staticClass:"header-operate-left"},[n("t-button",{attrs:{theme:"default",shape:"square",variant:"text"},on:{click:e.changeCollapsed}},[n("view-list-icon",{staticClass:"collapsed-icon",staticStyle:{color:"var(--white-color)"}})],1)],1)]},proxy:!0},{key:"operations",fn:function(){return[e.isLoginConfirm?n("div",{class:e.loginConfirmStyle},[n("span",{on:{click:function(t){return e.$router.push("/login")}}},[e._v("登录")])]):n("div",{staticClass:"operations-container",staticStyle:{"margin-left":"20px"}},[e._t("btn1"),e._v(" "),e.tenantOptions.length>1&&"index"!==e.$route.name?n("el-select",{staticClass:"tenant-select",staticStyle:{width:"150px","font-weight":"700 !important"},attrs:{placeholder:"请选择租户",disabled:!e.isSystem},model:{value:e.selectedTenantCode,callback:function(t){e.selectedTenantCode=t},expression:"selectedTenantCode"}},e._l(e.tenantOptions,(function(t){return n("el-option",{key:t.tenantId,staticStyle:{"font-weight":"700 !important"},attrs:{label:t.tenantName,value:t.tenantCode},nativeOn:{click:function(n){return e.treeselectSelect(t)}}})})),1):e._e(),e._v(" "),e._t("btn2"),e._v(" "),"/index"!==e.$route.path?n("t-tooltip",{staticStyle:{color:"var(--white-color)"},attrs:{content:"站内信",placement:"bottom","show-arrow":""}},[n("message",e._b({},"message",e.$attrs.message,!1))],1):e._e(),e._v(" "),"/index"!==e.$route.path?n("t-tooltip",{staticStyle:{color:"var(--white-color)"},attrs:{placement:"bottom",content:"系统设置"}},[n("t-button",{attrs:{theme:"default",shape:"circle"},on:{click:e.toggleSettingPanel}},[n("setting-icon",{staticStyle:{"margin-top":"-3px"}})],1)],1):e._e(),e._v(" "),e._t("btn"),e._v(" "),n("t-dropdown",{attrs:{"min-column-width":125,trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[n("t-dropdown-menu",[n("t-dropdown-item",{staticClass:"operations-dropdown-container-item",on:{click:e.handleUserPage}},[n("user-icon"),n("span",{staticStyle:{"font-weight":"700"}},[e._v("用户详情")])],1),e._v(" "),n("t-dropdown-item",{staticClass:"operations-dropdown-container-item",on:{click:e.handleLogout}},[n("poweroff-icon"),n("span",{staticStyle:{"font-weight":"700"}},[e._v("退出登录")])],1),e._v(" "),e.isResetPsw?n("t-dropdown-item",{staticClass:"operations-dropdown-container-item",on:{click:e.resetPsw}},[n("setting-icon"),n("span",{staticStyle:{"font-weight":"700"}},[e._v("重置密码")])],1):e._e()],1)]},proxy:!0}],null,!1,2794212529)},[n("t-button",{staticClass:"header-user-btn",attrs:{theme:"default",variant:"text"},scopedSlots:e._u([{key:"icon",fn:function(){return[n("user-circle-icon",{staticClass:"header-user-avatar",staticStyle:{color:"var(--white-color)"}})]},proxy:!0}],null,!1,1284805753)},[e._v(" "),n("div",{staticClass:"header-user-account",staticStyle:{color:"var(--white-color)","font-weight":"700"}},[e._v("\n "+e._s(e.$store.getters["user/userInfo"].nickName)+"\n "),n("chevron-down-icon")],1)])],1)],2)]},proxy:!0}],null,!0)},[e._v(" "),"side"===e.layout||e.isGroupLogin?e._e():n("move-level",{attrs:{"show-scroll":!0}},[n("menu-content",{staticClass:"header-menu",attrs:{"nav-data":e.menu,"is-top":!0}}),e._v(" "),e._t("topMenu")],2)],1)],1)};On._withStripped=!0;const Ln=Ce({render:On,staticRenderFns:[]},(function(e){e&&e("data-v-54b920be_0",{source:".operations-container .tenant-select .el-input__inner {\n font-weight: 700 !important;\n}\n.header-menu {\n flex: 1 1 1;\n display: inline-flex;\n}\n.operations-container {\n display: flex;\n align-items: center;\n margin-right: 12px;\n}\n.operations-container .t-popup__reference {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.operations-container .t-button {\n margin: 0 8px;\n background-color: var(--light-bg);\n border: 1px solid transparent;\n}\n.operations-container .t-button.header-user-btn {\n margin: 0;\n background: transparent;\n border: none !important;\n}\n.operations-container .t-button.header-user-btn:hover {\n background-color: transparent;\n}\n.operations-container .t-button:hover {\n background-color: var(--light-bg-hover);\n border: 1px solid var(--light-bg-hover-border);\n}\n.operations-container .t-icon {\n font-size: 20px;\n}\n.operations-container .t-icon.general {\n margin-right: 16px;\n}\n.header-operate-left {\n display: flex;\n margin-left: 20px;\n align-items: normal;\n line-height: 0;\n}\n.header-operate-left .collapsed-icon {\n font-size: 20px;\n}\n.header-logo-container {\n font-size: 20px;\n width: 260px;\n height: 100%;\n display: flex;\n align-items: center;\n margin-left: 24px;\n color: var(--form-text);\n}\n.header-logo-container .t-logo {\n width: 100%;\n height: 100%;\n}\n.header-logo-container .t-logo:hover {\n cursor: pointer;\n}\n.header-user-account {\n display: inline-flex;\n align-items: center;\n color: var(--td-text-color-primary);\n}\n.header-user-account .t-icon {\n margin-left: 4px;\n font-size: 16px;\n}\n.t-head-menu__inner {\n border-bottom: 1px solid var(--td-border-level-1-color);\n}\n.t-menu--light .header-user-account {\n color: var(--td-text-color-primary);\n}\n.t-menu--dark .t-head-menu__inner {\n border-bottom: 1px solid var(--td-gray-color-10);\n}\n.t-menu--dark .header-user-account {\n color: rgba(255, 255, 255, 0.55);\n}\n.operations-dropdown-container-item {\n width: 100%;\n display: flex;\n align-items: center;\n}\n.operations-dropdown-container-item .t-icon {\n margin-right: 8px;\n}\n.operations-dropdown-container-item .t-dropdown__item {\n width: 100%;\n margin-bottom: 0;\n}\n.operations-dropdown-container-item .t-dropdown__item .t-dropdown__item__content {\n display: flex;\n justify-content: center;\n}\n.operations-dropdown-container-item .t-dropdown__item .t-dropdown__item__content__text {\n display: flex;\n align-items: center;\n font-size: 14px;\n}\n.operations-dropdown-container-item:last-child .t-dropdown__item {\n margin-bottom: 8px;\n}\n.login-confirm-admin span {\n color: #FFFFFF;\n font-weight: 700;\n margin-right: 30px;\n cursor: pointer;\n}\n.login-confirm-user span {\n color: #86909A;\n font-weight: 700;\n margin-right: 30px;\n cursor: pointer;\n}\n.tenant-select {\n margin-right: 8px;\n}\n.t-head-menu > .t-head-menu__inner > .t-menu {\n overflow-x: hidden;\n}\n",map:{version:3,sources:["Header.vue"],names:[],mappings:"AAAA;EACE,2BAA2B;AAC7B;AACA;EACE,WAAW;EACX,oBAAoB;AACtB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,aAAa;EACb,iCAAiC;EACjC,6BAA6B;AAC/B;AACA;EACE,SAAS;EACT,uBAAuB;EACvB,uBAAuB;AACzB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,uCAAuC;EACvC,8CAA8C;AAChD;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,iBAAiB;EACjB,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;EACf,YAAY;EACZ,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,iBAAiB;EACjB,uBAAuB;AACzB;AACA;EACE,WAAW;EACX,YAAY;AACd;AACA;EACE,eAAe;AACjB;AACA;EACE,oBAAoB;EACpB,mBAAmB;EACnB,mCAAmC;AACrC;AACA;EACE,gBAAgB;EAChB,eAAe;AACjB;AACA;EACE,uDAAuD;AACzD;AACA;EACE,mCAAmC;AACrC;AACA;EACE,gDAAgD;AAClD;AACA;EACE,gCAAgC;AAClC;AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,uBAAuB;AACzB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB",file:"Header.vue",sourcesContent:[".operations-container .tenant-select .el-input__inner {\n font-weight: 700 !important;\n}\n.header-menu {\n flex: 1 1 1;\n display: inline-flex;\n}\n.operations-container {\n display: flex;\n align-items: center;\n margin-right: 12px;\n}\n.operations-container .t-popup__reference {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.operations-container .t-button {\n margin: 0 8px;\n background-color: var(--light-bg);\n border: 1px solid transparent;\n}\n.operations-container .t-button.header-user-btn {\n margin: 0;\n background: transparent;\n border: none !important;\n}\n.operations-container .t-button.header-user-btn:hover {\n background-color: transparent;\n}\n.operations-container .t-button:hover {\n background-color: var(--light-bg-hover);\n border: 1px solid var(--light-bg-hover-border);\n}\n.operations-container .t-icon {\n font-size: 20px;\n}\n.operations-container .t-icon.general {\n margin-right: 16px;\n}\n.header-operate-left {\n display: flex;\n margin-left: 20px;\n align-items: normal;\n line-height: 0;\n}\n.header-operate-left .collapsed-icon {\n font-size: 20px;\n}\n.header-logo-container {\n font-size: 20px;\n width: 260px;\n height: 100%;\n display: flex;\n align-items: center;\n margin-left: 24px;\n color: var(--form-text);\n}\n.header-logo-container .t-logo {\n width: 100%;\n height: 100%;\n}\n.header-logo-container .t-logo:hover {\n cursor: pointer;\n}\n.header-user-account {\n display: inline-flex;\n align-items: center;\n color: var(--td-text-color-primary);\n}\n.header-user-account .t-icon {\n margin-left: 4px;\n font-size: 16px;\n}\n.t-head-menu__inner {\n border-bottom: 1px solid var(--td-border-level-1-color);\n}\n.t-menu--light .header-user-account {\n color: var(--td-text-color-primary);\n}\n.t-menu--dark .t-head-menu__inner {\n border-bottom: 1px solid var(--td-gray-color-10);\n}\n.t-menu--dark .header-user-account {\n color: rgba(255, 255, 255, 0.55);\n}\n.operations-dropdown-container-item {\n width: 100%;\n display: flex;\n align-items: center;\n}\n.operations-dropdown-container-item .t-icon {\n margin-right: 8px;\n}\n.operations-dropdown-container-item .t-dropdown__item {\n width: 100%;\n margin-bottom: 0;\n}\n.operations-dropdown-container-item .t-dropdown__item .t-dropdown__item__content {\n display: flex;\n justify-content: center;\n}\n.operations-dropdown-container-item .t-dropdown__item .t-dropdown__item__content__text {\n display: flex;\n align-items: center;\n font-size: 14px;\n}\n.operations-dropdown-container-item:last-child .t-dropdown__item {\n margin-bottom: 8px;\n}\n.login-confirm-admin span {\n color: #FFFFFF;\n font-weight: 700;\n margin-right: 30px;\n cursor: pointer;\n}\n.login-confirm-user span {\n color: #86909A;\n font-weight: 700;\n margin-right: 30px;\n cursor: pointer;\n}\n.tenant-select {\n margin-right: 8px;\n}\n.t-head-menu > .t-head-menu__inner > .t-menu {\n overflow-x: hidden;\n}\n"]},media:void 0})}),Pn,undefined,false,undefined,!1,de,void 0,void 0);var Nn={name:"DetailSecondary",dicts:["sys_detail_secondary_status"],props:{apis:{type:Object,default:()=>({})}},data:()=>({showSearch:!0,title:"",open:!1,form:{},queryParams:{pageNum:1,pageSize:10,status:"0"}}),computed:{...p({userInfo:"user/userInfo"}),...u("notification",["msgData"]),...u("notification",["msgTotal"])},created(){this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName}})},methods:{...m("notification",["getMsgData"]),indexMethod(e){return e+1+(this.queryParams.pageNum-1)*this.queryParams.pageSize},handleQuery(){this.queryParams.pageNum=1,this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName}})},resetQuery(){this.resetForm("queryForm"),this.handleQuery()},handleRead(e){this.$modal.confirm(`确认将标题为${e.title}的消息设为已读吗?`).then((()=>{this.apis.read({messageId:e.messageId}).then((e=>{e&&200===e.code?(this.$modal.msgSuccess("设为已读成功"),this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName}})):this.$modal.msgError("设为已读失败,请重新操作")}))}))},handleUnRead(e){this.$modal.confirm(`确认将标题为${e.title}的消息设为未读吗?`).then((()=>{this.apis.unRead({messageId:e.messageId}).then((e=>{e&&200===e.code?(this.$modal.msgSuccess("设为未读成功"),this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName}})):this.$modal.msgError("设为未读失败,请重新操作")}))}))},handleDelete(e){this.$modal.confirm(`确认将标题为${e.title}的消息删除吗?`).then((()=>{this.apis.deleteMsg(e.messageId).then((e=>{e&&200===e.code?(this.$modal.msgSuccess("删除成功"),this.getMsgData({queryParams:{...this.queryParams,userId:this.userInfo.userName}})):this.$modal.msgError("删除失败,请重新操作")}))}))},cellHandleclick(e,t){"消息标题"===t.label&&e.url&&this.$jumpToApp(e.url)},mouseEnterCell(e,t,n){"消息标题"==t.label&&(n.style.cursor="pointer",n.style.color="var(--td-brand-color-8)")},mouseLeaveCell(e,t,n){"消息标题"==t.label&&(n.style.color="rgba(0, 0, 0, 0.6)")}}};const qn=Nn;var jn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"状态",prop:"status"}},[n("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择消息状态",clearable:""},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.dict.type.sys_detail_secondary_status,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleQuery}},[e._v("\n 搜索\n ")]),e._v(" "),n("el-button",{attrs:{icon:"el-icon-refresh"},on:{click:e.resetQuery}},[e._v("\n 重置\n ")])],1)],1),e._v(" "),n("el-row",{staticClass:"mb8",attrs:{gutter:10}},[e._e(),e._v(" "),n("right-toolbar",{attrs:{"show-search":e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:function(t){return e.getMsgData({queryParams:Object.assign({},e.queryParams,{userId:e.userInfo.userName})})}}})],1),e._v(" "),n("div",{staticClass:"footer-box container-box--background"},[n("el-table",{attrs:{data:e.msgData},on:{"cell-mouse-enter":e.mouseEnterCell,"cell-mouse-leave":e.mouseLeaveCell,"cell-click":e.cellHandleclick}},[n("el-table-column",{attrs:{label:"序号",align:"center",type:"index",index:e.indexMethod}}),e._v(" "),n("el-table-column",{attrs:{label:"消息标题",align:"center",prop:"title","show-overflow-tooltip":!0}}),e._v(" "),n("el-table-column",{attrs:{label:"消息内容",prop:"content",align:"center","show-overflow-tooltip":!0}}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("dict-tag",{attrs:{options:e.dict.type.sys_detail_secondary_status,value:t.row.status}})]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return["0"===t.row.status?n("el-button",{attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(n){return e.handleRead(t.row)}}},[e._v("\n 设为已读\n ")]):n("el-button",{attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(n){return e.handleUnRead(t.row)}}},[e._v("\n 设为未读\n ")]),e._v(" "),n("el-button",{attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(n){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.msgTotal>0,expression:"msgTotal > 0"}],attrs:{total:e.msgTotal,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:function(t){return e.getMsgData({queryParams:Object.assign({},e.queryParams,{userId:e.userInfo.userName})})}}})],1),e._v(" "),n("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.open=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"消息标题",prop:"title"}},[n("el-input",{attrs:{placeholder:"请输入消息标题"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"状态",prop:"status"}},[n("el-select",{attrs:{placeholder:"请选择消息状态",clearable:""},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.dict.type.sys_detail_secondary_status,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"消息内容",prop:"content"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入消息内容"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"备注",prop:"remark"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{icon:"el-icon-close"}},[e._v("\n 取 消\n ")]),e._v(" "),n("el-button",{attrs:{icon:"el-icon-check",type:"primary"}},[e._v("\n 确 定\n ")])],1)],1)],1)};jn._withStripped=!0;const zn=Ce({render:jn,staticRenderFns:[]},undefined,qn,"data-v-4229fea2",false,undefined,!1,void 0,void 0,void 0);const Mn={name:"ImportFile",props:{uploadFile:{type:Function,default:null},accept:{type:String,default:".xlsx, .xls"},btnType:{type:String,default:"warning"},btnIcon:{type:String,default:"el-icon-upload2"},btnText:{type:String,default:"导入"},disabled:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},baseUrl:{type:String,default:void 0},uploadUrl:{type:String,default:"/file/upload"}},data:function(){return{loading:!1}},methods:{httpRequest:function(e){const t=new FormData;return t.append("file",e.file,e.file.name),this.uploadFile(t,this.baseUrl,this.uploadUrl)},handleBeforeUpload:function(e){if(this.$modal.loading("正在上传文件,请稍候..."),this.loading=!0,this.accept){let t="";e.name.lastIndexOf(".")>-1&&(t=e.name.slice(e.name.lastIndexOf(".")+1));if(!this.accept.includes(t))return this.$modal.msgError(`文件格式不正确, 请上传${this.accept}格式文件!`),this.$modal.closeLoading(),this.loading=!1,!1}},handleSuccess:function(e){this.showMessage&&this.$message.success(e&&e.message||"导入成功"),this.$emit("ok",e),this.$modal.closeLoading(),this.loading=!1},handleError:function(e){if(console.error(e,e.message,e.errorInfo),this.showMessage){let t;try{t=`导入失败:${JSON.parse(e.message).errorInfo.message}`}catch(e){t="导入失败"}this.$message.error(t)}this.$modal.closeLoading(),this.loading=!1}}};var Wn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-upload",{ref:"upload",staticClass:"import-file",attrs:{multiple:e.multiple,action:"","on-error":e.handleError,"on-success":e.handleSuccess,"before-upload":e.handleBeforeUpload,"show-file-list":!1,accept:e.accept,"http-request":e.httpRequest}},[n("el-button",{attrs:{type:e.btnType,icon:e.btnIcon,plain:"",loading:e.loading}},[e._v("\n "+e._s(e.btnText)+"\n ")])],1)};Wn._withStripped=!0;const Yn=Ce({render:Wn,staticRenderFns:[]},(function(e){e&&e("data-v-20da1508_0",{source:".import-file[data-v-20da1508] .el-upload {\n margin-top: 0;\n}\n",map:{version:3,sources:["ImportFile.vue"],names:[],mappings:"AAAA;EACE,aAAa;AACf",file:"ImportFile.vue",sourcesContent:[".import-file /deep/ .el-upload {\n margin-top: 0;\n}\n"]},media:void 0})}),Mn,"data-v-20da1508",false,undefined,!1,de,void 0,void 0);function Un(e){return Promise.resolve().then((()=>URL.createObjectURL(e)))}const Zn=["bmp","jpg","jpeg","png","gif"],Vn=["mpg","mpeg","avi","rm","rmvb","mov","wmv","asf","dat"];const Hn={name:"FileUpload",props:{apis:{type:Object,default:()=>({})},value:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:void 0},isShowTip:{type:Boolean,default:!0},downLoadUrl:{type:String,default:"/file/download/file"},isPictureCard:{type:Boolean,default:!1},buttonType:{type:String,default:"primary"},showUpload:{type:Boolean,default:!0},fileStatus:{type:Number,default:void 0},bizPath:{type:String},bucketName:{type:String},videoBucketName:{type:String},pictureBucketName:{type:String},uploadType:{type:String,default:"minio"},drag:{type:Boolean,default:!0},viewOnly:{type:Boolean,default:!1},needSpecialEmit:{type:Boolean,default:!1},hasPreview:{type:Boolean,default:!0}},data:()=>({number:0,uploadList:[],fileList:[],accept:"",dialogImageUrl:"",dialogVisible:!1,myFileType:void 0,defaultFileType:["doc","docx","xls","xlsx","ppt","pptx","txt","pdf",...Zn,...Vn],defaultPictureType:Zn,defaultVideoType:Vn,isMyEmit:!1}),computed:{showTip(){return this.isShowTip&&(this.fileType||this.fileSize)}},watch:{value:{handler(e){if(!e)return this.fileList=[],[];{const t=Array.isArray(e)?e:e.split("|");this.isMyEmit?this.isMyEmit=!1:this.initFileList(t.map((e=>{if("string"==typeof e){const[t,n]=e.split(":");e={id:t,name:n}}return e})))}},deep:!0,immediate:!0}},mounted(){this.fileType?this.myFileType=this.fileType:this.isPictureCard?this.myFileType=this.defaultPictureType:this.myFileType=this.defaultFileType,this.accept=this.myFileType.map((e=>`.${e}`)).join(",")},methods:{httpRequest:function(e){const t=e.file.name.split(".").pop(),n=new FormData;return this.pictureBucketName&&this.defaultPictureType.includes(t)?n.append("bucketName",this.pictureBucketName):this.videoBucketName&&this.defaultVideoType.includes(t)?n.append("bucketName",this.videoBucketName):n.append("bucketName",this.bucketName),n.append("file",e.file,e.file.name),n.append("bizPath",this.bizPath),n.append("uploadType",this.uploadType),new Promise(((e,t)=>{this.apis.uploadFile(n).then((n=>{200===n.code?e(n):t(n)})).catch((e=>{t(e)}))}))},initFileList(e){this.isPictureCard&&e.length>0?(this.fileList=[],e.forEach((e=>this.apis.downFile(e.id,{notErrorTip:!0}).then((e=>Un(e))).then((t=>{this.$set(e,"url",t),this.fileList.push(e)}))))):this.fileList=e},handleBeforeUpload(e){if(this.myFileType){let t="";e.name.lastIndexOf(".")>-1&&(t=e.name.slice(e.name.lastIndexOf(".")+1));if(!this.myFileType.some((n=>e.type.indexOf(n)>-1||!!(t&&t.indexOf(n)>-1))))return this.$modal.msgError(`文件格式不正确, 请上传${this.myFileType.join("/")}格式文件!`),!1}if(this.fileSize){if(!(e.size/1024/1024<this.fileSize))return this.$modal.msgError(`上传文件大小不能超过 ${this.fileSize} MB!`),!1}return this.$modal.loading("正在上传文件,请稍候..."),this.number+=1,!0},handleExceed(){this.$modal.msgError(`上传文件数量不能超过 ${this.limit} 个!`)},handleUploadError(){this.$modal.msgError("上传失败,请重试"),this.$modal.closeLoading()},handleUploadSuccess(e,t){const[n,o]=e.data.split(":");200===e.code&&(this.uploadList.push({name:o,id:n,url:t.url}),this.uploadList.length===this.number&&(this.fileList.push(...this.uploadList),this.uploadList=[],this.number=0,this.handleEmit(),this.$modal.closeLoading()))},listToString:e=>(e=e||[]).map((e=>`${e.id}:${e.name}`)).join("|"),handlePictureCardPreview(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove(e){this.fileList.splice(this.fileList.findIndex((t=>t.id===e.id)),1),this.handleEmit()},validateFile(){this.dispatch("el-form-item","el.form.blur",this.value)},dispatch(e,t,n){let o=this.$parent||this.$root,i=o.$options._componentTag;for(;o&&(!i||i!==e);)o=o.$parent,o&&(i=o.$options._componentTag);o&&o.$emit(t,n)},handlePreview(e){const t=e.name.split(".").pop();this.defaultPictureType.includes(t)?this.apis.downFile(e.id).then((e=>Un(e))).then((e=>{this.dialogImageUrl=e,this.dialogVisible=!0})):this.needSpecialEmit?this.$emit("on-view",e):this.apis.filePreview(e.id).then((e=>{window.open(e.data)}))},handleLoad(e){this.apis.downloadTemplate(`/file/download/${e.id}`)},handleEmit:function(){this.isMyEmit=!0,this.$emit("input",this.listToString(this.fileList)),this.$emit("change",this.fileList),this.validateFile()}}};var Xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"upload-file",class:{"view-only":e.viewOnly}},[n("el-dialog",{attrs:{visible:e.dialogVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"file-uplaod__preview-image"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})]),e._v(" "),e.isPictureCard?[n("el-upload",{ref:"upload",staticClass:"upload-file-uploader upload-file-picture",class:[e.fileList.length>=e.limit?"hide-upload":""],attrs:{"list-type":"picture-card",action:"","before-upload":e.handleBeforeUpload,limit:e.limit,drag:"","on-error":e.handleUploadError,"on-exceed":e.handleExceed,"on-success":e.handleUploadSuccess,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.fileList,accept:e.accept,"http-request":e.httpRequest,disabled:e.viewOnly}},[e.viewOnly?e._e():[n("div",[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",[e._v("\n 拖拽或者点击上传\n ")])]),e._v(" "),e.showTip?n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("\n 请上传\n "),e.fileSize?[e._v("\n 大小不超过 "),n("b",{staticStyle:{color:"#F56C6C"}},[e._v(e._s(e.fileSize)+"MB")])]:e._e(),e._v(" "),e.fileType?[e._v("\n 格式为 "),n("b",{staticStyle:{color:"#F56C6C"}},[e._v(e._s(e.fileType.join("/")))])]:e._e(),e._v("\n 的文件\n ")],2):e._e()]],2)]:e._e(),e._v(" "),e.isPictureCard?e._e():[e.showUpload?n("el-upload",{ref:"upload",staticClass:"upload-file-uploader",class:[e.fileList.length>=e.limit?"hide-upload":"",e.drag?"text-align-center":"upload-file-text"],attrs:{multiple:"",action:"","before-upload":e.handleBeforeUpload,"file-list":e.fileList,limit:e.limit,drag:e.drag,"on-error":e.handleUploadError,"on-exceed":e.handleExceed,"on-success":e.handleUploadSuccess,"show-file-list":!1,accept:e.accept,"http-request":e.httpRequest}},[e.viewOnly?e._e():[e.drag?n("div",[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或"),n("em",[e._v("点击上传")])])]):n("div",[n("el-button",{attrs:{type:e.buttonType}},[e._v("\n 选取文件\n ")])],1),e._v(" "),e.showTip?n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("\n 请上传\n "),e.fileSize?[e._v("\n 大小不超过 "),n("b",{staticStyle:{color:"#F56C6C"}},[e._v(e._s(e.fileSize)+"MB")])]:e._e(),e._v(" "),e.fileType?[e._v("\n 格式为 "),n("b",{staticStyle:{color:"#F56C6C"}},[e._v(e._s(e.fileType.join("/")))])]:e._e(),e._v("\n 的文件\n ")],2):e._e()]],2):e._e(),e._v(" "),n("transition-group",{staticClass:"upload-file-list el-upload-list el-upload-list--text",attrs:{name:"el-fade-in-linear",tag:"ul"}},e._l(e.fileList,(function(t){return n("li",{key:t.id,staticClass:"el-upload-list__item ele-upload-list__item-content"},[n("el-link",{attrs:{underline:!1}},[n("span",{staticClass:"el-icon-document"},[e._v(" "+e._s(t.name)+" ")])]),e._v(" "),n("div",{staticClass:"ele-upload-list__item-content-action"},[e.viewOnly?e._e():n("el-link",{attrs:{underline:!1,type:"danger"},on:{click:function(n){return e.handleRemove(t)}}},[e._v("\n 删除\n ")]),e._v(" "),n("el-link",{attrs:{underline:!1,type:"primary"},on:{click:function(n){return e.handleLoad(t)}}},[e._v("\n 下载\n ")]),e._v(" "),e.hasPreview?n("el-link",{attrs:{type:"primary",underline:!1},on:{click:function(n){return e.handlePreview(t)}}},[e._v("\n 预览\n ")]):e._e()],1)],1)})),0)]],2)};Xn._withStripped=!0;const Gn=Ce({render:Xn,staticRenderFns:[]},(function(e){e&&e("data-v-601d6542_0",{source:".upload-file-uploader[data-v-601d6542] .el-upload {\n margin-top: 0;\n}\n[data-v-601d6542] .upload-file-picture {\n width: 100%;\n}\n[data-v-601d6542] .upload-file-picture .el-upload--picture-card {\n width: 148px;\n height: 148px;\n line-height: 0;\n}\n[data-v-601d6542] .upload-file-picture .el-upload-dragger {\n height: 100%;\n}\n.upload-file-list .el-upload-list__item[data-v-601d6542] {\n border: 1px solid #E4E7ED;\n line-height: 2;\n margin-bottom: 10px;\n position: relative;\n padding-left: 5px;\n}\n.upload-file-list .el-upload-list__item[data-v-601d6542]:first-child {\n margin-top: 0;\n}\n.upload-file-list .ele-upload-list__item-content[data-v-601d6542] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: inherit;\n}\n.ele-upload-list__item-content-action .el-link[data-v-601d6542] {\n margin-right: 10px;\n}\n[data-v-601d6542] .hide-upload div.el-upload {\n display: none;\n transition: all 0.5s;\n}\n[data-v-601d6542] .hide-upload .el-upload__tip {\n display: none;\n transition: all 0.5s;\n}\n.upload-file-text[data-v-601d6542] .el-upload {\n text-align: right;\n}\n.text-align-center[data-v-601d6542] .el-upload {\n text-align: center;\n}\n.upload-file.view-only[data-v-601d6542] .el-upload {\n display: none;\n}\n.upload-file[data-v-601d6542] .el-upload-list__item.is-ready,\n.upload-file[data-v-601d6542] .el-upload-list__item.is-uploading {\n display: none !important;\n}\n",map:{version:3,sources:["index.vue"],names:[],mappings:"AAAA;EACE,aAAa;AACf;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;EACZ,aAAa;EACb,cAAc;AAChB;AACA;EACE,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,cAAc;EACd,mBAAmB;EACnB,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;EACb,8BAA8B;EAC9B,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,oBAAoB;AACtB;AACA;EACE,aAAa;EACb,oBAAoB;AACtB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;AACf;AACA;;EAEE,wBAAwB;AAC1B",file:"index.vue",sourcesContent:[".upload-file-uploader /deep/ .el-upload {\n margin-top: 0;\n}\n::v-deep .upload-file-picture {\n width: 100%;\n}\n::v-deep .upload-file-picture .el-upload--picture-card {\n width: 148px;\n height: 148px;\n line-height: 0;\n}\n::v-deep .upload-file-picture .el-upload-dragger {\n height: 100%;\n}\n.upload-file-list .el-upload-list__item {\n border: 1px solid #E4E7ED;\n line-height: 2;\n margin-bottom: 10px;\n position: relative;\n padding-left: 5px;\n}\n.upload-file-list .el-upload-list__item:first-child {\n margin-top: 0;\n}\n.upload-file-list .ele-upload-list__item-content {\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: inherit;\n}\n.ele-upload-list__item-content-action .el-link {\n margin-right: 10px;\n}\n::v-deep .hide-upload div.el-upload {\n display: none;\n transition: all 0.5s;\n}\n::v-deep .hide-upload .el-upload__tip {\n display: none;\n transition: all 0.5s;\n}\n.upload-file-text ::v-deep .el-upload {\n text-align: right;\n}\n.text-align-center ::v-deep .el-upload {\n text-align: center;\n}\n.upload-file.view-only /deep/ .el-upload {\n display: none;\n}\n.upload-file /deep/ .el-upload-list__item.is-ready,\n.upload-file /deep/ .el-upload-list__item.is-uploading {\n display: none !important;\n}\n"]},media:void 0})}),Hn,"data-v-601d6542",false,undefined,!1,de,void 0,void 0);var Kn={install:function(e,t){e.use(D,t),e.use(Z,t),e.use(ee,t),e.use(ae,t),e.component("FormSection",he),e.component("DictTag",Ee),e.component("CommonDialog",be),e.component("RightToolbar",Be),e.use(ge,t)}};export{dt as AppCallbackCom,kt as BytzKeepAlive,Ft as ContentCom,We as DictArrayAddOptionsMixin,Gn as FileUpload,Ln as HeaderCom,mt as IamCallbackCom,Yt as IframeViewCom,Yn as ImportFile,Bn as LayoutIndexCom,lt as LoginCom,zn as MessageListCom,Kn as default,ke as encrypt,Me as getPermission,Ne as getRequest,$e as processEncrypt,Ge as refreshTokenMixin};
|