{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\components\\layout\\Navigator.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\components\\layout\\Navigator.vue","mtime":1719693626504},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_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/es6.object.keys\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/jd_cgpt_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//\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 topMenu from \"./TopMenu.vue\";\nimport HtAvatar from '@/components/common/HtAvatar.vue';\nimport langSelect from '@/components/langSelect';\nimport { mapState } from 'vuex';\nimport ScrollView from \"./ScrollView.vue\";\nexport default {\n name: 'navigator',\n components: {\n topMenu: topMenu,\n HtAvatar: HtAvatar,\n langSelect: langSelect,\n ScrollView: ScrollView\n },\n props: ['menuShow', 'navMode', 'aliasPath', 'bizMenuIndex', 'bizMenuAlias'],\n data: function data() {\n return {\n hasAuthToBigScreen: null,\n //是否有大屏菜单\n companyName: '',\n //系统名称\n logoUrl: '',\n //logo地址\n bizMenu: [],\n // 工作台菜单\n bigScreen: [] //大屏菜单\n\n };\n },\n created: function created() {\n if (this.navMode == 'topMenu' || this.navMode == 'topSideMenu-UD') this.getSysInfo();\n },\n mounted: function mounted() {\n this.$store.dispatch('user/loadCurrentUserDetail');\n this.filterBizMenu(this.frontMenus);\n this.checkBigScreenAuth();\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 frontMenus: function frontMenus(state) {\n return state.menu.frontMenus;\n },\n sysMenus: function sysMenus(state) {\n return state.menu.sysMenus;\n },\n userType: function userType() {\n if (this.currentUser && this.currentUser.user) {\n return this.currentUser.user.userType;\n }\n }\n })), {}, {\n activeMenu: {\n get: function get() {\n return this.aliasPath[this.bizMenuIndex];\n },\n set: function set(value) {\n return value;\n }\n }\n }),\n methods: {\n // 菜单的收折\n handleMenuCollapse: function handleMenuCollapse() {\n this.$emit('update:menuShow', !this.menuShow);\n },\n // 获取系统信息\n getSysInfo: function getSysInfo() {\n var _this = this;\n\n var url = '${uc}/uc/tenantManage/v1/getTenantByCode?code=platform';\n this.$http.get(url).then(function (resp) {\n if (resp.data) {\n var tenantManage = resp.data;\n _this.companyName = tenantManage.nameFront;\n\n if (tenantManage.frontLogo) {\n var frontLogo = JSON.parse(tenantManage.frontLogo);\n\n if (frontLogo && frontLogo.length > 0) {\n _this.$http.get(window.context.portal + '/file/onlinePreviewController/v1/getFileById_' + frontLogo[0].id, 'arraybuffer').then(function (response) {\n var type = response.headers['content-type'];\n\n if (type) {\n _this.logoUrl = window.URL.createObjectURL(new Blob([response.data], {\n type: type\n }));\n } else {\n _this.logoUrl = window.URL.createObjectURL(new Blob([response.data]));\n }\n });\n }\n }\n }\n });\n },\n openResetPwdDialog: function openResetPwdDialog() {\n this.$router.push({\n path: '/platLayout/resetPwdView',\n query: {\n type: 'settings'\n }\n });\n },\n openPersonalCenter: function openPersonalCenter() {\n this.$router.push({\n path: '/platLayout/PersonalInfo'\n });\n },\n handleSysPlat: function handleSysPlat() {\n var _this2 = this;\n\n // let url = window.context.manage + '/getAuth?token=' + this.token\n // window.open(url, '_blank')\n if (!this.sysMenus.length) {\n this.$store.dispatch('menu/actionSysMenus').then(function (res) {\n if (res) {\n window.open(window.context.manage + // \"http://localhost:8081/mvue\"+\n '/sysplat/' + \"\".concat(_this2.sysMenus[0].children[0].alias) + '?token=' + _this2.token, '_blank');\n }\n });\n } else {\n window.open(window.context.manage + // \"http://localhost:8081/mvue\"+\n '/sysplat/' + \"\".concat(this.sysMenus[0].children[0].alias) + '?token=' + this.token, '_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 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 // 是否有大屏菜单\n checkBigScreenAuth: function checkBigScreenAuth() {\n this.bigScreen = this.frontMenus.filter(function (item) {\n return item.alias === 'bigScreen';\n });\n this.hasAuthToBigScreen = this.bigScreen.length ? true : false;\n },\n // 跳转回到大屏\n toBigScreenIndex: function toBigScreenIndex() {\n if (!this.hasAuthToBigScreen) return;\n var alise = this.bigScreen[0].children[0].alias;\n console.log(alise);\n this.$router.push({\n path: \"/\".concat(alise)\n });\n },\n // 过滤出业务菜单\n filterBizMenu: function filterBizMenu(menus) {\n var _this4 = this;\n\n menus.forEach(function (item) {\n if (item.alias === _this4.bizMenuAlias) {\n _this4.bizMenu = item.children;\n } else if (item.children && item.children.length) {\n _this4.filterBizMenu(item.children);\n }\n });\n },\n handleClickMenu: function handleClickMenu(item) {\n console.log(item);\n var hasSideMenu = item.children.length ? true : false;\n this.$emit('update:menuShow', hasSideMenu);\n this.activeMenu = item.alias;\n\n if (hasSideMenu) {\n var childrens = item.children;\n var subPath = childrens[0].alias;\n\n if (childrens[0].children && childrens[0].children.length !== 0) {\n var threeChildrens = childrens[0].children;\n var threePath = threeChildrens[0].alias;\n this.$router.push('/platLayout/' + threePath);\n } else {\n this.$router.push('/platLayout/' + subPath);\n }\n } else {\n this.$router.push('/platLayout/' + item.alias);\n this.activeMenu = item.alias;\n }\n }\n }\n};",null]}