{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/views/IMPop.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/views/IMPop.vue","mtime":1739760944329},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/babel.config.js","mtime":1739760943855},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["export default {\n data: function data() {\n return {\n visible: this.showdialog,\n isfullscreen: false,\n // 全屏\n loading: true,\n formList: {},\n vueChatSrc: ''\n };\n },\n props: {\n showdialog: {\n type: Boolean,\n default: false\n }\n },\n watch: {\n showdialog: function showdialog() {\n this.visible = this.showdialog;\n if (this.visible) {\n var src;\n var token = localStorage.getItem('token');\n if (location.href.indexOf(\"te\") > -1 || location.href.indexOf(\"localhost\") > -1) {\n src = \"https://testim.baibaodun.com.cn/#/?token=\".concat(token);\n } else {\n src = \"https://im.baibaodun.com.cn/#/?token=\".concat(token);\n }\n this.vueChatSrc = \"\".concat(src);\n }\n }\n },\n methods: {\n getTableRow: function getTableRow(obj, type) {\n var _this = this;\n this.formList = JSON.parse(JSON.stringify(obj));\n if (type == 0) {\n this.title = \"聊天\";\n } else {\n this.title = \"聊天\";\n }\n //el-dialog监听iframe事件--点击,鼠标,键盘事件 this.$refs.dialog.rendered=true 必须\n this.$nextTick(function () {\n _this.$refs.dialog.rendered = true; //el-dialog的body部分的渲染是通过​rendered​参数来控制;rendered是el-dialog中的内部参数,在首次打开之后,el-dialog将rendered置为true,之后body内容就开始渲染。\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 },\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 // console.log('点击同源iframe onclick页面')\n that.$store.commit('SET_LASTTIME', new Date().getTime()); //全局触发点击事件--获取最后一次时间\n };\n mainFrame.contentDocument.onkeyup = function () {\n // console.log('点击同源iframe onkeyup页面')\n that.$store.commit('SET_LASTTIME', new Date().getTime()); //全局触发点击事件--获取最后一次时间\n };\n mainFrame.contentDocument.onmousemove = function () {\n // console.log('点击同源iframe onmousemove页面')\n that.$store.commit('SET_LASTTIME', new Date().getTime()); //全局触发点击事件--获取最后一次时间\n };\n }\n },\n // 取消\n cancle: function cancle() {\n this.$emit(\"update:showdialog\", false);\n },\n // 全屏\n IsFullscreen: function IsFullscreen() {\n this.isfullscreen = !this.isfullscreen;\n }\n }\n};",null]}