{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\components\\Enclosure\\IframeSrc.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\components\\Enclosure\\IframeSrc.vue","mtime":1681724618863},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\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\r\nimport { Message } from \"element-ui\";\r\nimport req from \"@/request.js\";\r\nexport default {\r\n name: \"iframe-src\",\r\n props: [\"src\", \"fileRow\"],\r\n data() {\r\n return {\r\n iframeSrcDialog: false,\r\n dataSrc: ''\r\n };\r\n },\r\n watch: {\r\n src: function(newVal, oldVal) {\r\n if(newVal){\r\n let _this = this;\r\n req.get(this.src,'arraybuffer').then(response=>{\r\n let type = response.headers['content-type'];\r\n if(type){\r\n _this.dataSrc = window.URL.createObjectURL(new Blob([response.data], { type: type }));\r\n }else{\r\n _this.dataSrc = window.URL.createObjectURL(new Blob([response.data]));\r\n }\r\n });\r\n }\r\n }\r\n },\r\n methods: {\r\n handleOpen() {\r\n this.iframeSrcDialog = true;\r\n },\r\n //关闭弹框\r\n close() {\r\n this.iframeSrcDialog = false;\r\n },\r\n //附件下载\r\n download() {\r\n req.download(\r\n \"${portal}/file/v1/downloadFile?fileId=\" + this.fileRow.id\r\n );\r\n }\r\n }\r\n};\r\n",null]}