{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/menu_custom_linktype.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/menu_custom_linktype.vue","mtime":1725957645725},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/babel.config.js","mtime":1725957645200},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nexport default {\n inject: [\"reload\"],\n props: [\"openParams\"],\n components: {},\n data: function data() {\n return {\n loading: true\n };\n },\n created: function created() {\n // Function to check if the URL contains the specified domain and redirect\n function checkAndRedirect(v) {\n if (v.includes('ihr')) {\n return window.location.href = v;\n }\n }\n checkAndRedirect(this.openParams.actionContent);\n },\n mounted: function mounted() {\n //loading iframe--bcx\n\n var mainFrame = this.$refs.mainFrame;\n // IE和非IE浏览器,监听iframe加载事件不一样,需要兼容\n var that = this;\n if (mainFrame.attachEvent) {\n // IE\n mainFrame.attachEvent('onload', function () {\n that.stateChange();\n });\n } else {\n // 非IE\n mainFrame.onload = function () {\n that.stateChange();\n };\n }\n },\n methods: {\n stateChange: function stateChange() {\n var that = this;\n this.loading = false;\n var mainFrame = this.$refs.mainFrame;\n if (mainFrame.contentDocument) {\n //同源有contentDocument,监听iframe页面点击,鼠标,键盘事件\n mainFrame.contentDocument.onclick = function () {\n that.$store.commit('SET_LASTTIME', new Date().getTime()); //全局触发点击事件--获取最后一次时间\n };\n mainFrame.contentDocument.onkeyup = function () {\n that.$store.commit('SET_LASTTIME', new Date().getTime()); //全局触发点击事件--获取最后一次时间\n };\n mainFrame.contentDocument.onmousemove = function () {\n that.$store.commit('SET_LASTTIME', new Date().getTime()); //全局触发点击事件--获取最后一次时间\n };\n window.addEventListener('message', function (obj) {\n //接收监听子元素iframe发过来的信息\n\n if (obj.data) {\n var url = obj.data.url;\n if (url && url.indexOf('http') > -1) {\n that.$store.commit('SET_LASTTIME_Flag', false); //嵌套第三方iframe地址不锁屏,返回false\n }\n }\n });\n } else {\n that.$store.commit('SET_LASTTIME_Flag', false); //嵌套第三方iframe地址不锁屏,返回false\n }\n }\n }\n};",null]}