{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\components\\layout\\SideMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\components\\layout\\SideMenu.vue","mtime":1684458238074},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-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 _defineProperty from \"D:/jenkins/workspace/bbsl-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//\nimport { mapState } from 'vuex';\nimport menu from '@/api/menu.js';\nexport default {\n props: {\n menuShow: {\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n currentSubMenu: [],\n activeIndex: ''\n };\n },\n watch: {\n // 监听路由,如果为首页等非菜单页面,取消菜单选中项\n $route: function $route(to, from) {\n if (to.meta.isHome) {\n this.activeIndex = '';\n }\n }\n },\n computed: _objectSpread({}, mapState({\n frontMenus: function frontMenus(state) {\n // console.log(state.menu.frontMenus, 'dfsdsddf')\n return state.menu.frontMenus;\n }\n })),\n mounted: function mounted() {\n this.activeIndex = this.$route.path;\n console.log(this.activeIndex, 'this.activeIndex'); // const this_ = this\n // setTimeout(function () {\n // !this_.currentUser &&\n // this_.$store.dispatch('user/loadCurrentUserDetail')\n // }, 2000)\n // const currentUser = this.$store.state.login.currentUser\n // if ((!this.frontMenus || this.frontMenus.length == 0) && currentUser) {\n // let this_ = this\n // this.$store.dispatch('menu/actionFrontMenus').then((data) => {\n // this.filterSubMenu()\n // })\n // } else {\n // this.filterSubMenu()\n // }\n // this.$bus.$on('frontMenuShow', () => {\n // this.handleMenuCollapse()\n // })\n // this.$bus.$on('roterPush', (path) => {\n // console.log('监听到了')\n // this.activeIndex = path\n // })\n },\n created: function created() {\n var arr = JSON.parse(sessionStorage.getItem('currentFrontMenus')); //梁\n\n this.currentSubMenu = arr[2].children; //梁\n },\n methods: {\n // 菜单的收折\n handleMenuCollapse: function handleMenuCollapse() {\n this.$emit('update:menuShow', !this.menuShow);\n },\n // 选中菜单跳转 不启用el-menu router模式 否则无法选中 暂未查明原因,改用手动推路由\n handleSelect: function handleSelect(path, isJump) {\n console.log(path, isJump, '路由');\n this.$router.push(path); //梁\n // console.log(path, \"alias\")\n // let alias\n // let _this = this\n // if (path && path.indexOf('/frontPlat/href') == -1) {\n // // url 菜单\n // let i = path.lastIndexOf('/')\n // alias = path.slice(i + 1)\n // } else {\n // alias = path.replace('/frontPlat/', '')\n // }\n // menu.getMenuByAlias(alias, (m) => {\n // // debugger\n // console.log(m,3333)\n // m && _this.$emit('menuChange', m)\n // if (m && m.openType == '2' && isJump) {\n // if (m.alias.indexOf('href/') == -1) {\n // let openPath = '/frontPlat/' + m.alias\n // let routeUrl = this.$router.resolve({path: openPath})\n // // let token = JSON.parse(window.sessionStorage.getItem('currentUser')).token\n // window.open(routeUrl.href, '_blank')\n // // window.open(\n // // window.context.yhxt + `${routeUrl.href}` + '?token=' + token,\n // // '_blank'\n // // )\n // } else {\n // let tempwindow = window.open()\n // tempwindow.location = m.href\n // }\n // } else if (m && m.parent) {\n // // console.log(path)\n // this.$router.push(path)\n // this.activeIndex = path\n // }\n // })\n } // 筛选出选中菜单\n // filterSubMenu() {\n // this.alias = this.$route.path.split('/')[2].replace('/', '')\n // if (this.frontMenus) {\n // let currentMenu = this.frontMenus.filter((item) => item.alias == this.alias)[0]\n // if(currentMenu){\n // this.currentSubMenu = currentMenu.children\n // }\n // console.log(this.currentSubMenu, 'this.currentSubMenu')\n // this.$refs.sidemenu.activeIndex = '/frontPlat/' + this.alias\n // }\n // },\n\n }\n};",null]}