{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\reform-fvue\\src\\mixins\\bigScreenMixin.js","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\mixins\\bigScreenMixin.js","mtime":1731554625652},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\nexport default {\n name: 'bigScreenMixin',\n data: function data() {\n return {\n scale: 1,\n height: 1080,\n width: 1920\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n this.setScale();\n window.addEventListener(\"resize\", this.setScale);\n this.$store.dispatch('menu/actionFrontMenus').then(function (data) {\n // 过滤出大屏菜单\n var Allmenu = [];\n Allmenu = _this.frontMenus.filter(function (item) {\n return item.alias === 'bigScreen';\n })[0].children;\n Allmenu.forEach(function (item) {\n if (item.alias === 'MajorProjectsViewTest') {\n item.alias = 'MajorProjectsView';\n }\n });\n _this.currentMenu = Allmenu.filter(function (item) {\n return item.alias == _this.currentKey;\n })[0];\n _this.menuData = Allmenu.filter(function (item) {\n return item.alias !== _this.currentKey;\n });\n _this.workPlatMenu = _this.frontMenus.filter(function (item) {\n return item.alias === 'normal';\n });\n _this.showWorkPlat = _this.workPlatMenu.length ? true : false;\n });\n },\n methods: {\n setScale: function setScale() {\n // 获取到缩放比例,设置它\n this.scale = this.getScale();\n\n if (this.$refs.ScaleBox) {\n // console.log(this.$refs.ScaleBox.style)\n this.$refs.ScaleBox.style.setProperty(\"--scale\", this.scale);\n }\n },\n getScale: function getScale() {\n // 固定好16:9的宽高比,计算出最合适的缩放比\n var width = this.width,\n height = this.height;\n var wh = window.innerHeight / height;\n var ww = window.innerWidth / width;\n return ww < wh ? ww : wh;\n },\n getWindowSize: function getWindowSize() {\n var _this2 = this;\n\n this.$nextTick(function () {\n console.log(_this2.$refs.bigScreen); // this.$refs.bigScreen.clientHeight\n });\n },\n findFirstChild: function findFirstChild(meuns) {\n if (meuns[0].children && meuns[0].children.length) {\n return this.findFirstChild(meuns[0].children);\n } else {\n return meuns[0].alias;\n }\n },\n // 跳转工作台\n toWorkbench: function toWorkbench() {\n if (this.workPlatMenu.length !== 0) {\n var alias = this.findFirstChild(this.workPlatMenu);\n this.$router.push({\n path: \"/platLayout/\".concat(alias)\n });\n sessionStorage.removeItem(\"searchDate\");\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 }\n};",null]}