!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a0?Math.ceil(a/864e5):0}))),f=s(u((function(){return c.getters.member_avatar?c.getters.member_avatar:w})));return{__sfc:!0,router:t,userAvatarMenus:a,visible:n,headimgurl:i,nick_name:r,serviceCodeRef:o,realNameRef:l,left_date:m,member_avatar:f,handleCommand:function(e){"serviceCode"===e?o.value.init():t.push(e)},handleVisibleChange:function(e){n.value=e},realName:function(){l.value.init()},showCode:function(){o.value.init()},goPay:function(){wx.invoke("openAppPurchase",{},(function(e){console.log("openAppPurchase",e),e.err_msg,"openAppPurchase:fail:no permission"==e.err_msg&&d.exports.Message({type:"error",message:"调用人身份不符"}),"openAppPurchase:fail"==e.err_msg&&d.exports.Message({type:"error",message:"调用失败"})}))},$store:c,ServiceCode:R,RealName:P,$stores:c}}},E=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"user-avatar-content"},[a.left_date?t("div",{staticClass:"edition-con",on:{click:a.goPay}},[t("span",{staticClass:"left"},[e._v("剩余"+e._s(a.left_date)+"天")]),t("span",{staticClass:"right"},[e._v(e._s(a.$store.getters.edition_name))])]):e._e(),(a.$stores.getters.member&&a.$stores.getters.member.is_admin,t("span",{staticClass:"code-con",on:{click:a.showCode}},[e._v(" 我的服务商 "),t("i",{staticClass:"el-icon-arrow-right"})])),t("div",{staticClass:"dropdown-title",on:{click:a.realName}},[t("el-image",{staticClass:"user-avatar",attrs:{fit:"cover",src:a.headimgurl}},[t("el-image",{staticClass:"user-avatar",attrs:{slot:"error",fit:"cover",src:a.member_avatar},slot:"error"})],1)],1),t(a.ServiceCode,{ref:"serviceCodeRef"}),t(a.RealName,{ref:"realNameRef"})],1)},z=[];E._withStripped=!0,o(B,E,z,!1,null,"24541f42",null,null).options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/UserAvatar.vue";var A={__name:"LoginOutIcon",setup:function(e){var t=g();return{__sfc:!0,router:t,handleLoginOut:function(){d.exports.MessageBox.confirm("您即将退出当前账号","账号退出").then((function(){c.dispatch("loginOut").then((function(){return t.push("/login").then(location.reload)}))})).catch((function(){}))}}}},O=function(){var e=this._self._c;return e("div",{staticClass:"login-out-icon"},[e("i",{staticClass:"el-icon-switch-button login-out-icon-img",on:{click:this._self._setupProxy.handleLoginOut}})])},$=[];O._withStripped=!0,o(A,O,$,!1,null,"2b351205",null,null).options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/LoginOutIcon.vue";var N={__name:"NewsIcon",setup:function(e){var t=s(100),a=g();return{__sfc:!0,newsCount:t,router:a,handleNews:function(){a.push("/news")}}}},L=function(){var e=this._self._c,t=this._self._setupProxy;return e("div",{staticClass:"news-icon",on:{click:t.handleNews}},[e("el-badge",{staticClass:"news-value",attrs:{value:t.newsCount,hidden:!t.newsCount,max:99}},[e("i",{staticClass:"el-icon-s-opportunity"})])],1)},Y=[];L._withStripped=!0,o(N,L,Y,!1,null,"6526dcce",null,null).options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/NewsIcon.vue";var F={__name:"CRMMainNavTitle",setup:function(e){var t=g(),a=s(u((function(){return c.getters.company_name})));return{__sfc:!0,router:t,companyName:a,handleGoRoot:function(){t.push("/")}}}},V=function(){return(0,this._self._c)("div",{staticClass:"crm-main-nav-title",on:{click:this._self._setupProxy.handleGoRoot}})},K=[];V._withStripped=!0,o(F,V,K,!1,null,"f2c13fa2",null,null).options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/CRMMain/CRMMainNavTitle.vue";var U={__name:"CRMMainNav",setup:function(e){return{__sfc:!0}}},Q=function(){var e=this;return e._self._c,e._self._setupProxy,e._m(0)},W=[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"layout-crm-main-nav"},[e("div",{staticClass:"layout-crm-main-nav-left"}),e("div",{staticClass:"layout-crm-main-nav-right"})])}];Q._withStripped=!0;var G=o(U,Q,W,!1,null,null,null,null);G.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/CRMMain/CRMMainNav.vue";var X=G.exports,J={__name:"CRMTabs",setup:function(e){var t=_(),a=g(),n=u((function(){return c.getters.tabs})),i=u((function(){return t.path}));return{__sfc:!0,route:t,router:a,tabs:n,activePath:i,handleTags:function(e){a.push({path:e.path,query:e.query})},handleRemoveTags:function(e){if(m===i.value&&c.getters.is_taking_exam_ing)return f.show("您正在考试中,不能关闭标签");c.dispatch("removeTabs",e).then((function(){e.path===i.value&&a.push(n.value[n.value.length-1].path)}))}}}},Z=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"crm-tab-main"},[t("div",{staticClass:"crm-tab-content"},e._l(a.tabs,(function(n,i){return t("div",{key:i,staticClass:"crm-tab-item",class:{active:a.activePath===n.path},on:{click:function(e){return e.stopPropagation(),a.handleTags(n)}}},[e._v(" "+e._s(n.title)+" "),a.tabs.length>1?t("i",{staticClass:"el-icon-close",attrs:{id:"crm-tab-delete-icon",title:"关闭标签"},on:{click:function(e){return e.stopPropagation(),a.handleRemoveTags(n)}}}):e._e()])})),0)])},q=[];Z._withStripped=!0;var ee=o(J,Z,q,!1,null,"f105793a",null,null);ee.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/CRMMain/CRMTabs.vue";var te=ee.exports,ae={name:"CRMMainApp"},ne=Object.assign(ae,{setup:function(e){var t=_(),a=u((function(){var e=t.path.split("/");return e.length<1?t.path:e[1]})),n=u((function(){var e=t.path.split("/");return e.length<2?t.path:e[2]})),i=u((function(){var e=c.getters.menus.filter((function(e){return e.path==="/".concat(a.value)}));if(!e.length)return[];var t=e[0].children.filter((function(e){return e.path==="".concat(n.value)}));return t.length?t[0].children:[]})),r=u((function(){var e="/"+t.path.split("/")[1],a=c.getters.menus.filter((function(t){return t.path===e}));return a.length?a[0].children:[]}));return{__sfc:!0,route:t,activeFirstPath:a,activeSecondPath:n,thirdMenus:i,routeTabs:r}}}),ie=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{class:1==a.routeTabs.length&&0==a.routeTabs[0].children.length?"layout-crm-main-app no-menu":"layout-crm-main-app"},[t("keep-alive",[a.route.meta&&a.route.meta.keepAlive?t("router-view"):e._e()],1),a.route.meta&&a.route.meta.keepAlive?e._e():t("router-view")],1)},re=[];ie._withStripped=!0;var oe=o(ne,ie,re,!1,null,null,null,null);oe.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/CRMMain/CRMMainApp.vue";var se=oe.exports,le={name:"CRMMainFooter",data:function(){return i({},p)}},ce=function(){return(0,this._self._c)("div",{staticClass:"layout-crm-main-footer"})},de=[];ce._withStripped=!0;var ue=o(le,ce,de,!1,null,null,null,null);ue.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/CRMMain/CRMMainFooter.vue";var me=ue.exports,fe={__name:"RouteTabs",setup:function(e){var t=_(),a=g(),n=u((function(){var e=t.path.split("/");return e.length<1?t.path:e[1]})),i=u((function(){var e=t.path.split("/");return e.length<2?t.path:e[2]})),r=u((function(){var e=t.path.split("/");return e.length<3?t.path:e[3]})),o=u((function(){var e=c.getters.menus.filter((function(e){return e.path==="/".concat(n.value)}));if(!e.length)return[];var t=e[0].children.filter((function(e){return e.path==="".concat(i.value)}));return t.length?t[0].children:[]})),s=u((function(){var e="/"+t.path.split("/")[1],a=c.getters.menus.filter((function(t){return t.path===e}));return a.length?a[0].children:[]})),l=u((function(){return 1!=s.value.length||0!=s.value[0].children.length}));console.log(s.value);return{__sfc:!0,route:t,router:a,activeFirstPath:n,activeSecondPath:i,activeThirdPath:r,thirdMenus:o,routeTabs:s,showTab:l,handleSecondRoute:function(e){a.push(e.menu_path)},handleThirdRoute:function(e){a.push(e.menu_path)}}}},pe=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return a.showTab?t("div",{staticClass:"lj-route-tabs"},[t("div",{staticClass:"lj-route-tab-second"},e._l(a.routeTabs,(function(n,i){return t("div",{key:i,staticClass:"lj-route-tab-item",class:{active:a.activeSecondPath===n.path},style:{"z-index":a.routeTabs.length-i},on:{click:function(e){return a.handleSecondRoute(n)}}},[t("img",{staticClass:"icon-img",attrs:{src:n.meta.icon,alt:""}}),t("img",{staticClass:"icon_avtive icon-img",attrs:{src:n.meta.icon_on,alt:""}}),e._v(" "+e._s(n.meta.title)+" ")])})),0),t("div",{staticClass:"lj-route-tab-third"},[a.thirdMenus.length?t("div",{staticClass:"lj-route-tab-third-content",class:{"no-third-menu":!a.thirdMenus.length}},e._l(a.thirdMenus,(function(n,i){return t("div",{key:i,staticClass:"lj-route-tab-item",class:{active:a.activeThirdPath===n.path}},[t("div",{staticClass:"lj-route-tab-item-label",on:{click:function(e){return a.handleThirdRoute(n)}}},[e._v(" "+e._s(n.meta.title)+" ")])])})),0):e._e()])]):e._e()},ve=[];pe._withStripped=!0;var be=o(fe,pe,ve,!1,null,"f26bd807",null,null);be.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/CRMMain/RouteTabs.vue";var he={name:"CRMMain",components:{RouteTabs:be.exports,CRMMainNav:X,CRMTabs:te,CRMMainApp:se,CRMMainFooter:me}},ge=function(){var e=this._self._c;return e("div",{staticClass:"layout-crm-main"},[e("div",{staticClass:"layout-crm-main-content"},[e("CRMMainNav"),e("RouteTabs"),e("CRMMainApp"),e("CRMMainFooter")],1)])},_e=[];ge._withStripped=!0;var xe=o(he,ge,_e,!1,null,null,null,null);xe.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/CRMMain/CRMMain.vue";var ye=xe.exports,Ce={name:"SideBarAvatar",computed:i({},r(["nick_name"])),data:function(){return{isDD:p.isDD}}},we=function(){var e=this._self._c;return e("div",{staticClass:"sidebar-avatar",staticStyle:{display:"block","text-align":"center"}},[e("div",{staticClass:"sidebar-avatar-content",staticStyle:{"margin-top":"25px"}},[e("div",{staticClass:"sidebar-avatar-content-box"},[this.isDD?e("img",{staticClass:"sidebar-avatar-img logo-dd",attrs:{src:"/assets/logo-notext.c8ffce44.png"}}):e("img",{staticClass:"sidebar-avatar-img",attrs:{src:"/assets/logo_1.6928fd06.svg"}})])])])},Me=[];we._withStripped=!0;var je=o(Ce,we,Me,!1,null,"28575881",null,null);je.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/CRMSidebar/SideBarAvatar.vue";var ke=je.exports,Se="/assets/vip-icon.7a7364f2.svg",Re={__name:"MineInfo",setup:function(e,t){var a=t.expose,n=s(!1),i=s(u((function(){var e=new Date(x(new Date(c.getters.edition_time),"YYYY-MM-dd")),t=new Date(x(new Date,"YYYY-MM-dd")),a=Math.abs(t.getTime()-e.getTime());return c.getters.edition_time&&a>0?Math.ceil(a/864e5):0}))),r=l({code:c.getters.service_code?c.getters.service_code:"",name:1==c.getters.member.is_real?c.getters.member.name:""});function o(){n.value=!0,localStorage.getItem("id")||f()}a({init:o});var m=s({access_key_id:"",access_key_secret:""}),f=function(){HTTP.post("refresh_access_key").then((function(e){localStorage.setItem("id",e.data.access_key_id),localStorage.setItem("se",e.data.access_key_secret),m.value={access_key_id:localStorage.getItem("id"),access_key_secret:localStorage.getItem("se")}}))},p=function(e){if(navigator.clipboard)navigator.clipboard.writeText(e).then((function(){console.log("Async: Text copied to clipboard")})).catch((function(e){console.error("Async: Could not copy text to clipboard",e)}));else{var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")?console.log("Fallback: Text copied to clipboard"):console.error("Fallback: Unable to copy text to clipboard")}catch(a){console.error("Fallback: Error copying text to clipboard",a)}document.body.removeChild(t)}};return{__sfc:!0,dialogVisible:n,left_date:i,form:r,init:o,handleClose:function(){if(!c.getters.service_code){var e={company_id:c.getters.company,code:r.code||""};HTTP.post("bind_agent_or_staff",e).then((function(e){0===e.code?d.exports.Message({type:"success",message:"操作成功"}):d.exports.Message({type:"error",message:e.msg})}))}if(!r.name)return d.exports.Message.success("请填写您的真实姓名");HTTP.post("member_real",{name:r.name}).then((function(e){0==e.code&&(n.value=!1)}))},generatekey:function(){f()},keyInfo:m,keyCheck:f,commandClick:function(e){p(0===e?m.value.access_key_id:m.value.access_key_secret),d.exports.Message({type:"success",message:"复制".concat(0===e?"appkey":"secret","成功")})},copyTextToClipboard:p,$store:c}}},Te=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"mine-info"},[t("el-dialog",{attrs:{title:"提示",modal:!1,top:"63vh","append-to-body":!0,visible:a.dialogVisible,width:"20%","before-close":a.handleClose},on:{"update:visible":function(e){a.dialogVisible=e}}},[t("el-input",{attrs:{placeholder:"请输入您的真实姓名",size:"small"},model:{value:a.form.name,callback:function(t){e.$set(a.form,"name",t)},expression:"form.name"}}),t("div",{staticClass:"info-name"},[t("div",[e._v("服务商名称:")]),t("div",[e._v(e._s(a.$store.getters.agent_name?a.$store.getters.agent_name:""))])]),t("div",{staticClass:"info-name"},[t("div",[e._v("服务商电话:")]),t("div",[e._v(e._s(a.$store.getters.agent_phone?a.$store.getters.agent_phone:""))])]),t("div",{staticClass:"info-name"},[t("div",[e._v("我的服务商号:")]),a.form.code?t("div",[e._v(e._s(a.form.code))]):t("div",[t("el-input",{staticStyle:{width:"120px"},attrs:{placeholder:"请输入服务商号",size:"mini"},model:{value:a.form.code,callback:function(t){e.$set(a.form,"code",t)},expression:"form.code"}})],1)]),t("el-divider",{attrs:{"content-position":"center"}}),t("div",{staticClass:"info-name"},[t("div",[e._v("appkey:")]),t("div",[e._v(e._s(a.keyInfo.access_key_id.substring(0,30))+"...")]),t("div",{staticClass:"chongXin mi",on:{click:function(e){return a.commandClick(0)}}},[e._v("复制key")])]),t("div",{staticClass:"info-name"},[t("div",[e._v("Secret:")]),t("div",[e._v("****************************************")]),t("div",{staticClass:"chongXin mi",on:{click:function(e){return a.commandClick(1)}}},[e._v("复制密钥")])]),t("label",{staticClass:"chongBut",on:{click:a.generatekey}},[e._v("重新生成")]),t("div",{staticClass:"time-date"},[t("div",{staticClass:"version-item"},[t("div",[t("img",{staticStyle:{"margin-top":"5px","margin-right":"3px"},attrs:{src:Se,alt:""}})]),t("div",[e._v(e._s(a.$store.getters.edition_name))])]),t("div",{staticStyle:{color:"#312201"}},[e._v("剩余"+e._s(a.left_date)+"天")])])],1)],1)},De=[];Te._withStripped=!0;var Ie=o(Re,Te,De,!1,null,"47d62c41",null,null);Ie.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/components/MineInfo/MineInfo.vue";var He=Ie.exports,Pe={__name:"MineInfoCenter",setup:function(e,t){var a=t.expose,n=s(!1),i=s(u((function(){var e=new Date(x(new Date(c.getters.edition_time),"YYYY-MM-dd")),t=new Date(x(new Date,"YYYY-MM-dd")),a=Math.abs(t.getTime()-e.getTime());return c.getters.edition_time&&a>0?Math.ceil(a/864e5):0}))),r=l({code:c.getters.service_code?c.getters.service_code:"",name:1==c.getters.member.is_real?c.getters.member.name:""});function o(){n.value=!0}return a({init:o}),{__sfc:!0,dialogVisible:n,left_date:i,form:r,init:o,handleClose:function(){if(!c.getters.service_code){var e={company_id:c.getters.company,code:r.code||""};HTTP.post("bind_agent_or_staff",e).then((function(e){0===e.code?d.exports.Message({type:"success",message:"操作成功"}):d.exports.Message({type:"error",message:e.msg})}))}if(!r.name)return d.exports.Message.success("请填写您的真实姓名");HTTP.post("member_real",{name:r.name}).then((function(e){0==e.code&&(n.value=!1)}))},$store:c}}},Be=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"mine-info"},[t("el-dialog",{attrs:{title:"提示",top:"20vh","append-to-body":!0,visible:a.dialogVisible,width:"25%","before-close":a.handleClose},on:{"update:visible":function(e){a.dialogVisible=e}}},[t("el-input",{attrs:{placeholder:"请输入您的真实姓名",size:"small"},model:{value:a.form.name,callback:function(t){e.$set(a.form,"name",t)},expression:"form.name"}}),t("div",{staticClass:"info-name"},[t("div",[e._v("服务商名称:")]),t("div",[e._v(e._s(a.$store.getters.agent_name?a.$store.getters.agent_name:""))])]),t("div",{staticClass:"info-name"},[t("div",[e._v("服务商电话:")]),t("div",[e._v(e._s(a.$store.getters.agent_phone?a.$store.getters.agent_phone:""))])]),t("div",{staticClass:"info-name"},[t("div",[e._v("我的服务商号:")]),a.form.code?t("div",[e._v(e._s(a.form.code))]):t("div",[t("el-input",{staticStyle:{width:"120px"},attrs:{placeholder:"请输入服务商号",size:"mini"},model:{value:a.form.code,callback:function(t){e.$set(a.form,"code",t)},expression:"form.code"}})],1)]),t("div",{staticClass:"time-date"},[t("div",{staticClass:"version-item"},[t("div",[t("img",{staticStyle:{"margin-top":"5px","margin-right":"3px"},attrs:{src:Se,alt:""}})]),t("div",[e._v(e._s(a.$store.getters.edition_name))])]),t("div",{staticStyle:{color:"#312201"}},[e._v("剩余"+e._s(a.left_date)+"天")])])],1)],1)},Ee=[];Be._withStripped=!0;var ze=o(Pe,Be,Ee,!1,null,"2da2eb1d",null,null);ze.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/components/MineInfo/MineInfoCenter.vue";var Ae={name:"SidebarMenus",data:function(){return{default_icon:v,default_icon_on:b,avatarHeight:Number(h.sideBarAvatarHeight.split("px")[0]),is_scroll:!1,hoverIndex:null,headimgurl:this.$store.getters.headimgurl,member_avatar:this.$store.getters.member_avatar?this.$store.getters.member_avatar:w,isDD:p.isDD}},components:{MineInfo:He,MineInfoCenter:ze.exports},computed:i(i({},r(["menus"])),{},{menus_:function(){return t(this.menus)},currentFirstLevel:function(){var e=this.$route.path,t=e?e.split("/")[1]:"";return"/".concat(t)}}),watch:{menus:function(){this.updateIsScroll()}},mounted:function(){this.updateIsScroll(),document.body.onresize=this.updateIsScroll,this.$Bus.$on("menu-item-clear",this.handleClearHover),0==this.$store.getters.member.is_real&&p.isDD&&this.$refs.MineInfoCenterRef.init()},methods:{handleMenu:function(e){this.$router.push(e.path)},handleClearHover:function(e){this.hoverIndex===e&&(this.hoverIndex=null)},handleMenuItemEnter:function(e,t,a){},handleMenuItemLeave:function(e,t,a){this.$Bus.$emit("menu-item-leave",e,t,a)},updateIsScroll:function(){this.is_scroll=65*this.menus_.length>document.body.offsetHeight-Number(this.avatarHeight)},getMineInfo:function(){p.isDD||this.$refs.mineinfoRef.init()}}},Oe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sidebar-menus",class:{"is-scroll":e.is_scroll,"is-dd":e.isDD}},[e._l(e.menus_,(function(a,n){return t("div",{key:n,staticClass:"menu-item",class:{isHover:e.hoverIndex===n,active:e.currentFirstLevel===a.path,isDD:e.isDD},on:{mouseenter:function(t){return e.handleMenuItemEnter(t,a,n)},mouseleave:function(t){return e.handleMenuItemLeave(t,a,n)},click:function(t){return e.handleMenu(a)}}},[t("div",{staticClass:"menu-icon-box"},[t("div",{staticClass:"menu-icon"},[t("img",{staticClass:"menu-icon-img",attrs:{src:a.meta.icon||e.default_icon}}),t("img",{staticClass:"menu-icon-img menu-icon-active",attrs:{src:a.meta.icon_on||e.default_icon_on}})])]),t("div",{staticClass:"menu-title"},[e._v(e._s(a.meta.title))])])})),t("div",{class:e.isDD?"mine-info minDD":"mine-info",on:{click:e.getMineInfo}},[t("el-image",{staticClass:"user-avatar",attrs:{fit:"cover",src:e.headimgurl}},[t("el-image",{staticClass:"user-avatar",attrs:{slot:"error",fit:"cover",src:e.member_avatar},slot:"error"})],1),t("div",{staticClass:"mine-text"},[e._v("我的")])],1),t("MineInfo",{ref:"mineinfoRef"}),t("MineInfoCenter",{ref:"MineInfoCenterRef"})],2)},$e=[];Oe._withStripped=!0;var Ne=o(Ae,Oe,$e,!1,null,"0dd8bfbe",null,null);Ne.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/CRMSidebar/SidebarMenus.vue";var Le=Ne.exports,Ye=n({name:"SidebarMenuChildren",data:function(){return{menu:null,boundingTop:0,index:0,clearBoundingTopTime:null,menuItemWidth:140,offsetBottom:!1}},computed:{menus:function(){return this.menu?this.menu.children:[]},menusGridColumns:function(){return this.menus.length>3?4:3}},mounted:function(){this.$Bus.$on("menu-item-enter",this.handleMenuItemEnter),this.$Bus.$on("menu-item-leave",this.handleMenuItemLeave)},destroyed:function(){this.$Bus.$off("menu-item-enter",this.handleMenuItemEnter),this.$Bus.$off("menu-item-leave",this.handleMenuItemLeave)},methods:{getMenuChildren:function(e){return e.children&&0!==e.children.length?e.children:[e]},handleChildrenMenu:function(e){this.handleClearHover(),this.$router.push(e.menu_path)},handleMenuItemEnter:function(e,t,a){var n=this;this.offsetBottom=!1,this.menu=t,clearTimeout(this.clearBoundingTopTime),this.index=a;var i=e.target.getBoundingClientRect();this.boundingTop=i.top,this.$nextTick((function(){var e=document.body.offsetHeight,t=n.$refs.sidebarMenuChildren.getBoundingClientRect().bottom;n.offsetBottom=t+15>e}))},handleClearHover:function(){this.boundingTop=0,this.$Bus.$emit("menu-item-clear",this.index)},handleMenuItemLeave:function(){this.clearBoundingTopTime=setTimeout(this.handleClearHover,200)},handleEnter:function(){clearTimeout(this.clearBoundingTopTime)},handleLeave:function(){this.handleMenuItemLeave()}}}),Fe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{ref:"sidebarMenuChildren",staticClass:"sidebar-menu-children",class:{isShow:e.boundingTop>0,offsetTop:!e.offsetBottom,offsetBottom:e.offsetBottom},style:{"--sidebar-menu-children-top":"".concat(e.boundingTop,"px"),"--sidebar-menu-item-width":"".concat(e.menuItemWidth,"px"),"--sidebar-menus-grid-columns":"".concat(e.menusGridColumns)},on:{mouseenter:function(t){return e.handleEnter(t)},mouseleave:e.handleLeave}},[t("div",{staticClass:"sidebar-menu-children-main"},e._l(e.menus,(function(a,n){return t("div",{key:n,staticClass:"menus"},[t("div",{staticClass:"menu-title"},[e._v(e._s(a.meta.title))]),t("div",{staticClass:"menu-c-main"},e._l(e.getMenuChildren(a),(function(a,n){return t("div",{key:n,staticClass:"menu-c",on:{click:function(t){return t.stopPropagation(),e.handleChildrenMenu(a)}}},[e._v(" "+e._s(a.meta.title)+" ")])})),0)])})),0)])},Ve=[];Fe._withStripped=!0;var Ke=o(Ye,Fe,Ve,!1,null,"4567abcf",null,null);Ke.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/CRMSidebar/SidebarMenuChildren.vue";var Ue={name:"CRMSidebar",components:{SideBarAvatar:ke,SidebarMenus:Le,SidebarMenuChildren:Ke.exports},data:function(){return{isDD:p.isDD}}},Qe=function(){var e=this._self._c;return e("div",{staticClass:"layout-crm-sidebar",class:{isDD:this.isDD}},[e("SideBarAvatar"),e("SidebarMenus"),e("SidebarMenuChildren")],1)},We=[];Qe._withStripped=!0;var Ge=o(Ue,Qe,We,!1,null,"ef340c04",null,null);Ge.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/components/CRMSidebar/CRMSidebar.vue";var Xe={name:"layoutCRMRoot",components:{CRMSidebar:Ge.exports,CRMMain:ye},data:function(){return i({},h)},computed:i({},r(["isCollapse"]))},Je=function(){var e=this,t=e._self._c;return t("div",{staticClass:"layout-crm-root",class:{isCollapse:e.isCollapse},style:{"--sidebar-bg":e.sidebarBG,"--sidebar-menu-item-hover-bg":e.sideBarMenuItemHoverBg,"--sidebar-menu-item-hover-color":e.sideBarMenuItemHoverColor,"--sidebar-width":e.sidebarWidth,"--sidebar-launch-width":e.sidebarLaunchWidth,"--sidebar-to-main-padding":e.sidebarToMainPadding,"--sidebar-transition-time":e.sidebarTransitionTime,"--sidebar-avatar-height":e.sideBarAvatarHeight,"--main-nav-height":e.mainNavHeight,"--main-tabs-height":e.mainTabsHeight,"--main-nav-bg":e.mainNavBg,"--main-bg":e.mainBg,"--main-footer-height":e.mainFooterHeight,"--main-footer-bg":e.mainFooterBg,"--border-color":e.borderColor}},[t("CRMSidebar"),t("CRMMain")],1)},Ze=[];Je._withStripped=!0;var qe=o(Xe,Je,Ze,!1,null,null,null,null);qe.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutLCRM/layoutCRMRoot.vue";var et=qe.exports,tt={name:"layoutsIndex",components:{layoutCRMRoot:et},data:function(){return{layouts:{layoutCRMRoot:et}}}},at=function(){return(0,this._self._c)(this.layouts.layoutCRMRoot,{tag:"component"})},nt=[];at._withStripped=!0;var it=o(tt,at,nt,!1,null,null,null,null);it.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/layouts/layoutsIndex.vue";e("default",it.exports)}}}))}();