{"remainingRequest":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\ljzc-fvue\\src\\components\\layout\\Navigator.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\src\\components\\layout\\Navigator.vue","mtime":1702030575319},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.array.find\";\nimport _defineProperty from \"D:/jenkins/workspace/ljzc-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport HtAvatar from '@/components/common/HtAvatar.vue';\nimport langSelect from '@/components/langSelect';\nimport { mapState } from 'vuex';\nexport default {\n name: 'navigator',\n components: {\n HtAvatar: HtAvatar,\n langSelect: langSelect\n },\n props: {\n currentMenu: {\n default: '',\n type: String\n }\n },\n computed: _objectSpread(_objectSpread({}, mapState({\n currentUser: function currentUser(state) {\n return state.user.currentUserDetail;\n },\n token: function token(state) {\n return state.login.currentUser.token;\n },\n // 重构菜单信息\n businessMenu: function businessMenu(state) {\n var menuTree = state.menu.frontMenus.find(function (i) {\n return i.alias === 'normal';\n }).children;\n\n var processRouting = function processRouting(treeData) {\n var routerPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n return treeData.map(function (item) {\n var children = [];\n\n if (Array.isArray(item.children) && item.children.length) {\n children = processRouting(item.children, routerPath + \"/\".concat(item.alias));\n }\n\n return _objectSpread(_objectSpread({}, item), {}, {\n children: children,\n routerPath: routerPath + \"/\".concat(item.alias)\n });\n });\n }; // 重新组合树数据(根据需要来重组树结构中的属性字段)\n\n\n return processRouting(menuTree, '/platLayout');\n },\n homePageInfo: function homePageInfo() {\n return this.businessMenu[0];\n },\n userType: function userType() {\n if (this.currentUser && this.currentUser.user) {\n return this.currentUser.user.userType;\n }\n },\n userInfo: function userInfo(state) {\n return state.login.currentUser;\n }\n })), {}, {\n currentMenuInfo: function currentMenuInfo() {\n var _this = this;\n\n return this.businessMenu.find(function (i) {\n return i.alias === _this.currentMenu;\n }) || {};\n }\n }),\n data: function data() {\n return {\n systemInformation: {},\n showMore: false // 展示全部菜单\n\n };\n },\n created: function created() {\n console.log(this.userInfo);\n },\n mounted: function mounted() {\n var _this2 = this;\n\n !this.currentUser && this.$store.dispatch('user/loadCurrentUserDetail');\n var url = '${uc}/uc/tenantManage/v1/getTenantByCode?code=platform';\n this.$http.get(url).then(function (resp) {\n return _this2.systemInformation = resp.data || {};\n });\n },\n methods: {\n goIndex: function goIndex() {\n var frontMenus = JSON.parse(sessionStorage.getItem('currentFrontMenus')) || false;\n var bigScreen = frontMenus.filter(function (item) {\n return item.alias === 'bigScreen';\n });\n var alise = bigScreen[0].children[0].alias;\n this.$router.push({\n path: \"/\".concat(alise)\n });\n },\n // 修改密码页面\n openResetPwdDialog: function openResetPwdDialog() {\n this.$router.push({\n path: '/platLayout/resetPwdView',\n query: {\n type: 'settings'\n }\n });\n },\n // 跳转个人中心\n openPersonalCenter: function openPersonalCenter() {\n this.$router.push({\n path: '/platLayout/PersonalInfo'\n });\n },\n // 跳转管理系统\n handleSysPlat: function handleSysPlat() {\n var url = window.context.manage + '/getAuth?token=' + this.token;\n window.open(url, '_blank');\n },\n // 退出登录\n logout: function logout() {\n var _this3 = this;\n\n this.$store.dispatch('menu/clearMenus');\n this.$store.dispatch('user/clearUser');\n this.$store.dispatch('menu/setCopyMenus', []); //菜单\n\n var loginRouthPath = localStorage.getItem(this.$store.state.login.currentUser.account + 'loginRoutePath') || '/login';\n this.$store.dispatch('login/logoutAndCleanUp').then(function () {\n switch (window.ssoConfig.mode) {\n case 'cas':\n case 'oauth':\n window.sessionStorage.removeItem('currentUser');\n window.location.href = window.ssoConfig.logout + '?service=' + window.location.href.split('?')[0];\n break;\n\n default:\n _this3.$router.push({\n path: loginRouthPath\n });\n\n break;\n }\n });\n },\n // 更多nav点击\n moreClick: function moreClick() {\n var _this4 = this;\n\n if (this.showMore) {\n this.showMore = false;\n } else {\n this.showMore = true;\n this.$nextTick(function (_) {\n _this4.$refs.allNavContent && _this4.$refs.allNavContent.focus(); //获得焦点\n });\n }\n },\n // 菜单弹出层失焦时间\n allMenuBlur: function allMenuBlur() {\n var _this5 = this;\n\n this.$nextTick(function (_) {\n return _this5.showMore = false;\n });\n },\n // nav菜单导航点击\n menuClick: function menuClick(item) {\n this.$router.push(item.routerPath);\n this.showMore = false;\n }\n }\n};",null]}