{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/views/Launch.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/views/Launch.vue","mtime":1740130327260},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\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 { Toast } from 'mint-ui';\nimport API from \"@/api.js\";\nimport Constant from \"@/Constant.js\";\nexport default {\n name: \"launch\",\n created() {\n this.aToken = \"?accessToken=\" + localStorage.getItem(\"accessToken\")\n this.contextPath = obpmConfig.obpmFilePath;\n API.getStartMenus(this.$root.appid, {\n onSucess: response => {\n this.startmenus = response.data.data;\n }\n });\n },\n activated() {\n let positionY = this.$store.state.scrollY\n let scrollId = document.getElementById(\"launch-bg\")\n if( positionY === 0 ) {\n scrollId.scrollTo(0, 0)\n }else {\n scrollId.scrollTo(0, positionY) //页面激活时控制滚动条滚动到指定的位置\n }\n },\n beforeRouteLeave(to, from, next) {\n from.meta.keepAlive = true;\n let scrollY = document.getElementById(\"launch-bg\").scrollTop //离开之前记录此时滚动条的位置\n this.$store.commit('saveScrollY', scrollY)\n next();\n },\n data: function() {\n return {\n startmenus: [],\n Constant,\n contextPath: \"\",\n appTitle:'',\n aToken:'',\n };\n },\n mounted(){\n this.appTitle=document.title\n },\n methods: {\n doBack() {\n this.$router.go(-1)\n },\n\n nav_click(formId, menu) {\n let appId = this.$root.appid;\n let params = {\n linkType:'00',\n actionContent:formId\n };\n if(menu.queryString) {\n params.queryString = menu.queryString;\n }\n this.$api.hasPermissionToForm(appId, formId, {\n onSucess: response => {\n if(response.data.data) {\n this.$router.push({ \n name: 'open',\n query: params,\n })\n }else {\n Toast(this.$t('notPermission'))\n }\n }\n })\n },\n findLaunchMenus(modeid) {\n let menus = [];\n this.findSubMenus(modeid).forEach(menu => {\n if (menu.formId && menu.formId != \"\") {\n menus.push(menu);\n }\n });\n return menus;\n },\n\n findSubMenus(modeid) {\n let menus = [];\n if (this.startmenus)\n this.startmenus.forEach(menu => {\n if (menu.parent == modeid) {\n menus.push(menu);\n }\n });\n\n if (menus.length > 0) {\n menus.forEach(menu => {\n let submenus = this.findSubMenus(menu.id);\n menus = menus.concat(submenus);\n });\n }\n //console.log(\"modes-->\",menus)\n return menus;\n }\n },\n\n computed: {\n modes() {\n let modes = [];\n if (this.startmenus)\n this.startmenus.forEach(menu => {\n if (menu.parent == this.$root.appid) {\n modes.push({\n id: menu.id,\n description: menu.description\n });\n }\n });\n return modes;\n } \n }\n};\n",null]}